yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #58253
[Bug 1638193] [NEW] Cannot specify endpoint type when managing glance cache
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