Commit Graph

11681 Commits

Author SHA1 Message Date
OpenStack Release Bot 96a9aeb3b4 Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.

Sem-Ver: feature
Change-Id: Ideffed96cfc56ad74898308f039cdf5e005bcda8
2024-03-15 14:17:12 +00:00
Zuul 6ac0521e76 Merge "Update python classifier in setup.cfg" 2024-03-15 10:01:17 +00:00
Zuul 3c832094a4 Merge "reno: Update master for unmaintained/xena" 2024-03-15 09:59:02 +00:00
Zuul dc5d1864f8 Merge "reno: Update master for unmaintained/victoria" 2024-03-15 09:59:01 +00:00
Zuul 0444d253e5 Merge "reno: Update master for unmaintained/wallaby" 2024-03-15 09:58:59 +00:00
Zuul 3a12c003bb Merge "Add upgrade job from 2023.1" 2024-03-15 09:58:57 +00:00
OpenStack Release Bot a641167298 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I4206138a2294cebf40bc5441abde2a4a91edb964
2024-03-05 18:52:06 +00:00
OpenStack Release Bot d64f8b0f02 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I8fae20381d8ad4e1824adb1356342241935829b9
2024-03-05 18:50:30 +00:00
OpenStack Release Bot 5c4c51de28 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I09b7570845ee2e5eed306640f3c8cc8843e993bd
2024-03-05 18:48:33 +00:00
OpenStack Release Bot 8e705fa460 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ibb210d60e99c65d801a88a4ba1cec42c2748c693
2024-02-06 14:27:46 +00:00
Takashi Kajinami 4d61af64a1 Add upgrade job from 2023.1
The 2024.1 release will support direct upgrade from 2023.1, so this
scenario should be tested in CI.

Change-Id: Idbe56fd0eaa2e4b04ce64051bd706ad7757cddf2
2024-02-05 23:02:51 +09:00
Takashi Kajinami e10099bd80 Bump hacking
hacking 4.0.x is very old (it was released 3 years ago).

Change-Id: Id931b3a0110af7d6eb6dc11df5f3b0bbaad67b5e
2024-01-17 01:29:01 +09:00
Ghanshyam Mann 1001769dfb Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: Id0f37bebfb5298c5a84aa8f46f9b2d161b1f81ca
2024-01-03 19:22:50 -08:00
Zuul e51085604c Merge "Add job to test with SQLAlchemy master (2.x)" 2023-10-26 17:35:33 +00:00
Zuul d822a3456e Merge "db: Wrap raw SQL query in sqlalchemy.text" 2023-10-26 17:31:09 +00:00
Zuul ce3dd3839b Merge "Changed /tmp/migrate-db.rc to /root/migrate-db.rc" 2023-09-28 17:19:59 +00:00
Stephen Finucane 13ceadd26e Add job to test with SQLAlchemy master (2.x)
Change-Id: Ib5ba66ba32dd1b2981be338682556018fc41826c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-09-27 15:01:59 +00:00
Stephen Finucane d638b011bb db: Wrap raw SQL query in sqlalchemy.text
Another change in SQLAlchemy 2.x.

Change-Id: I31123c70c9664844181eeaaf9d0846a319af7c2c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-09-27 15:01:53 +00:00
OpenStack Release Bot 141780c0ce Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: Ibe63023c8e1c74118ebae76ea1d4a93eec2aaa31
2023-09-15 16:15:25 +00:00
Sylvain Bauza cf2678f2b9 Update 2023.2 reqs to support os-traits 3.0.0 as min version
We're now close to RC1, we need to ensure that 2023.2 Placement will support
the new traits.

Change-Id: I3b3e2f57fcc18ce8e6c326ab2e2fcead40603ca2
2023-09-14 17:21:04 +02:00
Ghanshyam Mann 5ce841588b Fix bindep.txt for python 3.11 job(Debian Bookworm)
Python 3.11 job run on Debian Bookworm which does
not the mysql pkg for example, libmysqlclient-dev
instead they have mariadb. Updating bindep.txt file
to adjust the pkgs as per Debian bookworm.

Change-Id: Ib47d5e77b14353402fad06e7adc04f8ee8a7e94c
2023-09-06 17:50:43 +00:00
Zuul a85a8be323 Merge "Modify the comment that is confused" 2023-08-31 21:00:31 +00:00
Zuul 07b2a3a249 Merge "tests: Warn on *any* SAWarning warning" 2023-06-15 23:45:35 +00:00
Zuul 6fe6b3713c Merge "tests: Use base class for all functional tests" 2023-06-15 11:49:16 +00:00
Zuul b62cbabc18 Merge "db: Replace use of deprecated API" 2023-06-14 22:48:12 +00:00
Takashi Natsume e62c3a6fea Fix a wrong assertion method
Replace 'called_with' with 'assert_has_calls'.

Change-Id: Ie1c825750d892db53fcf7d6b04e91bc6fd5663e8
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2023-05-07 01:11:45 +00:00
fprzewozn 56778d2697 Changed /tmp/migrate-db.rc to /root/migrate-db.rc
Change-Id: Ibdb411b3d3cfea48d4847887f19c2ae00a3231c8
Closes-Bug: #2018592
2023-05-05 12:26:54 +00:00
Zuul e2cd4a28c0 Merge "Bugtracker link update" 2023-04-18 06:38:17 +00:00
Zuul d15666bc9f Merge "Update python testing as per zed cycle testing runtime" 2023-04-17 16:41:10 +00:00
Zuul 5636c59425 Merge "Move implemented specs for Xena and Yoga release" 2023-04-17 15:11:30 +00:00
Stephen Finucane b2f4fbd5f1 tests: Warn on *any* SAWarning warning
We were explicitly warning on one type of warning. We should warn on all
of them, since they are issues that need prompt addressing.

Change-Id: Ice70d5f0eb93537c4580964d0c70d439182977c0
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-04-17 13:23:05 +01:00
Stephen Finucane d00a9fedd5 tests: Use base class for all functional tests
We were not using our own base class for some of the functional tests,
which resulted in us missing SQLAlchemy 2.0 issues. Correct this.

Change-Id: I921646053c9c68b06df54d206c3d51838c4cafa6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-04-17 13:22:59 +01:00
Stephen Finucane f71603d695 db: Replace use of deprecated API
We were missing a number of users of SQLALchemy APIs that were either
changed or removed in 2.0. These were yielding the following errors in
2.0.

  TypeError: MetaData.__init__() got an unexpected keyword argument
  'bind'

  TypeError: TableClause.insert() got an unexpected keyword argument
  'values'

  TypeError: TableClause.update() got an unexpected keyword argument
  'values'

  AttributeError: 'Engine' object has no attribute 'execute'

Resolve these issues. We will fix the test class issue in a follow-up.

Change-Id: I8724b0738f097739f55cd8566bb30b7ddbe154d9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-04-17 11:47:55 +01:00
Zuul d7e9a330f0 Merge "Db: Drop redundant indexes for columns already having unique constraint" 2023-04-12 09:47:12 +00:00
Amit Uniyal 972dfd4825 Bugtracker link update
As discussed in the upstream meeting, update the placement bug tracker,
link from storyboard to launchpad, so new bugs should be reported in
launchpad instead storyboad.

Whats not updated:
- all links of storyboard which do not point to bugs
- links of existing stories, features, docs etc

Change-Id: I64b9d6feb4fb35f36c5a290b8b79d9b78736efd2
2023-03-30 05:36:29 +00:00
Takashi Natsume ed6e84aad7 Move implemented specs for Xena and Yoga release
Move implemented specs from 'in progress' to 'implemented'.

Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: Ia916e050f8aa790a787efea5f9c9f295c8d7558f
2023-03-26 09:43:24 +00:00
Vasyl Saienko 9668281a4e Do not use coalesce for consumers.uuid
The consumers.uuid  and allocations.consumer_id are not Nullable.

Change-Id: I37065f7eb0809921a885f62ad6f30e6a2fbfd174
2023-03-18 10:37:46 +02:00
OpenStack Release Bot 1a6cc9af4a Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: If400681138cdb2b63790567bed6354ade2a49f8b
2023-03-01 10:50:38 +00:00
Christian Rohmann 0a8c7c5a9e Db: Drop redundant indexes for columns already having unique constraint
* inventories.provider_id
 * inventories.resource_class
 * placement_aggregates.uuid
 * resource_providers.name
 * resource_providers.uuid

Story: 2010251
Task: 46118

Change-Id: Ia834a991edf8f21ee9bea7f97399cd6c003b54e5
2023-02-24 10:17:21 +01:00
Sylvain Bauza 9fa635bd60 Update 2023.1 reqs to support os-traits 2.10 as min version
We're now close to RC1, we need to ensure that 2023.1 Placement will support
the new traits.

NOTE(sbauza) : We recently removed the gabbit check on the number of traits,
we don't need to amend it (I31431a6eb4f144135da0dc9c6d5e4c6b75d1af5d)

Change-Id: Id0f93c6a42d4e42cce668fe8927ab4249bfa9bd6
2023-02-16 11:29:49 +01:00
Ghanshyam Mann 636d65e3ef Modify the placement API policies defaults and scope_type
Placement API policies have been modified to drop the system
scope (every policy is now project scoped) and also modified
the defaults. Most of the policies are default to admin_or_service
role except reshape which is service role only and project resource
usage which is allowed for project reader and admin-or-service role.

Implement: policy-defaults-improvement
Change-Id: I806753e5b36a18be191a839256aaa84b511778f4
2023-01-26 11:31:16 -06:00
Ghanshyam Mann ff8bee1fbc Avoid rbac defaults conflict in functional tests
RBAC defaults for enforce_scope and enforce_new_defaults for
placement service is False. Nova is setting them for Nova service
to True in https://review.opendev.org/c/openstack/nova/+/866218

Placement tests fixture are used in Nova functional tests and
setting the rbac defaults causing placement to run with defaults
of what Nova is setting. To avoid this conflict, in placement
tests fixture, we need to set enforce_scope and enforce_new_defaults
to the same value it is for placement service.

Needed-By: https://review.opendev.org/c/openstack/nova/+/866218
Change-Id: I7e94d107962efdd7779733375327f5c8248c7087
2023-01-09 18:09:14 +00:00
Balazs Gibizer 1c8afcd3f1 Make tox.ini tox 4.0.0 compatible
* removed skipsdist=True to make sure placement available in the virtual
  env

* passenv fixed as space separated list is not allowed any more

* improved the doc generation command line to print all the errors
  instead of stopping at the first one

* added functional-py310 for convenience

* removed basepython = python3 as we assume all developer switched to
  python3 in their env already

* removed ignore_basepython_conflict = True as without the basepython
  definition generative targets now work without conflict

* updated the install_command to mimic better what tox uses by default

Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/866943
Change-Id: I1de24b7a98f149fce33d4e5eca82460eea72140b
2023-01-09 16:21:22 +01:00
Ghanshyam Mann bacd2c0393 Policy defaults improvement spec
This spec is to improve the policies default
as per the community wide goal
- https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html

APIImpact

Partial implement blueprint policy-defaults-improvement

Change-Id: I12dce16a7f18bb065e1412d2f2d9bd91452d8672
2022-11-30 04:08:27 +00:00
OpenStack Release Bot 4e345e55c2 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I7bef657a342fa8b7b08ffcca4459e2831204ee60
2022-09-22 14:59:34 +00:00
Sean Mooney 92753e4a3a update bindep for ubuntu 22.04
The python 3.10 tox job runs on ubuntu 22.04 in the A cycle ubuntu 22.04
will also become the default for other jobs. python-dev is nolonger packaged
on ubuntu 22.04 so the tox job fails.

This change sync the python deps to match those use in nova which
already works across all tested distros.

Change-Id: I7fa25fea03f0c9c645a1eb10b22f058ca548d2fb
2022-09-22 14:58:08 +01:00
Zuul c6b1b92b1d Merge "Update master for stable/zed" 2022-09-22 12:12:48 +00:00
Zuul b9c1167fac Merge "Fix typos" 2022-09-19 13:42:15 +00:00
OpenStack Release Bot 396c270d0b Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I14ea1cdff8272e3c5f7796558ab9aff70557180f
2022-09-15 15:49:02 +00:00
Balazs Gibizer 5ec38f6d3b Make us compatible with oslo.db 12.1.0
With oslo.db 12.1.0 the following sqlalchemy warning become an error:

  sqlalchemy.exc.RemovedIn20Warning: Retrieving row members using strings
  or other non-integers is deprecated; use row._mapping for a dictionary
  interface to the row (Background on SQLAlchemy 2.0 at:
  https://sqlalche.me/e/b8d9)

We tried to fix this before but missed a test_case that still used dict
access to get the fields of a Row instead of attribute access. We fixed
that test here. Also while fixed it I noticed that the generic
_AttributeCache object states that it stores dicts but actually it
sometimes stores dict but sometimes it stores Row objects. So the doc is
updated and the dict path converted to store namedtuple objects in the
cache instead. Note that Row is also acts like a namedtuple except that
._mapping does not exists in namedtuple but exists in Row. The trait
object assumed it gets a Row object with ._mapping from the cache so
that is adjusted to only assume a namedtuple and use _asdict() to covert
it to dict which is available both in Row and namedtuple.

Change-Id: I23ac1d85290a2dec307f8e76aafb02096259b605
2022-09-05 11:44:53 +02:00