`netplan apply` leaves leftover directories under /tmp

Bug #1889786 reported by Simon Déziel
6
This bug affects 1 person
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[1606]: Failed to enumerate children of /tmp/netplan_n_2cznjs: Error opening directory '/tmp/netplan_n_2cznjs': Permission denied

This issue was observed on Bionic and Focal.

Additional information:

$ lxc exec f-netplan -- dpkg -l | grep netplan
ii libnetplan0:amd64 0.99-0ubuntu3~20.04.2 amd64 YAML network configuration abstraction runtime library
ii netplan.io 0.99-0ubuntu3~20.04.2 amd64 YAML network configuration abstraction for various backends
$ lxc exec f-netplan -- lsb_release -rd
Description: Ubuntu 20.04.1 LTS
Release: 20.04

Revision history for this message
Lukas Märdian (slyon) wrote :

This should be fixed as of v0.104 (https://github.com/canonical/netplan/pull/259)

Please re-open if this is still an issue.

Changed in netplan.io (Ubuntu):
status: New → Fix Released
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.