Merge ~morphis/snappy-hwe-snaps/+git/engineering-tests:bug/remove-unneeded-service-restart into ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master

Proposed by Simon Fels
Status: Merged
Approved by: Alfonso Sanchez-Beato
Approved revision: 14a73e436aa6138b880ac638e6f93aeb962156d7
Merged at revision: 87a573a4c72ad4a09cfd9896ec291485bca9d4bd
Proposed branch: ~morphis/snappy-hwe-snaps/+git/engineering-tests:bug/remove-unneeded-service-restart
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master
Diff against target: 74 lines (+22/-10)
1 file modified
wifi-ap/units/wifi-ap.pxu (+22/-10)
Reviewer Review Type Date Requested Status
Simon Fels continuous-integration Approve
System Enablement Bot continuous-integration Needs Fixing
Konrad Zapałowicz (community) code Approve
Matteo Croce (community) Approve
Jim Hodapp Pending
Review via email: mp+317441@code.launchpad.net

Description of the change

Small fixes

 * wifi-ap: drop restart of not existing backend service
 * wifi-ap: switch to key=value syntax for the config command

To post a comment you must log in.
Revision history for this message
Matteo Croce (teknoraver) :
review: Approve
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

LGTM

review: Approve (code)
Revision history for this message
Simon Fels (morphis) :
review: Approve (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Top-approving although not being a maintainer as per Simon's request.

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Simon Fels (morphis) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/wifi-ap/units/wifi-ap.pxu b/wifi-ap/units/wifi-ap.pxu
2index f367cfe..503197a 100644
3--- a/wifi-ap/units/wifi-ap.pxu
4+++ b/wifi-ap/units/wifi-ap.pxu
5@@ -14,6 +14,10 @@ category_id: wifi_ap
6 _description: Ensure that the wifi_ap interfaces are connected
7 plugin: manual
8 _steps:
9+ 0. If the wifi-ap snap is already installed remove it via
10+ .
11+ $ snap remove wifi-ap
12+ .
13 1. Network Manager setup
14 .
15 For snaps on Classic:
16@@ -22,7 +26,11 @@ _steps:
17 .
18 For an Ubuntu Core system you have to install
19 the NetworkManager snap from the Ubuntu store.
20- $ sudo snap install network-manager
21+ $ snap install network-manager
22+ .
23+ 2. Install now the wifi-ap snap via
24+ .
25+ $ snap install wifi-ap
26 .
27 _verification:
28 Verify that you see the following when running snap interfaces:
29@@ -68,7 +76,7 @@ _steps:
30 .
31 2. Set a new value for the same configuration item
32 .
33- $ sudo /snap/bin/wifi-ap.config set wifi.interface wlan1
34+ $ sudo /snap/bin/wifi-ap.config set wifi.interface=wlan1
35 .
36 3. Retrieve the current value of the same configuration item
37 for comparison.
38@@ -87,25 +95,29 @@ _summary: Enabling the AP succeeds
39 _purpose:
40 Check to make sure the AP can be enabled.
41 _steps:
42+ 0. If the AP is already enabled as on some devices where the
43+ automated wizard was able to find a good configuration
44+ automatically you can skip the following steps. You can
45+ verify if the AP is active by calling
46+ .
47+ $ /snap/bin/wifi-ap.status
48+ ap.active: true
49+ .
50 1. Look up and set the wifi interface to the proper name
51 e.g. from default wlan0 to enp0s3
52 .
53 $ ifconfig
54- $ /snap/bin/wifi-ap.config set wifi.interface <interface_name>
55+ $ /snap/bin/wifi-ap.config set wifi.interface=<interface_name>
56 .
57 2. Enable the AP with the default configuration for other key values
58 .
59- $ sudo /snap/bin/wifi-ap.config set disabled 0
60- .
61- 3. Restart the wifi-ap systemd service to complete the enabling
62- .
63- $ sudo systemctl restart snap.wifi-ap.backend
64+ $ sudo /snap/bin/wifi-ap.config set disabled=false
65 .
66- 4. Verify that the AP is enabled by looking at the key/value pair
67+ 3. Verify that the AP is enabled by looking at the key/value pair
68 .
69 $ /snap/bin/wifi-ap.config get disabled
70 _verification:
71- Verify that the new value for the disabled is set to 0. Also verify that a
72+ Verify that the new value for the disabled is set to false. Also verify that a
73 different machine such as a phone or a laptop can connect to the AP using
74 SSID of "Ubuntu" and no security type.
75

Subscribers

People subscribed via source and target branches

to all changes: