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.
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.
@Ian:
When we pass internalURL for glance-cache-manage by exporting environment variable "GLANCE_ ENDPOINT_ TYPE=internalUR L",
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.