engine : autoscaling refactor Instance list->object logic

Refactor the conversion from instance list to GroupedInstance
objects, so it's not contained by the handle_delete and can be
reused (e.g for suspend)

Change-Id: Iaaf8b7568e06fa50b03348ad3bb61a7da91be127
Add editor backup files to .gitignore.

Change-Id: I004d10e61c8e192c058a5d1ba5a09f7c676d278b
Merge "engine : autoscaling refactor Instance list->object logic"
autoscaling : Fix issue when scaling to zero instances

As noted in https://review.openstack.org/#/c/34564, we lack
coverage of the scenario when MinSize is 0 and we scale down
to zero instances then try to do a delete.  We do the wrong
thing here, by creating a GroupedInstance object with name '',
and this would also result in an incorrect update to the
LoadBalancer.  Fix is to reset the resource_id to None.

Fixes bug #1195364
Change-Id: Ie3a52badf35f7e660de9a8f38635d2a09463123a
Merge "Add editor backup files to .gitignore."
Merge "autoscaling : Fix issue when scaling to zero instances"
Add suspend support to InstanceGroup

Change-Id: I46baf7fd17e6701e2ce07f823fff4c8fb4dd3dfe
blueprint: stack-suspend-resume
Merge "Add suspend support to InstanceGroup"
add GET /{tenant_id}/stacks/detail to Heat API

Enables the building of a useful dashboard interface for Heat stacks
without looping through stacks returned from "/{tenant_id}/stacks/"
to fetch the detailed data.

Fixes bug #1191117

Change-Id: I06b1100873de462c69302e43259df13104cad79f
Remove comments from requirements.txt (workaround pbr bug)

Workaround for pbr bug #1191923

Change-Id: I4960216834cf624d8bcf88e7a3e7485cf5ace85f
Fixup handle_create backup restore.

The handle_create did not retrieve the volume_id
correctly and the check_create_complete
needs to handle the restoring-backup status.

Also modify and add support for restoring-backup
status test cases for success and error.
The additional FakeVolumeFromBackup will force
the inital status to be checked by the method
check_create_complete in volume.py.

Fix bug 1195403.

Change-Id: I60bf4f9f90be1058d0fb400aa3778d0448b1a898
engine : remove unnecessary default check_*_complete functions

The default behavior in _do_action is to declare COMPLETE if the
check_$action_complete is not implemented, so these default
functions returning True are not needed.

Change-Id: I2fd1b7da1d39d23abc81e1b9171b053e547b2ec6
engine : simplify resource state check

Simplify the test to check the resource is in a COMPLETE state
(other than DELETE_COMPLETE), so we don't have to update this for
every new action state which gets added

Change-Id: I91286d3d0464b1a71dafd01ac209ea7ded259875
install "_" via gettextutils

avoid using two separate sets of translation messages when
HEAT_LOCALEDIR environment variable presents.

Fixes bug #1196184

Change-Id: Ief773b9f2674909de461e2b07f1b07d3c66521cc
destroy failed instances created by auto scaling

The ResourceFailure exception was silently eaten when raise_on_error
set to False. This patch handles the ResourceFailure exception locally
when raise_on_error set to False - called from ScalingPolicy alarm
(i.e. runtime adjustment). So users will not be charged for orphaned
instances. But they can still see what happened through event list.

Fixes bug #1192554

Change-Id: I01106d2e443dbc37af066b04ef7064bfa5656675
Merge "add GET /{tenant_id}/stacks/detail to Heat API"
Merge "install "_" via gettextutils"
Merge "Fixup handle_create backup restore."
Merge "destroy failed instances created by auto scaling"
Merge branch 'master' into bp-dev/rackspace-cloud-servers-provider

Conflicts:
	requirements.txt

Change-Id: I6a394b5822999328b84ad20ea103a32c4ceb734d