Merge "Update rbd warning message"
This commit is contained in:
commit
aafaba0e95
@ -2851,7 +2851,7 @@ class RBDTestCase(test.TestCase):
|
||||
'secret,id=luks_sec,format=raw,file=/passfile',
|
||||
'-o', 'key-secret=luks_sec', '/imgfile', '12288M')
|
||||
mock_exec.assert_any_call(
|
||||
'rbd', 'import', '--pool', 'rbd', '--order', 22,
|
||||
'rbd', 'import', '--dest-pool', 'rbd', '--order', 22,
|
||||
'/imgfile', self.volume_c.name)
|
||||
|
||||
@mock.patch('cinder.objects.Volume.get_by_id')
|
||||
|
@ -958,7 +958,7 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
||||
order = int(math.log(chunk_size, 2))
|
||||
|
||||
cmd = ['rbd', 'import',
|
||||
'--pool', self.configuration.rbd_pool,
|
||||
'--dest-pool', self.configuration.rbd_pool,
|
||||
'--order', order,
|
||||
tmp_image.name, volume.name]
|
||||
cmd.extend(self._ceph_args())
|
||||
|
Loading…
Reference in New Issue
Block a user