wireless connection test item failed with permission error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Next Generation Checkbox (CLI) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
It always get error :
"Error: Failed to add/activate new connection: Not authorized to control networking."
Full message of that error: https:/
[0m[32m[1m## Connection attempt
[0m[32m[1m+ nmcli d wifi connect ubuntu-
[0m[31m[1mError: Failed to add/activate new connection: Not authorized to control networking.
[0m[32m[1m+ nmcli -m tabular -t -f GENERAL.STATE d show wlp2s0
[0m[32m[1m30 (disconnected)
[0m[32m[1m
[0m[32m[1m## Cleaning up NM connections
[0m[32m[1m+ nmcli -t -f TYPE,UUID,NAME c
[0m[32m[1m
[0m[30m
Outcome: [31;1mjob failed[0m
jenkins job:
https:/
C3 submission url:
https:/
Changed in checkbox-ng: | |
status: | Triaged → Invalid |
Changed in checkbox-ng: | |
status: | Confirmed → Triaged |
Changed in checkbox-ng: | |
status: | Triaged → Invalid |
Many of you are trying to run checkbox over ssh via jenkins jobs. You need to take special care doing so.
The error you reported can be solved via a polkit rule (pkla file).
But in general adopt what I did for the checkbox-oem-qa snap:
https:/ /git.launchpad. net/~oem- qa/oem- qa-checkbox/ +git/checkbox- oem-qa/ tree/snap/ hooks/install
The relevant bits for your error are:
cat <<EOF > /etc/polkit- 1/localauthorit y/50-local. d/com.canonical .certification. checkbox. pkla unix-group: sudo org.freedesktop .NetworkManager .*
[Checkbox]
Identity=
Action=
ResultAny=yes
ResultInactive=yes
ResultActive=yes
EOF