Add convenience function to allow easy stubbing of keystoneclient
in all tests where explicit control and verification is not required.
This is a precursor to making all clients use the auth_token property
from keystoneclient (instead of using the context auth_token in
preference) such that trust tokens can be refreshed before expiry.
Partial-Bug: #1306294
Change-Id: I9ba4595b8750ff769e76972cc30b55a68253e76d
This change removes the ability to specify a non-compute service
type when requesting a nova client. The only non-compute service
type actually requested was the fallback path for cinder. However
nova volumes was completely removed from nova in grizzly, so we
do not need to support this any more.
Change-Id: I9e15f31979d44f018db69ebc8109f707b0f51671
The Rackspace Cloud Load Balancer service only allows certain
values for the algorithm property. This patch adds constraints
so that users get validation feedback prior to creating the
resource.
Closes-Bug: #1328654
Change-Id: Id24b426b1d3e49b09b3e468ea9e9675c05eaa160
Stop creating Resources with dicts that are snippets of templates, and
instead always use ResourceDefinition objects to create Resources.
Change-Id: I1587f1edf9b04f06bd435857d7c1ea2c1cc26058
This adds a Barbican Order resource to contrib plugins allowing
orders for secrets to be issued using barbican's infrastructure.
Implements: blueprint barbican-resources
Change-Id: I8c9bc4bc2c1fecc9c3a5263af74e739dd9eea2ab
This adds a Barbican Secret resource to contrib plugins allowing secrets
to be created using barbican's infrastructure.
Co-Authored-By: Anderson Mesquita <andersonvom@gmail.com>
Implements: blueprint barbican-resources
Change-Id: Ie9d345b8a1186cd9e00f6a083652f4f0466e94c3
The default caching mode cache_local will return the previously
resolved value if it is available.
Whenever any resource changes state, all resource attribute caches
are cleared just in case the state change has side-effects in
other resources.
The caching mode cache_none performs no caching, and is chosen
for attributes which are one of the following:
* Derived from any resource's metadata, resource data or resource_id
* An API call which returns a secret
Caching currently only exists for the duration of the parser.Stack
object, but there is future potential for a caching mode which
caches attributes spanning multiple requests.
Closes-Bug: #1321970
Change-Id: I01bf2983b726f0e81a2b8d5be94627353bdeb406
Updated a set of files to add missing translation support in the
log messages.
Change-Id: I58d561c5e1ecff550483ee0be696999e927c98ad
Partial-Bug: #1321283
Commit https://review.openstack.org/#/c/94255/1 introduces check for
translating log messages. This check uses in pattern name 'LOG', so in
heat code also should be used this name intead of 'logger'. Also same
name is used in other projects.
Change-Id: Iba24c7eb1c13e68a91d090d7bcdbcb40d6e16071
Partial-Bug: #1321283
We should call the glanceclient to get_image_id instead novaclient.
Implements: blueprint migrate-to-glance-client
Change-Id: I2f5e4dfbe405b1ac74eb3864870b8e4873aeee9a
The Rackspace ASG API expects server personality to be defined
as an Array of dicts. It was being passed as a flat dict which
caused all creations of ASG resources to fail if a personality
was defined.
Change-Id: Idf0c1e8898a613f9b979312e080200dcc28cc7e9
Closes-Bug: #1322675
This patch fixes all the missed and newly introduced violations of the H306
style checking rule and enables it in tox.
Change-Id: I5566e66421d5397c0103958f02ea38e6e3c68892
Implements: blueprint reduce-flake8-ignored-rules (partial)
This patch moves new neutron resources resolution methods
of basic neutron resource to a separate module neutron_utils
(similar to nova_utils) for easier usage in other parts of the code.
Change-Id: Ifb2e103e6b66dd021e24eb48c816b8c46da921e1
The update_allowed_keys attribute didn't really define any useful
policy, and prevented automatic update which should be handled by the
base Resource class like DeletionPolicy. This patch removes the usage
and the various definitions around the code base.
Change-Id: I78494aba07b6badeca8e95f1875ca8e4b9b0290c
Co-Authored-By: ala.rezmerita@cloudwatt.com
Partial-Bug: #1316171
According to the OpenStack translation policy available at
https://wiki.openstack.org/wiki/LoggingStandards debug messages
should not be translated. Like mentioned in several changes in
Nova by garyk this is to help prioritize log translation.
Change-Id: I770dfc2fd474123a8ccc37311ef69d0c03e85545
Closes-Bug: #1318713
Current attributes_schema contains hard codeded names of attributes.
This patch replaces all hard coded names on variables defined in
ATTRIBUTE tuple.
Change-Id: I1ea7b33bd598dba07f2190c282497c573463b0dd
Partial-Bug: #1307319
Currently resources use old style of attribute schema. For example:
attribute_name: _('Description')
This patch contains changes to migrate for new attribute Schema class.
For example:
attribute_name: attributes.Schema(_('Descriprion'))
Partial-Bug: #1307319
Change-Id: I54c7b9d481655b0051d0f7ff668672011ac882e9
Additional properties 'network' and 'subnet' are added to
the resources (existing properties 'network_id' and
'subnet_id' are deprecated). 'network' and 'subnet' can
now carry name or id. Pre-existing neutron resources
can now be referenced in heat templates by their name
and not necessarily by their UUID. This would help porting
templates across deployments.
Change-Id: I644f5d6ee2e5ccabde190bd73eacc71daaf41f4d
Closes-Bug: #1286128
Rackspace Cloud Servers now supports config drive and the Rackspace
images have cloud-init installed by default, so we no longer have to SSH
to the Cloud Server to install dependencies and run the user-data
script.
Closes-Bug: #1298050
Change-Id: I5cb6a93c5b34b0a8cfe7480211da70d65638de54
This no longer needs to be done in the context of a stack, because all of
the required context is embedded in the lazily-evaluated functions at the
time they are parsed into Functions. Reduce confusion by eliminating all
uses of it and marking it as deprecated.
Change-Id: I9d89b5201df5b05d03a295eaf6605da65397f565
It's not clear whether these were ever needed or just cargo-culting, but
they are definitely not doing anything now.
Change-Id: I9dd409332a93e39640da93a22cf7d3c676f398ac
This will allow using more fine-grained specification of computational
resources (RAM, CPU, disk, etc.).
A nova flavor resource has the following format:
heat_template_version: 2013-05-23
description: Heat Flavor creation example
resources:
test_flavor:
type: OS::Nova::Flavor
properties:
ram: 1024
vcpus: 1
disk: 20
swap: 2
Change-Id: I79812f0ef0d0dc616ccb3361e9b5864faa877df1
Implements: blueprint dynamic-flavors
This is no longer required because cleanup is provided via reset
of the dummy db in all tests which call the base-class setUp.
Change-Id: I49cbfce0b2880d0318114df35d4abaed61d03bfc
Move the setup/reset of the dummy DB into the test common base-class,
which ensures the setup/recent happens consistently (some tests setup
but then don't reset for example), and ensures there's always a clean
dummy DB per test.
Change-Id: I8e3bdd23399cb0d1d3c93daae66e6509b12b4e72