[SRU] NetworkManager parser: ip-tunnel connections fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Impish |
Won't Fix
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* NetworkManager snap (using the netplan backend) fails to add "ip-tunnel" connections.
* ip-tunnel connections are needed in UC20 via the NetworkManager netplan integration
* This upload includes an upload commit that uses netplan's "passthrough" mode to handle ip-tunnel connections, so all settings can be stored correctly.
[Test Plan]
Using NetworkManager with the netplan backend integration (e.g. network-manager snap from the 20/stable channel) one can launch "nmtui" and then:
- Proceed to edit -> add new connection
- Select "IP tunnel"
- enter a profile name e.g. "IP tunnel connection 1"
- enter a device e.g. "gre10"
- select mode "GRE"
- enter local IP e.g. "10.20.20.1"
- enter remote IP e.g. "10.20.20.2"
- Press "OK" to save the connection
This should NOT yield the following error message, but return successfully:
"Unable to add new connection: failure adding connection: keyfile writer produces an invalid connection: cannot access file: No such file or directory"
- run "netplan get nm-devices" to confirm the connection was created successfully, using passthrough configuration
- run "nmcli c show" to confirm the new connection has been picked up by NM, too
[Where problems could occur]
* This upload touches netplan's NetworkManager keyfile parser code. So if something is broken this could impact the NetworkManager netplan backend integration.
[Other Info]
* Additionally we will run and verify the usual autopkgtests once the package got accepted into -proposed
This fix is included in upstream netplan 0.104, so Fix released in Jammy already.