Bug 69682

Summary: Traceback attempting to remove nfs share
Product: [Retired] Red Hat Public Beta Reporter: Jay Turner <jturner>
Component: redhat-config-nfsAssignee: Brent Fox <bfox>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: limboCC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-12 03:13:41 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: 67217    

Description Jay Turner 2002-07-24 13:54:11 UTC
Description of Problem:
With redhat-config-nfs-0.9.4-3, there are a couple of odd things going on. 
First, if you attempt to remove shares, they don't actually get removed.  The
/etc/exports file doesn't get updated, the share continues to be exported.

If you don't have nfs running, and remove the lone share and attempt to quit,
you will get prompted that the nfs service isn't running and would you like to
start it.  Clicking 'yes' results in the following traceback:

Traceback (most recent call last):
  File "/usr/share/redhat-config-nfs/mainWindow.py", line 256, in
+on_apply_button_clicked
    self.exports.writeFile(self.processData())
  File "/usr/share/redhat-config-nfs/mainWindow.py", line 160, in processData
    nfsDataObject = self.exportsStore.get_value(iter, 3)
TypeError: iter must be a GtkTreeIter

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


How Reproducible:


Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:

Comment 1 Brent Fox 2002-07-25 03:10:08 UTC
Can you attach the /etc/exports file?

Did you start from scratch or was there an existing /etc/exports file?

Comment 2 Jay Turner 2002-07-25 11:18:32 UTC
At the start, I have this in /etc/exports:

/spare                   *.redhat.com(ro,sync)

and nfs is not running:
[root@kokopelli root]# service nfs status
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

I launch redhat-config-nfs and get the display showing the above export.  I
click on it, then click 'Delete'.  The export is deleted from the display and I
click "Apply" and get the message that the nfs service isn't running, would I
like to start it.  Clicking either 'yes' or 'no' results in the traceback and
/etc/exports is left unmodified.

TRY #2:
I start the nfs service and repeat the steps above.  This time when I click
apply I don't get prompted to start the service (as it's already running) but I
do still get the traceback.

Comment 3 Brent Fox 2002-08-07 05:16:43 UTC
Can you reproduce this for me?  I am unable to reproduce it on my machines.

Comment 4 Brent Fox 2002-08-12 03:03:41 UTC
Oh wait, I can reproduce it.  The bug is caused when the list store is empty,
and the program tries to retrieve data from an empty list.  I will fix now.

Comment 5 Brent Fox 2002-08-12 03:13:36 UTC
Should be fixed in 0.9.9-2.  I will rebuild it later tonight.  There's a few
other bugfixes I'd like to get in to 0.9.9-2.

Comment 6 Jay Turner 2002-08-12 16:11:34 UTC
Fix confirmed with redhat-config-nfs-0.9.9-2.