Placement synchronizes the content of the os-traits and
os-resource-classes lib to its internal DB at service startup. We had
gabbi tests to test that by asserting a hard coded number of traits and
RCs. These test were always blocking the global version bump of such os-
libs as the placement test needed to be updated. This created a deadlock
between the version bump in the requirements repo and the test update in
the placement repo. To avoid the need to always do three steps for a lib
version bump (turn of test, bump global req, update an re-enable the test)
the test logic is changed. Now these tests compares the content of the
lib with the DB automatically instead of hard coding a number of
expected traits and RCs. To be able to this these tests are move from
gabbi to python.
Change-Id: I31431a6eb4f144135da0dc9c6d5e4c6b75d1af5d
This is a workaound to unblock the requirements repo.
Longer term, we probably need to work out a way for this test to pass
with multiple versions of os-traits.
This change follows the same format as:
I5aed5674975529b32390d3e216423cba8d501bc5 ; and
I3685c3caac3be4754d1f9e8479d8a047eaf8f3e8
Change-Id: I406afae77def90d6f8b20dc3a72310a81fee7910
The latest os-traits release introduced 3 new standard traits
While bumping the os-traits requirements it turned out that the
lower-constraints become extra slow causing a timeout. This result is a
catch-22 situation. The lower-constraint job cannot be fixed alone as
the global requirement bump already happened for os-traits 2.6.0
requiring fixing the placement tests. But fixing the placement tests
alone is not possible as the lower-constraints job will time out.
So this patch squashes in Icd0a304fc989c9535db125cd483ecac92deb011d:
Pip is slow to resolve version constraints with many unrestricted
dependencies. The recent slowness seems to be due to amqp is being
unrestricted and pip starts with amqp 5.0.3 but the real minimum is
somewhere around amqp 2.5.0. This patch adds amqp 2.5.0 to
lower-constraints to speed up the pip version resolution.
Change-Id: I89b330d0647b0883eecaf40b988a1a4779bcb1dd
In I0438e39a3c61253f781761a5aae895993f897adb,
I333147dcd47c6d0b926338a5a0c545f5adc63961 , and
Ia4d1871b719037174506fb784b77572e63303762 six new
traits were added, and a new os-traits was released
triggering the canary test for updating constraints.
Change-Id: I4fbab60f04f85d70c703385d7b43457045e3661d
The upper constraint for os-traits was bumped to 2.4.0 in change
Idf9ae2ea576f4ed882489f03e4dbc94193243c98 and additional traits
are available.
Update the tests and requirements accordingly.
Change-Id: I2d67ea2025bab811b00d98759ac4b97ad0737377
os-traits has a new release 2.2.0 with an additional trait; update tests
and requirements accordingly.
Change-Id: I549a1ae99daa524ec881796f4442d781d4cf50bf
os-traits has a new release 2.1.0 with an additional trait; update tests
and requirements accordingly.
Change-Id: I7de7d2bc32b46a505a1837ff3af5861e2ccbd553
os-traits has a new release 2.0.0 with an additional trait; update tests
and requirements accordingly.
Change-Id: If9a26b4d85bd902457228bafc28abb75980b168d
os-traits 0.14.0 hit upper-constraints [1] so placement's lower bounds
and canary test need to be updated accordingly.
[1] https://review.opendev.org/663507
Change-Id: Ib6f08a681162101f91c0de4ce1d2eed35975ef96
Since [1] we have decided to pin placement to the latest versions of
os-resource-classes and os-traits. Turns out we had gabbi tests that
would fail as soon as the os-resource-classes upper constraint was
bumped, alerting us that it was time to sync that requirement. This
commit adds a similar test for os-traits.
[1] https://review.opendev.org/#/c/658419/
Change-Id: I57e834311c73282a2e7a00b14823812cb6f3e1e6
While in Nova, placement functional test code was relegated to the
'nova/tests/functional/api/openstack/placement/' directory. This commit
moves the contents of that directory to 'placement/tests/functional/',
and removes the unnecesary directories. It also removes the files
related to Nova aggregates that were preserved in the filter_history.sh
script.
Change-Id: I5af2e074f2e1bcb90f32589fce819bd4872b6871