Cloud-init hangs vagrant machines with LDAP on boot
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|
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.
# 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.
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!