15633 Commits

Author SHA1 Message Date
Rabi Mishra
2aea5c9b32 Use correct attribute from entrypoint
The type of the entry point objects returned in stevedore has
been changed from`pkg_resources.EntryPoint` to
`importlib.metadata.EntryPoint`[1] and it does not have module_name
attribute.

It also bumps requirements/lower-constraints as stevedore==3.1.0 is
not backward compatible.

[1] https://review.opendev.org/#/c/740515/
Task: 40355
Change-Id: Icd68f6eab73e44406f2ff5073636dcdd111e00ea
2020-07-15 17:51:57 +05:30
Zuul
c5a14a88cf Merge "Use unittest.mock instead of mock" 2020-07-01 05:18:10 +00:00
Rabi Mishra
01c230e793 Check for nova exception.Conflict rather than task_state
When detaching and attaching volumes nova would raise an
exception.Conflict, if attach and detach can't happen. Let's
use that to retry rather than using task_state.

Change-Id: I50904e4254568cd807b9ff18eef482cadb626ce5
Task: 40169
2020-06-26 14:29:54 +05:30
OpenStack Proposal Bot
8353fddf9e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia0a23d75ec36fd5d729b64e4bcc63edafdb52cba
2020-06-17 07:27:09 +00:00
Hervé Beraud
eab4382df8 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Ie0e43904d375e542ca00cd43b3c84c7afb31ee85
2020-06-10 13:50:56 +02:00
Rabi Mishra
d0e44ded0a Use never expiring alarm_url for resource attributes
Don't use timestamp when generating ec2 signed url for alarm url
attributes of resource.

This will resolve the issue for new resources even if they are cached
in attributes or resource_data.

However, for existing stacks containing these resources the current
best option is to not cache these attributes and allow alarm resources
to be able to get a new never expiring urls in the next forced update.

Change-Id: If2ebc3deacb770294004ae023500367af603b59e
Task: 39985
Related-Bug: #1872737
2020-06-06 14:02:09 +05:30
Rabi Mishra
3047ca7d36 Don't store signal_url for ec2 signaling of deployments
As part of a CVE keystone has started checking[1] the timestamp
of signed ec2 token with default TTL of 15 mins. We can't
store the ec2 url anymore for future use for those.

This moves the caching logic to BaseWaitConditionHandle class.

[1] https://review.opendev.org/#/c/724124/

Change-Id: I6b74faed820caccd39210bd48a212b2dedca46b9
Related-Bug: #1872737
2020-06-04 23:03:17 +05:30
OpenStack Proposal Bot
abc8733dc1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4a51049476956eb9d823ab1cf73cfc0175c37f5a
2020-05-29 06:38:18 +00:00
Rabi Mishra
26d8f64fc9 Allow scale-down of ASG as part of update
When user wants to do manual scale-up of ASG by increasing the
desired_capacity and also update some member properties as
part of a stack update, if it fails due to insufficient
resources when resizing, trying to manually scale-down by
decreasing the desired_capacity won't work, as it would
always expect to update the group with the earlier size
before scaling down.

This patch uses the target_size when building the batches.

Task: 39867
Change-Id: Id851530b424f68b5e0e967fe34431483bfffd852
2020-05-28 05:08:44 +05:30
Andreas Jaeger
b3e7c590f0 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I4ebb6e663471a7096bd9d0e1a90d8114d1875546
2020-05-21 09:43:55 +02:00
Zuul
f9137b6c9f Merge "Add propagate_uplink_status support to OS::Neutron::Port" 2020-05-20 19:38:05 +00:00
Luigi Toscano
86fc1740c4 Add native grenade zuul v3 jobs
Moved from https://review.opendev.org/#/c/639774/

Change-Id: Id7f9be610e99cac9cf1f097066cc8748752d92dd
2020-05-13 09:37:28 +05:30
Ghanshyam Mann
a61c4bbe29 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I4586bde1bd9f33dcdd803900bc648720073bdb62
2020-05-12 19:24:16 -05:00
Rabi Mishra
f18a676792 Use Fedora 31 for tests
Change-Id: Ia45e957bb24f5596a5ef16271f71ba8b77df9e42
2020-05-12 11:28:31 +05:30
Rabi Mishra
6d697ad2f0 Fix pep8 E741 errors
Change-Id: Ibb0da11fd89876602a6da62d08834937b81c2ce6
2020-05-12 11:28:31 +05:30
Zuul
4c5abb4909 Merge "Return empty list instead of None for tags" 2020-05-11 21:59:55 +00:00
Zuul
aede6fa102 Merge "Monkey patch original current_thread _active" 2020-05-10 08:28:43 +00:00
Zuul
1b9046631f Merge "Clean up API policy decorators" 2020-05-07 17:14:06 +00:00
Zuul
5252cce72e Merge "Add a /healthcheck URL" 2020-05-07 00:51:03 +00:00
Zuul
ca2e68bcda Merge "Use unittest.mock instead of third party mock" 2020-05-06 16:51:53 +00:00
Jason Li
4d11d3117a Add propagate_uplink_status support to OS::Neutron::Port
This resource depends on Neutron API extension
``uplink-status-propagation`` and the default is
``False``. If this property is set to ``True``,
the VF link state can follow that of PF.
See release note at
https://docs.openstack.org/releasenotes/neutron/stein.html.

Change-Id: I46749f0458fd69e3f62d03e5b4648e1704750e15
2020-05-06 09:43:51 -05:00
Zuul
403ac3def7 Merge "Simplify logic in retrigger_check_resource()" 2020-05-05 16:06:30 +00:00
Zuul
91afdf1db7 Merge "Add dns_domain support to OS::Neutron::ProviderNet" 2020-05-05 16:04:08 +00:00
Sean McGinnis
fd6cf83554
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I8f764e9ba46a4e2055be61eb0fe97d155ab1c70e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-05 08:42:11 -05:00
OpenStack Proposal Bot
368fdfff42 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic95431459d11ac075dc0e665c95261c48d087318
2020-05-05 06:55:31 +00:00
Zuul
1067288b75 Merge "Add Python3 victoria unit tests" 2020-05-04 23:23:32 +00:00
Zuul
aa54b13bcf Merge "Ensure use of stored properties in actions" 2020-05-04 23:19:57 +00:00
Corey Bryant
8fd17214a9 Monkey patch original current_thread _active
Monkey patch the original current_thread to use the up-to-date _active
global variable. This solution is based on that documented at:
https://github.com/eventlet/eventlet/issues/592

Change-Id: I0540923755ac3969b584eeba2e19c037a7f2c261
Story: 2007614
2020-05-04 13:19:21 -04:00
Zuul
0e7d99ac3f Merge "Logging Consistency" 2020-05-04 10:12:13 +00:00
Zuul
d828ead648 Merge "Update master for stable/ussuri" 2020-05-04 07:29:49 +00:00
Zuul
c20124891e Merge "Remove six and python 2.7 full support" 2020-05-03 07:58:42 +00:00
Zuul
565895e303 Merge "Remove six and python 2.7 full support" 2020-05-03 05:58:32 +00:00
Zuul
130151f547 Merge "Remove six and python 2.7 full support" 2020-05-03 05:58:29 +00:00
Zuul
bf875ca8fe Merge "Remove six and python 2.7 full support" 2020-05-03 05:58:26 +00:00
Zuul
776daa085a Merge "Remove six and python 2.7 full support" 2020-05-03 05:58:23 +00:00
Zuul
611aa1f3d1 Merge "Remove six and python 2.7 full support" 2020-05-03 05:58:20 +00:00
Zuul
b96904740f Merge "Remove six and python 2.7 full support" 2020-05-03 05:58:18 +00:00
Zuul
9e0959171a Merge "Remove six and python 2.7 full support" 2020-05-03 05:58:16 +00:00
Zuul
a76d773804 Merge "Remove six and python 2.7 full support" 2020-05-03 05:58:14 +00:00
Zuul
0654bc19a8 Merge "Remove six and python 2.7 full support" 2020-05-03 05:51:17 +00:00
Zuul
e8c843cc63 Merge "Remove six and python 2.7 full support" 2020-05-03 05:41:58 +00:00
Zuul
803f676361 Merge "Remove six and python 2.7 full support" 2020-05-03 05:41:55 +00:00
Zuul
61195889e5 Merge "Remove six and python 2.7 full support" 2020-05-03 05:36:50 +00:00
Zuul
ed7638fa15 Merge "Remove six and python 2.7 full support" 2020-05-03 04:48:02 +00:00
Zuul
058e6bcffd Merge "Remove six and python 2.7 full support" 2020-05-02 22:25:49 +00:00
Zuul
bdaf258c00 Merge "Check external resources after creation" 2020-05-01 06:39:46 +00:00
Thomas Goirand
af245164a3 Add a /healthcheck URL
This is helpful for operators to use haproxy
or to do monitoring.

Change-Id: I551aa1a0c63d699a4830294024248468bd958922
2020-04-30 18:49:55 +02:00
Zane Bitter
5c326c22df Simplify logic in retrigger_check_resource()
The node to retrigger (cleanup or update) depends only on whether the
update node appears in the new traversal's graph, not on what type of
node in the old traversal was blocking the new one. Simplify the logic
and remove the unused parameter.

Also use the ConvergenceNode named tuple instead of raw tuples
everywhere.

Change-Id: I00aecb2b4b52d3d759446f22c69891fb85c4c735
2020-04-30 10:51:45 -04:00
Zane Bitter
4d26be471e Clean up API policy decorators
The decorators for unregistered policies were needed only during the
migration to policy in code. Remove the unused ones and simplify those
remaining.

Change-Id: Ic53fcc62db46863c6a2b00cbc7e32250a7d6e16f
2020-04-30 10:48:31 -04:00
Andreas Jaeger
37a83c1ede pep8: Enable E226
Enable
"E226 missing whitespace around arithmetic operator"

And fix problems encountered.

Change-Id: I90cbf6220f487a0808e13cd3998c8127be563498
2020-04-30 16:42:53 +02:00