This fixes a bug where the load balancer creation fails with this
error:
resource CREATE failed: BadRequest: resources.loadbalancer: Must
supply a unique access list item to update the current list. (HTTP
400)
Closes-Bug: 1541953
Change-Id: I5183b305a7bf2cef16e5e01e88fdb3f24aeb4be5
If the names of keystone resource no change when updating,
do not to update them.
Change-Id: I4ec6497fdd6859a0fc106538bbad4d299c66a26e
Closes-Bug: #1522330
It is preferred to wrap long lines in parentheses and not a backslash
for line continuation due to OpenStack Style Guidelines
http://docs.openstack.org/developer/hacking/#general, paragraph 2
Change-Id: If670a3b103e3b2e740f8b9645db979d5280b5262
The directory tools is exculed for runing pep8 test now. This code was
merged before file subunit-trace.py adding into tools/.
Enable pep8 to check files in toos/ since there will be more python files.
Change-Id: If3b7d9891fa235d690e74dbe91d8e4112d7de17e
Remove the unnecessary checking of implementation signature of
current resource with the prev_resource in needs_update.
It seems prev_resource is always resource from the backup_stack
and there would be no difference.
If there is a change of implementation class, it would have been
already handled[1]
[1]
https://github.com/openstack/heat/blob/master/heat/engine/update.py#L139-L140
Change-Id: I1df84986cbc4bae7bcdbaae8b5aacbfa7adaec32
This patch adds one release notes item for new added resource
OS::Neutron::RBACPolicy during mitaka.
Change-Id: Ieb9ee24a0edb3826f993e3e2dd2b33c0a6496ed4
Without these defaults, the resource can get stuck in update until the
stack times out.
Change-Id: I58a5b70959e6107eefb4351d77315c0bceb9b717
Closes-Bug: #1539230
Adds an optional list of environment files that can be specified instead
of resolving multiple environments client-side. This change covers both
the REST API changes and the internal RPC API changes.
APIImpact
Implements: blueprint multi-environments
Change-Id: I45fb9d4480f6ab4e5fe30cb2e3b62a03777484c7
Current patch refactors get_live_state using during
update in Resource class:
Firstly, if get_live_state raises some error, it won't
raise in update method now, just log it and skip live
state updating.
Secondly, if get_live_state returns empty dict, there's
no call of updating old resource's properties.
Thirdly, resource id checking moved from get_live_state
to update method, so there's no necessity to call super
in every override get_live_state method.
Fourthly, tests have been refactored and dupe has been
reduced.
implements bp get-reality-for-resources
Change-Id: I61a5175b6cd6bbf7eada57a8a02064879f9ab5f8
The stack_context decorator creates legacy stacks only.
This patch will allow it to create convergence as well as
legacy stacks by adding a new parameter indicating the stack
type and defaults to legacy. This is used by some test cases
introduced by Ifa48b179723a2100fff548467db9e162bc669d13.
Change-Id: Ibfc38b188f5fc8118487697db4ad438cf3ae7332
In terms of the logging guidelines this is not an ERROR, it's just a thing
that happened that is worth logging, so changing it to INFO level.
Also some reformatting because formatting.
Change-Id: Ic3222db3429a2b17fbea3d12056d16de17d21228
Clear an active user hook when an exit exception occurs (e.g. the thread is
cancelled). Previously we only caught Exception so exit exceptions were
excluded.
To also cover the case of an unclean exit (e.g. kill -9), don't wait on a
hook that is left over from some previous stack operation - only start the
hook if it is set in the current environment.
Change-Id: Ie894f416a898edeca3b6a123392853213893ff74
Closes-Bug: #1538733
This is a resource for representing a single node of a Load Balancer.
It has the ability to drain the connections off of a node before
deleting it.
Change-Id: Idfdce6c078e51f43e368a642a9c116565f3352b4
Currently override _show_resource is omitted for
OS::Neutron::SecurityGroup, so show attribute returns
nothing. Need to add override _show_resource method.
No need test needed in case of testing _show_resource in
parent class.
Change-Id: I60daf727eaa739cae60c74435a05b71980082670
Closes-bug: #1538563
Algorithm and bit_length properties are required by barbican
for non-certificate types of order.
Change-Id: I61117ed9e00ebbd42374df6eb5b533b13c98360d
Closes-Bug: #1535791