fixes stack deletion failure, when vol in deleting

when an delete operation is requested on a stack, and the volume in stack
is already in 'deleting' state, heat fails to delete the stack and goes to
DELETE_FAILED state instantly.

Instead of going to DELETE_FAILED state instantly, heat needs to safely
wait for the volume to complete its deletion process, so that heat can
then go ahead and complete stack deletion successfully.

Closes-Bug: #1362708

Change-Id: I088eab90bee4bc804abe9e505fd61b17b266def1
Don't evaluate ceilometer watchrules

If you have both Ceilometer and cwlite alarms in one stack (a little odd)
we try to evaluate Ceilometer alarms in the periodic task.

Change-Id: Ia75bf1e5cfa3e2ac31242eafd5fa96d757786ada
Closes-bug: #1375111
Sync environment and composition docs from openstack-manuals

Change-Id: Ib9ca5ffa4df5fd9ed6245d359fe1a8a54a477433
Closes-bug: #1366845
Add OSprofiler integration into Heat

This adds builtin rpc and db traces to Heat, as well as
some toplevel stack methods to aid in reading the output.

A 'profiler' config group is added to enable profiling.

Change-Id: Ie5c1c8f1931f59e4d4bcf1ec3b791f55984eb6d2
Closes-bug: #1363782
Support Cinder API version 2

Add support for the second version of the Cinder API, which brings
useful features such as scheduler hints, more consistent responses,
caching, filtering, etc.

Available volume services (such as 'volume' and 'volumev2') are
discovered at run time when creating the Cinder client.  Consequently,
there is not need for deployers to make a choice between API version 1
or 2, because the newest service is automatically chosen.

Implements: blueprint support-cinder-api-v2
Change-Id: If9eedd446e017a2f2a4e1b3257ff0d04834f9603
Add volume backup/restore integration test

Adds a more comprehensive test for the cinder volume resources:
- Creates a stack with a volume, and writes data to it
- Deletes the stack with the volume deletion policy set to
  "snapshot" (which really means backup) the volume
- Create a new stack with a volume created from the backup
- Prove the data written in the first stack is still present
Note this test also aims to provide coverage of volume attachment
resources, e.g so we would catch any bugs like bug #1311533 in
future.

Authored-By: Steve Hardy <shardy@redhat.com> based on tempest change
I04ae0cf942d12c4504b2df504a8c940575b90b69

Change-Id: I04ae0cf942d12c4504b2df504a8c940575b90b69
Related-Bug: #1311533
Rewrite AutoScalingGroup adjustment tests as unit tests

Change-Id: I1c752243ef981a19ff1572071f43e5eaebe3b0dc
part of blueprint decouple-nested
Convert bool/int values into string for string properties

Instead of rising an exception, boolean and integer values are
converted into string if string is expected.

Change-Id: I1e0014576c4df447bfa1595c530f1e24f411195d
Closes-Bug: #1367375
Merge "Rewrite AutoScalingGroup adjustment tests as unit tests"
Add custom get_temp_url to RackspaceSwiftClient

Rackspace Cloud Files uses a non-OpenStack account identifier in the
URL, so the Rackspace Swift client needs its own get_temp_url method.

Change-Id: Ic90c26fca0200f1fba74d50b6aa8a75f8bcd7ef6
Closes-bug: #1378979
Merge "Add OSprofiler integration into Heat"
Merge "Convert bool/int values into string for string properties"
Fix network_gateway residue when resource deletion

Should set resource_id after network_gateway creation
instead of after network_gateway connection for
OS::Neutron::NetworkGateway, to avoid the network_gateway
residue when the resource deletion.

Change-Id: I89e1aed10685c0448a15decb95b89dbd946d39c2
Closes-bug: #1368008
Do not attempt a stack update when it is deleting

If a stack is in any delete state(inprogress, failed),
don't attempt to update it.

Closes-bug: #1379113
Change-Id: I1de99702a385ac8ddeffc568270d2d3b51674323
Add missing extra "greenthread" arg to remove_event()

See: http://eventlet.net/doc/modules/greenthread.html
the callback gets passed a "gt" arg.

Change-Id: I9bd44857662e45a1da2d4287017eb966dea8276d
Closes-bug: #1379072
Merge "Add volume backup/restore integration test"
Add missing \n at the end of file

Change-Id: Id52a1b24c15ac25044a752e47474dc9ef4096208
Update references to auth_token middleware

There's references to the auth_token middleware in keystoncelient.
The auth_token middleware has been moved to keystonemiddleware and
the version in keystoneclient shouldn't be used anymore.

If these references aren't updated, then when options are changed in
keystonemiddleware.auth_token the heat-api will fail to start because
there's duplicate options in keystoneclient.middleware.auth_token.

Change-Id: I04573aa5ff967afe3e00329f797fcc71b779e7b3
Closes-Bug: #1379082
Merge "Add missing extra "greenthread" arg to remove_event()"
Merge "Support Cinder API version 2"