# Try to create where source size != target size
vol2['size'] += 1
- self.assertRaises(exception.VolumeDriverException,
+ self.assertRaises(exception.InvalidInput,
self.driver.create_volume_from_snapshot,
vol2, snap1)
self._assert_vol_exists(vol2['name'], False)
# Try to clone where source size != target size
vol3['size'] += 1
- self.assertRaises(exception.VolumeDriverException,
+ self.assertRaises(exception.InvalidInput,
self.driver.create_cloned_volume,
vol3, vol2)
self._assert_vol_exists(vol3['name'], False)
msg = (_('create_volume_from_snapshot: Source and destination '
'size differ.'))
LOG.error(msg)
- raise exception.VolumeDriverException(message=msg)
+ raise exception.InvalidInput(message=msg)
opts = self._get_vdisk_params(volume['volume_type_id'])
self._helpers.create_copy(snapshot['name'], volume['name'],
msg = (_('create_cloned_volume: Source and destination '
'size differ.'))
LOG.error(msg)
- raise exception.VolumeDriverException(message=msg)
+ raise exception.InvalidInput(message=msg)
opts = self._get_vdisk_params(tgt_volume['volume_type_id'])
self._helpers.create_copy(src_volume['name'], tgt_volume['name'],