← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1145490] [NEW] ec2 id mapping can be incorrect during attach volume

 

Public bug reported:

Leads to a 404 when trying to attach to an instance:

2013-03-04 15:09:58 DEBUG nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 action: AttachVolume _call_ /usr/lib/python2.7/dist-packages/nova/api/ec2/_init_.py:328
2013-03-04 15:09:58 DEBUG nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 arg: InstanceId val: i-00001534 _call_ /usr/lib/python2.7/dist-packages/nova/api/ec2/_init_.py:330
2013-03-04 15:09:58 DEBUG nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 arg: VolumeId val: vol-000000d0 _call_ /usr/lib/python2.7/dist-packages/nova/api/ec2/_init_.py:330
2013-03-04 15:09:58 DEBUG nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 arg: Device val: /dev/vdc _call_ /usr/lib/python2.7/dist-packages/nova/api/ec2/_init_.py:330
2013-03-04 15:09:58 INFO nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 InstanceNotFound raised: Instance 5428 could not be found.
2013-03-04 15:09:58 ERROR nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 InstanceNotFound: Instance i-00001534 could not be found.

This is due to some code paths using the instance id from the instances
table instead of the mapping table.

** Affects: nova
     Importance: Undecided
         Status: Invalid

** Affects: nova/folsom
     Importance: High
     Assignee: Vish Ishaya (vishvananda)
         Status: In Progress

** Also affects: nova/folsom
   Importance: Undecided
       Status: New

** Changed in: nova
       Status: New => Invalid

** Changed in: nova/folsom
   Importance: Undecided => High

-- 
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/1145490

Title:
  ec2 id mapping can be incorrect during attach volume

Status in OpenStack Compute (Nova):
  Invalid
Status in OpenStack Compute (nova) folsom series:
  In Progress

Bug description:
  Leads to a 404 when trying to attach to an instance:

  2013-03-04 15:09:58 DEBUG nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 action: AttachVolume _call_ /usr/lib/python2.7/dist-packages/nova/api/ec2/_init_.py:328
  2013-03-04 15:09:58 DEBUG nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 arg: InstanceId val: i-00001534 _call_ /usr/lib/python2.7/dist-packages/nova/api/ec2/_init_.py:330
  2013-03-04 15:09:58 DEBUG nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 arg: VolumeId val: vol-000000d0 _call_ /usr/lib/python2.7/dist-packages/nova/api/ec2/_init_.py:330
  2013-03-04 15:09:58 DEBUG nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 arg: Device val: /dev/vdc _call_ /usr/lib/python2.7/dist-packages/nova/api/ec2/_init_.py:330
  2013-03-04 15:09:58 INFO nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 InstanceNotFound raised: Instance 5428 could not be found.
  2013-03-04 15:09:58 ERROR nova.api.ec2 req-05eacb09-2823-4e1a-8795-5a07078957ac f323106c06e3464bb24f3b9a24adc993 1c1abd0ba1fa4aec932386731b974fb0 InstanceNotFound: Instance i-00001534 could not be found.

  This is due to some code paths using the instance id from the
  instances table instead of the mapping table.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1145490/+subscriptions


Follow ups

References