Can not delete the image has been launched instance when use rbd

Bug #1697391 reported by 赵明俊
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
赵明俊

Bug Description

Description
===========
When use rbd as nova and glance store backend, create an instance will directly clone image from glance, but the image did not do flatten, so When a image boot an instance, the image can not be deleted because it is in use.

There is a glance image property named 'img_linked_clone', used to control the association of image and instance, but it can not use in libvirt. if flatten the image after instance created, the association of image and instance will be broken, image and instance will be independent of each other.

Steps to reproduce
==================
A chronological list of steps which will bring off the
issue you noticed:
1.use rbd as the nova and glance backend.
2.upload a raw image.
3.use this image create an instance
4.try to delete the image

Expected result
===============
the image will be deleted.

Actual result
=============
the image can not be deleted

Environment
===========

TripleO(newton)
devstack(pike) with rbd

Tags: ceph libvirt
赵明俊 (falseuser)
tags: added: rbd
tags: added: ceph
removed: rbd
tags: added: libvirt
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/473362

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

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

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.