15902 Commits

Author SHA1 Message Date
Pavlo Shchelokovskyy
7505273560 Remove python2 from bindep
Heat dropped support for Python2 long ago,
and python2 is not even available on some newer platforms,
breaking installation of heat dependencies.

Change-Id: I37cf23a71202396bd28cd780455f6278b42c6e4b
2022-06-10 20:27:28 +03:00
Zuul
0b6d5e07a7 Merge "Supports 'availability_zone_hints' for Neutron networks and routers" 2022-06-10 01:53:50 +00:00
Zuul
a30b5d8c91 Merge "Drop lower-constraints.txt and its testing" 2022-06-09 11:10:57 +00:00
Zuul
f4a25ef093 Merge "Disable auto discovery" 2022-06-06 15:57:40 +00:00
Zuul
8c91934062 Merge "Validate limit query parameter for List Software Config API" 2022-06-06 14:05:40 +00:00
Takashi Kajinami
fee8c40c23 Make grenade job voting again
Because change I7d1017bcd7147329c4e187336daee1a1ae280fa9 was backported
to the previous stable branch.

Change-Id: I2de594258231e3f1c217904afce88a83a8f94df3
2022-06-03 16:36:40 +09:00
Matthias Runge
78244c5f0f Use f36 instead of f33 for testing
F33 is unsupported for a while. We should not use it for any testing.

Change-Id: I7d1017bcd7147329c4e187336daee1a1ae280fa9
2022-05-31 10:35:53 +02:00
OpenStack Proposal Bot
dd4d2f2dc0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iecec295856c0d5b7769f6f8608869c133e38bde4
2022-05-26 02:50:45 +00:00
Takashi Kajinami
b3430d9fc2 Remove TripleO job
This removes the experimental TripleO job. The job has been kept in
experimental queue and it has never attracted actual attention.
Also the job does not use the proposed change in heat but the current
master instead, so it's not useful to be in the Heat jobs.

Change-Id: I1b99f8d039271bff8e64d64ad5482231bf2a2118
2022-05-25 13:29:34 +09:00
Takashi Kajinami
ef67b861dd Validate limit query parameter for List Software Config API
This change adds validation of the limit query parameter in List
Software Config API, as was implemented for List Stack API, to avoid
internal error at database query.

story: 2009707
task: 44054
Change-Id: Ib57919faebbd4eb6aa13857e242eb5f3dc448a02
2022-05-25 13:09:19 +09:00
Ghanshyam Mann
49cbb92ed6 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: I703229320320295b4a90e72c543f8959f85daaa9
2022-04-30 15:41:05 -05:00
Brendan Shephard
5e14163f9c Allow multiple required_service_extension
In some cases, some resources may require more than
one service_extension. In this case, we should allow
resources to define a list of required resources.

Change-Id: Iee0104a741cc050047824d23b8ab5ee9871c4f28
2022-04-26 06:37:05 +00:00
Alejandro García
77c6681278 Supports 'availability_zone_hints' for Neutron networks and routers
This patch adds the property 'availability_zone_hints' for OS::Neutron::Router,
OS::Neutron::Net and OS::Neutron::ProviderNet resources.

Story: 1644974
Task: 17156
Signed-off-by: Alejandro <agarcia@whitestack.com>
Change-Id: I71caefae01560dc106badbefd3859813d8417b2a
2022-04-14 20:30:35 +00:00
Brendan Shephard
b388bdb14c Disable auto discovery
Change in setuptools after latest release of setuptools 61.0
with breaking changes which are not backwork compatible,
details in related bug and [1].

Users that don't set ``packages``, ``py_modules``, or ``configuration`` are
still likely to observe the auto-discovery behavior, which may halt the
build if the project contains multiple directories and/or multiple Python
files directly under the project root.

To disable auto discovery, one can do below in setup.py

~~~
setuptools.setup(..,packages=[],..)
~~~

or

~~~
setuptools.setup(..,py_modules=[],..)
~~~

[1] https://github.com/pypa/setuptools/issues/3197

Change-Id: Ia544d7d82c0569c453f7cb75885b903d2e3cf83f
2022-03-29 01:15:03 +10:00
380d087067 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: Ie191d59b02bd883794e1567da2f059f6bba88747
2022-03-08 11:41:21 +00:00
577ae3109a Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: Ie99a9a10eb6266bf32c4dcde6f22e25fe7f9542a
2022-03-08 11:41:18 +00:00
Takashi Kajinami
968969b99c Fix compatibility with oslo.context >= 4.0.0
The tenant argument of RequestContext is longer available since
oslo.context 4.0.0. This change removes usage of the deprecated
argument in unit tests to prepare for version bump.

Change-Id: I0493b5fbe09d183e57a207c1dda0b2ee7a4e1b34
18.0.0
2022-03-01 18:40:34 +09:00
rabi
b1fe9752b0 Fix for tenacity 8.0.1
Use retry_state parameter that contains all information about
current retry invocation in the prepare_attempt callback.

Change-Id: Ib47b6335b591850965132448befb7b3dbe31984a
Task: 44471
2022-02-11 18:13:37 +05:30
Takashi Kajinami
0fa19e7a93 Add Python 3 only classifier
Python 2 support was removed during Ussuri cycle. This change adds
the classifier to clearly state that only Python 3 is supported.

Change-Id: Icaa8acc04019b67628e84b1fa252e3731d526f08
2022-02-08 23:06:14 +09:00
Takashi Kajinami
9ed612906e Fix unit tests for croniter>=1.2.0
Since croniter 1.2.0, day=0 is no longer accepted as a valid value[1].
Because of this change, some unit tests are failing with the following
error.

Invalid CRON expression: [* * 0 * *] is not acceptable, out of range

This change updates the pattern used in unit tests so that the value
is accepted by the latest croniter.

[1] 17953c8fa7

Change-Id: Ib9ee765e89716583b8f28cc9aafd9cb4e8e8e1cb
2022-01-17 19:46:54 +09:00
bshephar
9af3af156b Bump lower constraints for OSC
In support of the OSC migration, we need
to bump the lower-constraint for the
openstacksdk to allow for feature parity.

Change-Id: Ide69f84a76f06814cf74b73b57729f23dea1062b
2022-01-12 03:17:59 +00:00
Zuul
ea6633c35b Merge "Fix Pool resource update for session_persistence" 2021-12-24 09:23:31 +00:00
Zuul
421a382cb1 Merge "Updating python testing classifier as per Yoga testing runtime" 2021-12-24 06:22:02 +00:00
Ghanshyam Mann
d5ef98b88e Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

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

Change-Id: I573f6f4f4a9257a4c9c25a9d61a9ea29267377d1
2021-12-14 02:48:30 +00:00
Corey Bryant
80453f9136 Adjust self.assertRaisesRegex messages for py310
The messages returned are slightly different when run
with Python 3.10.

Story: 2009741
Task: 44177
Change-Id: I26917aefdf43bf3f9008891d2e66aef9b94f58b5
2021-12-13 11:21:07 -05:00
Zuul
fe8fba8c98 Merge "Imported Translations from Zanata" 2021-12-07 05:37:48 +00:00
rabi
a2fd56a935 Don't test zaqar in CI
Unfortunately few projects like mistral/zaqar have little participation
and are kind of unmaintained atm, we should stop testing them in CI.
Recently zaqar is broken with latest pymongo (4.0).

Change-Id: I33d3aceacf03ad1baf29301885a8e88b17b7e476
2021-12-03 08:33:59 +00:00
rabi
575827c9ac Skip aodhclient plugin test
This is broken after pyparsing was bumped to 3.0.6. With
python-aodhclient (kind of unmaintained it seems) CI broken,
we should skip the test temporarily until [1] is merged and
we've a client released with the change.

[1] https://review.opendev.org/c/openstack/python-aodhclient/+/819393

Change-Id: Ib4a244087038f698eabbf2180eff3efce3a3c767
2021-11-26 09:23:50 +05:30
Zuul
213e6b1304 Merge "Fix None comparision when sorting by updated_at" 2021-11-22 12:52:52 +00:00
rabi
f5da6d210e Fix broken devstack plugin
This devstack plugin seems broken with devstack secure rbac changes
to use OS_CLOUD.

Change-Id: I9f0d3d97e4cc7d5ed6858eca9c042fedb14139d1
2021-11-19 14:17:55 +00:00
rabi
c63a2cbbad Fix Pool resource update for session_persistence
Pool session_persistence property should be update
allowed.

Task: 43952
Change-Id: Idee8893844bfd776a81c9e3ac45aa6804092a440
2021-11-17 12:13:10 +05:30
rabi
2c5f6e7a80 Add intersphinx_mapping for sqlalchemy
This would fix the docs build failures with
sqlalchemy 1.4.27.

Change-Id: Iae37cb89667ae95d93eca7ea71122b7de59cee7f
2021-11-17 12:12:52 +05:30
Ian Wienand
bf9186a37e Fallback to upstream for Fedora image
OpenDev infra only keep around the latest two Fedora releases in their
mirrors.  Probe for the image from the local test mirror, but if not
found, fallback to upstream.  This will be much less reliable, but can
avoid gate breakage until new images can be used.

Also, use endpoint_type when creating keystoneclient

Keystone admin endpoint has been removed from devstack with[1].
This would use the public endpoint by default.

Change-Id: I96ab14871ee8c5d5b83cc0cd4abc840ef0218ca8
2021-11-12 15:32:19 +05:30
Erik Panter
403fa55fe9 Fix None comparision when sorting by updated_at
When sorting resource candidates in `_get_best_existing_rsrc_db`,
resources with the same score are sorted by `updated_at`, which can be
`None`. If that is the case, use `created_at` instead.

Task: 43815
Story: 2009653
Change-Id: Ic0265fcf7ceb811803cdebaa8932fe80dc59a627
2021-11-09 10:26:49 +01:00
OpenStack Proposal Bot
29637ce945 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie693d500eb35af94e13069d85516dc42a5f811dd
2021-11-02 02:42:00 +00:00
Zuul
ef187fc65b Merge "Fix timeout calc of nested resource groups" 2021-11-01 17:40:47 +00:00
Zuul
d692e17d27 Merge "Reproduce bug story/2009237" 2021-11-01 17:13:30 +00:00
Tobias Urdin
b6a2c22316 Catch all create stack project exceptions
If there is underlying issues in Keystone that
causes the create stack project to fail the exception
is never caught causing the stack to never enter a failed
state with any feedback. See [1] for example.

This changes so that we catch all exceptions and set the
stack to a failed state. We do not want to return the
complete exception since it can contain information about
the deployments underlying issue so we instead log the
exception.

[1] https://paste.opendev.org/show/810161/

Change-Id: If0bc726d8681fff2b45a3b353ae627c86eb298d2
2021-11-01 04:26:13 +00:00
rabi
83774a1c8f Use yaml.safe_load() in lbaas tests
load() function requires a loader parameter with
PyYAML 6.0.

Change-Id: Icf8ae805e53d80cf7be46465326983d2e24ef23a
2021-11-01 09:41:44 +05:30
rabi
e70ff2e153 Allow for creating server_group with max_nova_api_microversion
When users set max_nova_api_microversion in heat.conf, we should
use that to create the client.

Change-Id: If74f3f869fc696c87540357d96b039b68c456539
Task: 43661
2021-10-18 15:21:54 +05:30
Zuul
a65f610cbe Merge "Remove python-ceilometerclient from requirements" 2021-10-18 04:33:17 +00:00
Zuul
3eb0ad839d Merge "Add Python3 yoga unit tests" 2021-10-18 04:20:24 +00:00
Zuul
4fec77f769 Merge "Fix ServerGroup create" 2021-10-14 13:47:23 +00:00
Andrii Ostapenko
5d27ba3c8f
Remove python-ceilometerclient from requirements
Component is not used in code base and was recently removed from
global upper constraints [0]

[0] https://review.opendev.org/c/openstack/requirements/+/809975

Change-Id: I1555a3db15c9a560e945c3479b44cd6d3f036d79
2021-10-12 19:42:24 -06:00
Zuul
b20b86f962 Merge "docs: Fix typo in developer guide" 2021-10-12 14:24:15 +00:00
rabi
9aedaa6d8a Fix ServerGroup create
Nova api has a different signature from microversion
2.64 onwards[1].

Also adds support_status for 'rules' property missed
earlier in I8e77f54303298da00cbe719afccb449f10fe387c.

[1] https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/server_groups.py#L103-L104

Task: 43168
Change-Id: If7138c71044adadaf7de255a2fac463b57ff3c47
2021-10-12 09:48:54 +05:30
Zuul
49f7c04247 Merge "Run TripleO jobs on CentOS8 instead of CentOS7" 2021-10-11 14:31:52 +00:00
Zane Bitter
315fbc4fd5 docs: Fix typo in developer guide
Change-Id: Ic5e6fa80d2a04b1c36087ed8f7f870e414cd5d82
2021-10-11 10:16:29 -04:00
OpenStack Proposal Bot
96d6084b87 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5af1eb5655899742cabd9df560b3c7413d48fbe7
2021-10-06 06:42:31 +00:00
Brendan Shephard
9131940ebb Drop six library
The six library was introduced to bridge the gap
between Python2 and 3. This is no longer necessary
on branches where we are not supporting Python2.

Change-Id: I7736373d03c23884158e4a1d41defafb4e2b8a4c
2021-10-05 02:50:03 +00:00