Always set ignoreskipactivation on snapshot creation

There seem to be different defaults in distros so we
enforce the flag to be set.

Change-Id: Ia166ee66e9983a54241e8b609202f58569552fab
This commit is contained in:
Dirk Mueller 2017-10-29 10:03:17 +01:00
parent c1f1786307
commit 99f67090bc

View File

@ -591,7 +591,8 @@ class LVM(executor.Executor):
LOG.error("Trying to create snapshot by non-existent LV: %s",
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)]
if lv_type != 'thin':
size = source_lvref['size']