[node-patches] Change in ovirt-node[master]: upgrade: add step to execute checkisomd5
dougsland at redhat.com
dougsland at redhat.com
Tue Apr 28 18:00:29 UTC 2015
Douglas Schilling Landgraf has uploaded a new change for review.
Change subject: upgrade: add step to execute checkisomd5
......................................................................
upgrade: add step to execute checkisomd5
The tool should be able to detect corrupted images,
tell users and avoid the upgrade.
Change-Id: I970614eb865c7c55cd24c2b264e1fa28b02568e9
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1213930
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M scripts/ovirt-node-upgrade.py
1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/75/40375/1
diff --git a/scripts/ovirt-node-upgrade.py b/scripts/ovirt-node-upgrade.py
index 6b610bb..533392d 100755
--- a/scripts/ovirt-node-upgrade.py
+++ b/scripts/ovirt-node-upgrade.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# ovirt-upgrade-tool - Copyright (C) 2013 Red Hat, Inc.
+# ovirt-upgrade-tool - Copyright (C) 2013-2015 Red Hat, Inc.
# Written by Joey Boggs <jboggs at redhat.com>
#
# This program is free software; you can redistribute it and/or modify
@@ -318,6 +318,10 @@
time.sleep(sleepTime)
os.execl(reboot, reboot)
+ def _checkisomd5(self, isofile):
+ self._logger.info("Checking iso md5")
+ self._system("checkisomd5", isofile)
+
def _reboot(self, delay):
self._logger.info("Scheduling Reboot")
self._simpleDaemon(
@@ -361,6 +365,7 @@
ret = 1
try:
+ self._checkisomd5(self._options.iso_file)
self._extract_rootfs(self._options.iso_file)
self._run_hooks("pre-upgrade")
self._run_upgrade()
--
To view, visit https://gerrit.ovirt.org/40375
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I970614eb865c7c55cd24c2b264e1fa28b02568e9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
More information about the node-patches
mailing list