summaryrefslogtreecommitdiff
path: root/nova/tests/unit/virt/libvirt/storage
diff options
context:
space:
mode:
authorVishakha Agarwal <agarwalvishakha18@gmail.com>2018-05-02 16:42:58 +0530
committerVishakha Agarwal <agarwalvishakha18@gmail.com>2018-05-29 12:47:21 +0530
commit8b8c5da59efb087295b676d4261f84dfadf62503 (patch)
tree5ce059fba018579385e040a4640122fd2a3b2753 /nova/tests/unit/virt/libvirt/storage
parent324899c621ee02d877122ba3412712ebb92831f2 (diff)
downloadnova-8b8c5da59efb087295b676d4261f84dfadf62503.tar.gz
Re-using the code of os brick cinder
To avoid the errors during force delete of logical volume, cinder library os brick is already using udevadm settle for it. Calling the same library of cinder in nova too. Change-Id: I092afdd0409ab27187cf74cd1514e9e0c550d52c Closes-Bug: #1191960
Diffstat (limited to 'nova/tests/unit/virt/libvirt/storage')
-rw-r--r--nova/tests/unit/virt/libvirt/storage/test_lvm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/unit/virt/libvirt/storage/test_lvm.py b/nova/tests/unit/virt/libvirt/storage/test_lvm.py
index fbec2dcae9..b58a16b1f9 100644
--- a/nova/tests/unit/virt/libvirt/storage/test_lvm.py
+++ b/nova/tests/unit/virt/libvirt/storage/test_lvm.py
@@ -118,7 +118,7 @@ class LvmTestCase(test.NoDBTestCase):
lvm.clear_volume('/dev/foo')
@mock.patch.object(lvm, 'clear_volume')
- @mock.patch('nova.privsep.fs.lvremove',
+ @mock.patch('os_brick.local_dev.lvm.LVM.delete',
side_effect=processutils.ProcessExecutionError('Error'))
def test_fail_remove_all_logical_volumes(self, mock_clear, mock_lvremove):
self.assertRaises(exception.VolumesNotRemoved,