10806 Commits

Author SHA1 Message Date
Jason Dunsmore
3ae796a0bc Remove extraneous fields from Cloud LoadBalancer access list
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
2016-02-04 11:29:17 -06:00
Jenkins
8ef79f95b7 Merge "Updated from global requirements" 2016-02-03 22:44:23 +00:00
Jenkins
d360b2d419 Merge "Add validation for glance image" 2016-02-03 16:40:52 +00:00
Jenkins
260eacd68b Merge "Remove implementation_signature check" 2016-02-03 16:39:26 +00:00
OpenStack Proposal Bot
b1d4e874b4 Updated from global requirements
Change-Id: I1203f2a8f31c1aca2b6dab727d125f9f7cbdf4f0
2016-02-03 14:47:31 +00:00
huangtianhua
8b83e14d84 Don't update the name of keystone resources if name don't change
If the names of keystone resource no change when updating, 
do not to update them.

Change-Id: I4ec6497fdd6859a0fc106538bbad4d299c66a26e
Closes-Bug: #1522330
2016-02-03 01:50:01 +00:00
Jenkins
768839d5d5 Merge "Add _show_resource to Neutron SecurityGroup" 2016-02-02 20:20:46 +00:00
Jenkins
35b90e3fc5 Merge "Add environment_files to REST and RPC APIs" 2016-02-02 16:58:23 +00:00
Oleksii Chuprykov
37bf3efb6f Add validation for glance image
Add check for incorrect container and disk pair.
Closes-Bug: #1540930

Change-Id: Ic89dc1d3e865246b4099bcb44209930574354402
2016-02-02 14:33:53 +00:00
Jenkins
3e82202278 Merge "Enable pep8 to check files in directory tools" 2016-02-02 12:16:15 +00:00
Jenkins
928cf9643f Merge "Convergence: Fix FnGetAtt to fetch value from cache_data" 2016-02-02 11:51:30 +00:00
Jenkins
9dcccb62a8 Merge "Add validation to barbican order" 2016-02-02 11:02:19 +00:00
Jenkins
69c45fe94d Merge "Edit backslashes for lines continuations" 2016-02-02 10:28:03 +00:00
Jenkins
818ac03064 Merge "FunctionalTests don't run non-test check_skip_test" 2016-02-02 10:13:41 +00:00
Jenkins
799467b08e Merge "Fix import order" 2016-02-02 04:46:06 +00:00
Oleg Khavroshin
f46da5bb6a Edit backslashes for lines continuations
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
2016-02-01 16:51:41 +03:00
Bo Wang
34bc87e2c2 Fix import order
third-party lib before project imports.
refer to:http://docs.openstack.org/developer/hacking/#import-order-template

Change-Id: Ifeb38e337ac6ae5b385571284a808d51c916e6b6
2016-02-01 20:33:11 +08:00
Bo Wang
cad6597ff3 Enable pep8 to check files in directory tools
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
2016-02-01 19:54:24 +08:00
Rabi Mishra
b1e320ea66 Remove implementation_signature check
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
2016-02-01 09:38:50 +13:00
dixiaoli
6caa70c00b Add release notes for new added resource OS::Neutron::RBACPolicy
This patch adds one release notes item for new added resource
OS::Neutron::RBACPolicy during mitaka.

Change-Id: Ieb9ee24a0edb3826f993e3e2dd2b33c0a6496ed4
2016-01-29 18:21:52 +08:00
Jenkins
6e660e9033 Merge "Allow stack_context to create convergence and legacy stacks" 2016-01-29 04:34:50 +00:00
Jenkins
f97eeede5e Merge "Optimize the fault map for EntityNotFound" 2016-01-29 04:34:35 +00:00
Jenkins
9625d07ced Merge "Refactor get_live_state using during update" 2016-01-29 03:45:46 +00:00
Jenkins
4e8de7180e Merge "Assign defaults for Cloud Loadbalancer node type and weight" 2016-01-28 23:50:58 +00:00
Jenkins
331e8b0162 Merge "Software config zaqar integration tests" 2016-01-28 22:12:00 +00:00
Jason Dunsmore
adfa6fa8e1 Assign defaults for Cloud Loadbalancer node type and weight
Without these defaults, the resource can get stuck in update until the
stack times out.

Change-Id: I58a5b70959e6107eefb4351d77315c0bceb9b717
Closes-Bug: #1539230
2016-01-28 14:22:13 -06:00
Jenkins
c543421d26 Merge "Don't log a failed software deployment at ERROR level" 2016-01-28 16:56:16 +00:00
Jenkins
af67bc5ab2 Merge "Prevent phantom user hooks" 2016-01-28 16:40:58 +00:00
Jenkins
f7750efaed Merge "Update resource type exceptions with error_code" 2016-01-28 16:06:55 +00:00
Jay Dobies
c2d8a15b24 Add environment_files to REST and RPC APIs
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
2016-01-28 10:18:51 -05:00
Jenkins
bc696d30f0 Merge "Add test for stack outputs" 2016-01-28 15:06:55 +00:00
Jenkins
7465dea25e Merge "Add OS::Neutron::RBACPolicy resource" 2016-01-28 12:45:38 +00:00
Peter Razumovsky
b9a4e5a535 Refactor get_live_state using during update
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
2016-01-28 14:41:17 +03:00
dixiaoli
28ece601f3 Add OS::Neutron::RBACPolicy resource
This change added OS::Neutron::RBACPolicy to heat.

Depends-on: I9e38bbfb7fceee3e1fff5eb3db40a6659d01b383
Change-Id: I5bf4f4d7972de5d8c6d3d1e6e9f00856f17c3ffb
Blueprint: support-rbac-for-networks
2016-01-28 16:32:29 +08:00
Jenkins
14aae5032e Merge "Add entity and name attribute to EntityNotFound" 2016-01-28 08:06:43 +00:00
Ahmed Elkhouly
7ffb88c20d Allow stack_context to create convergence and legacy stacks
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
2016-01-27 23:52:58 -05:00
Jenkins
c864504117 Merge "Allow StackLock to be used as a context manager" 2016-01-28 04:35:33 +00:00
Jenkins
534b7a891d Merge "Add descriptions to all openstack resources (Part 2)" 2016-01-28 03:46:01 +00:00
Jenkins
8cc097bd14 Merge "Stop using hidden property l3_agent_id" 2016-01-28 01:59:41 +00:00
Zane Bitter
be8f66284b Don't log a failed software deployment at ERROR level
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
2016-01-27 18:46:13 -05:00
Jenkins
c24dd96ade Merge "Add Rackspace::Cloud::LBNode" 2016-01-27 22:24:46 +00:00
Zane Bitter
cee2aa0762 Prevent phantom user hooks
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
2016-01-27 15:54:59 -05:00
Drago Rosson
e94c70ced3 Add Rackspace::Cloud::LBNode
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
2016-01-27 13:41:14 -06:00
Jenkins
4e7a584e5c Merge "RPC API: Define correct constants for resource data" 2016-01-27 18:48:53 +00:00
Jenkins
2a980e0e49 Merge "Use custom find functions for image lookup" 2016-01-27 16:50:45 +00:00
Jenkins
d012641693 Merge "Don't pass [] for fixed_ips to neutron" 2016-01-27 16:36:39 +00:00
Sergey Kraynev
685cd208e9 Stop using hidden property l3_agent_id
This patch remove using of hidden l3_agent_id property for Router
resource in unittests.

Change-Id: I4905cbe8d4e3fc75d83e767fdae6cd3e183587d5
2016-01-27 10:09:24 -05:00
Peter Razumovsky
bd720530e2 Add _show_resource to Neutron SecurityGroup
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
2016-01-27 17:14:34 +03:00
Oleksii Chuprykov
82b9a66ea8 Add test for stack outputs
Add test for output list and output show

Depends-On: I1bc1cee1c78ecf0c9a18ecc0a871d38e4141e0f7
Change-Id: I1ee226494b5b04ec2d43edf0c03ab31e452fedf0
2016-01-27 12:34:49 +00:00
Oleksii Chuprykov
7601c6cb42 Add validation to barbican order
Algorithm and bit_length properties are required by barbican
for non-certificate types of order.

Change-Id: I61117ed9e00ebbd42374df6eb5b533b13c98360d
Closes-Bug: #1535791
2016-01-27 12:28:42 +00:00