glance image-list fails with 'Expected endpoint'

Bug #1504058 reported by Flavio Percoco on 2015-10-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Medium
Flavio Percoco
Liberty
Medium
Flavio Percoco

Bug Description

glance image-list is failing w/ 'Expected Endpoint' because the right CLI args are not being passed to the function that creates the client instance.

Changed in python-glanceclient:
importance: Undecided → Medium
Itzik Brown (itzikb1) on 2015-10-08
Changed in python-glanceclient:
status: New → Confirmed

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

Changed in python-glanceclient:
status: Confirmed → In Progress
Alan Pevec (apevec) wrote :

Workaround is to specify explicit --os-image-api-version on the command line.

Reviewed: https://review.openstack.org/232461
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=36937bbf6300a468f0eb1da5461c2edeb8d47a44
Submitter: Jenkins
Branch: master

commit 36937bbf6300a468f0eb1da5461c2edeb8d47a44
Author: Flavio Percoco <email address hidden>
Date: Thu Oct 8 19:47:37 2015 +0900

    Use the subcomand parsed args instead of the base

    Pass the subcomand's arguments instead of the base ones to the endpoint
    creation call when quering the `/versions` endpoint. Passing the wrong
    arguments will end in the auth_requirement not being identified and an
    error 'Expected Endpoint' will be raised as no endpoint will be gotten
    from keystone.

    This patch also removes an unnecessary mock in the test code related to
    this fix.

    Depends-On Iefeb9bc123f8c65fecd0cba585ecd3eb349b23a6
    Change-Id: I46088130b9175798e3719e43f48dc474fbc8a251
    Closes-bug: #1504058

Changed in python-glanceclient:
status: In Progress → Fix Committed

Change abandoned by Flavio Percoco (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/232462
Reason: re-submitting from master

Reviewed: https://review.openstack.org/232462
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=57709f7538391c91c072e3eadbc4c6861ee79a30
Submitter: Jenkins
Branch: stable/liberty

commit 57709f7538391c91c072e3eadbc4c6861ee79a30
Author: Flavio Percoco <email address hidden>
Date: Thu Oct 8 19:47:37 2015 +0900

    Use the subcomand parsed args instead of the base

    Pass the subcomand's arguments instead of the base ones to the endpoint
    creation call when quering the `/versions` endpoint. Passing the wrong
    arguments will end in the auth_requirement not being identified and an
    error 'Expected Endpoint' will be raised as no endpoint will be gotten
    from keystone.

    This patch also removes an unnecessary mock in the test code related to
    this fix.

    Closes-bug: #1504058
    Change-Id: I46088130b9175798e3719e43f48dc474fbc8a251
    (cherry picked from commit 36937bbf6300a468f0eb1da5461c2edeb8d47a44)

Changed in python-glanceclient:
milestone: none → 1.2.0
status: Fix Committed → Fix Released

This issue was fixed in the openstack/python-glanceclient 1.1.1 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers