← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1280532] Re: Detach volume fails with "Unexpected KeyError" in EC2 interface.

 

** Changed in: nova/havana
       Status: Fix Committed => Fix Released

-- 
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):
  Fix Released
Status in OpenStack Compute (nova) havana series:
  Fix Released
Status in OpenStack Compute (nova) icehouse series:
  Fix Released

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


References