Modify

Opened 8 years ago

Last modified 8 years ago

#68 new defect

Problems with exclusion list for NFS in server/config/getimage.exclude

Reported by: mathieu.peltier@gmail.com Owned by: somebody
Priority: major Milestone:
Component: sali Version: 1.5.8
Keywords: Cc:

Description

Hi,
The server/config/getimage.exclude file contains these exclusions:

# NFS stuff
/var/lib/nfs/state
/var/lib/nfs/*tab
/var/lib/nfs/*/*


So for example the /var/lib/nfs/statd/sm/ directory from nfs-utils package (Fedora 18) is not created in the image. This causes big problems if the home directory is mounted by nfs (locking does not work anymore and tons of error message are generated by rpc.statd in /var/log/message). The following exclusion list works for me (Fedora 18). I have moved theses lines into /etc/sali/exclude/Fedora18.path and commented NFS lines in /etc/sali/getimage.exclude. Do you see a better solution ?
thanks,
Mathieu

root@sali # cat /etc/sali/exclude/Fedora18.path

...
# NFS stuff
/var/lib/nfs/state
/var/lib/nfs/*tab
/var/lib/nfs/statd/sm/*
/var/lib/nfs/statd/sm.bak/*
/var/lib/nfs/rpc_pipefs/*
/var/lib/nfs/v4recovery/*
/var/lib/nfs/rpc_pipefs/*
...


root@fedora18 # rpm -ql nfs-utils | grep "/var/lib/nfs"

...
/var/lib/nfs/etab
/var/lib/nfs/rmtab
/var/lib/nfs/rpc_pipefs
/var/lib/nfs/statd
/var/lib/nfs/statd/sm
/var/lib/nfs/statd/sm.bak
/var/lib/nfs/state
/var/lib/nfs/v4recovery
/var/lib/nfs/xtab
...

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by bas

Thanks for reporting. We will adjust the default file.

yes we have a script that checks for a specfic image if there is an exclude file if not it will use the default one. Which getimage script do you use:

Already support this setup.

comment:2 follow-up: Changed 8 years ago by mathieu.peltier@gmail.com

Yes I am using the script:
https://oss.trac.surfsara.nl/sali/browser/trunk/contrib/getimage

Just to be sure:

  • this script uses /etc/sali/exclude/<image>.path as exclusion list and defaults to /etc/sali/exclude/default.path if this file is not found
  • the file /etc/sali/getimage.exclude contains other exclusions which are always used in addition to the previous ones.

Correct?

I my case, I have commented lines concerning NFS in /etc/sali/getimage.exclude and added modified lines in /etc/sali/exclude/Fedora18.path

Also I was wondering if some command could be used to reset NFS stuff instead of adding an exclusion list.

Thanks,
Mathieu

comment:3 in reply to: ↑ 2 Changed 8 years ago by dennis

Replying to mathieu.peltier@…:

Yes I am using the script:
https://oss.trac.surfsara.nl/sali/browser/trunk/contrib/getimage

Just to be sure:

  • this script uses /etc/sali/exclude/<image>.path as exclusion list and defaults to /etc/sali/exclude/default.path if this file is not found
  • the file /etc/sali/getimage.exclude contains other exclusions which are always used in addition to the previous ones.

Correct?

Yes you are correct

I my case, I have commented lines concerning NFS in /etc/sali/getimage.exclude and added modified lines in /etc/sali/exclude/Fedora18.path

Also I was wondering if some command could be used to reset NFS stuff instead of adding an exclusion list.

We use Debian so we never had this problems. Perhaps you could do a re-installation of the package with a post-installation script?

But commenting the lines in /etc/sali/getimage.exclude is probably the best way.

Thanks,
Mathieu

comment:4 Changed 8 years ago by dennis

  • Milestone SALI 1.6.0 deleted

Add Comment

Modify Ticket

Change Properties
Action
as new The owner will remain somebody.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from somebody to the specified user. Next status will be 'assigned'.
The owner will be changed from somebody to anonymous. Next status will be 'accepted'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.