diff --git a/glance_store/_drivers/cinder.py b/glance_store/_drivers/cinder.py index 604705cf..10917bed 100644 --- a/glance_store/_drivers/cinder.py +++ b/glance_store/_drivers/cinder.py @@ -493,7 +493,7 @@ class Store(glance_store.driver.Store): connection_info['driver_volume_type'], root_helper, conn=connection_info) device = conn.connect_volume(connection_info['data']) - volume.attach(None, None, attach_mode, host_name=host) + volume.attach(None, 'glance_store', attach_mode, host_name=host) volume = self._wait_volume_status(volume, 'attaching', 'in-use') if (connection_info['driver_volume_type'] == 'rbd' and not conn.do_local_attach): diff --git a/glance_store/tests/unit/test_cinder_store.py b/glance_store/tests/unit/test_cinder_store.py index 3747386e..27103f42 100644 --- a/glance_store/tests/unit/test_cinder_store.py +++ b/glance_store/tests/unit/test_cinder_store.py @@ -191,7 +191,8 @@ class TestCinderStore(base.StoreBaseTest, fake_connector.disconnect_volume.assert_called_once_with( mock.ANY, fake_devinfo) fake_volume.attach.assert_called_once_with( - None, None, attach_mode, host_name=socket.gethostname()) + None, 'glance_store', attach_mode, + host_name=socket.gethostname()) fake_volumes.detach.assert_called_once_with(fake_volume) def test_open_cinder_volume_rw(self):