Nova snapshot fail with multiple rbd stores

Bug #1938265 reported by Victor Coutellier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Unassigned
Ussuri
New
Undecided
Unassigned
Victoria
New
Undecided
Unassigned
Wallaby
New
Undecided
Unassigned
Xena
New
Undecided
Unassigned

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.

summary: - nova-snapshot-fail-multi-store-rbd
+ Nova snapshot fail with multiple rbd stores
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.