diff --git a/Authors b/Authors index 1668cfa8..ec0e28b0 100644 --- a/Authors +++ b/Authors @@ -106,6 +106,7 @@ Kevin L. Mitchell Kiall Mac Innes Kirill Shileev Koji Iida +Liam Kelleher Likitha Shetty Loganathan Parthipan Lorin Hochstein diff --git a/nova/tests/policy.json b/nova/tests/policy.json index c231bff6..d2e647f9 100644 --- a/nova/tests/policy.json +++ b/nova/tests/policy.json @@ -127,6 +127,8 @@ "volume:attach": [], "volume:detach": [], + "volume:reserve_volume": [], + "volume:unreserve_volume": [], "volume:check_attach": [], "volume:check_detach": [], "volume:initialize_connection": [], diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py index 5e15b95e..7fc3d8be 100644 --- a/nova/tests/test_compute.py +++ b/nova/tests/test_compute.py @@ -3149,12 +3149,16 @@ class ComputeAPITestCase(BaseTestCase): def fake_check_attach(*args, **kwargs): pass + def fake_reserve_volume(*args, **kwargs): + pass + def fake_volume_get(self, context, volume_id): return {'id': volume_id} self.stubs.Set(nova.volume.api.API, 'get', fake_volume_get) self.stubs.Set(nova.volume.api.API, 'check_attach', fake_check_attach) - + self.stubs.Set(nova.volume.api.API, 'reserve_volume', + fake_reserve_volume) instance = self._create_fake_instance() self.compute_api.attach_volume(self.context, instance, 1, '/dev/vdb')