python-quantumclient uses adminURL, not publicURL by default.

Bug #1123383 reported by dan wendlandt
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-neutronclient
In Progress
Medium
Carl Baldwin

Bug Description

The quantum client seems to be hard coded to use the adminURL from the keystone catalog.

Is there a way to have it use the publicURL?

If not, are there any plans to add something like OS_ENDPOINT_TYPE or --endpoint-type support?

If no plans, any objections to adding this functionality?

Revision history for this message
dan wendlandt (danwent) wrote :

seems like the default should be publicURL, based on Nova's client code.

In general, I think we want to be aligned with what other clients do, so if they have an --endpoint-type option, I would be happy to have it added to pythonquantumclient.

affects: quantum → python-quantumclient
Changed in python-quantumclient:
milestone: none → 3.0.0
Revision history for this message
Mark McClain (markmcclain) wrote :

This feature is already something I've added to the python API changes I've been making.

Changed in python-quantumclient:
assignee: nobody → Mark McClain (markmcclain)
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/28057

Changed in python-quantumclient:
assignee: Mark McClain (markmcclain) → Carl Baldwin (carl-baldwin)
status: New → In Progress
Revision history for this message
yong sheng gong (gongysh) wrote :

If other projects use public endpoint, we should make this public endpoint default and further we can provide a command option so that user can use other endpoint.

Changed in python-quantumclient:
importance: Undecided → Medium
Revision history for this message
Jack McCann (jack-mccann) wrote :

I agree we should provide a command line option so user can specify endpoint type (public, admin, etc.). This can be addressed as a separate change. There is still the question of what is the default when user does not specify endpoint type. One could argue that if the user does not specify the endpoint type, they should not care which endpoint type they get back. By changing the default behavior from adminURL to publicURL, we run the risk of breaking the client for existing deployments that currently always use adminURL. The change proposed in https://review.openstack.org/28057 uses adminURL if present, otherwise it uses publicURL. This maintains compatibility with existing deployments, and also supports future deployments that do not wish to expose an adminURL endpoint.

Revision history for this message
Jack McCann (jack-mccann) wrote :

As a data point, nova and cinder behavior as documented in the CLI guide:

From http://docs.openstack.org/cli/quick-start/content/nova_client.html

    --endpoint-type <endpoint-type>
                             Defaults to env[NOVA_ENDPOINT_TYPE] or publicURL.

From http://docs.openstack.org/cli/quick-start/content/cinder_client.html

  --endpoint-type <endpoint-type>
                        Defaults to env[CINDER_ENDPOINT_TYPE] or publicURL.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

Other bug subscribers

Related questions

Remote bug watches

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