Public bug reported:

When we pass internalURL for glance-cache-manage by exporting environment 
variable "GLANCE_ENDPOINT_TYPE=internalURL",
it doesn't get the endpoint for internalURL from glance, rather it gets public 
endpoint.

The code snippet from the below link:

https://github.com/openstack/glance/blob/stable/mitaka/glance/common/auth.py#L215-L217

Here while retrieving endpoint for glance service, there is no
feasibility to pass endpoint_type, so it fetches by default
endpoint_type which is publicURL. In most cases cache manage and other
APIs communicates with internalURL/adminURL only and should not
communicate to publicURL. So it is required to allow users to specify
which endpoint to choose.

** Affects: glance
     Importance: Undecided
     Assignee: Kairat Kushaev (kkushaev)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Kairat Kushaev (kkushaev)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1638193

Title:
  Cannot specify endpoint type when managing glance cache

Status in Glance:
  New

Bug description:
  When we pass internalURL for glance-cache-manage by exporting environment 
variable "GLANCE_ENDPOINT_TYPE=internalURL",
  it doesn't get the endpoint for internalURL from glance, rather it gets 
public endpoint.

  The code snippet from the below link:

  
https://github.com/openstack/glance/blob/stable/mitaka/glance/common/auth.py#L215-L217

  Here while retrieving endpoint for glance service, there is no
  feasibility to pass endpoint_type, so it fetches by default
  endpoint_type which is publicURL. In most cases cache manage and other
  APIs communicates with internalURL/adminURL only and should not
  communicate to publicURL. So it is required to allow users to specify
  which endpoint to choose.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1638193/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to