Cannot choose endpoint type when instantiated HTTPClient

Bug #1176197 reported by Carl Baldwin
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Undecided
Carl Baldwin

Bug Description

When HTTPClient gets instantiated (e.g. by the metadata agent or nova) it cannot pass the endpoint_type to get from the service catalog retrieved from auth_url. In the 2.2.0 client, this defaults to adminURL but may fallback to

Specifying endpoint_url is allowed but is not ideal since it requires a different hard-coded url value for each environment. It would be more convenient to specify the type and let keystone manage the actual urls internally.

Changed in python-quantumclient:
assignee: nobody → Carl Baldwin (carl-baldwin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-quantumclient (master)

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

Changed in python-quantumclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
Carl Baldwin (carl-baldwin) wrote :

Proposed an alternative change to master. Here are some notes about this change:

* Does not depend on https://review.openstack.org/#/c/28057 as the other one does.
  * Incorporates some of the change but not the fallback to publicURL behavior.
* Adds --endpoint-type option patterned after Nova's with a default taken from an environment variable.

See the patch set for details.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-quantumclient (master)

Reviewed: https://review.openstack.org/29157
Committed: http://github.com/openstack/python-quantumclient/commit/06375f089b9938f1db7f6abc4b2144df2ff6b4fd
Submitter: Jenkins
Branch: master

commit 06375f089b9938f1db7f6abc4b2144df2ff6b4fd
Author: Carl Baldwin <email address hidden>
Date: Tue Apr 30 15:20:10 2013 -0600

    Allow the HTTPClient consumer to pass endpoint_type.

    Changes the default behavior of the client. It will now choose
    publicURL by default rather than adminURL.

    Now allows the consumer to pass adminURL, internalURL or some other
    endpoint type when constructing a Client to override this default
    behavior.

    Adds --endpoint-type option to the shell client. Defaults to the
    environment variable OS_ENDPOINT_TYPE or publicURL. This was
    patterned after the same option in the Nova client.

    Adds a new exception type to handle the case where a suitable endpoint
    type is not found in the catalog. Without this, the exception
    encountered is a KeyError that was not clearly reported to the caller
    of the quantum command line.

    Change-Id: Iaffcaff291d433a605d8379dc89c1308096d36c2
    Fixes: Bug #1176197

Changed in python-quantumclient:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in python-neutronclient:
milestone: none → 2.2.1-2.2.6
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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