nova does not clean-up the second ephemeral disk when deleting an instance

Bug #1602193 reported by Nolwenn Cauchois
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Medium
Lee Yarwood

Bug Description

Description

A second ephemeral disk to be considered as an image, then the backing file is not deleted when it is anymore not used.
After some instance create/delete period, the hypervisor local storage capacities are reduced ... and will decrease and decrease.

Actual result on mitaka :

- boot an instance with a flavor with an ephemeral disk
- on the hypervisor, two backing files were created in $instances_path/_base. One for the image and an other one for the ephemeral disk
- delete of the previous instance
- if remove_unused_base_images = True, then after a while the backing file for image is deleted (if it's not used by another instance), but not the backing file for ephemeral disk

Expected result :

If it's not used by another instance, the backing file for ephemeral disk must be also deleted.

description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/341008

Changed in nova:
assignee: nobody → Nolwenn Cauchois (nolwenn)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/341008
Reason: This patch has been sitting unchanged for more than 12 weeks. I am therefore going to abandon it to keep the nova review queue sane. Please feel free to restore the change if you're still working on it.

Revision history for this message
Sean Dague (sdague) wrote :

Automatically discovered version mitaka in description. If this is incorrect, please update the description to include 'nova version: ...'

tags: added: openstack-version.mitaka
Revision history for this message
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing the status back to the previous state and unassigning. If there are active reviews related to this bug, please include links in comments.

Changed in nova:
status: In Progress → New
assignee: Nolwenn Cauchois (nolwenn) → nobody
Changed in nova:
assignee: nobody → Sean Dague (sdague)
status: New → In Progress
Revision history for this message
Sean Dague (sdague) wrote :

I restored the old patch, it seems to have been abandoned prematurely.

Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Stephen Finucane (<email address hidden>) on branch: master
Review: https://review.openstack.org/341008
Reason: This has been here for some time with no updates. Abandoning to clean up the review queue

Changed in nova:
assignee: Sean Dague (sdague) → Surya Seetharaman (tssurya)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/689422

Matt Riedemann (mriedem)
tags: added: image-cache
Changed in nova:
assignee: Surya Seetharaman (tssurya) → Lee Yarwood (lyarwood)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 23.0.0.0rc1

This issue was fixed in the openstack/nova 23.0.0.0rc1 release candidate.

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.