Bug 63207

Summary: "activate device when computer starts" fails with "Exeption Occured"
Product: [Retired] Red Hat Linux Reporter: Need Real Name <1qaz2wsx>
Component: redhat-config-networkAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-17 02:55:17 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:

Description Need Real Name 2002-04-11 08:11:25 UTC
Description of Problem:

An Exception Occured dialog occurs when adding the "activate device
when computer starts" property.


Version-Release number of selected component (if applicable):

Version     : 0.9.10                            Vendor: Red Hat, Inc.
Release     : 2                             Build Date: Thu 10 Jan 2002 


How Reproducible:

Every time, for me.


Steps to Reproduce:

I started redhat-config-network as a normal user.
I entered the root password.
I selected eth0 from the devices tab
I clicked on edit
I checked "activate device when computer starts"
I clicked ok
I clicked on apply
An Exception Occured dialog appeared.


Actual Results:

Please visit http://bugzilla.redhat.com/bugzilla/ !
File a bug against component redhat-config-network. Thank you!

Traceback (innermost last):
  File "/usr/sbin/neat", line 1210, in ?
    gtk.mainloop()
  File "/usr/lib/python1.5/site-packages/gtk.py", line 2608, in mainloop
    _gtk.gtk_main()
  File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in __call__
    ret = apply(self.func, a)
  File "/usr/sbin/neat", line 392, in on_applyButton_clicked
    self.save()
  File "/usr/sbin/neat", line 271, in save
    self.saveHardware()
  File "/usr/sbin/neat", line 283, in saveHardware
    hardwarelist.save()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NCHardwareList.py",
line 226, in save
    wvdial[hw.Name]['Modem'] = hw.Modem.DeviceName
AttributeError: 'None' object has no attribute 'DeviceName'


Expected Results:


Additional Information:

Comment 1 Need Real Name 2002-04-11 08:28:41 UTC
The file:

   /etc/sysconfig/network-scripts/ifcfg-eth0

Does appear to have been modifed at approximately the correct time: Apr 11 02:01
MDT, and the value of:

   ONBOOT=yes

So, it appears the the change was actually made.


Comment 2 Need Real Name 2002-04-11 08:34:33 UTC
The FULL dump is:

Traceback (innermost last):
  File "/usr/sbin/neat", line 1210, in ?
    gtk.mainloop()
  File "/usr/lib/python1.5/site-packages/gtk.py", line 2608, in mainloop
    _gtk.gtk_main()
  File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in __call__
    ret = apply(self.func, a)
  File "/usr/sbin/neat", line 392, in on_applyButton_clicked
    self.save()
  File "/usr/sbin/neat", line 271, in save
    self.saveHardware()
  File "/usr/sbin/neat", line 283, in saveHardware
    hardwarelist.save()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NCHardwareList.py",
line 226, in save
    wvdial[hw.Name]['Modem'] = hw.Modem.DeviceName
AttributeError: 'None' object has no attribute 'DeviceName'

Local variables in innermost frame:
isdn: <netconfpkg.NCisdnhardware.ConfISDN instance at 84bc248>
hw: <netconfpkg.HardwareList.Hardware instance at 84971f0>
selfkey: Mem
wvdial: <netconfpkg.ConfSMB.ConfSMB instance at 84bb150>
modules: <netconfpkg.NCHardwareList.MyConfModules instance at 84afc78>
confkey: mem
self: [<netconfpkg.HardwareList.Hardware instance at 849a758>,
<netconfpkg.HardwareList.Hardware instance at 84971f0>,
<netconfpkg.HardwareList.Hardware instance at 849fdf8>]

Comment 3 Harald Hoyer 2002-04-11 10:12:53 UTC
Could you try a newer version from http://people.redhat.com/teg/neat/ ? 
Preferable 0.9.24, which will be available tomorrow.

Comment 4 Trond Eivind Glomsrxd 2002-04-12 00:32:06 UTC
Available now.

Comment 5 Need Real Name 2002-04-17 02:55:12 UTC
Installed redhat-config-network-0.9.24-1.i386.rpm.

The new code works correctly.

More precisely, the new code requests permission to change file permissions for
/etc/sysconfig/networking/devices/ifcfg-eth0 from 600 to 644, and correctly
reports an error attempting to modify /etc/hosts (immutable attribute, i, is set
on the file).

With the "i" attribute cleared from /etc/hosts, the operation completes without
errors.

---------------------------------------------------------------