Bug 574108 (TB0a0f70ae) - TB0a0f70ae maindialog.py:602:hydrateProfiles:TypeError: sequence item not a string or unicode object
Summary: TB0a0f70ae maindialog.py:602:hydrateProfiles:TypeError: sequence item not a s...
Keywords:
Status: CLOSED DUPLICATE of bug 492915
Alias: TB0a0f70ae
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: system-config-network
Version: 5.4
Hardware: i686
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Harald Hoyer
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 531042 555196 614787 626058 642152 667285 682441 1055877 1083134 (view as bug list)
Depends On:
Blocks: 1049888
TreeView+ depends on / blocked
 
Reported: 2010-03-16 16:28 UTC by Dan W
Modified: 2020-02-14 12:35 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-07 07:41:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Crash Dump from system-config-network (3.21 KB, text/plain)
2010-03-16 16:28 UTC, Dan W
no flags Details

Description Dan W 2010-03-16 16:28:44 UTC
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:

Comment 1 Harald Hoyer 2010-03-16 16:46:55 UTC
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

Comment 2 Harald Hoyer 2010-03-16 16:48:13 UTC
hmm, did you have a line without a hostname and just the IP?

Comment 3 Dan W 2010-03-16 17:18:00 UTC
Yes I did.

Comment 4 Dan W 2010-03-16 17:22:21 UTC
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

Comment 5 Harald Hoyer 2010-10-12 08:46:53 UTC
*** Bug 642152 has been marked as a duplicate of this bug. ***

Comment 6 Harald Hoyer 2011-03-07 07:39:56 UTC
*** Bug 682441 has been marked as a duplicate of this bug. ***

Comment 7 Harald Hoyer 2011-03-07 07:41:43 UTC

*** This bug has been marked as a duplicate of bug 492915 ***

Comment 8 Harald Hoyer 2014-01-31 12:58:09 UTC
*** Bug 531042 has been marked as a duplicate of this bug. ***

Comment 9 Harald Hoyer 2014-01-31 12:59:56 UTC
*** Bug 555196 has been marked as a duplicate of this bug. ***

Comment 10 Harald Hoyer 2014-01-31 13:12:01 UTC
*** Bug 614787 has been marked as a duplicate of this bug. ***

Comment 11 Harald Hoyer 2014-01-31 13:13:01 UTC
*** Bug 626058 has been marked as a duplicate of this bug. ***

Comment 12 Harald Hoyer 2014-01-31 13:13:50 UTC
*** Bug 667285 has been marked as a duplicate of this bug. ***

Comment 13 Harald Hoyer 2014-01-31 14:10:44 UTC
*** Bug 1055877 has been marked as a duplicate of this bug. ***

Comment 14 Harald Hoyer 2014-04-07 15:29:02 UTC
*** Bug 1083134 has been marked as a duplicate of this bug. ***

Comment 15 Mohammad Hizbullah 2020-02-14 12:35:04 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.