[node-patches] Change in ovirt-node[master]: Be more dynamic finding partitions for install
rbarry at redhat.com
rbarry at redhat.com
Wed Oct 29 15:20:36 UTC 2014
Ryan Barry has uploaded a new change for review.
Change subject: Be more dynamic finding partitions for install
......................................................................
Be more dynamic finding partitions for install
/disk/by-* isn't always ${disk}${part} or ${disk}p${part}. Add
additional patterns.
Change-Id: I9eb95b0f30305b9b7184184d1106d5f037ebc363
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1051742
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirtnode/storage.py
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/03/34603/1
diff --git a/src/ovirtnode/storage.py b/src/ovirtnode/storage.py
index c1d1cb2..e76b766 100644
--- a/src/ovirtnode/storage.py
+++ b/src/ovirtnode/storage.py
@@ -478,7 +478,8 @@
i = 15
while i > 0 and partpv is None:
# e.g. /dev/cciss/c0d0p2
- for _partpv in [drv + hostvgpart, drv + "p" + hostvgpart]:
+ for _partpv in [drv + hostvgpart, drv + "p" + hostvgpart
+ drv + "-part" + hostvgpart]:
if os.path.exists(_partpv):
partpv = _partpv
break
--
To view, visit http://gerrit.ovirt.org/34603
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9eb95b0f30305b9b7184184d1106d5f037ebc363
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
More information about the node-patches
mailing list