示例#1
0
文件: path.py 项目: vmthunder/virtman
 def disconnect(path):
     """
     :type path: Path
     """
     connector.disconnect_volume(path.connection, path.device_info)
     path.connected = False
     LOG.debug("Virtman: disconnect to path: %s", str(path))
示例#2
0
 def _destroy_snap_dev(self):
     LOG.debug("Virtman: deleting the snapshot for the VM instance")
     if self.snapshot_with_cache:
         self._delete_cache(self.snapshot_dev)
     connector.disconnect_volume(self.snapshot_connection, self.device_info)
     LOG.debug("Virtman: succeed to delete snapshot!")
     return True
示例#3
0
 def disconnect(self):
     connector.disconnect_volume(self.connection, self.device_info)
     self.connected = False
     LOG.debug("Virtman: disconnect to path: %s", str(self))