Merge "Always set ignoreskipactivation on snapshot creation"
This commit is contained in:
commit
55aab946b5
@ -591,7 +591,8 @@ class LVM(executor.Executor):
|
|||||||
LOG.error("Trying to create snapshot by non-existent LV: %s",
|
LOG.error("Trying to create snapshot by non-existent LV: %s",
|
||||||
source_lv_name)
|
source_lv_name)
|
||||||
raise exception.VolumeDeviceNotFound(device=source_lv_name)
|
raise exception.VolumeDeviceNotFound(device=source_lv_name)
|
||||||
cmd = LVM.LVM_CMD_PREFIX + ['lvcreate', '--name', name, '--snapshot',
|
cmd = LVM.LVM_CMD_PREFIX + ['lvcreate', '--name', name,
|
||||||
|
'-k', 'y', '--snapshot',
|
||||||
'%s/%s' % (self.vg_name, source_lv_name)]
|
'%s/%s' % (self.vg_name, source_lv_name)]
|
||||||
if lv_type != 'thin':
|
if lv_type != 'thin':
|
||||||
size = source_lvref['size']
|
size = source_lvref['size']
|
||||||
|
Loading…
Reference in New Issue
Block a user