Successful snapshot status returned by API although the snapshot creation got failed
Issue
- When a backup application creates a snapshot using RHV API, it will return the newly created snapshot id to the application.
- The application can check the status of the snapshot operation by querying it using snapshot ID. If it changes from
LOCKED
toOK
it can conclude that the snapshot operation is complete. - However, if the snapshot operation fails while it sends the snapshot command to the kvm domain, it will automatically delete the newly created snapshot and the volumes. But in this process, the newly created snapshot ID will be marked as
Active VM
. So the application which is querying the status using snapshot ID will get status asOK
and will think that the operation was a success although it got failed leading into doing other incorrect jobs.
Environment
- Red Hat Virtualization 4.2.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.