In Python3, implicit relative imports are no longer
supported. So change the import to be explicit.
partial blueprint heat-python34-support
Change-Id: I5248176cf394720d9e68855423dcec188fc4e17d
__nonzero__ has been renamed to __bool__ in python3.4. So add the
__bool__ magic method that will in turn call the existing __nonzero__
method. This avoids the scheduler going into an infinte loop when
it checks for the no. of tasks remaining.
partial blueprint heat-python34-support
Change-Id: I5de554805a2af9abc15808427ce489720287f6b3
According to [1], A class that overrides __eq__() and does not define
__hash__() will have its __hash__() implicitly set to None. When the
__hash__() method of a class is None, instances of the class will raise
an appropriate TypeError when a program attempts to retrieve their hash
value, and will also be correctly identified as unhashable when checking
isinstance(obj, collections.Hashable).
A few other classes also implement __eq__ but we don't seem to use them
anywhere as keys in dictionaries, so they don't need to implement the
__hash__ function yet.
[1] https://docs.python.org/3.4/reference/datamodel.html?highlight=hash#object.__hash__
partial blueprint heat-python34-support
Change-Id: Idf24d462f386927496950e65a24e41b9aef69281
This updates the default crypt method to use the cryptography module
instead of the oslo crypto utils module. It also refactors decrypt to
remove some duplication.
Change-Id: Ie24aebcb3080725c250a4f3ba726b23a9c995965
Closes-Bug: #1468025
This is needed to fix the following functional test:
test_template_resource.TemplateResourceErrorMessageTest.test_fail
Change-Id: I90d6e6f688c214a73c043aa88d0a25fc0b2ebc83
The requirements gate is failing because there was
a recent change to project-config
I1d254c42e0bc2550ceeb768532448b5797d87caf
which makes sure there are no duplicate entries in requirements
files. Since we have multiple separate requirements
files for 2.7 and 3.4, the newly added condition fails
the requirements job. Let's use environment markers
to fix this like I318750ec9fe471d3df57ad2f5785026dae451242
and have a unified (test-)requirements file.
Change-Id: Iea1adcd5bae7cdbec194197004eb7e2937cafcf9
Adds a new intrinsic function to split strings into lists, and optionally
return a specific list item by index (similar to get_attr/get_param path
based attributes).
Syntax is:
str_split: [",", "apples,pears"]
which returns ["apples", "pears"]
Or with an optional index:
str_split: [",", "apples,pears", 1]
which returns "pears"
Change-Id: Ibc7a315bee278b8a49e44475206361b639536688
blueprint: str-split
This test does not wait, when all resources will be created. However,
it does not mean, that these resources will not be in create in
progress state. The error, mentioned in the bug, happens, when nova
tries to create server and see two available networks (private and
heat-net). Current patch prevents error by adding network
property to Server resource.
Change-Id: I7c1f4931976ae3a899563b1a9da9f8bc7564806c
Closes-Bug: #1467529
This commit provides a resource plugin to support encryption
volume type.
All volumes that will be created with encryption volume type
will be encrypted.
Change-Id: I3168f6bf83ff8bbe95fc4861c59a2298df7ac6ec
Implements: blueprint cinder-volume-encryption
Parameters and attributes of stack need to be updated for stack update
request. This will fix the update rollback in convergence.
Change-Id: Ia45c71ce809ade70ba8f1dcd7fee576cdf9bae98
If we find a resource with template as current template given for
update, then that is the best resource and we should stop continuing.
This happens in case of rollback, when the previous template is used for
updating the stack.
If we encounter a resource with same template as previous template,
we still need to continue to find a possible resource with current
template, to cover the above mentioned case.
Renaming get_existing_db_resource to get_best_existing_db_resource for
better reflection of what it does and moving it out of enclosed method
so that it can be tested.
Change-Id: I5c753e1c0737803ee3de8d36f25c0e620a65f0cf
_discover_extensions is moved to novaclient.client.discover_extensions,
and _discover_extensions will be removed from novaclient once this
patch get merged. Using the public discover_extensions instead of
_discover_extensions.
Change-Id: Id403a8313155f6ceabfdda626cdc79d9f0fac0d1
Closes-bug: #1440779
This change makes some minor refactorings in the SignalResponder class
to disambiguate the existing signal support and allow for the addition
of other signal types currently supported elsewhere in the codebase.
Implements: partial blueprint uniform-resource-signals
Change-Id: I353558431a8851e4e43c8a787f03190ed508bb5d