Commit Graph

18 Commits

Author SHA1 Message Date
Balazs Gibizer 9c7f869b84 Func test for os-traits and os-resource-classes lib sync
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
2022-08-03 10:31:38 +02:00
Tony Breeds c4e89253a5 Update placement for os-traits 2.8.0 release
This change re enables checking the standard
trait count and updates placement to require
os-traits 2.8.0

Depends-on: https://review.opendev.org/c/openstack/requirements/+/851423
Change-Id: If5c07703d7c236c9fe0eb70e31ef1afb1d3c7a3d
2022-08-02 17:52:46 +10:00
Tony Breeds cbd0198b3e disable traits count check to allow os-traits 2.8.0
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
2022-08-02 17:51:44 +10:00
Sean Mooney 89cc7332f5 update placement for os-traits 2.7.0 release
This change re enables checking the standard
trait count and updates placement to require
os-traits 2.7.0

Depends-on: https://review.opendev.org/c/openstack/requirements/+/826447
Change-Id: I3685c3caac3be4754d1f9e8479d8a047eaf8f3e8
2022-01-26 15:16:16 +00:00
Sean Mooney affb87af23 disable traits count check to allow os-traits 2.7.0
This is a workaound to unblock the requirements repo.

Change-Id: I5aed5674975529b32390d3e216423cba8d501bc5
2022-01-26 15:13:11 +00:00
Balazs Gibizer cd1202ea46 Bump os-traits to latest 2.6.0
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
2021-08-25 14:20:14 +02:00
Chris Dent f41599e1ad Update traits in tests and requirements
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
2021-02-23 17:41:12 +00:00
melanie witt ffb9d5fdee Update for os-traits 2.4.0
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
2020-08-04 20:59:31 +00:00
Tetsuro Nakamura 113da59345 Update for os-traits 2.2.0
os-traits has a new release 2.2.0 with an additional trait; update tests
and requirements accordingly.

Change-Id: I549a1ae99daa524ec881796f4442d781d4cf50bf
2020-01-11 12:49:04 +00:00
Eric Fried 3eab6acb65 Update for os-traits 2.1.0
os-traits has a new release 2.1.0 with an additional trait; update tests
and requirements accordingly.

Change-Id: I7de7d2bc32b46a505a1837ff3af5861e2ccbd553
2019-12-12 13:46:01 -06:00
Eric Fried eff1092233 Update for os-traits 2.0.0
os-traits has a new release 2.0.0 with an additional trait; update tests
and requirements accordingly.

Change-Id: If9a26b4d85bd902457228bafc28abb75980b168d
2019-12-05 10:37:50 -06:00
Eric Fried d958cfa095 Update for os-traits 1.1.0
We've had three traits added since 0.16.0. Update accordingly.

Change-Id: I8c7f99b64434eed513d7462b68778b1f0da54d80
2019-10-17 09:45:34 -05:00
Chris Dent d04168088c Bump os-traits minimum to 0.16.0
os-traits 0.16.0 was just released, adding 3 standard traits.
Require it.

Change-Id: I51f2a77b0f21c6145457bb33fe4db931edca4c99
2019-08-01 10:05:15 +01:00
Eric Fried 2772dafc9d Bump os-traits minimum to 0.15.0
os-traits 0.15.0 was just released. Require it.

Change-Id: Ia3b7387192856b812cb7f0689cfe329ebf51b6bd
2019-06-28 20:56:20 -05:00
Eric Fried 4cca0ee13c Bump os-traits to latest release (0.14.0)
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
2019-06-06 12:58:57 -05:00
Tetsuro Nakamura 7db53444fb Bump os-traits requirements
This patch bumps os-traits since os-traits 0.13.0 was released.

Change-Id: Idb972d9d905f2891cd412c0abefb7bff5524d04f
2019-06-02 21:09:14 +00:00
Eric Fried 7d39ee720c Canary test for os-traits version
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
2019-05-23 18:00:44 -05:00
EdLeafe 9b9073c4c3 Move the functional test directories
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
2018-09-04 10:31:24 -05:00