Bug 574108 (TB0a0f70ae)
Summary: | TB0a0f70ae maindialog.py:602:hydrateProfiles:TypeError: sequence item not a string or unicode object | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Dan W <wesolowski_daniel> | ||||
Component: | system-config-network | Assignee: | Harald Hoyer <harald> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-daemons | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 5.4 | CC: | ali.waleed.shakir, allen, hizbullah4u27, margaret.mccartney, pankaj.kapila25, patelmines, ScatMan6, sgelliott3, victor.cordiner, Victor.Koreshev | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-03-07 07:41:43 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1049888 | ||||||
Attachments: |
|
Traceback (most recent call last): File "/usr/sbin/system-config-network-gui", line 167, in main window = mainDialog() File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 248, in __init__ self.hydrate() File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 392, in hydrate self.hydrateProfiles() File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 602, in hydrateProfiles hclist.append([host.IP, host.Hostname, TypeError: sequence item not a string or unicode object hmm, did you have a line without a hostname and just the IP? Yes I did. How reproducible: [root@<hostname> ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 172.xx.xxx.141 localhost.localdomain 172.xx.xxx.224 This was my /etc/hosts before. I just set my config back to this, tried to run system-config-network and was able to reproduce the problem. Steps to Reproduce: 1. Insert a line into /etc/hosts with an IP but no hostname 2. Try to run system-config-network or from GUI Actual results: Network GUI crashes *** Bug 642152 has been marked as a duplicate of this bug. *** *** Bug 682441 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 492915 *** *** Bug 531042 has been marked as a duplicate of this bug. *** *** Bug 555196 has been marked as a duplicate of this bug. *** *** Bug 614787 has been marked as a duplicate of this bug. *** *** Bug 626058 has been marked as a duplicate of this bug. *** *** Bug 667285 has been marked as a duplicate of this bug. *** *** Bug 1055877 has been marked as a duplicate of this bug. *** *** Bug 1083134 has been marked as a duplicate of this bug. *** Comment on attachment 400498 [details]
Crash Dump from system-config-network
M using Redhat Enterprise 5.4 and I am facing Network Connectivity issue. Even all the physical ports are active.
Component: system-config-network
Version: 1.3.99.18
Summary: TB0a0f70ae maindialog.py:602:hydrateProfiles:TypeError: sequence item not a string or unicode object
Traceback (most recent call last):
File "/usr/sbin/system-config-network-gui", line 167, in main
window = mainDialog()
File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 248, in __init__
self.hydrate()
File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 392, in hydrate
self.hydrateProfiles()
File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 602, in hydrateProfiles
hclist.append([host.IP, host.Hostname,
TypeError: sequence item not a string or unicode object
Please guide me to fix this issue.
|
Created attachment 400498 [details] Crash Dump from system-config-network Description of problem: I moved a RHEL v5.4 VM from one ESX host to another which changed the IP configuration from static to DHCP. When initially setup, I had altered /etc/hosts file with the static IP/hostname of the VM. When I moved the VM to another ESX server and needed to change the IP assignment from static to dynamic, I did not remove the line from /etc/hosts. After the move, I attempted to run system-config-network from the CLI which crashed causing the error seen in the attached crash dump (this also occurred when trying to run from GUI - System->Administration->Network). Apon further investigation, I removed the old static IP line from /etc/hosts, restarted the network service and was able to successfully run the Network Manager from both CLI and GUI. Version-Release number of selected component (if applicable): 1.3.99.18 How reproducible: Unsure. I tried to set the configuration back to the original state, but was unable to reproduce the issue. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: