Successful snapshot status returned by API although the snapshot creation got failed

Solution Verified - Updated -

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 to OK 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 as OK 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content