old juju agent tools fill up disk space

Bug #1956772 reported by Loïc Gomez
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Unassigned

Bug Description

On a machine running juju agents 2.9.21, previous versions of juju tools were still present.
Total disk usage for /var/lib/juju/tools was over 2GB.

$ du -smx *-xenial-amd64 | sort -n
74 2.4.3-xenial-amd64
86 2.4.5-xenial-amd64
86 2.4.7-xenial-amd64
89 2.2.2-xenial-amd64
90 2.2.4-xenial-amd64
90 2.2.6-xenial-amd64
90 2.2.8-xenial-amd64
90 2.2.9-xenial-amd64
106 2.6.10-xenial-amd64
112 2.0.3-xenial-amd64
116 2.3.7-xenial-amd64
116 2.3.8-xenial-amd64
118 2.1.1-xenial-amd64
118 2.1.2-xenial-amd64
124 2.7.6-xenial-amd64
128 2.8.3-xenial-amd64
167 2.9.18-ubuntu-amd64
168 2.9.21-ubuntu-amd64
210 2.8.7-xenial-amd64

$ for file in unit-* machine-*; do readlink $file; done
/var/lib/juju/tools/2.9.21-ubuntu-amd64
/var/lib/juju/tools/2.9.21-ubuntu-amd64
/var/lib/juju/tools/2.9.21-ubuntu-amd64
/var/lib/juju/tools/2.9.21-ubuntu-amd64
/var/lib/juju/tools/2.9.21-ubuntu-amd64
/var/lib/juju/tools/2.9.21-ubuntu-amd64
/var/lib/juju/tools/2.9.21-ubuntu-amd64
/var/lib/juju/tools/2.9.21-ubuntu-amd64
/var/lib/juju/tools/2.9.21-ubuntu-amd64

juju should prune old dirs on upgrade and maybe keep up to one or two previous versions only, or maybe prune all previous major versions on minor upgrades.

Thank you,
Loïc

Loïc Gomez (kotodama)
summary: - old juju agent tools filling up disk
+ old juju agent tools fill up disk space
Changed in juju:
importance: Undecided → Medium
status: New → Triaged
Loïc Gomez (kotodama)
tags: added: canonical-is
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This Medium-priority bug has not been updated in 60 days, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
Haw Loeung (hloeung)
Changed in juju:
importance: Low → Medium
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.