Add an --os-endpoint-type cli optional argument to be able to select endpoint interface type

Bug #1454392 reported by Roxana Gherle
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Roxana Gherle

Bug Description

User should be able to specify which endpoint URL the openstackclient should use - by setting an environment variable OS_INTERFACE which will be read by the openstack CLI. Depending on the OS_INTERFACE value, the openstackclient will use either public/admin/internal endpoint. Default will be admin if variable not set.

Changed in python-openstackclient:
assignee: nobody → Roxana Gherle (roxana-gherle)
status: New → In Progress
summary: - Allow selecting endpoint URL by using an OS_INTERFACE env variable
+ Allow selecting endpoint URL by setting an OS_INTERFACE env. variable
Revision history for this message
Terry Howe (thowe-g) wrote : Re: Allow selecting endpoint URL by setting an OS_INTERFACE env. variable

Shouldn't default be public?

Revision history for this message
Haneef Ali (haneef) wrote :

Keystoneclient defaults to "admin" interface. Keeping default=admin maintains backward compatibility

Revision history for this message
Dean Troyer (dtroyer) wrote :

OS_INTERFACE is not a good name for this function.

Some commands make calls to multiple APIs, do we know they will always use the same endpoint type?

Revision history for this message
Haneef Ali (haneef) wrote :

Can you suggest some other name? It is called interface_type in keystone. They can take the values "admin/internal/public".

As we have said if you set to interface type = "admin" it doesn't break anything. Do you know of any api which use "public" and "admin" for the same operation.

Revision history for this message
Haneef Ali (haneef) wrote :

Keystoneclient uses 'admin" by default, and all other services use "public" by default. So the current plan is to make keystoneclient use "public" by default, and add OS_INTERFACE_TYPE which defaults to "public"

summary: - Allow selecting endpoint URL by setting an OS_INTERFACE env. variable
+ Add an --os-endpoint-type cli optional argument to be able to select
+ endpoint interface type
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
importance: Undecided → Medium
Changed in python-openstackclient:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/198506
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=36391a81a3415d24c55d6bbc318157dc119da8a7
Submitter: Jenkins
Branch: master

commit 36391a81a3415d24c55d6bbc318157dc119da8a7
Author: TerryHowe <email address hidden>
Date: Sat Jul 4 09:32:16 2015 -0600

    Rename endpoint type to interface

    Change-Id: I4e21d09bc747e8210f4f79a1d6c4c7ccf2f25d1c
    Closes-Bug: #1454392

Changed in python-openstackclient:
milestone: none → 1.6.0
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.