Glance metadata definitions requires v2 API

Bug #1516711 reported by Justin Pomeroy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Justin Pomeroy

Bug Description

The "Update Metadata" actions for images, flavors, etc. currently fetches the metadata definitions from glance to display in the metadata modal. The metadata definitions API was introduced with the v2 API and if this is not being used the user will get an error.

"Error: Unable to retrieve the namespaces"

To replicate, edit the file /etc/glance/glance-api.conf and set the following:

    enable_v1_api = true
    enable_v2_api = false

Then restart glance API.

Justin Pomeroy (jpomero)
Changed in horizon:
assignee: nobody → Justin Pomeroy (jpomero)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/246486

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/246486
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=0578023d881ab77fb6708ca39a99f772763ef1a6
Submitter: Jenkins
Branch: master

commit 0578023d881ab77fb6708ca39a99f772763ef1a6
Author: Justin Pomeroy <email address hidden>
Date: Tue Nov 17 10:19:59 2015 -0600

    Add version check for listing namespaces

    Listing metadata definitions namespaces requires glance API version
    2. This adds a check that makes sure an empty array is returned if
    any version less than 2 is being used.

    Closes-Bug: #1516711
    Partially-Implements: blueprint horizon-glance-v2
    Change-Id: Ifc0a091318296da06168f9701a280eb7357632c7

Changed in horizon:
status: In Progress → Fix Committed
Changed in horizon:
importance: Undecided → Medium
milestone: none → mitaka-1
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 9.0.0.0b1

This issue was fixed in the openstack/horizon 9.0.0.0b1 development milestone.

Changed in horizon:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/256627

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/liberty)

Change abandoned by David Lyle (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/256627
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

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.