** Also affects: glance/ussuri
   Importance: Undecided
       Status: New

** Also affects: glance/victoria
   Importance: Undecided
       Status: New

** Also affects: glance/wallaby
   Importance: Undecided
       Status: New

** Also affects: glance/xena
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1938265

Title:
  Nova snapshot fail with multiple rbd stores

Status in Glance:
  New
Status in Glance ussuri series:
  New
Status in Glance victoria series:
  New
Status in Glance wallaby series:
  New
Status in Glance xena series:
  New

Bug description:
  As of now, with multi store enabled, adding a new location to an image
  will make the add_location API call to fail if the store metadata is
  missing:

  Code in glance: 
https://github.com/openstack/glance/blob/master/glance/location.py#L134
  Then in glance_store: 
https://github.com/openstack/glance_store/blob/master/glance_store/location.py#L111

  This will raise a "KeyError: None" and raise a very standard "Invalid
  Location" 400 error when adding a new location.

  Point is, with a rbd backend, nova never specify this metadata when
  creating the image during the direct snapshot process (flatten the
  image directly in ceph image pool + adding the location directly in
  glance), so snapshot will always fail.

  
  A solution can be to infer the backend from the location uri, like we do 
during the store metadata lazy population.

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


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to