13460 Commits

Author SHA1 Message Date
Jenkins
418dbbd1fa Merge "Updated from global requirements" 2017-04-06 14:57:18 +00:00
Jenkins
b763be28de Merge "Update rally link" 2017-04-06 12:40:25 +00:00
OpenStack Proposal Bot
d8241868a8 Updated from global requirements
Change-Id: Ib4a8e9887ebcabebd45f61a0d1e4a570b04eedf7
2017-04-06 12:16:53 +00:00
Jenkins
08a8961001 Merge "Fix docs for length constraint supported types" 2017-04-06 10:25:46 +00:00
Jenkins
7dc21e090c Merge "Add sem-ver flag so pbr generates correct version" 2017-04-06 04:11:16 +00:00
Jenkins
3bb756ebd1 Merge "Delete internal ports when detach them" 2017-04-06 03:50:08 +00:00
Jenkins
cba588a0b7 Merge "Modify 'List template functions' API response parameter." 2017-04-06 01:41:20 +00:00
Jenkins
b5359cedf1 Merge "Fix format_stack_preview for py3" 2017-04-05 16:19:00 +00:00
Jenkins
ec6b7008c0 Merge "Use a sentinel to indicate when all attributes are required" 2017-04-05 14:26:57 +00:00
Jenkins
eddf19c52f Merge "Use a StackDefinition to store the stack definition" 2017-04-05 14:21:35 +00:00
Emilien Macchi
6a1dad945d Add sem-ver flag so pbr generates correct version
tl;dr : without this Ocata and Pike have the same version causing
packaging issues.


https://docs.openstack.org/developer/pbr/#version

Because projects don't push a tag before milestone 1 (pike-1 here),
downstream packages are still building packages by using the version
from Ocata and it causes problems to distros because they can't test
the upgrades from Ocata to Pike.

Bumping the semver will allow us to test packages upgrades.
Note: When your version is X.Y.Z, api-break will bump X, and feature
will bump Y. In this patch, we bump X because this is the way you
bump tags over releases.


Change-Id: I406a50cd8605985ed261df2885fb6d52e4b393b1
Sem-Ver: api-break
2017-04-05 11:46:25 +00:00
Jenkins
2cbd459326 Merge "Validate property values in nested stacks again" 2017-04-05 07:02:14 +00:00
rabi
c0a3bcbfa3 Fix format_stack_preview for py3
Also fixes test_res_group_with_nested_template functional
test.

Change-Id: I23fab6b8acc11bb32332dd0042ecd6b8ac289f56
2017-04-05 10:48:43 +05:30
Jenkins
e066ca2461 Merge "Only recreate CHECK FAILED resources in ResourceGroup" 2017-04-04 21:06:58 +00:00
Jason Dunsmore
362069cd1f Only recreate CHECK FAILED resources in ResourceGroup
Previously, ResourceGroup._needs_update() would raise UpdateReplace
when the ResourceGroup was in CHECK_FAILED status, resulting in
delete/replacement of every resource in the group.  Now, it will
return True so that only resources in the CHECK_FAILED  status.

Change-Id: I800c4f58feec7c1aaa4897c2ba056e5a74200e5d
Closes-Bug: #1671592
2017-04-04 12:24:14 -05:00
Jenkins
b9120e205e Merge "Error log expression." 2017-04-04 08:39:46 +00:00
Jenkins
dbd92e29b3 Merge "Check all resources with custom guidelines" 2017-04-03 10:01:07 +00:00
Jenkins
b9d455732c Merge "Fix remaining py3 tests" 2017-04-03 10:00:01 +00:00
Jenkins
9327d2f859 Merge "Add a StackDefinition class" 2017-04-03 06:12:38 +00:00
OpenStack Proposal Bot
08d69a34bb Updated from global requirements
Change-Id: I40d70bde25f824502390d6be1fe2649ac9d6b016
2017-04-01 15:23:37 +00:00
Zane Bitter
ea2673fb9a Validate property values in nested stacks again
In ced6f78aa065c1a7e6400c3be9ec3322e1e87416 we stopped doing validations of
nested stacks at stack creation time, on the assumption that they had been
validated when the parent stack was created. This assumption was incorrect;
for children of the stack being created, the strict_validate global is
always set during validation, so property values of resources will not be
validated until it comes time to create the resource.

Instead, prevent only redundant non-strict validations of stacks at nested
depth 2 and greater. This means that every stack other than the root will
be validated exactly twice - once without validating property values when
the root is created, and again including property validation when the
nested stack itself is created.

Most of the performance benefits should remain; in the case of a large
ResourceGroup using index substitution, we will now have to validate a lot
of nearly-identical resource properties, however we still will not load
into memory and validate a nested stack for each one as we originally did.
Since that happens synchronously, it was likely the main contributor to RPC
timeouts when dealing with large scaling groups. (During the validation at
the creation of the root stack, only a single member of a ResourceGroup is
validated even when index substitution is used. For scaling groups with
identical members, only one member is validated since
3aebdabf2e78ac9e920b9dd8c748c4fad0d723c3.)

This change reverts commit ced6f78aa065c1a7e6400c3be9ec3322e1e87416.

Change-Id: I97cf789cee75931edef58b78c88f02da204d2a08
Closes-Bug: #1675589
Related-Bug: #1645336
2017-03-31 15:57:56 -04:00
huangtianhua
b194775ebe Delete internal ports when detach them
Make sure only to delete internal ports when user
wants to detach them, and just do detach for
external ports.

Change-Id: I09e686d4e1603c6a8b388772eee900f06b1e775d
Closes-Bug: #1676821
2017-03-31 17:14:07 +08:00
huangtianhua
7f4a64e0aa Support to get webmks console url for server
Support 'webmks' console type when get console url
for server.
Change-Id: I1e46a42ad65bba703015ef7c57aefdc67606e87c
Closes-Bug: #1646678
2017-03-31 02:48:17 +00:00
Jenkins
edae9f0c45 Merge "Tidy up Stack.supports-check-action()" 2017-03-31 02:09:00 +00:00
Jenkins
0cae06d38c Merge "Define resource actions/statuses in a separate class" 2017-03-31 01:35:34 +00:00
Jenkins
6abdb1c62f Merge "Separate management of parent resource into separate class" 2017-03-30 12:45:03 +00:00
Steven Hardy
a444d7718d Fix docs for length constraint supported types
This constraint actually supports list/map parameters not
only string

Change-Id: I68a9a98c3843e08199b6126d643c532a19372262
2017-03-30 10:20:38 +01:00
rabi
437c053ad4 Remove encoding for application/json in response
Change-Id: I33c5118035bc69ed810e9498bf1aaf5f7488ef17
Closes-Bug: #1677446
2017-03-30 10:03:49 +05:30
Thomas Herve
a1ad716f10 Fix remaining py3 tests
Some tests were manipulating bytes/strings incorrectly, this fixes
them.

Change-Id: Ib5c109c580f542a9d793fa1a32a7857773afa765
2017-03-29 23:39:41 +02:00
OpenStack Proposal Bot
d90d5e3be6 Updated from global requirements
Change-Id: If34132cdf1438b1aa3011ad3bca7f70dea95fef6
2017-03-29 14:01:49 +00:00
Jenkins
48ef79c5f7 Merge "Use exception_filter in RPC client" 2017-03-29 13:46:53 +00:00
Jenkins
73e07966af Merge "Use keystone session with clients" 2017-03-29 08:16:44 +00:00
Jenkins
f11031f57f Merge "Use mock instead for network tests" 2017-03-29 05:16:32 +00:00
Jenkins
439de72ec1 Merge "Updated from global requirements" 2017-03-29 03:54:50 +00:00
Jenkins
0d6c0bced6 Merge "RPC Client: don't cast() delete_stack by default" 2017-03-29 03:07:45 +00:00
Jenkins
84ba72c977 Merge "Use pydoc for formatting docstrings" 2017-03-29 02:43:44 +00:00
OpenStack Proposal Bot
b9cabacbf8 Updated from global requirements
Change-Id: Ibad388d80e4785de75f8b71954f27d66953fe2b0
2017-03-28 21:28:14 +00:00
Zane Bitter
331df3abe8 Use pydoc for formatting docstrings
pydoc is part of the standard library and is much more robust at formatting
docstings than any trivial hand-rolled munger could be. For example, it
correctly preserves indentation within the docstring. Use it when
generating descriptions from docstrings for the API.

Change-Id: Ib565a64d990a45c652a9475255c37805f86070b4
2017-03-28 15:36:53 +00:00
Zane Bitter
9ba29c83b5 Tidy up Stack.supports-check-action()
Change-Id: I25e78dc9c735ec687fff3c8f69a7bedfede6f1df
2017-03-28 15:35:08 +00:00
Zane Bitter
73a886d806 RPC Client: don't cast() delete_stack by default
The delete_stack() RPC call in the client can be sent using either call()
or cast(), with cast() the default. This is never what you want, because
the call could raise an exception and you want to hear about that.

We're now passing cast=False explicitly everywhere. We always were in
heat-cfn-api and heat-api, but failing to do so in StackResource caused bug
1499669, which was corrected by I039eb8f6c6a262653c1e9edc8173e5680d81e31b.
Changing the default to call() will prevent anyone making that same mistake
again.

Change-Id: Idd6a27988dadbf1cd8376de24b19f2226f6ae5b7
Related-Bug: #1499669
2017-03-28 15:34:53 +00:00
rabi
4f17a957a4 Fix some functional tests for py3
This fixes test_reload_on_sighup and test_stack_outputs
for py3.

Change-Id: Ibfb8f4eca0391b13bfec7c1e7352f8c31f8adb84
2017-03-28 13:00:19 +00:00
huangtianhua
1129002f72 Use mock instead for network tests
Change-Id: I9a122576743b666c29c16793c1ce3c8545cdeb45
2017-03-28 15:26:28 +08:00
liyi
ed2c74cbc3 Error log expression.
The log format need mapping parameter.

Change-Id: I1d7832a588d0e9ad493608c56f6276fe5098b4a6
Closes-Bug: #1676732
2017-03-28 13:16:21 +08:00
Zane Bitter
e2b614c529 Use exception_filter in RPC client
This provides both better stack traces for exceptions that are not ignored,
and nicer syntax.

Change-Id: I3467c17272e4a6f81ae8293f723f95dfad3180ab
2017-03-27 14:38:53 -04:00
Jenkins
d42ce99218 Merge "Remove log translations" 2017-03-27 04:17:33 +00:00
Jenkins
12656c7ee0 Merge "Skip integration tests when Swift is not available" 2017-03-27 03:22:31 +00:00
Jenkins
33f5fc29a0 Merge "Delete software deployment before credentials" 2017-03-25 17:04:27 +00:00
liyi
8f10215ffd Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: Ieec8028305099422e1b0f8fc84bc90c9ca6c694f
2017-03-25 17:11:50 +08:00
Zane Bitter
890c3baf67 Delete software deployment before credentials
When deleting a software deployment, remove the deployment from the server
first (by deleting the derived config) and only *then* delete the user
credentials that the server might use to signal back to Heat. This reduces
the chance of something failing that leaves things at a point where revoked
credentials on an old deployment are blocking os-collect-config.

Change-Id: If5fe38033a8a402b07266b1c2d4b627efff85d6b
2017-03-24 15:35:58 -04:00
Jenkins
3d4547fd90 Merge "Imported Translations from Zanata" 2017-03-24 07:53:07 +00:00