[Pkg-utopia-maintainers] Bug#599558: network-manager: Network-manager does not play nice with dhclient and has to be disabled

Camaleón noelamac at gmail.com
Fri Oct 8 21:31:47 UTC 2010


Package: network-manager
Version: 0.8.1-2+b1
Severity: normal

When trying to setup a fallback configuration for network card interface using
dhclient, I finally had to configure network-manager in
/etc/NetworkManager/NetworkManager.conf with:

[ifupdown]
managed=false

To prevent NM to be in charge of the network adapter.

I had to do it so because when setting up /etc/dhclient/dhclient.conf to use a
predefined lease when no DHCP server is available, dhclient stops querying and
gives NM the command and thus, preventing the network interface to get the
proper configuration:

***
Oct  8 08:10:26 debian dhclient: Listening on LPF/eth0/08:00:27:54:f3:a2
Oct  8 08:10:26 debian dhclient: Sending on   LPF/eth0/08:00:27:54:f3:a2
Oct  8 08:10:26 debian dhclient: Sending on   Socket/fallback
Oct  8 08:10:26 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 5
Oct  8 08:10:31 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 8
Oct  8 08:10:36 debian kernel: [83517.140078] eth0: no IPv6 routers present
Oct  8 08:10:39 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 15
Oct  8 08:10:54 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 9
Oct  8 08:11:03 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 10
Oct  8 08:11:13 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 14
Oct  8 08:11:27 debian dhclient: No DHCPOFFERS received.
Oct  8 08:11:27 debian dhclient: Trying recorded lease 172.16.0.66
Oct  8 08:11:27 debian avahi-autoipd(eth0)[9466]: Found user 'avahi-autoipd'
(UID 104) and group 'avahi-autoipd' (GID 107).
Oct  8 08:11:27 debian avahi-autoipd(eth0)[9466]: Successfully called chroot().
Oct  8 08:11:27 debian avahi-autoipd(eth0)[9466]: Successfully dropped root
privileges.
Oct  8 08:11:27 debian avahi-autoipd(eth0)[9466]: Starting with address
169.254.9.65
Oct  8 08:11:27 debian avahi-autoipd(eth0)[9466]: Routable address already
assigned, sleeping.
Oct  8 08:11:27 debian dhclient: bound: renewal in 134502514 seconds.
Oct  8 08:17:01 debian /USR/SBIN/CRON[9568]: (root) CMD (   cd / && run-parts
--report /etc/cron.hourly)
Oct  8 08:33:52 debian NetworkManager[9373]: <info> caught signal 15, shutting
down normally.
Oct  8 08:33:52 debian NetworkManager[9373]: <info> (eth0): cleaning up...
Oct  8 08:33:52 debian NetworkManager[9373]: <info> (eth0): taking down device.
Oct  8 08:33:52 debian avahi-autoipd(eth0)[9466]: SIOCSIFFLAGS failed:
Permission denied
Oct  8 08:33:52 debian NetworkManager[9373]: <info> exiting (success)
Oct  8 08:33:52 debian dhclient: receive_packet failed on eth0: Network is down
***

The only way to allow dhclient doing its job is by disabling network-manager:

***
Oct  8 23:27:17 debian dhclient: DHCPREQUEST on eth0 to 172.16.0.11 port 67
Oct  8 23:27:29 debian dhclient: DHCPREQUEST on eth0 to 172.16.0.11 port 67
Oct  8 23:27:41 debian dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  8 23:27:57 debian dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  8 23:28:14 debian dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  8 23:28:26 debian dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  8 23:28:42 debian dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  8 23:28:47 debian avahi-autoipd(eth0)[9013]: Found user 'avahi-autoipd'
(UID 104) and group 'avahi-autoipd' (GID 107).
Oct  8 23:28:47 debian avahi-autoipd(eth0)[9013]: Successfully called chroot().
Oct  8 23:28:47 debian avahi-autoipd(eth0)[9013]: Successfully dropped root
privileges.
Oct  8 23:28:47 debian avahi-autoipd(eth0)[9013]: Starting with address
169.254.9.65
Oct  8 23:28:53 debian avahi-autoipd(eth0)[9013]: Callout BIND, address
169.254.9.65 on interface eth0
Oct  8 23:28:57 debian avahi-autoipd(eth0)[9013]: Successfully claimed IP
address 169.254.9.65
Oct  8 23:28:57 debian avahi-autoipd(eth0)[9013]: Got SIGTERM, quitting.
Oct  8 23:28:57 debian avahi-autoipd(eth0)[9013]: Callout STOP, address
169.254.9.65 on interface eth0
Oct  8 23:28:57 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 3
Oct  8 23:29:00 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 3
Oct  8 23:29:03 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 4
Oct  8 23:29:07 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 9
Oct  8 23:29:16 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 14
Oct  8 23:29:30 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 16
Oct  8 23:29:46 debian dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 12
Oct  8 23:29:58 debian dhclient: No DHCPOFFERS received.
Oct  8 23:29:58 debian dhclient: Trying recorded lease 172.16.0.66
Oct  8 23:29:58 debian avahi-autoipd(eth0)[9049]: Found user 'avahi-autoipd'
(UID 104) and group 'avahi-autoipd' (GID 107).
Oct  8 23:29:58 debian avahi-autoipd(eth0)[9049]: Successfully called chroot().
Oct  8 23:29:58 debian avahi-autoipd(eth0)[9049]: Successfully dropped root
privileges.
Oct  8 23:29:58 debian avahi-autoipd(eth0)[9049]: Starting with address
169.254.9.65
Oct  8 23:29:58 debian avahi-autoipd(eth0)[9049]: Routable address already
assigned, sleeping.
Oct  8 23:29:58 debian dhclient: bound: renewal in 134447403 seconds.
***

That way works fine.




-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages network-manager depends on:
ii  adduser                       3.112      add and remove users and groups
ii  dbus                          1.2.24-3   simple interprocess messaging syst
ii  isc-dhcp-client               4.1.1-P1-9 ISC DHCP client
ii  libc6                         2.11.2-6   Embedded GNU C Library: Shared lib
ii  libdbus-1-3                   1.2.24-3   simple interprocess messaging syst
ii  libdbus-glib-1-2              0.88-2     simple interprocess messaging syst
ii  libgcrypt11                   1.4.5-2    LGPL Crypto library - runtime libr
ii  libglib2.0-0                  2.24.2-1   The GLib library of C routines
ii  libgnutls26                   2.8.6-1    the GNU TLS library - runtime libr
ii  libgudev-1.0-0                160-1      GObject-based wrapper library for 
ii  libnl1                        1.1-5      library for dealing with netlink s
ii  libnm-glib2                   0.8.1-2+b1 network management framework (GLib
ii  libnm-util1                   0.8.1-2+b1 network management framework (shar
ii  libpolkit-gobject-1-0         0.96-3     PolicyKit Authorization API
ii  libuuid1                      2.17.2-3.2 Universally Unique ID library
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip
ii  udev                          160-1      /dev/ and hotplug management daemo
ii  wpasupplicant                 0.6.10-2   client support for WPA and WPA2 (I

Versions of packages network-manager recommends:
ii  dns 2.55-2                               A small caching DNS proxy and DHCP
ii  ipt 1.4.8-3                              administration tools for packet fi
ii  mod 0.4+git.20100624t180933.6e79d15-1+b1 D-Bus service for managing modems
ii  net 0.8.1-1                              network management framework (GNOM
ii  pol 0.96-3                               framework for managing administrat
ii  ppp 2.4.5-4                              Point-to-Point Protocol (PPP) - da

Versions of packages network-manager suggests:
ii  avahi-autoipd                 0.6.27-2   Avahi IPv4LL network address confi

-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed [not included]

-- no debconf information





More information about the Pkg-utopia-maintainers mailing list