http://defect.opensolaris.org/bz/show_bug.cgi?id=9340
Summary: On boot without network automount doesn't mount
/home/user
Classification: Development
Product: nwam
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Status Whiteboard: nwam1-build:2009-06-04
Severity: major
Priority: P2
Component: ON daemon
AssignedTo: nwam-dev at opensolaris.org
ReportedBy: dkenny at opensolaris.org
QAContact: nwam-dev at opensolaris.org
On my machine, when running 06/04, since I'm not getting a network on boot
without a cable plugged in (see bug#9339 for more on that) autofs is not able
to connect
to local host with the NoNet location active.
This would seem to be a flaw in the NoNet ipfilter configuration, which I think
really should allow all traffic on localhost - what I'm finding more confusing
is that it seems to in the ipf.conf file.
The result of this is that on OpenSolaris I'm not able to log into my user
account which is configured in auto_home as:
darrenk localhost:/export/home/&
To get it working again, I need to get to the point where the network is
brought up, and then restart the autofs service - I tried refreshing the
name-service-cache and then refreshing the autofs service, but that didn't seem
to be enough, so I had to resort to restarting it.
Below is a terminal session that demonstrates this issue, this had to be run in
a Failsafe desktop session since I couldn't log into GNOME due to the missing
home directory:
root at starbug-r600:~/nwamd-0604-post-boot# nwamadm list -x
TYPE PROFILE STATE AUXILARY STATE
ncp Automatic online active
ncu:phys e1000g0 offline conditions for activation are not
met
ncu:ip e1000g0 offline conditions for activation are not
met
ncu:phys iwh0 online interface or link is up
ncu:ip iwh0 online interface or link is up
ncp User offline conditions for activation are not
met
loc Automatic online active
loc NoNet offline conditions for activation are not
met
loc Legacy offline conditions for activation are not
met
root at starbug-r600:~/nwamd-0604-post-boot# cat /etc/resolv.conf
nameserver 192.168.2.1
### This is the wired network - maybe location wasn't refreshed?
root at starbug-r600:~/nwamd-0604-post-boot# svcadm refresh location
root at starbug-r600:~/nwamd-0604-post-boot# cat /etc/resolv.conf
nameserver 213.94.190.194
### Looks better
root at starbug-r600:~/nwamd-0604-post-boot# ls /home/darrenk
ls: cannot open directory /home/darrenk: Permission denied
### Still can't see homedir, so try refresh autofs
root at starbug-r600:~/nwamd-0604-post-boot# svcadm refresh autofs
root at starbug-r600:~/nwamd-0604-post-boot# ls /home/darrenk
ls: cannot open directory /home/darrenk: Permission denied
### Still not working, make sure name-service-cache is refreshed
### (although I'm not convinced that autofs uses it!)
root at starbug-r600:~/nwamd-0604-post-boot# svcadm refresh name-service-cache
root at starbug-r600:~/nwamd-0604-post-boot# ls /home/darrenk
ls: cannot open directory /home/darrenk: Permission denied
### Still nothing, so resort to restarting autofs service
root at starbug-r600:~/nwamd-0604-post-boot# svcadm restart autofs
root at starbug-r600:~/nwamd-0604-post-boot# ls /home/darrenk
bin ...
### Yay, all working again...
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.