Alon Bar-Lev has posted comments on this change. Change subject: kdump: Check for crashkernel param ......................................................................
Patch Set 1: (3 comments) will this also solve the old ovirt node issue? http://gerrit.ovirt.org/#/c/29183/1/src/plugins/ovirt-host-deploy/kdump/packages.py File src/plugins/ovirt-host-deploy/kdump/packages.py: Line 100: Line 101: def _crashkernel_param_present(self): Line 102: crashkernel = False Line 103: try: Line 104: with open('/proc/cmdline', 'r') as f: you can remove the 'r' Line 105: for line in f: Line 106: if 'crashkernel=' in line: Line 107: crashkernel = True Line 108: break Line 101: def _crashkernel_param_present(self): Line 102: crashkernel = False Line 103: try: Line 104: with open('/proc/cmdline', 'r') as f: Line 105: for line in f: please use for line in f.read().splitlines() which is safer. Line 106: if 'crashkernel=' in line: Line 107: crashkernel = True Line 108: break Line 109: except (IOError, OSError): Line 105: for line in f: Line 106: if 'crashkernel=' in line: Line 107: crashkernel = True Line 108: break Line 109: except (IOError, OSError): how can it be? Line 110: self.logger.debug( Line 111: 'Error detecting crashkernel parameter', Line 112: exc_info=True, Line 113: ) -- To view, visit http://gerrit.ovirt.org/29183 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ie83efd12c8763f2336506fa61c34c38d7fc9bfe8 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-host-deploy Gerrit-Branch: master Gerrit-Owner: Martin Peřina <[email protected]> Gerrit-Reviewer: Alon Bar-Lev <[email protected]> Gerrit-Reviewer: Martin Peřina <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
