Change in vdsm[master]: when boostraping lvm refresh also LVs with special tags
jmoskovc at redhat.com
jmoskovc at redhat.com
Mon May 19 15:19:46 UTC 2014
Jiří Moskovčák has uploaded a new change for review.
Change subject: when boostraping lvm refresh also LVs with special tags
......................................................................
when boostraping lvm refresh also LVs with special tags
This should solve the problem when the storage
is on block device and vdsm disables the LVs
created by hosted-engine and thus breaking it.
Change-Id: I850bf500e8eabfe414a6d6920155ac0697fe5604
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1094657
Signed-off-by: Jiri Moskovcak <jmoskovc at redhat.com>
---
M vdsm/storage/lvm.py
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/80/27880/1
diff --git a/vdsm/storage/lvm.py b/vdsm/storage/lvm.py
index 86edf55..a4075ed 100644
--- a/vdsm/storage/lvm.py
+++ b/vdsm/storage/lvm.py
@@ -129,6 +129,7 @@
VDSM_LVM_CONF = os.path.join(VDSM_LVM_SYSTEM_DIR, "lvm.conf")
USER_DEV_LIST = filter(None, config.get("irs", "lvm_dev_whitelist").split(","))
+ALWAYS_ACTIVE_LV_TAGS = ("VDSM_ALWAYS_ACTIVE", )
def _buildFilter(devices):
@@ -648,6 +649,8 @@
if lv.active:
if lv.name in refreshlvs:
refresh.append(lv.name)
+ if set(ALWAYS_ACTIVE_LV_TAGS) & set(lv.tags):
+ refresh.append(lv.name)
elif lv.opened:
log.debug("Skipping open lv: vg=%s lv=%s", vg.name,
lv.name)
--
To view, visit http://gerrit.ovirt.org/27880
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I850bf500e8eabfe414a6d6920155ac0697fe5604
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Jiří Moskovčák <jmoskovc at redhat.com>
More information about the vdsm-patches
mailing list