summaryrefslogtreecommitdiff
path: root/glance_store/tests/unit/cinder/test_cinder_base.py
diff options
context:
space:
mode:
authorBrian Rosmaita <rosmaita.fossdev@gmail.com>2023-04-18 11:22:27 -0400
committerBrian Rosmaita <rosmaita.fossdev@gmail.com>2023-05-10 08:29:05 -0400
commit1d8033e54e009bbc4408f6e16aec4f6c01687c91 (patch)
tree6b657a5cf1eed0a979014315cfa0754e52209093 /glance_store/tests/unit/cinder/test_cinder_base.py
parent7fd4c49b16f511574a4790e19b662f029d3ea2f6 (diff)
downloadglance_store-1d8033e54e009bbc4408f6e16aec4f6c01687c91.tar.gz
Add force to os-brick disconnect4.4.0
In order to be sure that devices are being removed from the host, we should be using the 'force' parameter with os-brick's disconnect_volume() method. Closes-bug: #2004555 Change-Id: I63d09ad9ef465bc154c85a9ea125449c039d1b90
Diffstat (limited to 'glance_store/tests/unit/cinder/test_cinder_base.py')
-rw-r--r--glance_store/tests/unit/cinder/test_cinder_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glance_store/tests/unit/cinder/test_cinder_base.py b/glance_store/tests/unit/cinder/test_cinder_base.py
index 922b161..3269de1 100644
--- a/glance_store/tests/unit/cinder/test_cinder_base.py
+++ b/glance_store/tests/unit/cinder/test_cinder_base.py
@@ -328,7 +328,7 @@ class TestCinderStoreBase(object):
fake_connector.connect_volume.assert_called_once_with(
mock.ANY)
fake_connector.disconnect_volume.assert_called_once_with(
- mock.ANY, fake_devinfo)
+ mock.ANY, fake_devinfo, force=True)
fake_conn_obj.assert_called_once_with(
mock.ANY, root_helper, conn=mock.ANY,
use_multipath=multipath_supported)