Red Hat Bugzilla – Bug 465174
Incorrect DNS format on s390 causes traceback
Last modified: 2010-03-14 17:29:33 EDT
Created attachment 319168 [details]
Patch to sanity check DNS servers entered
Description of problem:
Problem discovered at customer site. If DNS is specified in CONF or at console as " " (empty space) or ":" (colon with no addresses), anaconda dies with traceback:
The VNC server is now running.
Please connect to begin the install...
Starting graphical installation...
Traceback (most recent call last):
File "/usr/bin/anaconda", line 1088, in ?
id = instClass.installDataClass(extraModules, floppyDevice, configFileData, method)
File "/usr/lib/anaconda/instdata.py", line 287, in __init__
File "/usr/lib/anaconda/instdata.py", line 60, in reset
self.network = network.Network()
File "/usr/lib/anaconda/network.py", line 204, in __init__
self.primaryNS = resolv
IndexError: list index out of range
To avoid this error, a properly formatted DNS address must be specified (either "" empty string, or one or more addresses separated by colon). Anaconda should also have a sanity check on the DNS server(s) entered to avoid this traceback.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add either DNS=" " or DNS=":" to CMS CONF file on s390
2. Attempt any type of network install (NFS/HTTP/FTP), either graphical or text
3. Traceback occurs after entering install method, at the beginning of stage 2
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
(In reply to comment #0)
> Created an attachment (id=319168) [details]
> Patch to sanity check DNS servers entered
I would just like to add that this is also fixed by Bug 472936 or Bug 475346 respectively. Additionally, those bugs also include support for syntax checking of IPv6 DNS addresses (using comma as separator instead of colon, of course).
Release note added. If any revisions are required, please set the
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.
In prior versions of Red Hat Enterprise Linux, if DNS is specified in CONF or at console as " " (empty space) or ":" (colon with no addresses), Anaconda would error and crash. This feature includes format sanity checking into Anaconda, increasing stability.
This might have been an error in the report. Or the reproducers are, somehow, different.
Can you retest with your setup to see if the current anaconda takes care of the issue.
Retested with 5.4, problem no longer occurs. This was definitely fixed by Bug 472936 and/or Bug 475346 as Steffen mentioned.
*** This bug has been marked as a duplicate of bug 472936 ***