[dashboard] Using v1 glanceclient causes Images panel to throw HTTPMultipleChoices

Bug #1675171 reported by Felipe Monteiro
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Felipe Monteiro

Bug Description

Currently, a HTTPMultipleChoices is being thrown when going to app-catalog/images in Horizon, with details: "Requested version of OpenStack Images API is not available."

Because the v1 glanceclient has already been deprecated and will probably be removed during Pike [0], it is necessary to remove glanceclient v1 dependency from murano dashboard as much as possible (if not all together). Especially since it is already causing problems in the dashboard.

[0] https://review.openstack.org/#/c/328390/

Revision history for this message
Felipe Monteiro (fm577c) wrote :

See screenshot.

Changed in murano:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-dashboard (master)

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

Changed in murano:
assignee: nobody → Felipe Monteiro (fm577c)
status: New → In Progress
Changed in murano:
assignee: Felipe Monteiro (fm577c) → zhurong (zhu-rong)
Changed in murano:
assignee: zhurong (zhu-rong) → Felipe Monteiro (fm577c)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-dashboard (master)

Reviewed: https://review.openstack.org/448790
Committed: https://git.openstack.org/cgit/openstack/murano-dashboard/commit/?id=273ed4797e2b3b8ce962bf82e8c993e61955966e
Submitter: Jenkins
Branch: master

commit 273ed4797e2b3b8ce962bf82e8c993e61955966e
Author: Felipe Monteiro <email address hidden>
Date: Wed Mar 22 20:55:51 2017 +0000

    Update glanceclient from v1 to v2 to avoid deprecation errors.

    Currently, the app-catalog/images view in Horizon is throwing
    a 300 HttpMultipleChoices exception, with the details:
    "Requested version of OpenStack Images API is not available."

    Also, the glance v1 client is deprecated, so we should move to glance
    v2 wherever possible.

    This patch, therefore, removes glanceclient v1 dependency
    from murano dashboard as much as possible, especially
    given that Glance team intends on removing it from Pike [0].

    The only remaining places where the glanceclient v1 is kept
    are:
      - in _ensure_images in muranodashboard/packages/views.py,
        which uses copy_from functionality from glanceclient v1 to load
        images automatically.
      - done in ImportPackageWizard, which sets each package to
        public if the image that was uploaded was public

    [0] https://review.openstack.org/#/c/328390/

    Closes-Bug: #1675171
    Partially-Implements blueprint: migrate-to-glance-v2
    Change-Id: Id5348bc34216d5f5ed7fbb8caf71139d64db3f61

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano-dashboard 4.0.0.0b2

This issue was fixed in the openstack/murano-dashboard 4.0.0.0b2 development milestone.

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.