yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09540
[Bug 1278696] [NEW] 'DescribeInstances' in ec2 shows wrong image-message to instance booting from volumes
Public bug reported:
'DescribeInstances' in ec2 shows the wrong image message('ami-00000002')
to the instance booting from a volume:
n781dba539a84:~ # euca-describe-instances i-0000003a
RESERVATION r-mdcwadip c1c092e1c88f4027aeb203d50d63135b
INSTANCE i-0000003a ami-00000002 wjvm1 running None (c1c092e1c88f4027aeb203d50d63135b, n781dba57c996) 0 m1.small 2014-02-10T07:00:40.000Z nova 20.20.16.12 ebs
BLOCKDEVICE /dev/vda vol-0000000d false
More info can be found here: http://paste.openstack.org/show/64087/
--------------
The codes in ec2utils.py:
def glance_id_to_id(context, glance_id):
"""Convert a glance id to an internal (db) id."""
if glance_id is None:
return
try:
return db.s3_image_get_by_uuid(context, glance_id)['id']
except exception.NotFound:
return db.s3_image_create(context, glance_id)['id']
------
The image_ref (as glance_id in this function) of the instance booting from a volume, will be "", not None.
The protected codes above can't take efforts.
** Affects: nova
Importance: Undecided
Assignee: wingwj (wingwj)
Status: New
** Tags: ec2
** Changed in: nova
Assignee: (unassigned) => wingwj (wingwj)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1278696
Title:
'DescribeInstances' in ec2 shows wrong image-message to instance
booting from volumes
Status in OpenStack Compute (Nova):
New
Bug description:
'DescribeInstances' in ec2 shows the wrong image
message('ami-00000002') to the instance booting from a volume:
n781dba539a84:~ # euca-describe-instances i-0000003a
RESERVATION r-mdcwadip c1c092e1c88f4027aeb203d50d63135b
INSTANCE i-0000003a ami-00000002 wjvm1 running None (c1c092e1c88f4027aeb203d50d63135b, n781dba57c996) 0 m1.small 2014-02-10T07:00:40.000Z nova 20.20.16.12 ebs
BLOCKDEVICE /dev/vda vol-0000000d false
More info can be found here: http://paste.openstack.org/show/64087/
--------------
The codes in ec2utils.py:
def glance_id_to_id(context, glance_id):
"""Convert a glance id to an internal (db) id."""
if glance_id is None:
return
try:
return db.s3_image_get_by_uuid(context, glance_id)['id']
except exception.NotFound:
return db.s3_image_create(context, glance_id)['id']
------
The image_ref (as glance_id in this function) of the instance booting from a volume, will be "", not None.
The protected codes above can't take efforts.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1278696/+subscriptions
Follow ups
References