Description of problem: Running anaconda, the Red Hat Enterprise Linux Server system installer - please wait... Traceback (most recent call last): File "/usr/bin/anaconda", line 568, in ? import signal, traceback, string, isys, iutil, time File "/usr/lib/anaconda/isys.py", line 26, in ? import iutil File "/usr/lib/anaconda/iutil.py", line 23, in ? from flags import flags File "/usr/lib/anaconda/flags.py", line 103, in ? flags = Flags() File "/usr/lib/anaconda/flags.py", line 77, in __init__ self.__dict__['flags']['cmdline'] = self.createCmdlineDict() File "/usr/lib/anaconda/flags.py", line 40, in createCmdlineDict (left, middle, right) = cmdline.rpartition("BOOT_IMAGE=") AttributeError: 'str' object has no attribute 'rpartition' install exited abnormally [1/1] Version-Release number of selected component (if applicable): anaconda-11.1.2.229 How reproducible: Always in Beaker. Steps to Reproduce: 1. Run automated test job - text mode install. 2.
Looks like python in rhel 5.7 is older than 2.5. str.rpartition() is available only in 2.5 and later.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Created attachment 490012 [details] updates-rhel5-693655.img Aw jeez, I thought I checked on that. Proposed patch using rstrip (which was definitely around in python 2.4) instead: diff --git a/flags.py b/flags.py index a5d380a..41f4858 100644 --- a/flags.py +++ b/flags.py @@ -37,9 +37,10 @@ class Flags: # if the BOOT_IMAGE contains a space, pxelinux will strip one of the # quotes leaving one at the end that shlex doesn't know what to do # with - (left, middle, right) = cmdline.rpartition("BOOT_IMAGE=") - if right.count('"') % 2: - cmdline = left + middle + '"' + right + if "BOOT_IMAGE=" in cmdline: + (left, right) = cmdline.rsplit("BOOT_IMAGE=",1) + if right.count('"') % 2: + cmdline = left + 'BOOT_IMAGE="' + right lst = shlex.split(cmdline) Attached updates.img contains this code; could someone confirm that it actually works as expected?
Created attachment 490097 [details] updates-rhel5-693655.img (fixed for RHEL5-style updates)
The updates.img works for me but then I hit bug #694440