ldap fails to start when /etc/network/interfaces not used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs5 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
This bug is very similar in nature to Bug #958704. In a nutshell, autofs is unable to initialize correctly on boot due to upstart not starting things in proper sequence. In my case, network drives are described in LDAP maps and autofs is most likely starting before the system is able to use the network to retrieve the proper maps from LDAP. That results in drives not being mountable unless I restart autofs. For example
root@bar:
bash: cd: /dat/foo: No such file or directory
root@bar:
autofs start/running, process 2188
root@bar:
root@bar:/dat/foo#
So you see that for me to get my network drives working, I need to restart autofs after boot. This smacks of improper initialization sequencing.
The following packages are installed on my system and in use to use autofs with LDAP maps
autofs-ldap, ldap-utils, ldap-auth-client, nscd
I think this problem should be easily solvable by having autofs wait for the proper network utilities to be started and running before it attempts to initialize. This has been a perennial problem for NIS and LDAP reliant networks for MANY versions of Ubuntu. I had similar problems back in 8.04 when our system used NIS and also in 10.04. Please straightnen this out, since Ubuntu needs to be useful in network environements that use these types of auto-configuring network topologies.
nobody@
Description: Ubuntu 12.04 LTS
Release: 12.04
nobody@
autofs5:
Installed: 5.0.6-0ubuntu5
Candidate: 5.0.6-0ubuntu5
Version table:
*** 5.0.6-0ubuntu5 0
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: autofs5 5.0.6-0ubuntu5
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Thu May 3 16:20:30 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: autofs5
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in autofs5 (Ubuntu): | |
status: | Incomplete → New |
summary: |
- ubuntu 12.04 automounts (autofs) not working with ldap maps on boot + ldap fails to start when /etc/network/interfaces not used |
Changed in autofs5 (Ubuntu): | |
status: | New → Confirmed |
Thanks for submitting this bug.
The autofs upstart job starts on runlevel 2345, which ensures that static network configurations are up. Can you show your /etc/network/ interfaces file?
If your /etc/network/ interfaces file is empty and you are using networkmanager to provide network interfaces for users, then I think we need a different way of making that work with autofs.