ironic/ironic/common/glance_service
Pavlo Shchelokovskyy 7337fefd97 Refactor common keystone methods
- Split loading session and auth from config to separate functions,
  allow to override options loaded from config.
  This will lay ground to more efficiently load clients that allow
  passing in both session and auth plugin objects separately.

- When resoving a service endpoint, either fetch the requested interface,
  or first try 'internal' and then 'public'.
  This is done due to our config lacking any options to set the default
  interface for service endpoints to use, and we've used 'internal' by
  default, although DevStack has no such endpoints for most services
  any more [0].
  This will be changed again when gradually introducing usage of
  keystoneauth Adapters to ironic.

- Remove get_admin_token method, it was used only in glance-related code
  once, and was simply moved there.

[0] https://review.openstack.org/#/c/433272

Change-Id: I73b21098f15af4d0445f89fdd6ad4e4a42177df6
Partial-Bug: #1699547
2017-06-29 14:04:08 +03:00
..
v1 Remove unused methods from GlanceImageService 2017-05-31 16:47:11 +00:00
v2 Remove unused methods from GlanceImageService 2017-05-31 16:47:11 +00: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 Fetch Glance endpoint from Keystone if it's not provided in the configuration 2017-06-23 16:42:40 +02:00
service.py Remove unused methods from GlanceImageService 2017-05-31 16:47:11 +00:00
service_utils.py Refactor common keystone methods 2017-06-29 14:04:08 +03:00