diff --git a/cinder/tests/unit/volume/drivers/test_vzstorage.py b/cinder/tests/unit/volume/drivers/test_vzstorage.py index 934a4e140bd..cdacf05aa5a 100644 --- a/cinder/tests/unit/volume/drivers/test_vzstorage.py +++ b/cinder/tests/unit/volume/drivers/test_vzstorage.py @@ -419,8 +419,9 @@ class VZStorageTestCase(test.TestCase): mock_remotefs_create_cloned_volume.return_value = { 'provider_location': self._FAKE_SHARE} ret = drv.create_cloned_volume(volume, src_vref) + # Bug #1875953: code should also be passing context here mock_remotefs_create_cloned_volume.assert_called_once_with( - volume, src_vref) + volume, src_vref, self.context) self.assertEqual(ret, {'provider_location': self._FAKE_SHARE}) @mock.patch.object(vzstorage.VZStorageDriver, '_local_path_volume_info') diff --git a/cinder/volume/drivers/vzstorage.py b/cinder/volume/drivers/vzstorage.py index 3d64c03081e..dad9b110025 100644 --- a/cinder/volume/drivers/vzstorage.py +++ b/cinder/volume/drivers/vzstorage.py @@ -740,5 +740,5 @@ class VZStorageDriver(remotefs_drv.RemoteFSSnapDriver): if volume_format == DISK_FORMAT_PLOOP: return self._create_cloned_volume_ploop(volume, src_vref) else: - return super(VZStorageDriver, self)._create_cloned_volume(volume, - src_vref) + return super(VZStorageDriver, self)._create_cloned_volume( + volume, src_vref, context)