termie / nova-migration-demo

Nova is a cloud computing fabric controller (the main part of an IaaS system). It is written in Python.
http://openstack.org/projects/compute/
Apache License 2.0
2 stars 0 forks source link

euca-deregister deletes wrong image #302

Open termie opened 13 years ago

termie commented 13 years ago

Steps to reproduce:- 1) Create ramdisk, kernel, machine images using glance upload.

2) $euca-describe-images IMAGE aki-00000002 (ipv6-kernel) private kernel IMAGE ari-00000001 (ipv6-ramdisk) private ramdisk IMAGE ami-00000003 (ipv6-disk-image) private machine aki-00000002 ari-00000001

3) Now try to deregister the ramdisk image using euca-deregister $euca-degister ami-000001

Here I am trying to delete the machine image with id 1 which doesn't exists. So I was expecting euca-deregister should give me some error message. But in this case it actually deletes the ramdisk image ari-00000001.


Imported from Launchpad using lp2gh.

termie commented 13 years ago

(by tpatil) Tested on nova revision 897 and glance revision 96.

termie commented 13 years ago

(by vishvananda) Nice catch

On Mar 28, 2011, at 12:41 PM, Tushar Patil wrote:

Tested on nova revision 897 and glance revision 96.

You received this bug notification because you are a member of Nova Bug Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/744519

Title: euca-degister - deletes wrong image (for GlanceImageService)

Status in OpenStack Compute (Nova): New

Bug description: Steps to reproduce:- 1) Create ramdisk, kernel, machine images using glance upload.

2) $euca-describe-images IMAGE aki-00000002 (ipv6-kernel) private kernel IMAGE ari-00000001 (ipv6-ramdisk) private ramdisk IMAGE ami-00000003 (ipv6-disk-image) private machine aki-00000002 ari-00000001

3) Now try to deregister the ramdisk image using euca-deregister $euca-degister ami-000001

Here I am trying to delete the machine image with id 1 which doesn't exists. So I was expecting euca-deregister should give me some error message. But in this case it actually deletes the ramdisk image ari-00000001.

termie commented 13 years ago

(by jaypipes) removed mention of GlanceImageService because this is agnostic to the underlying image service...