← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1220814] Re: fix _get_bdm_image_metadata and semantics

 

** Changed in: nova
       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/1220814

Title:
  fix _get_bdm_image_metadata and semantics

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  There are two issues to potentially address:

  1) _get_bdm_image_metadata currently returns a subset of metadata depending on which block device mapping is being examined.  For instance if the block is an image then return the properties metadata.  if the bdm is a volume, then we return the volume_image_metadata.  These should either be refactored out or the name should change somehow.
  2) The semantics are different between two types.  An image will return an empty dictionary if no properties exist (which makes sense because customers could have not metadata defined).  The volume will fail with an exception if no volume_image_metadata exists.  This should be addressed in some fashion.

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