Beispiel #1
0
 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))
Beispiel #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
Beispiel #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))