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
This change replaces heatclient REST calls with RPC calls when
creating, fetching or deleting software deployments.
Change-Id: If81b68717bd2f9d9be1291c07b18626493c9b5cc
Partial-blueprint: software-config-trigger
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
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
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
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
For python3 compatible, using six.string_types instead of
basestring(). six.string_types represent basestring in
python2 and str in python3.
Change-Id: Ib4ba3d164f782601944023b99d6cc1ee2763ee85
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
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
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
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
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
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
This patch updates hot_spec.rst and functions.rst to reflect the changes
made to HOT version support.
Change-Id: I61f77ba30b59d5954201072f59b03cbd3d67debd
Closes-bug: #1386184
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
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