Red Hat Bugzilla – Bug 902293
Instance stuck in task state image_snapshot
Last modified: 2015-02-15 17:02:09 EST
Description of problem:
I tried to create a snapshot of a running instance, and got a message back from Horizon reading "Unable to create snapshot" because the administrator had recently changed snapshotting/image creation to be an admin-only action.
Since then, my instance Task State is stuck in OS-EXT-STS:task_state "image_snapshot".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Update the Glance policy file with "add_image": [["role:admin"]]
2. Attempt to create a snapshot
3. Snapshot fails and the instance task state stays in "image_snapshot"
3. Snapshot fails and the instance returns to a normal active state
The problem is that the task state reversion logic *only* kicks in if the failure occurs on the compute node.
Whereas in this case, an eager attempt is made to create the image upfront from the API node, before even casting the snapshot_instance RPC to the compute node.
This upfront image creation fails with 403 because of the RBAC settings, but the task state is never reverted.
Fix proposed to master upstream:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
*** Bug 888461 has been marked as a duplicate of this bug. ***