def delete_multipath(multipath_name): LOG.debug("Virtman: delete multipath %s start!" % multipath_name) dmsetup.remove_table(multipath_name) LOG.debug("Virtman: delete multipath %s completed !" % multipath_name) return True
def _delete_multipath(self): LOG.debug("Virtman: delete multipath %s start!" % self.multipath_name) dmsetup.remove_table(self.multipath_name) self.has_multipath = False LOG.debug("Virtman: delete multipath %s completed !" % self.multipath_name)
def destroy(self): LOG.debug("Virtman: destroy VM instance %s according " "snapshot_name %s" % (self.instance_name, self.snapshot_dev_name)) dmsetup.remove_table(self.snapshot_dev_name) self._destroy_snap_dev() LOG.debug("Virtman: succeed to destroy the VM instance!") return True
def destroy(self): LOG.debug("Virtman: 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("Virtman: success!") return True
def delete_origin(base_image): """ :type base_image: BlockDeviceBaseImage """ if base_image.origin_path: LOG.debug("Virtman: start to remove origin %s " % base_image.origin_name) dmsetup.remove_table(base_image.origin_name) base_image.origin_path = None LOG.debug("Virtman: remove origin %s completed" % base_image.origin_name)
def _delete_origin(self): LOG.debug("Virtman: start to remove origin %s " % self.origin_name) dmsetup.remove_table(self.origin_name) self.has_origin = False LOG.debug("Virtman: remove origin %s completed" % self.origin_name)