Provide a script to automate cleanup of _base

Bug #904532 reported by Michael Still
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned
nova (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The nova base instance directory $instances_path/_base is never cleaned up. This caused one of my compute nodes to run out of disk recently, even though a bunch of the images there were no longer in use. There appear to be homebrew cleanup scripts online, such as https://github.com/Razique/BashStuff/blob/master/SCR_5008_V00_NUAC-OPENSTACK-Nova-compute-images-prunning.sh . Please provide a script to perform cleanup in the package.

Tags: canonistack
Revision history for this message
Scott Moser (smoser) wrote :
Changed in nova (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Changed in nova:
status: New → Confirmed
Revision history for this message
Michael Still (mikal) wrote :

I have just send a patch for review which implements the _base cleanup aspects of the blueprint. Its integrated into the nova compute manager, as opposed to being a separate script.

https://review.openstack.org/#change,2902

James Troup (elmo)
tags: added: canonistack
Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like this landed in E4. Please reopen if there is more to it.

Changed in nova:
status: Confirmed → Fix Released
Revision history for this message
Bolke de Bruin (bolke-de-bruin) wrote :

What happens if I trun on the cleanup and I have instances residing on a glusterfs. Briefly reading the code (Ubuntu essex release) the image does not get marked in use and will be removed. Is that correct?

If so, would this be configurable let's say with a "instances_path_is_shared" flag?

Revision history for this message
Michael Still (mikal) wrote :

Bolke -- that's not currently the case. If you want this functionality you should file a separate bug for it. However, with a shared instances directory you're best off disabling the cache manager entirely at the moment.

Revision history for this message
Dave Walker (davewalker) wrote :

Marking Ubuntu task as fix released, as this should be included with Essex-4 milestone and above. If this is not the case, please re-adjust the status as appropriate. Thanks.

Changed in nova (Ubuntu):
status: Confirmed → 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.