Please clean up log files on lxc delete
Bug #1576063 reported by
Martin Pitt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
It seems "lxc delete" does not remove log files in /var/log/lxd, so there's nothing that cleans them up and they pile up over time. I have no lxd containers defined on my laptop at the moment, but
$ ls /var/log/lxd/|wc -l
286
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 2.0.0-0ubuntu4
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: i3
Date: Thu Apr 28 09:20:17 2016
EcryptfsInUse: Yes
SourcePackage: lxd
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in lxd (Ubuntu): | |
importance: | Undecided → Medium |
Changed in lxd (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in lxd (Ubuntu): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On Thu, Apr 28, 2016 at 07:24:23AM -0000, Martin Pitt wrote:
> Public bug reported:
>
> It seems "lxc delete" does not remove log files in /var/log/lxd, so
> there's nothing that cleans them up and they pile up over time. I have
> no lxd containers defined on my laptop at the moment, but
In some cases it is useful to keep these around for debugging. I
wouldn't mind something that deleted day old logs for containers that
don't exist, though.
> $ ls /var/log/lxd/|wc -l ature: Ubuntu 4.4.0-22.38-generic 4.4.8 /bugs.launchpad .net/bugs/ 1576063 ature: Ubuntu 4.4.0-22.38-generic 4.4.8 /bugs.launchpad .net/ubuntu/ +source/ lxd/+bug/ 1576063/ +subscriptions
> 286
>
> ProblemType: Bug
> DistroRelease: Ubuntu 16.04
> Package: lxd 2.0.0-0ubuntu4
> ProcVersionSign
> Uname: Linux 4.4.0-22-generic x86_64
> ApportVersion: 2.20.1-0ubuntu2
> Architecture: amd64
> CurrentDesktop: i3
> Date: Thu Apr 28 09:20:17 2016
> EcryptfsInUse: Yes
> SourcePackage: lxd
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> ** Affects: lxd (Ubuntu)
> Importance: Undecided
> Status: New
>
>
> ** Tags: amd64 apport-bug xenial
>
> --
> You received this bug notification because you are a member of Ubuntu
> containers team, which is subscribed to lxd in Ubuntu.
> Matching subscriptions: lxd
> https:/
>
> Title:
> Please clean up log files on lxc delete
>
> Status in lxd package in Ubuntu:
> New
>
> Bug description:
> It seems "lxc delete" does not remove log files in /var/log/lxd, so
> there's nothing that cleans them up and they pile up over time. I have
> no lxd containers defined on my laptop at the moment, but
>
> $ ls /var/log/lxd/|wc -l
> 286
>
> ProblemType: Bug
> DistroRelease: Ubuntu 16.04
> Package: lxd 2.0.0-0ubuntu4
> ProcVersionSign
> Uname: Linux 4.4.0-22-generic x86_64
> ApportVersion: 2.20.1-0ubuntu2
> Architecture: amd64
> CurrentDesktop: i3
> Date: Thu Apr 28 09:20:17 2016
> EcryptfsInUse: Yes
> SourcePackage: lxd
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https:/