14149 Commits

Author SHA1 Message Date
Zuul
ec40f1301d Merge "Imported Translations from Zanata" 2017-10-23 07:29:08 +00:00
Zuul
7858ae0a85 Merge "Retrigger new traversals after resource timeout" 2017-10-23 07:08:34 +00:00
Zuul
337ab2b3ce Merge "Make scheduler.Timeout exception hashable" 2017-10-23 07:08:32 +00:00
Zuul
8619dfb6fa Merge "Add integration tests for simultaneous updates" 2017-10-23 07:08:31 +00:00
OpenStack Proposal Bot
8a1ae39d20 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iacb2ec1ca9ce4177d0af24e1dd3efecf31e26c00
2017-10-23 06:42:51 +00:00
Zuul
b360e3fcaf Merge "Add attributes schema for OS::Keystone::Project" 2017-10-20 15:28:18 +00:00
Zuul
0670ed3429 Merge "Reoder barbican container import" 2017-10-20 12:01:37 +00:00
Zuul
48c9a928e3 Merge "Raise NotFound() when group member does not exist" 2017-10-20 10:27:09 +00:00
Zuul
5318e3d04a Merge "Replace SCREEN_LOGDIR with LOGDIR" 2017-10-20 05:28:00 +00:00
Zane Bitter
bb330ae1a6 Retrigger new traversals after resource timeout
If a resource times out, we still need to check whether there is a new
traversal underway that we need to retrigger, otherwise the new traversal
will never complete.

Change-Id: I4ac7ac88797b7fb14046b5668649b2277ee55517
Closes-Bug: #1721654
2017-10-18 16:47:53 -04:00
Zane Bitter
6a9672a264 Make scheduler.Timeout exception hashable
The python standard library in Python 3.6.3 and earlier has a bug with
handling unhashable exceptions: https://bugs.python.org/issue28603

Although oslo_log will catch the error, make scheduler.Timeout hashable so
that all exceptions will be printable.

Prior to 640abe0c12e63c207fcf67592838f112a29f5b43 we just used __cmp__(),
but that isn't used in Python 3. Defining __eq__(), which is required for
the total_ordering decorator, makes the class unhashable in Python 3.

Change-Id: Idde65b2d41490ab8318b5a8b95ea74e9b96b4e5c
Related-Bug: #1724366
Related-Bug: #1721654
2017-10-18 16:46:39 -04:00
Zane Bitter
fe45b745e5 Add integration tests for simultaneous updates
Convergence allows us to start a stack update while a previous update (or
create) is still in progress. If a resource is found to be locked by a
previous graph traversal when the new traversal comes to update it, the
earlier traversal is responsible for retriggering the resource after it
completes.

This patch adds functional tests to confirm that this works when the
long-running resource update ends in success or failure (as opposed to
timing out or being cancelled).

Change-Id: I5cb0cfd6bb05a94cd32709b5cda8454df6e81a61
2017-10-18 16:46:39 -04:00
huangtianhua
c0f249d05b Hidden OS::Designate::Record and OS::Designate::Domain
We deprecated the resources OS::Designate::Record and
OS::Designate::Domain in ocata, so hidden them now.

Change-Id: I8f0529602f8d2ca50508c4f5ec00d255d078b8a9
2017-10-18 01:27:34 +00:00
huangtianhua
a532535b61 Correct the filter attribute of db model 'ResourcePropertiesData'
Make sure to delete the ResourcePropertiesData row
if the resource 'attr_data_id' has been set already.

Change-Id: I2df5dfc72d051b6619c769c1260ff24b016bc294
Closes-Bug: #1708378
2017-10-16 01:37:10 +00:00
OpenStack Proposal Bot
c5593161d9 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib058e69f51da0e600e98a7e52b777ca41c86b82a
2017-10-14 10:58:33 +00:00
Jenkins
0a9fcd9136 Merge "Eager load resource_properties_data in resource" 2017-10-13 18:25:36 +00:00
Jenkins
26679638f7 Merge "Fix regex for updated_time in PATCH update api test" 2017-10-13 09:24:01 +00:00
rabi
48fcaf3fb2 Raise NotFound() when group member does not exist
Raise NotFound() exception with proper message when fetching
atrribitutes for a member, that is not in the nested stack.

Change-Id: I8969893781439ef5e87ea9f815d7f22e23be3e78
Closes-Bug: #1723315
2017-10-13 12:19:15 +05:30
Jenkins
728e588028 Merge "Refactor FloatingIP add_dependencies() method" 2017-10-13 04:52:09 +00:00
Jenkins
8b2136451d Merge "Add release note for StackDefinition API" 2017-10-13 03:34:46 +00:00
Jenkins
299fc8afc4 Merge "Updated from global requirements" 2017-10-13 03:20:00 +00:00
OpenStack Proposal Bot
e07fcda5de Updated from global requirements
Change-Id: I51d159a446bc99fd98e1f27df9f55f7977fc4bcd
2017-10-12 21:53:25 +00:00
ricolin
a4f2dccf0e Correct example for list_concat-unique function
Change-Id: I330a265a16b0d7a2ac9f94e859f7b81f1e193dc5
2017-10-12 18:56:27 +08:00
rabi
40377ff81d Fix regex for updated_time in PATCH update api test
Change-Id: I2d7a6a3613ed218ca561dc30840e3824d5ce1bd2
Related-Bug: #1721692
2017-10-10 14:24:56 +05:30
Jenkins
8188f53401 Merge "Allow convergence-specific Tempest tests" 2017-10-09 16:27:40 +00:00
Jenkins
32345069a8 Merge "Add action_wait_secs for update" 2017-10-09 11:09:16 +00:00
Jenkins
50379b7f08 Merge "Avoid cloudwatch endpoint retrieve when disabled" 2017-10-09 07:41:05 +00:00
Jenkins
b7bb2752fe Merge "API Tests: Ensure updated_time changes in stack patch update" 2017-10-09 06:09:08 +00:00
rabi
427c34401f Add action_wait_secs for update
Add action_wait_secs for TestResource in api tests, so
that consecutive updates would have different updated_time.

Change-Id: I08d2ac6625acaa0828b18b5e805c81031bb87c01
Related-Bug: #1721692
2017-10-09 10:33:27 +05:30
OpenStack Proposal Bot
bdade04310 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I05160666e877e2c7540251a71e69b7307ae6f582
2017-10-07 11:22:47 +00:00
Jenkins
6c50ea6acd Merge "Fix get_watch_server_url for ipv6 addresses" 2017-10-06 20:47:20 +00:00
Zane Bitter
5d43c6c8de API Tests: Ensure updated_time changes in stack patch update
Check that the patch update has actually run and that we're not simply
looking at the UPDATE_COMPLETE status from the previous test, otherwise
the outputs may not have been updated before we run the next test.

Change-Id: Ia45a303e74e19e7d1887c4e242a8ee5655208e59
Closes-Bug: #1721692
2017-10-06 15:14:09 -04:00
Zane Bitter
dfd34a00f3 Allow convergence-specific Tempest tests
Add a "convergence_engine_enabled" configuration option to the functional
tests' Tempest plugin. The option is enabled by default, but can be
disabled by setting the DISABLE_CONVERGENCE environment variable to "true"
when running prepare_test_env.sh, so that if convergence is disabled in
devstack it will also be disabled in Tempest.

This will allow us to write functional tests for convergence-specific (or
non-convergence-specific) behaviours.

Change-Id: If3a37de75467d50af10582215e16611e59a4ad06
2017-10-05 14:19:32 -04:00
Alfredo Moralejo
54ac107d7f Fix get_watch_server_url for ipv6 addresses
https://review.openstack.org/#/c/508021 fixed it
to work in uwsgi mode but did broke it to work with
ipv6 as it contains ':' as part of the host.

This patch fixes how the URL is parsed in order to
work properly with ipv6.

Change-Id: I3965ee83e1f743e25cbdcbbec516be0ed6a30afc
Closes-Bug: #1721045
2017-10-05 14:33:52 +02:00
Jenkins
163d85a3ca Merge "Use a namedtuple for convergence graph nodes" 2017-10-05 07:33:15 +00:00
Jenkins
d6f9ad1940 Merge "Don't use Dependencies repr in tests" 2017-10-05 07:33:06 +00:00
Jenkins
b59a76bbd9 Merge "Fix error for invalid auth_encryption_key" 2017-10-05 06:51:17 +00:00
Jenkins
05bad04878 Merge "Make private flavor tenant access works" 2017-10-05 05:23:14 +00:00
rabi
9762cc6ac4 Skip test_notifications.NotificationTest.* functional tests
Change-Id: I4cb4b03adef132c11ca664676b6e03ad3efe60d2
Related-Bug: #1721202
2017-10-04 13:26:18 +05:30
Jenkins
dd22ab2fc6 Merge "Adds 5 backport db migration place holder for Pike" 2017-09-28 05:05:35 +00:00
Jenkins
876c046332 Merge "Don't load resource data for list_outputs" 2017-09-27 15:42:10 +00:00
Jenkins
f5268b3eb2 Merge "Use show_output in TemplateResource.get_reference_id()" 2017-09-27 15:42:02 +00:00
Jenkins
390e846c8b Merge "Speed up show-stack with outputs in legacy path" 2017-09-27 15:41:54 +00:00
Zane Bitter
78fb3c42ca Add release note for StackDefinition API
Change-Id: I00f71f9b47690d9e9fcbd8aeae2289de34d87c60
Implements: blueprint stack-definition
2017-09-27 10:12:27 -04:00
Jenkins
9195ead9bf Merge "Make sure we can get watch server url in uwsgi mode" 2017-09-27 13:02:43 +00:00
huangtianhua
13cd27a955 Make private flavor tenant access works
Make private flavor tenant access works.

Change-Id: Ibcb82d3518320534e9e0397e9d0651c3b602d439
Closes-Bug: #1719805
2017-09-27 16:47:26 +08:00
ricolin
4a6aecc5df Fix translate tenants in flavor
Closes-Bug: #1719762

Change-Id: Ibb5a1d176de30bb82bb874f0d66f181251fa5b11
2017-09-27 10:44:00 +08:00
Zane Bitter
6a176a270c Use a namedtuple for convergence graph nodes
The node key in the convergence graph is a (resource id, update/!cleanup)
tuple. Sometimes it would be convenient to access the members by name, so
convert to a namedtuple.

Change-Id: Id8c159b0137df091e96f1f8d2312395d4a5664ee
2017-09-26 16:46:17 -04:00
Zane Bitter
d64de0e4e1 Don't use Dependencies repr in tests
Change-Id: I92fb9928bf839568bb3e4cfb547ddbb579b991cf
2017-09-26 16:46:17 -04:00
Zane Bitter
166ac7869f Increase interface detach polling period
The gate has started failing due to interface detaches timing out.
Examining the logs, it looks like Nova's interface detach retry takes about
6s to run one attempt. Heat, on the other hand, does 10 retries at 0.5s
intervals. So if Nova has to retry then Heat will fail.

Increase Heat's polling interval to make it more likely that if Nova
succeeds, Heat will see it.

Change-Id: Ie74980a3f806b8c17e4e494ae979725b0078f135
Closes-Bug: #1585858
2017-09-26 13:26:13 -04:00