Commit Graph

1121 Commits

Author SHA1 Message Date
OpenStack Release Bot 7a5b912e7a 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: Iaaf00db2aeb3be44ed2abdd6f494465facea365d
2024-03-14 19:57:49 +00:00
Zuul 6a2219a4eb Merge "Fix usage of sqlalchemy.engine.Connection.execute" 2024-03-07 16:39:31 +00:00
Matt Crees 7df1935c41 Fix usage of sqlalchemy.engine.Connection.execute
The SQL now needs to be wrapped in ``sqlalchemy.text``, for
compatibility with SQLAlchemy 2.x.

Change-Id: I83cdda47a92930791d78b776276332055152574b
2024-03-06 12:00:21 +00:00
Zuul 59082738b3 Merge "reno: Update master for unmaintained/victoria" 2024-03-06 07:17:42 +00:00
Zuul e641fcbd69 Merge "reno: Update master for unmaintained/xena" 2024-03-05 21:00:30 +00:00
OpenStack Release Bot db66efe07c reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I731787f378d9c9fd4666bacfb65a8f06a65b2fa9
2024-03-05 18:27:57 +00:00
OpenStack Release Bot 6b6e318b18 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I4f317aeaad3227621cb158aa8905d26c3ef2177e
2024-03-05 18:27:16 +00:00
OpenStack Release Bot 67a8cbacfe reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Iedd7cbaa032f32e4656f37bc136f6e66fb79814c
2024-03-05 18:26:36 +00:00
Matt Crees b91c0f691e Replace usage of LegacyEngineFacade
Switch to using oslo_db.sqlalchemy.enginefacade instead, as this is
required for SQLAlchemy 2.x support.

Change-Id: I055fed2ef2f4953cdd7b215ccafaa27767e915ae
2024-03-04 16:06:36 +00:00
Pierre Riteau 9aa976ae13 Fix InstanceReservations affinity nullable flag
Instance reservations can be created with the affinity parameter set to
True (affinity), False (anti-affinity) or null (no affinity requested).

Change Icf26d1b7dffe64f82d7084dcebb5df1c7c9f106d updated the database
schema with Alembic but missed updating the SQLAlchemy model.

Change-Id: Ic754692722a784b1cb47ffeebce58136a528ad14
2024-02-15 11:17:12 +00:00
Zuul adf68a71bb Merge "Add non-fatal handling for enforcement exceptions" 2024-02-15 07:38:43 +00:00
Anish Reddy Ravula 6ad67e5465 Add non-fatal handling for enforcement exceptions
The current implementation of enforcement exceptions
during lease creation and update transitions the lease into an error
state, which is undesirable.This update introduces non-fatal handling
for the following enforcement exceptions:
  - MaxLeaseDurationException
  - ExternalServiceFilterException

Now, these exceptions will not cause the lease status to be
updated to an error state, allowing smoother lease management.

Test Plan:

PASS: Verify behavior for lease creation with non-fatal
enforcement exceptions
PASS: Verify behavior for lease update with non-fatal
enforcement exceptions
PASS: Confirm consistent lease status for non-fatal exceptions

Negative Testing:

PASS: Ensure that lease status remains unaffected for
non-fatal exceptions
PASS: Validate expected outcomes for various enforcement scenarios

Change-Id: I5d807d33e07d80f69f9734735c11e8d801bf5cde
2024-02-06 09:50:35 -06:00
OpenStack Release Bot a803ba3446 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ie8636113867e9a71362e967b61eff6e48c1be958
2024-02-05 17:00:05 +00:00
Matt Crees 0481ad4ad9 Add support for specifying a custom CA bundle
Adds the new config option ``cafile``, which is passed into the
Session invocations for SSL verification.

Partial-Bug: #2045281

Change-Id: I2ec5bc7ac929534175d380d2e3e535a5e7abd962
2024-01-28 22:10:24 +00:00
Pierre Riteau 807ebb013c Fix unit test broken by dependency bump
Change-Id: I80d105af00735bb2a4f2a52e13e772bad3bd8ace
2024-01-27 08:41:15 +01:00
Ghanshyam Mann b0dbd0a929 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: I7a11cbaf5d6df2dcfa043559f1444c909e4f00d3
2024-01-03 21:22:52 -08:00
Pierre Riteau 667a8bd782 Update bindep package list for Debian Bookworm
Change-Id: I12009bdef08a435cdafe604f0832a8dcbdf16b24
2023-09-29 09:46:36 +02:00
OpenStack Release Bot e78848edb2 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: I0cc06001ef8cae5d9abf153c8a705aa5250ac765
2023-09-15 13:47:24 +00:00
Pierre Riteau cf383ae3a5 Update copyright date for release notes
This is a small change to force refresh of release notes.

Change-Id: I269ccaaba569b986b5a9be698686cbdd5ea611fb
2023-03-20 15:25:26 +01:00
OpenStack Release Bot 735d43eccc 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: I64523195b78562f70bb4a98ed908b29164ad7c21
2023-02-28 13:30:53 +00:00
Zuul af4e4490dd Merge "Add randomness to physical host selection" 2023-02-24 09:00:25 +00:00
jakecoll c4a4305374 Add randomness to physical host selection
In the event that a given physical node has reliability issues, it can
be difficult for users to "get around" the problem because we currently
deterministically pick the first node from the list of nodes available.
Adding randomness to this process helps spread the probability that a
given lease will nab a node that has issues (but has not yet been
identified as such.)

Co-Authored-By: Matt Crees <mattc@stackhpc.com>

Change-Id: I0f0ddb14ed5d21f0ccc5c9659c821d58cea5cbde
2023-02-24 08:07:21 +01:00
Pierre Riteau feabfc0155 Fix tox.ini for tox4
The skipsdist setting breaks stevedore extension loading.

Change-Id: I39dddb59d2eadd57756960ef520a643671e595b9
2023-02-24 06:23:38 +01:00
Zuul 68c6487465 Merge "[docs] Rewrite the architecture description" 2022-10-06 15:30:29 +00:00
Radosław Piliszek e93abfe536 [docs] Rewrite the architecture description
To match the reality.

Closes-Bug: #1801794
Change-Id: I5f2044da0efcbe3e091d25f97d69fec877858d7e
2022-09-26 18:42:28 +00:00
Pierre Riteau da81c20709 Update copyright date for release notes
This is a small change to force refresh of release notes.

Change-Id: I69f23cb248ffa0d2f290cda5a909187441b0b3cc
2022-09-23 10:51:42 +02:00
OpenStack Release Bot 47d8093500 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: I2e9ce1b39077f83b5c4c18544e676d0a34bb1c30
2022-09-16 09:21:19 +00:00
OpenStack Release Bot b88b4bf010 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: Ic64eb1aa7cc764cf025cfa281a9df183e31daa68
2022-09-16 09:21:17 +00:00
Zuul 9ed6780f11 Merge "Improve ExternalServiceFilter" 2022-09-15 16:54:31 +00:00
Radosław Piliszek 83f805eb72 Improve ExternalServiceFilter
Apply my comments from the original patch [1] and add unit tests.

[1] https://review.opendev.org/c/openstack/blazar/+/781917

Change-Id: I116aad6677423aedb5dda48f06b36afc32819ba8
2022-09-15 09:32:43 +00:00
Takashi Natsume 40f2f5d285 Fix misuse of assert statements
Replace 'called_once_with' with 'assert_called_once_with'.
Replace 'called_once' with 'assert_called_once_with'.

Change-Id: I1d3c444c3e01b862a1a2571cf13d054dfd2fb463
Closes-Bug: 1989267
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-09-11 11:42:01 +09:00
Pierre Riteau 27206b2c04 Fix compatibility with oslo.db 12.1.0
oslo.db 12.1.0 has changed the default value for the 'autocommit'
parameter of 'LegacyEngineFacade' from 'True' to 'False'. This is a
necessary step to ensure compatibility with SQLAlchemy 2.0. However, we
are currently relying on the autocommit behavior and need changes to
explicitly manage sessions. Until that happens, we need to override the
default.

Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ic7c5703c1d1009f6c402766aeb20fa9869495470
2022-09-09 16:22:49 +02:00
Pierre Riteau 22e99c1827 Add enforcement filter using an external HTTP service
Co-Authored-By: Jacob Colleran <jakecoll@uchicago.edu>
Co-Authored-By: Jason Anderson <jasonanderson@uchicago.edu>
Co-Authored-By: Pierre Riteau <pierre@stackhpc.com>

Change-Id: I0728f556829ba84e222c27bd8c407738b4be2f76
2022-08-30 22:06:54 +02:00
Radosław Piliszek 42e4b7639f [docs] Install blazar to generate proper docs
The blazar installation was removed in [1].
However, stevedore requires blazar to generate docs for
configuration. Currently, they are mostly empty.
Instead of removing the blazar installation, this change makes
sure that deps are installed with constraints so that blazar
installation does not bring havoc and the original issue is fixed.

[1] Ic55dba0038a2209e9fb291a604a5c1da57607e1e

Change-Id: I28d06ae31c4cf44d010e0892a094138112b08641
2022-08-03 10:40:57 +00:00
Radosław Piliszek d02152fd97 Add WebTest as a test dependency
Pecan has made WebTest an optional dependency for testing only [1].
Since it is used for blazar unit testing, we need to add it to the
test-requirements.

The lower version bound is required by requirements-check.
It is (arbitrarily) taken from the Queens' upper-constraints.

[1] https://github.com/pecan/pecan/pull/140

Change-Id: I67b730a21676a8191756effec7e15ab1895e1c95
2022-08-03 10:40:51 +00:00
Zuul bda5168336 Merge "Update python testing as per zed cycle testing runtime" 2022-06-09 08:23:58 +00:00
leiyuehui f194168ced Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I6c31cc6ab8c58f77216d869dbbcd6c68bec09b7e
2022-06-09 06:44:10 +00:00
Zuul 65f0df66c6 Merge "Update configuration for compatibility with Sphinx 5" 2022-06-08 14:05:46 +00:00
Zuul a9d7dd57bf Merge "[CI] Move queue setting to project level" 2022-06-08 11:14:16 +00:00
Zuul 930d219e99 Merge "Update keystone client to use base client kwargs" 2022-06-07 16:26:12 +00:00
Pierre Riteau ac06f1f9f6 Update IRC meeting information
Change-Id: I01abce1ddee907ce8f0bb1ed9340e5508ac173f3
2022-06-07 09:15:26 +02:00
Pierre Riteau 352b13b21d Update configuration for compatibility with Sphinx 5
Change-Id: I8a3ee4d774451d8211d0d7f2a5db7a42d51b288d
2022-06-06 20:11:32 +02:00
Jason Anderson ce88bac795 Update keystone client to use base client kwargs
Change-Id: I700630802e38c7c930d77f5d23786ad81c42f608
Closes-Bug: #1975508
2022-06-06 18:08:10 +02:00
Pierre Riteau b6ec5600fd [CI] Move queue setting to project level
Per [1].

[1] http://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html

Change-Id: I34934eefee6c0cd3b999fa028e6697d1c5e8476a
2022-05-20 10:35:03 +02:00
Zuul b342141abf Merge "Remove reference to lower-constraints job" 2022-05-14 10:01:23 +00:00
Zuul be7c3c07c4 Merge "Fix references to start and end dates" 2022-05-06 08:34:41 +00:00
Pierre Riteau 82e2ee972c Remove reference to lower-constraints job
This job fails because the tox environment has been removed in
I24fd4700d59b30e4e5b3fed6c892a4f8ade7bb47.

Change-Id: I2e66b482b6310b0608c8df9e6b415d49f1373db0
2022-05-05 18:37:01 +02:00
Ghanshyam Mann 7d47b5347b Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I24fd4700d59b30e4e5b3fed6c892a4f8ade7bb47
2022-04-30 15:32:04 -05:00
Zuul 66291b6e10 Merge "Skip blazar install in docs and pep8 jobs" 2022-04-15 13:17:57 +00:00
Pierre Riteau bd6469d53c Fix references to start and end dates
The lease attributes are called start_date and end_date, not start_time
and end_time.

Change-Id: I77fb08a3811ed1445e31b3552ca23d5bfc43a07d
2022-04-15 09:52:50 +00:00