コード例 #1
0
 def snap_revert(self, snapshot_uuid, volume_uuid):
     statement = "qemu-img snapshot -a %s rbd:%s/volume-%s" % (
         'snapshot-' + snapshot_uuid, self.volume_pool, volume_uuid)
     exec_cmd(statement)
コード例 #2
0
 def os_snap_detail(self, vm_uuid):
     statement = "qemu-img snapshot -l rbd:%s/%s_disk" % (self.vms_pool,
                                                          vm_uuid)
     return exec_cmd(statement)
コード例 #3
0
 def os_snap_revert(self, snap_name, vm_uuid):
     statement = "qemu-img snapshot -a %s rbd:%s/%s_disk" % (
         snap_name, self.vms_pool, vm_uuid)
     exec_cmd(statement)
コード例 #4
0
    def os_snap_create(self, vm_uuid, snap_name):
        statement = "qemu-img snapshot -c %s rbd:%s/%s_disk" % (
            snap_name, self.vms_pool, vm_uuid)

        exec_cmd(statement)