[node-patches] Change in ovirt-node[master]: Fix some issue during create BootBackup

hadong0720 at gmail.com hadong0720 at gmail.com
Wed Oct 30 01:51:13 UTC 2013


hadong has uploaded a new change for review.

Change subject: Fix some issue during create BootBackup
......................................................................

Fix some issue during create BootBackup

Using the follow parameters to enable iscsi boot:
BOOTIF=eth0 storage_init=/dev/vda,/dev/sda iscsi_init=/dev/sda iscsi_target_name=
iqn.2013-01.com:hadong iscsi_install iscsi_server=10.66.11.127:3260 firstboot.
The boot device /dev/vda wasn't managed by multipath
Auto install still failed with error info "Unable to find boot partition".
This is due to it create BootBackup using "mke2fs /dev/vdap3 -L BootBackup"
actually it should be "mke2fs /dev/vda3 -L BootBackup".

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/75/20675/1

diff --git a/src/ovirtnode/storage.py b/src/ovirtnode/storage.py
index 5c6b45e..b620634 100644
--- a/src/ovirtnode/storage.py
+++ b/src/ovirtnode/storage.py
@@ -807,12 +807,11 @@
             _functions.system(parted_cmd)
             self.reread_partitions(self.BOOTDRIVE)
             partboot = self.BOOTDRIVE + "2"
+            partbootbackup = self.BOOTDRIVE + "3"
+
             if not os.path.exists(partboot):
                 logger.debug("%s does not exist" % partboot)
                 partboot = self.BOOTDRIVE + "p2"
-            partbootbackup = self.BOOTDRIVE + "3"
-            if not os.path.exists(partbootbackup):
-                logger.debug("%s does not exist" % partbootbackup)
                 partbootbackup = self.BOOTDRIVE + "p3"
 
             # sleep to ensure filesystems are created before continuing


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0d202cc4a5c042f5be5527a151a1b0a55759e6a
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