After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770907 - Activation of a new wifi connection fails when monitor-connection-files=yes
Activation of a new wifi connection fails when monitor-connection-files=yes
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: Wi-Fi
git master
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks: nm-review
 
 
Reported: 2016-09-05 16:29 UTC by Beniamino Galvani
Modified: 2016-09-12 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH 1/2] ifcfg-rh: add wifi protocols only if present in connection file (1.85 KB, patch)
2016-09-05 16:34 UTC, Beniamino Galvani
none Details | Review
[PATCH 2/2] ifcfg-rh: fill 'auth-alg' with the original value for WPA-PSK (1.18 KB, patch)
2016-09-05 16:35 UTC, Beniamino Galvani
none Details | Review

Description Beniamino Galvani 2016-09-05 16:29:49 UTC
Activation of a new wifi connection from nmcli fails with:

  nmcli --ask device wifi connect foobar
  Password: ****
  Error: Connection activation failed: (7) Secrets were required, but not provided

when NM is configured with monitor-connection-files=yes.

Relevant part of logs:

  [1473063862.2005] audit: op="connection-add-activate" uuid="f5f1883b-27d4-4ad9-8eae-e3d075249956" name="foobar 4" pid=456 uid=0 result="success"
  [1473063862.2009] Saving secrets for connection /org/freedesktop/NetworkManager/Settings/45 (foobar 4)
  [1473063862.2010] ifcfg-rh: ifcfg_dir_changed(/etc/sysconfig/network-scripts/keys-foobar_4) = 3 // /etc/sysconfig/network-scripts/ifcfg-foobar_4
  [1473063862.2010] ifcfg-rh: loading from file "/etc/sysconfig/network-scripts/ifcfg-foobar_4"...
  [1473063862.2013] settings-connection[0x1a241a0]: constructed (NMIfcfgConnection)
  [1473063862.2015] settings-connection[0x1a241a0,f5f1883b-27d4-4ad9-8eae-e3d075249956]: replace settings from connection 0x195aa40 (foobar 4)
  [1473063862.2020] ifcfg-rh: update /etc/sysconfig/network-scripts/ifcfg-foobar_4 (f5f1883b-27d4-4ad9-8eae-e3d075249956,"foobar 4")
  [1473063862.2027] ++ connection 'ifcfg-update' (0x1a241a0/NMIfcfgConnection < 0x182af20/NMIfcfgConnection):
  [1473063862.2027] ++ 802-11-wireless-security  [ 0x1a29890 < 0x198dad0 ]
  [1473063862.2027] ++ 802-11-wireless-security.proto = [\"wpa\", \"rsn\"] < []
  [1473063862.2027] ++ 802-11-wireless-security.auth-alg < 'open'
  [...]
  [1473063862.2979] device (wlp4s0): The connection was modified since activation
  [1473063862.2979] device (wlp4s0): state change: need-auth -> failed (reason 'no-secrets') [60 120 7]
Comment 1 Beniamino Galvani 2016-09-05 16:34:43 UTC
Created attachment 334830 [details] [review]
[PATCH 1/2] ifcfg-rh: add wifi protocols only if present in connection file
Comment 2 Beniamino Galvani 2016-09-05 16:35:11 UTC
Created attachment 334831 [details] [review]
[PATCH 2/2] ifcfg-rh: fill 'auth-alg' with the original value for  WPA-PSK
Comment 3 Thomas Haller 2016-09-05 18:12:23 UTC
lgtm
Comment 4 Francesco Giudici 2016-09-12 10:06:45 UTC
lgtm