Bug 77974 - TB ipcalc.py:37
TB ipcalc.py:37
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-network (Show other bugs)
8.0
i686 Linux
high Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
David Lawrence
:
Depends On:
Blocks: 81720
  Show dependency treegraph
 
Reported: 2002-11-15 22:38 EST by Srinivas Meduri
Modified: 2007-03-26 23:58 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-08-04 16:17:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Srinivas Meduri 2002-11-15 22:38:44 EST
Description of Problem: When I tried to add just the Gateway in the properties
window of the ethernet device, and hit Apply button I got this below exception
message.
---------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/sbin/neat", line 496, in on_applyButton_clicked
    self.save()
  File "/usr/sbin/neat", line 319, in save
    self.saveDevices()
  File "/usr/sbin/neat", line 326, in saveDevices
    devicelist.save()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NCDeviceList.py",
line 145, in save
    os.write(fp2, ipc.network()+'/'+ipc.prefix()+" via "+route.Gateway+"\n")
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/ipcalc.py", line 58,
in network
    self.prefix()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/ipcalc.py", line 37,
in prefix
    self._netmask = re.match("NETMASK=(\S+)", text).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'

Local variables in innermost frame:
text:
self: <netconfpkg.ipcalc.IPCalc instance at 0x84e865c>
---------------------------------------------------------------------------------


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

How Reproducible: Everytime


Steps to Reproduce:

1. Go to the GNOME Menu --> System Settings --> Network
2. Select Network, that opens up a Network Configuration window.
3. Double mouse click on the ethernet entry shown under the Devices tab.
4. This opens up an Ethernet Device window.
5. Click on Add button to add Gateway.
6. Add only Gateway and click OK. This closes the current window and takes back 
   to the parent window(Network Configuration window).
7. Click Apply button. You will see a Exception message window shows up with the 
   core shown below in Actual Results.


Actual Results:
---------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/sbin/neat", line 496, in on_applyButton_clicked
    self.save()
  File "/usr/sbin/neat", line 319, in save
    self.saveDevices()
  File "/usr/sbin/neat", line 326, in saveDevices
    devicelist.save()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NCDeviceList.py",
line 145, in save
    os.write(fp2, ipc.network()+'/'+ipc.prefix()+" via "+route.Gateway+"\n")
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/ipcalc.py", line 58,
in network
    self.prefix()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/ipcalc.py", line 37,
in prefix
    self._netmask = re.match("NETMASK=(\S+)", text).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'

Local variables in innermost frame:
text:
self: <netconfpkg.ipcalc.IPCalc instance at 0x84e865c>
---------------------------------------------------------------------------------



Expected Results: If the operation entries are wrong then there should be an
information or error message to the user.


Additional Information: The machine I saw this problem is a freshly installed
system with Redhat Linux 8.0 on it. Also the machine has been configured with an
IP Address obtained from a DHCP server. Not sure this is related to the problem
I saw above.
Comment 1 Mihai Ibanescu 2002-11-15 23:38:57 EST
Reassigning to the right component.
Comment 2 Harald Hoyer 2003-01-13 10:20:40 EST
new packages to test available at:
ftp://people.redhat.com/harald/redhat-config-network/1.1.87-1/
ftp://people.redhat.com/harald/rhpl/0.74-2/
Comment 3 Bill Nottingham 2006-08-04 16:17:40 EDT
Red Hat Linux and Red Hat Powertools are currently no longer supported by Red
Hat, Inc. In an effort to clean up bugzilla, we are closing all bugs in MODIFIED
state for these products.

However, we do want to make sure that nothing important slips through the
cracks. If, in fact, these issues are not resolved in a current Fedora Core
Release (such as Fedora Core 5), please open a new issues stating so. Thanks.

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