[Bug 1010045] Re: 12.04 hangs on shutdown deconfiguring network interfaces

Tais Plougmann Hansen 1010045 at bugs.launchpad.net
Fri Nov 2 21:15:28 UTC 2012


Resolvconf seems to be causing the "hang" in at least one of my
testcases. It seems to be attempting to speak with our ldap
authentication servers. Strace shows it is trying to lookup the
hostnames of the auth servers and the connect to them multiple times for
every interface, making the shutdown process take a very long time.

26880 ?        S      0:00 /bin/sh -ex /etc/rc6.d/S02networking stop
26891 ?        S      0:00 ifdown -v -a --exclude=lo
26939 ?        S      0:00 /bin/sh -c run-parts --verbose /etc/network/if-down.d
26940 ?        S      0:00 run-parts --verbose /etc/network/if-down.d
26953 ?        S      0:00 /bin/sh /etc/network/if-down.d/resolvconf
26954 ?        S      0:00 /bin/sh /sbin/resolvconf -d brvlan1000.inet

# strace -p 26954
Process 26954 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("172.31.17.6")}, 16) = 0
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
sendto(5, "\206\33\1\0\0\1\0\0\0\0\0\0\5auth2\6cncore\3lan\6cn"..., 45, MSG_NOSIGNAL, NULL, 0) = 45
poll([{fd=5, events=POLLIN}], 1, 5000)  = 0 (Timeout)
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
sendto(4, "\206\33\1\0\0\1\0\0\0\0\0\0\5auth2\6cncore\3lan\6cn"..., 45, MSG_NOSIGNAL, NULL, 0) = 45
poll([{fd=4, events=POLLIN}], 1, 5000)  = 0 (Timeout)
poll([{fd=5, events=POLLOUT}], 1, 0)    = 1 ([{fd=5, revents=POLLOUT}])
sendto(5, "\206\33\1\0\0\1\0\0\0\0\0\0\5auth2\6cncore\3lan\6cn"..., 45, MSG_NOSIGNAL, NULL, 0) = 45
poll([{fd=5, events=POLLIN}], 1, 5000)  = 0 (Timeout)
close(4)                                = 0
close(5)                                = 0
stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=215, ...}) = 0
[...]

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/1010045

Title:
  12.04 hangs on shutdown deconfiguring network interfaces

Status in “ifupdown” package in Ubuntu:
  Incomplete

Bug description:
  When shutting down the 12.04 guest, it hangs on "Deconfiguring network
  interfaces...", when there are multiple networkcards.

  The system is going down for halt NOW!
   * Stopping web server apache2                                           [ OK ]  ... waiting 
   * Stopping Bacula File daemon...                                        [ OK ] 
  Checking for running unattended-upgrades: 
   * Running nssldap-update-ignoreusers...                                 [ OK ] 
   * Stopping Name Service Cache Daemon nscd                               [ OK ] 
   * Stopping Postfix Mail Transport Agent postfix                         [ OK ] 
   * Stopping ftp server proftpd                                           [ OK ] 
   * Asking all remaining processes to terminate...                        [ OK ] 
   * All processes ended within 2 seconds....                              [ OK ] 
  rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
   * Deconfiguring network interfaces...                                          

  <hang>

  We only have this issue when a vm has multiple network cards assigned.
  When we do a manual "/etc/init.d/network stop; halt", the vm shuts down like expected.

  dpkg -l | grep ifupdown
  ii  ifupdown                         0.7~beta2ubuntu8              high level tools to configure network interfaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1010045/+subscriptions




More information about the foundations-bugs mailing list