ironic/ironic/common/glance_service
Dmitry Tantsur 83dd6a1c0e Auto-detect the defaults for [glance]swift_{account,temp_url_key,endpoint_url}
In many cases, including devstack and TripleO, the swift account to use
is based on the project_id of the 'service' project, so it makes sense
to use it as a default.

Similarly, the temporary URL key can be fetches from Swift, using HEAD
on the account used to access it.

In both cases it is assumed that the same project is used by Ironic
and Glance to access Swift. Explicit values have to be provided
otherwise.

Finally, the endpoint URL can be fetched from the service catalog. Care
is taken to strip the /v1/AUTH_<tenant ID> suffix.

Closes-Bug: #1737714
Change-Id: I701899928f0f780939f17aabc59eb90593ba95f0
2017-12-12 11:48:06 +01:00
..
v1 Remove unused methods from GlanceImageService 2017-05-31 16:47:11 +00:00
v2 Auto-detect the defaults for [glance]swift_{account,temp_url_key,endpoint_url} 2017-12-12 11:48:06 +01:00
__init__.py Move glance image service client from nova and cinder into ironic 2013-08-12 22:34:41 +02:00
base_image_service.py Rework keystone auth for glance 2017-11-17 11:40:14 -05:00
service.py Remove unused methods from GlanceImageService 2017-05-31 16:47:11 +00:00
service_utils.py Rework keystone auth for glance 2017-11-17 11:40:14 -05:00