You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xapi_vdi: Introduce VDI operations needed for revert
This is for both the live VDI (revert_from) and the snapshot (revert_to)
These correspond to the VM operations `reverting` and `revert`,
respectively.
Only snapshots backed by an SR that allows clones are allowed to be
reverted to. This is because SRs supporting revert is not enough to use
vdi revert without clone: having an incorrect snapshot_of field will
also cause the use of clone. With this we can ensure that if a bad edge
case is met the system has a working fallback.
Reverting to "live" snapshot VDIs is allowed, this happens when
reverting to a checkpoint.
Currently reverting requires the cloning feature because it's not
possible to discriminate between backends that support vdi revert and
ones that done. This will be possible once all of them do
Test that VDIs...
* can be reverted to a snapshot.
* can be reverted to an attached snapshot.
* cannot be reverted to a leaf VDI.
* cannot be reverted to an attached leaf.
Co-authored-by: John Else <john.else@citrix.com>
Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
(cherry picked from commit 639bc3d)
0 commit comments