commit 96dba50737819c24b4ddd9cb1078da305638abc9
Author: Jan Grant <email address hidden>
Date: Wed Jan 8 12:34:07 2014 +0000
Take a vm out of SNAPSHOTTING after Glance error
If a snapshot is attempted to be taken when Glance can't find the
underlying image (usually because it's been deleted), then ImageNotFound
is raised to nova.compute.manager.ComputeManager._snapshot_instance. The
error path for this leaves the instance in a snapshotting state; after
which "operator intervention" is required.
This simply reverts the instance state under that specific circumstance.
DocImpact: previously a snapshot that failed for this reason would leave
the instance in a spurious snapshotting task state indefinitely. Now,
the task state is reverted. At the moment that revert is 'silent'
(although the failure to snapshot will be evident to the user).
Reviewed: https:/ /review. openstack. org/65463 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=96dba507378 19c24b4ddd9cb10 78da305638abc9
Committed: https:/
Submitter: Jenkins
Branch: master
commit 96dba50737819c2 4b4ddd9cb1078da 305638abc9
Author: Jan Grant <email address hidden>
Date: Wed Jan 8 12:34:07 2014 +0000
Take a vm out of SNAPSHOTTING after Glance error
If a snapshot is attempted to be taken when Glance can't find the manager. ComputeManager. _snapshot_ instance. The
underlying image (usually because it's been deleted), then ImageNotFound
is raised to nova.compute.
error path for this leaves the instance in a snapshotting state; after
which "operator intervention" is required.
This simply reverts the instance state under that specific circumstance.
DocImpact: previously a snapshot that failed for this reason would leave
the instance in a spurious snapshotting task state indefinitely. Now,
the task state is reverted. At the moment that revert is 'silent'
(although the failure to snapshot will be evident to the user).
Change-Id: I9623cfaed31e83 37ab65bc1eab85a d3b51b1a5ca
Fixes-bug: #1267097