Cloud-init hangs vagrant machines with LDAP on boot

Bug #1498753 reported by Marx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Undecided
Unassigned

Bug Description

# Using vagrant + virtualbox as the virtual machine provider.
# Vagrantfile contains the box definition as next:
 config.vm.define "user" do |user|
                user.vm.box = "ubuntu/trusty64"
                user.vm.network "private_network", ip: "192.168.11.12"
        end

# This issue was faced within setting up LDAP authentication to this virtual server.

# The original "what was done" flow was:
# install LDAP modules
apt-get install libpam-ldap nscd
# add pam_mkhomedir.so to /etc/pam.d/common-sessions

# and edit /etc/nsswitch.conf to look like:
passwd: ldap compat
group: ldap compat
shadow: ldap compat

# after restarting the services, everything works nicely
# if the machine is rebooted, it hangs to the boot claiming that network cannot be set-up.
# This happens even though

# however, everything works nicely even in reboot if the /etc/nsswitch.conf is other way round:
passwd: compat ldap
group: compat ldap
shadow: compat ldap
# This method however breaks the authentication overrides

# Furthermore searching the stuff it turned out that if /etc/nsswitch.conf is edited to use the LDAP first
# even though the LDAP packages are not installed neither configured -> machine cannot boot
# vagrant is waiting for authentication, using the virtualbox GUI one can find out what the machine is doing.

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi Marx,

Sorry we haven't go to this before, but we are doing bug triage now. Is this still an issue you're seeing?

Thanks!

Changed in cloud-init:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init because there has been no activity for 60 days.]

Changed in cloud-init:
status: Incomplete → Expired
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.