yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09866
[Bug 1280532] [NEW] Detach volume fails with "Unexpected KeyError" in EC2 interface.
Public bug reported:
Detach volume fails with "Unexpected KeyError" in EC2 interface when I
detach a "attaching" status volume.
The volume with "attaching" status don't contain a
property"instance_uuid", a KeyError will be raised at the following
function.
def _get_instance_from_volume(self, context, volume):
if volume['instance_uuid']:
......
Attaching volume dict:
{
'status': u'attaching',
'volume_type_id': u'None',
'display_name': None,
'attach_time': '',
'availability_zone': u'nova',
'created_at': u'2014-02-13T16: 50: 53.620080',
'attach_status': 'detached',
'display_description': None,
'volume_metadata': {
},
'snapshot_id': None,
'mountpoint': '',
'id': u'99d118ee-3666-4983-8825-f8c096bccbd1',
'size': 1
}
** Affects: nova
Importance: Undecided
Assignee: Rui Chen (kiwik-chenrui)
Status: New
** Tags: ec2
** Changed in: nova
Assignee: (unassigned) => Rui Chen (kiwik-chenrui)
--
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/1280532
Title:
Detach volume fails with "Unexpected KeyError" in EC2 interface.
Status in OpenStack Compute (Nova):
New
Bug description:
Detach volume fails with "Unexpected KeyError" in EC2 interface when I
detach a "attaching" status volume.
The volume with "attaching" status don't contain a
property"instance_uuid", a KeyError will be raised at the following
function.
def _get_instance_from_volume(self, context, volume):
if volume['instance_uuid']:
......
Attaching volume dict:
{
'status': u'attaching',
'volume_type_id': u'None',
'display_name': None,
'attach_time': '',
'availability_zone': u'nova',
'created_at': u'2014-02-13T16: 50: 53.620080',
'attach_status': 'detached',
'display_description': None,
'volume_metadata': {
},
'snapshot_id': None,
'mountpoint': '',
'id': u'99d118ee-3666-4983-8825-f8c096bccbd1',
'size': 1
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1280532/+subscriptions
Follow ups
References