Command line client fails without endpoint

Bug #1443436 reported by Thomas Herve
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-barbicanclient
Fix Released
High
Juan Antonio Osorio Robles

Bug Description

Since 5ed2e70f9f38e46c5af36d1e9c4eb4e24568bc5a, most shell calls fail like this:

$ barbican secret list
Invalid URL u'/v1/secrets': No schema supplied. Perhaps you meant http:///v1/secrets?

_base_url is not used everywhere. endpoint defaults to the empty value, which may be one of the issues.

Revision history for this message
Juan Antonio Osorio Robles (juan-osorio-robles) wrote :

What python version are you using?

Changed in python-barbicanclient:
assignee: nobody → Juan Antonio Osorio Robles (juan-osorio-robles)
Changed in python-barbicanclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-barbicanclient (master)

Reviewed: https://review.openstack.org/172958
Committed: https://git.openstack.org/cgit/openstack/python-barbicanclient/commit/?id=3f84b0c5c3dccecb5e535575c64ebfc21549158a
Submitter: Jenkins
Branch: master

commit 3f84b0c5c3dccecb5e535575c64ebfc21549158a
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Mon Apr 13 18:17:52 2015 +0300

    Use keystoneclient to get endpoint if it's empty

    We used to rely on keystoneclient code to get the proper endpoint from
    keystone if it was not provided in the command line or as an
    environment variable. This changed in a recent commit. So now that we
    are using an adapter for the keystone sessions, we use the function
    provided by that adapter.

    Change-Id: I927a105831642d4fb00691ea2a97e27e79ebc7fd
    Closes-Bug: #1443436

Changed in python-barbicanclient:
status: In Progress → Fix Committed
Changed in python-barbicanclient:
importance: Undecided → High
milestone: none → 3.1.1
Changed in python-barbicanclient:
status: Fix Committed → Fix Released
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.