Bug #3464

vcenter driver is only able to restore the first snapshot

Added by Javi Fontan over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:12/16/2014
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:vCenter
Target version:Release 4.10.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.10

Description

Snapshots in vcenter are stored as a tree and the current revert snapshot code only searches at the first level. After one snapshot is created the new snapshots are children of this one:

VirtualMachineSnapshotTree(
  childSnapshotList: [VirtualMachineSnapshotTree(
     childSnapshotList: [],
     createTime: 2014-12-16 17:47:43 UTC,
     description: "OpenNebula Snapshot of VM 42189f71-303b-dabc-6de8-382279c40302",
     dynamicProperty: [],
     id: 2,
     name: "1",
     quiesced: false,
     replaySupported: false,
     snapshot: VirtualMachineSnapshot("snapshot-105"),
     state: "poweredOn",
     vm: VirtualMachine("vm-103")
   )],
  createTime: 2014-12-16 17:43:55 UTC,
  description: "OpenNebula Snapshot of VM 42189f71-303b-dabc-6de8-382279c40302",
  dynamicProperty: [],
  id: 1,
  name: "0",
  quiesced: false,
  replaySupported: false,
  snapshot: VirtualMachineSnapshot("snapshot-104"),
  state: "poweredOn",
  vm: VirtualMachine("vm-103")
)

Associated revisions

Revision d62783a7
Added by Javi Fontan over 6 years ago

bug #3464: deeps search the tree of snapshots

Also the delete method does not remove children so the snapshots
in that tree can be accessed when the parent is deleted.

Revision 15877c3e
Added by Javi Fontan over 6 years ago

bug #3464: deeps search the tree of snapshots

Also the delete method does not remove children so the snapshots
in that tree can be accessed when the parent is deleted.

(cherry picked from commit d62783a7f8d50ba48fd2931b19cd59e3380659e8)

History

#1 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Pending to New
  • Target version set to Release 4.10.2

#2 Updated by Ruben S. Montero over 6 years ago

  • Assignee set to Javi Fontan

#3 Updated by Javi Fontan over 6 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF