Please provide a way to make NetworkManager poll its connectivity URI on demand

Bug #1072675 reported by Stuart Langridge on 2012-10-29
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Wishlist
Mathieu Trudel-Lapierre

Bug Description

NetworkManager can poll a URI to confirm that it can really see the internet (rather than a captive portal such as a hotel login page). This is useful. However, it does not seem to be possible to tell NM "poll your URI now, please"; you have to wait for the poll interval to time-out first. If I know that it's worth checking now (for example, that I've popped up a browser to allow signing in and that signing in is complete) then it would be useful to be able to poke NM to say "poll now (that is: pretend that the poll interval has just timed out)".

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: network-manager 0.9.6.0-0ubuntu7
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
CRDA: Error: [Errno 2] No such file or directory: 'iw'
CheckboxSubmission: 4d186c1dd89d3ba4cb89f5ee55713686
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Mon Oct 29 12:23:29 2012
EcryptfsInUse: Yes
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2011-12-11 (322 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111211)
IpRoute:
 default via 10.155.0.1 dev wlan0 proto static
 10.0.3.0/24 dev lxcbr0 proto kernel scope link src 10.0.3.1
 10.155.0.0/19 dev wlan0 proto kernel scope link src 10.155.8.36 metric 9
 169.254.0.0/16 dev wlan0 scope link metric 1000
 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
MarkForUpload: True
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
SourcePackage: network-manager
UpgradeStatus: Upgraded to quantal on 2012-10-20 (8 days ago)
mtime.conffile..etc.NetworkManager.NetworkManager.conf: 2012-10-29T12:13:12.889514
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH
 wlan0 802-11-wireless connected /org/freedesktop/NetworkManager/Devices/0
nmcli-nm:
 RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
 running 0.9.6.0 connected enabled enabled enabled enabled disabled

Stuart Langridge (sil) wrote :

Should be trivial. Bitesize in case someone wants to implement it; it might even already be in git master...

Changed in network-manager (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
importance: Medium → Wishlist
tags: added: bitesize
Marius B. Kotsbak (mariusko) wrote :

Does that mean the connectivity check actually works? I could not see that it is working, just by adding this to /etc/NetworkManager/NetworkManager.conf:

[connectivity]
uri=http://start.ubuntu.com/connectivity-check.html
response=Lorem ipsum

Did you do anything else? How do you verify that it is working?

Stuart Langridge (sil) wrote :

Marius: I set the connection poll interval to ten seconds, pointed the URL at a site I control, and then changed the response from something correct to something wrong, and observed that NM fires a state-changed signal.

Marius B. Kotsbak (mariusko) wrote :

Sorry for discussing it here, but how does it behave when that signal is signalled? Does it trigger a reconnect of the wifi, or change to another available network?

Thomas Hood (jdthood) on 2012-10-30
summary: - No way to make NetworkManager poll its connectivity URI on-demand
+ Please provide a way to make NetworkManager poll its connectivity URI on
+ demand
Matthew Paul Thomas (mpt) wrote :

In <https://wiki.ubuntu.com/Networking#settings-connections> I suggest that there should be a "Prompt whenever a new connection requires Web login" checkbox, and that one of the occasions for prompting should be immediately after checking the checkbox. So even if it was already checked, unchecking then re-checking it would be a moderately guessable way of polling on demand.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers