[node-patches] Change in ovirt-node[master]: fix crash "IOError:No such file or directory:'/liveos/versio...

boh.ricky at gmail.com boh.ricky at gmail.com
Wed Jul 17 15:05:08 UTC 2013


hai bo has uploaded a new change for review.

Change subject: fix crash "IOError:No such file or directory:'/liveos/version'" when install
......................................................................

fix crash "IOError:No such file or directory:'/liveos/version'" when install

Sometimes ovirt-node install failed , when reboot it and reinstall, maybe there is no "/liveos/version" file.
Or for some reason sometimes this file can't be found.

Then the install UI will crashed for reason "IOError:No such file or directory:'/liveos/version'".It's not friendly for the user.

Change-Id: I56adc04e0153ea4122e28101d65783967ba27eb1
Signed-off-by: boh.ricky <boh.ricky at gmail.com>
---
M src/ovirt/node/installer/core/welcome_page.py
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/25/17025/1

diff --git a/src/ovirt/node/installer/core/welcome_page.py b/src/ovirt/node/installer/core/welcome_page.py
index 67ec36d..4e69260 100644
--- a/src/ovirt/node/installer/core/welcome_page.py
+++ b/src/ovirt/node/installer/core/welcome_page.py
@@ -96,9 +96,8 @@
                              "uninstall existing version first")]
 
         if has_hostvg:
-            installed = utils.system.InstalledMedia()
-
             try:
+                installed = utils.system.InstalledMedia()
                 if media > installed:
                     return [ui.Button("button.upgrade",
                                       "Upgrade %s to %s" % (installed, media))]


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56adc04e0153ea4122e28101d65783967ba27eb1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hai bo <boh.ricky at gmail.com>



More information about the node-patches mailing list