mock_client.assert_has_calls(expected)
- # test the exception
- mock_client.removeVolumeMetaData.side_effect = Exception(
- 'Custom ex')
- self.assertRaises(exception.CinderException,
- self.driver.detach_volume,
- context.get_admin_context(),
- self.volume, None)
-
def test_create_snapshot(self):
# setup_mock_client drive with default configuration
# and return the mock HTTP 3PAR client
mock_client.assert_has_calls(expected)
- # check the exception
- mock_client.removeVolumeMetaData.side_effect = Exception('fake')
- self.assertRaises(exception.VolumeBackendAPIException,
- common.clear_volume_key_value_pair,
- self.volume,
- None)
-
def test_extend_volume(self):
# setup_mock_client drive with default configuration
# and return the mock HTTP 3PAR client
-# (c) Copyright 2012-2015 Hewlett Packard Enterprise Development LP
+# (c) Copyright 2012-2016 Hewlett Packard Enterprise Development LP
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
3.0.14 - Comparison of WWNs now handles case difference. bug #1546453
3.0.15 - Update replication to version 2.1
3.0.16 - Use same LUN ID for each VLUN path #1551994
+ 3.0.17 - Don't fail on clearing 3PAR object volume key. bug #1546392
"""
- VERSION = "3.0.16"
+ VERSION = "3.0.17"
stats = {}
volume_name = self._get_3par_vol_name(volume['id'])
self.client.removeVolumeMetaData(volume_name, key)
except Exception as ex:
- msg = _('Failure in clear_volume_key_value_pair: '
- '%s') % six.text_type(ex)
- LOG.error(msg)
- raise exception.VolumeBackendAPIException(data=msg)
+ LOG.warning(_LW('Issue occurred in clear_volume_key_value_pair: '
+ '%s'), six.text_type(ex))
def attach_volume(self, volume, instance_uuid):
"""Save the instance UUID in the volume.