6551 Commits

Author SHA1 Message Date
Peter Razumovsky
1343598890 Add Dimensions Default in AWS_CloudWatch_Alarm.yaml
Relying on [1], property Dimensions isn't required, but
this template has no Default value for Dimensions
(thereby making it required). This patch fix that omission.
Besides that, parameters have wrong parsing, because if
parameter with type 'CommaDelimitedList' has default
value '', parameter's parsing result would be [u''] instead
of []. this is wrong, so this patch fix it.

[1] http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html

Change-Id: I259249659c8b5dc846432f8e08985b148b30d682
Closes-bug: #1386824
2014-11-20 17:05:17 +03:00
Jenkins
f39600e28b Merge "Remove die_if_not_set check for var user_roles" 2014-11-13 08:04:12 +00:00
Jenkins
10a54b6df2 Merge "Use RPC directly for software deployment operations" 2014-11-13 08:02:04 +00:00
Jenkins
c7fb645cf9 Merge "ERROR_WAIT_TIME should be a config option" 2014-11-13 06:17:46 +00:00
Jenkins
f908387080 Merge "Add validation constraints on config inputs" 2014-11-13 05:22:34 +00:00
Steve Baker
37097fa0d6 Use RPC directly for software deployment operations
This change replaces heatclient REST calls with RPC calls when
creating, fetching or deleting software deployments.

Change-Id: If81b68717bd2f9d9be1291c07b18626493c9b5cc
Partial-blueprint: software-config-trigger
2014-11-12 10:16:00 +13:00
Steve Baker
7e1721dff3 Use RPC directly for software config operations
This change replaces heatclient REST calls with RPC calls when
creating, fetching or deleting software configs.

All resources can now request and RPC client with self.rpc_client()
which will create and memoize an EngineClient instance.

Change-Id: Id23749e672fd4154e3d9986e22b46fc038579d8e
Partial-blueprint: software-config-trigger
2014-11-12 10:16:00 +13:00
Jenkins
bf437d3372 Merge "StackResource add force_reload to nested() accessor method" 2014-11-11 16:51:18 +00:00
Jenkins
8640e5d39b Merge "Add nested_depth to internal _create_stack RPC interface" 2014-11-11 05:15:57 +00:00
Jenkins
079a69a132 Merge "engine service add nested_depth to create_stack" 2014-11-11 05:15:48 +00:00
Jenkins
305d2df879 Merge "Add nested_depth column to stack table" 2014-11-11 05:15:39 +00:00
Jenkins
2a91c1569d Merge "Always using domain id to create domain project or user" 2014-11-10 17:07:53 +00:00
OpenStack Proposal Bot
e5c002d5dc Updated from global requirements
Change-Id: Iadaba02241b4f5fe36537288a321f2101d14c30c
2014-11-08 14:19:07 +00:00
Andrea Rosa
dd82164bdb Add validation constraints on config inputs
This change adds a new property to the StructuredDeployment class to
enable a check on the config inputs. When this property is set to
'STRICT' we compare the inputs to the supplied input_values property and
we raise an exception if the input_values result in any inputs not being
assigned a value.
By default this is disabled.
I did a small refactor of the code adding a couple of extra methods.
Closes-bug: 1334283

Change-Id: If132163bcaf4eee61a9499808ab264e7b7f80cb2
2014-11-07 13:36:56 +00:00
Ethan Lynn
f4998edf93 Always using domain id to create domain project or user
Add a function to get domain id from a domain name,
and use domain id to create domain project or user.

Change-Id: Ie97c179e62311406201476c0d4c43a731c48908c
Partial-Bug: #1376213
2014-11-07 10:23:20 +08:00
Jenkins
3285709c49 Merge "Using six.string_types for python3 compatible" 2014-11-06 15:26:54 +00:00
Jenkins
b6f9aa1892 Merge "Add CERT file support in heat-keystone-setup-domain" 2014-11-06 09:28:04 +00:00
JUNJIE NAN
a055c1b6a9 Remove die_if_not_set check for var user_roles
Since the later logic will add role if the user role is not
found. "die_if_not_set" check will exit the main script.

Closes-Bug: #1389714

Change-Id: I995cf357d09267fee55e44575e3e301bcffebca3
2014-11-05 15:09:39 +01:00
Zhenguo Niu
68a3cf78c4 ERROR_WAIT_TIME should be a config option
As discussed at https://review.openstack.org/#/c/112941/
replace the hard-coded timeout value with a config option.

Change-Id: I49ddf254dfe6460626d90cc75f89e798227dfff6
Closes-Bug: #1385014
2014-11-05 09:27:15 +08:00
Jenkins
c1b3eb22f7 Merge "Record the updated_time for nested_stack" 2014-11-03 15:30:57 +00:00
Ethan Lynn
a53c73fc4a Using six.string_types for python3 compatible
For python3 compatible, using six.string_types instead of
basestring(). six.string_types represent basestring in
python2 and str in python3.

Change-Id: Ib4ba3d164f782601944023b99d6cc1ee2763ee85
2014-11-03 15:03:56 +08:00
Jenkins
9bf59c7347 Merge "Fix error raising in cfn with wrong output section" 2014-10-31 11:23:46 +00:00
Ethan Lynn
8d4e7acb83 Add CERT file support in heat-keystone-setup-domain
Add below options to support ssl connection.
--insecure
--os-cacert
--os-cert
--os-key

Change-Id: I9d1fd07df783d7410ac3f51b5d4e8434d57182a4
Close-bug: #1387063
2014-10-31 18:13:20 +08:00
Jenkins
e70e8c2e8b Merge "Move creation of custom env to environment module" 2014-10-31 09:44:04 +00:00
Jenkins
7eddec22cd Merge "Updated from global requirements" 2014-10-31 02:58:36 +00:00
Jenkins
9a1a020500 Merge "Check prop_diff contents after modifying it" 2014-10-31 02:56:12 +00:00
OpenStack Proposal Bot
23136fbd75 Updated from global requirements
Change-Id: Ic1fc1faf7c96a5d71af6c9542eda2d902659d9ea
2014-10-30 22:30:25 +00:00
Jenkins
ac0b7bc688 Merge "Imported Translations from Transifex" 2014-10-30 18:30:59 +00:00
Jenkins
d790a5a85e Merge "Fix legacy alarm matching_metadata broken by recent fix." 2014-10-30 15:13:56 +00:00
OpenStack Proposal Bot
398dbb9294 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: If10ddacdbc30777b2f24fd7e40bf5210da39f5ef
2014-10-30 06:00:58 +00:00
Jenkins
3a642f5da2 Merge "Update docs to reflect HOT version support." 2014-10-29 17:11:03 +00:00
Peter Razumovsky
5cf44d99cc Fix error raising in cfn with wrong output section
There is a situation, when output object in cfn template
has empty body. In this situation we got traceback instead
of error message, this is incorrect. Furthermore, if output
body is a string, we got traceback too. Follow AWS template
format docs (UserGuide), every output object must contain
property 'Value'. So corresponding error should be raised.

Change-Id: I0d7e3e57e479ddb658645b8664bc847866180cda
Closes-bug: #1386332
2014-10-29 16:57:16 +03:00
Steven Hardy
2a5ec237e3 StackResource add force_reload to nested() accessor method
Adds a force_reload switch to override the local Stack object caching
so you can force retrieval of the latest data from the DB, which is
required in scenarios where polling for state which may be changed by
a different engine is required.

Co-Authored-By: Angus Salkeld <asalkeld@mirantis.com>
Change-Id: I9b34fcfdcde8d314add2f53b86ec1f0e4b6075e8
blueprint: decouple-nested
2014-10-29 12:45:11 +00:00
Steven Hardy
f939762fad Add nested_depth to internal _create_stack RPC interface
Adds a nested_depth parameter, which can be used to set the correct
nested_depth value when creating nested stack via RPC calls between
engines.

Change-Id: I71538a4297168a08a1aaaf3d23f42f3878f6cf0e
blueprint: decouple-nested
2014-10-29 12:45:11 +00:00
Steven Hardy
4947d1f15f engine service add nested_depth to create_stack
Adds nested_depth as an optional argument to the top-level interface
for handling stack-creates, so it will be possible to specify the
depth when creating a nested stack via an RPC call between engines.

Change-Id: Idc24d1e55810b10615d764b94f7c708673516295
blueprint: decouple-nested
2014-10-29 12:45:11 +00:00
Steven Hardy
d60e31ba30 Add nested_depth column to stack table
Adds a new nested_depth column, with a migration which traverses the
tree via owner_id for existing stacks and populates the appropriate depth.

This is a static, create-time depth, which should be sufficient for our
usage since nested stacks can never be moved within the tree.

The reason for this change is to allow depth validation (e.g enforcing
max_nested_stack_depth) when creating nested stacks via RPC calls,
without incurring the cost of loading every parent stack in the tree
to count the depth.  It may also allow some future optimisations of
some of the recently added API calls which do recursive introspection
considering a nested_depth parameter.

This is a step towards decoupling nested stacks from the current
usage of parent_resource and associated runtime introspection of the
parent stack, and as such the current StackResource is modified to
use the new scheme (required so post-migration we don't end up with
invalid nested_depth data in the DB).

Change-Id: I727651ff738ae668a3f21b374fc7a1b48f6e4777
blueprint: decouple-nested
2014-10-29 12:45:11 +00:00
tengqm
810567e5b1 Move creation of custom env to environment module
This patch replaces the _nested_environment with a new method in the
environment module.  The intent is to make it easy for some resources
(such as remote-stack) to use its own environment without having to
subclass from StackResource.

Change-Id: Ice0124aa21086788e957eb708b6bc423779202bc
2014-10-29 20:12:15 +08:00
tengqm
bf5e3571b1 Update docs to reflect HOT version support.
This patch updates hot_spec.rst and functions.rst to reflect the changes
made to HOT version support.

Change-Id: I61f77ba30b59d5954201072f59b03cbd3d67debd
Closes-bug: #1386184
2014-10-29 14:25:31 +08:00
Bill Arnold
bd3078e678 Fix legacy alarm matching_metadata broken by recent fix.
The prefix was being computed incorrectly because meter_name is now
being stripped from kwargs. This patch computes the prefix before
kwargs is modified.

Change-Id: I858dd430a4ce4be5cda41b3dd7faa76b8fdf2cfe
Closes-Bug: #1383521
2014-10-28 19:17:17 -04:00
Jason Dunsmore
b1a697e74f Check prop_diff contents after modifying it
It is not possible to add a DNS record alone to the Rackspace Cloud DNS
resource because the domain.update() method will be called with no
arguments.  Re-check the contents of prop_diff after modifying it to see
if calling domain.update() is necessary.

Change-Id: I04e313eab7f2d8971e9f12bfb402259b48757919
Closes-Bug: #1386886
2014-10-28 16:15:58 -05:00
Jenkins
0adaf22ab3 Merge "Validate nova server's metadata" 2014-10-28 17:31:57 +00:00
Jenkins
6931b69b52 Merge "Adding missed whitespace between the words" 2014-10-28 12:56:08 +00:00
Jenkins
b362d926d2 Merge "Imported Translations from Transifex" 2014-10-28 10:25:32 +00:00
Sergey Kraynev
cbeafe9db8 Adding missed whitespace between the words
Change-Id: I0103afc48ac795a49947643a1f79f41fcc914ee4
2014-10-28 04:32:29 -04:00
OpenStack Proposal Bot
9b4789dddb Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I0641da33411e307d5c38d541098e8a26e1960773
2014-10-28 06:01:03 +00:00
OpenStack Proposal Bot
d6a2d3dbc3 Updated from global requirements
Change-Id: Ic65b03156f50b70045153938a3a7e35fa3856e66
2014-10-28 03:33:44 +00:00
Jenkins
d5bcfa9b84 Merge "Implement stack restore" 2014-10-27 22:21:52 +00:00
Jenkins
867f4246c7 Merge "Remove oslo sslutils" 2014-10-27 15:10:57 +00:00
Jenkins
d1585f2e36 Merge "Remove oslo middleware.base module" 2014-10-27 11:24:10 +00:00
Jenkins
17740b1892 Merge "Change allow_values -> allowed_values in hot_guide" 2014-10-27 09:48:25 +00:00