Cleaning netplans after removing wireguard interface

Bug #1966197 reported by Rahul
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan.io (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi, I am working on Ubuntu server 20.04 with network manager snap and wireguard.

I can bring up wireguard interface using:

sudo wg-quick up <conf file>

I can also bring it down with

wg-quick down <conf file>

The netplan.io then, creates a yaml in /etc/netplan

When this inerface is deleted, this netplan is not removed.

Also, when i reboot, when i run:

sudo wg-quick up <conf file>

the netplan creates a new yaml file with a different uuid, instead of recogonising it already exists.

Due to this the netplan in /etc/netplan folder piles up.

How can I fix this issue?

Rahul (ttank)
tags: added: netplan network-manager wirguard
Rahul (ttank)
tags: removed: network-manager
Revision history for this message
Lukas Märdian (slyon) wrote :

Thank you for your report.

I think the problem here is that when you call "wg-quick up ..." it will create a new network interface that is picked up by the NetworkManager snap (and therefore netplan), but when you call "wg-quick down ..." it just tears down the interface, while NetworkManager does not recognize that and thus cannot clear the configuration.

Could you please show the output "nmcli con"? Does it show a list of wireguard connection profiles?
If so, does it help to call "nmcli con delete <UUID>" to clear this profile from NetworkManager (and also netplan YAML in /etc/netplan/)?

Changed in netplan.io (Ubuntu):
status: New → Incomplete
Revision history for this message
Rahul (ttank) wrote :

Hi,
I do get the wireguard connections when i run "nmcli c"

when i delete those connections with nmcli c delete uuid. It deletes the connections and clears the netplans too.

Thanks for the help. I guess this could be a temporary fix. Will there be any update to delete it through the netplan.io?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for netplan.io (Ubuntu) because there has been no activity for 60 days.]

Changed in netplan.io (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.