Exemplo n.º 1
0
 def remove_volume(self, volume):
     self.assert_volume(volume)
     try:
         super(StorageModelRoot, self).remove_node(volume.uuid)
     except nx.NetworkXError as exc:
         LOG.exception(exc)
         raise exception.VolumeNotFound(name=volume.uuid)
Exemplo n.º 2
0
 def get_volume_by_uuid(self, uuid):
     try:
         return self._get_by_uuid(uuid)
     except exception.StorageResourceNotFound:
         raise exception.VolumeNotFound(name=uuid)