Make sure that AutoScalingGroup depends on the launch config

It seems to be common error to do the following:
  LaunchConfigurationName: my_config
and not include a depends_on.

Largely because of the unfortunate property name.
So this patch tries to make sure the user has the
correct dependency in place.

Change-Id: I4f7d282d0af8681dc2c8cd265e16a27fe23a3bdb
Closes-bug: #1375777
Implement stack restore

This adds a new stack restore method to restore a snapshot.

blueprint stack-snapshot
Co-Authored-By: ala.rezmerita@cloudwatt.com

Change-Id: Iddf5ab5e639990a857a2e2acd05133bce42544b3
Fix add_dependencies for floating_ip resource

The cause of problem is related with tricky method of Dependencies
class. So required_by method returns dictionary with resources which
have current resource in dependency. In the same time port resource
does not require floating ip, contrariwise floating ip require port.
As result required_by will not return depended port. There is one
way to solve issue: use dictionary of requires resources.

Also this patch fixes missed code error with incorrect using properties
attribute for value fixed_ip.

Notice that both these issues were not detected, because:
 - method port_on_subnet is not executed, because required_by was always
   empty dictionary.
 - current test has shadow mistake. Dependencies for router_interface
   always contain FloatingIP resource, because router gateway also was
   presented in using templates and during creation graph FloatingIp
   automatically was added to result dictionary.

Change-Id: Ida30e51d526a3f5d2a4d0a4102b1036f1c518302
Closes-Bug: #1384114
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ide1d11b076d74a15f7a7646db8af2395fb077539
Correct CA cert argument for glanceclient

Heat need to pass the CA cert to glanceclient to load image data
during stack creation when glance api is configured with SSL.
Currently the client is passing the wrong cert key to glanceclient.
The key should be 'cacert' instead of 'ca_file'.

Change-Id: Ie542dda1354776e62507240c917c1cffbc222f17
Closes-Bug: #1384626
Merge "Fix add_dependencies for floating_ip resource"
Merge "Make sure that AutoScalingGroup depends on the launch config"
Repair tox -ecover

Some tests are ignored during the invocation of 'tox -epy27' and
similar, but they were not ignored during the 'cover' profile. Becuase
the ignored tests actually fail when run this means that 'tox -ecover'
could not be used.

This patch just ignores the same tests in the 'cover' profile as the
default.

Change-Id: I7952c312addfed87f6055c1a360adfbf1fd5b168
sync oslo-incubator for request_id shim

Sync 838a2a3 oslo-incubator to get the new request_id shim, so
can introduce a deprecation warning that tells operators upgrading
from Juno that their paste.ini files need to point to oslo.middleware

This also syncs all other modules, except policy, which looks like it
needs some changes to heat thus will be handled via another patch.

Note we shouldn't remove this request_id shim until after Kilo is
branched.

Change-Id: I35125ffa263b0522ff6dd0b80b0beb3cbc79999b
Related-Bug: #1380629
Use correct object when deleting

SwiftSignalHandle was using the client object instead
of the client plugin object to check for Not Found
during delete. Also normalized access to the client
and plugin as well as remove a few pep8 warning items.

Change-Id: Ib73cb3846feb6ccb2e45859458008a1701aa2231
Closes-Bug: #1382226
Merge "sync oslo-incubator for request_id shim"
Merge "Correct CA cert argument for glanceclient"
Record the updated_time for nested_stack

Record the updated_time for nested_stack when updating.

Change-Id: Ia22051b05f26d9a1d02fba6c04e40dda3cd572ea
Closes-bug: #1384594
Move to oslo.middlware request_id module

The oslo-incubator request_id module has been deprecated and
removed for kilo, replaced by the request_id from oslo.middleware.

Note that we need to leave the oslo-incubator request_id shim in place
until after Kilo ships, so operators get fair warning about the
backwards-incompatible paste.ini change.

Change-Id: Iedbfede6d57312f565cf4b1ccb71a8418fad8620
Partial-Bug: #1380629
Fix translating error in unittests

Change-Id: I1d64143a4bf8ddcf2ebe4a0bda049e962f3912e5
Closes-Bug: #1384669
Convert value type in alarm matching_metadata

Commit I0667db868c6f827867a5a20e4a3fa22fcad1a6a1 added query
property in OS::Ceilometer::Alarm resource and add
matching_metadata elements to query list. Value type in
query elements need to be a string, but value type in
matching_metadata elements can not be a string. So we need to
convert value type to string, when we add element to query list.

Change-Id: Ie6af0bfca4f3e089e0ee3e226804a2d365f6d6ae
Closes-bug: #1380168
Merge "Use correct object when deleting"
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ib96d7f7d9e89471b8407e7f19706e67d4127d46d
Change allow_values -> allowed_values in hot_guide

Change-Id: I79b1134b04438df6165d4692cbaa74710d3b0319
Closes-bug: #1385982
Fix the get_attr docs in the hot_spec

The current description is "resource ID" and this should read
"resource name".

Change-Id: I0d37f3484e603838c2e11b8984c91c94c793d6c1
Closes-bug: #1381127