`netplan apply` leaves leftover directories under /tmp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Running 'netplan apply' leaves leftover directories under /tmp.
Steps to reproduce:
1) Create a container
$ lxc launch images:ubuntu/focal f-netplan
2) Run 'netplan apply'
$ lxc exec f-netplan netplan apply
$ lxc exec f-netplan netplan apply
3) Check for leftovers
$ lxc exec f-netplan -- ls -l /tmp | grep netplan
Step 3 should return nothing but it currently looks like that:
$ lxc exec f-netplan -- ls -l /tmp | grep netplan
drwx------ 2 root root 2 Jul 31 14:15 netplan_jisn27s4
drwx------ 2 root root 2 Jul 31 14:15 netplan_p3hnod6y
On desktop/graphical sessions, this causes some noise from gsd-housekeeping:
Jul 31 15:48:24 foo gsd-housekeepin
This issue was observed on Bionic and Focal.
Additional information:
$ lxc exec f-netplan -- dpkg -l | grep netplan
ii libnetplan0:amd64 0.99-0ubuntu3~
ii netplan.io 0.99-0ubuntu3~
$ lxc exec f-netplan -- lsb_release -rd
Description: Ubuntu 20.04.1 LTS
Release: 20.04
This should be fixed as of v0.104 (https:/ /github. com/canonical/ netplan/ pull/259)
Please re-open if this is still an issue.