integrate with NetworkManager

Bug #486406 reported by Andrew Schulman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
whereami (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: whereami

whereami 0.3.34-0.1, in Jaunty.

Steps to reproduce:
1. Install NetworkManager and whereami.
2. Use NetworkManager to bring up or reconfigure an interface.

What should happen: whereami gets run, via /etc/dhcp3/dhclient-exit-hooks.d/whereami.

What does happen: whereami doesn't run.

The problem it seems, is that when NetworkManager invokes dhclient, it specifies its own custom dhclient script (/usr/lib/NetworkManager/nm-dhcp-client.action), which doesn't run the usual dhclient enter and exit hook scripts. It only runs the scripts in /etc/NetworkManager/dispatcher.d. This problem is described at https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/293139 and http://ubuntuforums.org/showthread.php?p=6748706.

Since the bug against NetworkManager is tagged "wontfix", it seems that the best solution for whereami will be to provide a NetworkManager dispatch script, that calls whereami. I haven't worked out the details of this but it looks simple enough. If I create one I'll post it here.

Thanks,
Andrew.

Tags: dhclient
Revision history for this message
Andrew Schulman (andrex) wrote :

Here's my NetworkManager integration script. It works for me: with this script installed as /etc/NetworkManager/dispatcher.d/whereami and executable, whereami now gets called whenever NM reconfigures an interface. Note a couple of issues:

* NM doesn't offer the same variety of operations and network state as dhclient-- we just get (post-)up or down, and the name of the interface.

* I'm not sure if I gave the right --hint values. Those could be adjusted.

Logan Rosen (logan)
Changed in whereami (Ubuntu):
status: New → Incomplete
status: Incomplete → New
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.