[node-patches] Change in ovirt-node[master]: Fix auto install with "storage_init=/dev/sda, /dev/sda" faile...

hadong0720 at gmail.com hadong0720 at gmail.com
Tue Jul 30 12:28:44 UTC 2013


hadong has uploaded a new change for review.

Change subject: Fix auto install with "storage_init=/dev/sda,/dev/sda" failed issue
......................................................................

Fix auto install with "storage_init=/dev/sda,/dev/sda" failed issue

Change-Id: I700200dc612c221fcb5a3ac663bbe8f7a5e77bfc
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=961706
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirtnode/storage.py
1 file changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/77/17477/1

diff --git a/src/ovirtnode/storage.py b/src/ovirtnode/storage.py
index ae497d9..4022170 100644
--- a/src/ovirtnode/storage.py
+++ b/src/ovirtnode/storage.py
@@ -61,18 +61,19 @@
                 init = _functions.OVIRT_VARS["OVIRT_INIT"].strip(",").split(",")
                 for disk in init:
                     skip = False
+                    translated_disk = _functions.translate_multipath_device(disk)
                     if disk_count < 1:
-                        self.ROOTDRIVE = _functions.translate_multipath_device(disk)
+                        self.ROOTDRIVE = translated_disk
                         if len(init) == 1:
-                            self.HOSTVGDRIVE = _functions.translate_multipath_device(disk)
+                            self.HOSTVGDRIVE = translated_disk
                         disk_count = disk_count + 1
                     else:
                         for hostvg in self.HOSTVGDRIVE.split(","):
-                            if hostvg == disk:
+                            if hostvg == translated_disk:
                                 skip = True
                                 break
                         if not skip:
-                            self.HOSTVGDRIVE += "%s," % disk
+                            self.HOSTVGDRIVE += "%s," % translated_disk
             else:
                 self.ROOTDRIVE = _functions.translate_multipath_device(
                                     _functions.OVIRT_VARS["OVIRT_INIT"])


-- 
To view, visit http://gerrit.ovirt.org/17477
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I700200dc612c221fcb5a3ac663bbe8f7a5e77bfc
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list