def destroy(self): LOG.debug("VMThunder: destroy VM instance %s according snapshot_name %s" %(self.instance_name, self.snapshot_name)) #unlink snapshot if os.path.exists(self.snapshot_link): commands.unlink(self.snapshot_link) dmsetup.remove_table(self.snapshot_name) self.snapshot.destroy_snapshot() LOG.debug("VMThunder: success!") return True
def destroy(self): LOG.debug("VMThunder: destroy VM instance %s according snapshot_name %s" %(self.instance_name, self.snapshot_name)) dmsetup.remove_table(self.snapshot_name) self.snapshot.destroy_snapshot() LOG.debug("VMThunder: succeed to destroy the VM instance!") return True
def _delete_snapshot(self): snapshot_name = self._snapshot_name() dmsetup.remove_table(snapshot_name)
def _delete_snapshot(self): snapshot_name = self.snapshot_name dmsetup.remove_table(snapshot_name) if self.snapshot_with_cache: self._delete_cache()
def _delete_origin(self): origin_name = self._origin_name() dmsetup.remove_table(origin_name) LOG.debug("remove origin %s " % origin_name) self.has_origin = False self.origin = ''
def _delete_multipath(self): multipath_name = self._multipath_name() dmsetup.remove_table(multipath_name) self.has_multipath = False LOG.debug("delete multipath of %s" % multipath_name)