nova.utils.get_ksa_adapter()
Provide a new method:
nova.utils.get_ksa_adapter(service_type, ks_auth=None, ks_session=None,
min_version=None, max_version=None))
...to configure a keystoneauth1 Adapter for a service. The Adapter, and
its component keystoneauth1 artifacts not passed into the method, are
loaded based on options in the conf group corresponding to the specified
service_type.
The ultimate goal is to replace the various disparate mechanisms used by
different services to do endpoint URL and version discovery. In Queens,
the original mechanisms will still take precedence, but (other than
[glance]api_servers - see the spec) will be deprecated. In Rocky, the
deprecated options will be removed.
This change incorporates the above utility into endpoint discovery for
glance and ironic. Future change sets will do the same for other
services (cinder, neutron, placement).
Change-Id: If625411f40be0ba642baeb02950f568f43673655
Partial-Implements: bp use-ksa-adapter-for-endpoints
Closes-Bug: #1707860
2017-04-19 17:03:17 -05:00
|
|
|
---
|
|
|
|
upgrade:
|
|
|
|
- |
|
|
|
|
Nova now uses keystoneauth1 configuration to set up communication with the
|
2017-08-04 16:54:08 -05:00
|
|
|
image service. Use keystoneauth1 loading parameters for Session and
|
nova.utils.get_ksa_adapter()
Provide a new method:
nova.utils.get_ksa_adapter(service_type, ks_auth=None, ks_session=None,
min_version=None, max_version=None))
...to configure a keystoneauth1 Adapter for a service. The Adapter, and
its component keystoneauth1 artifacts not passed into the method, are
loaded based on options in the conf group corresponding to the specified
service_type.
The ultimate goal is to replace the various disparate mechanisms used by
different services to do endpoint URL and version discovery. In Queens,
the original mechanisms will still take precedence, but (other than
[glance]api_servers - see the spec) will be deprecated. In Rocky, the
deprecated options will be removed.
This change incorporates the above utility into endpoint discovery for
glance and ironic. Future change sets will do the same for other
services (cinder, neutron, placement).
Change-Id: If625411f40be0ba642baeb02950f568f43673655
Partial-Implements: bp use-ksa-adapter-for-endpoints
Closes-Bug: #1707860
2017-04-19 17:03:17 -05:00
|
|
|
Adapter setup in the ``[glance]`` conf section. This includes using
|
|
|
|
``endpoint_override`` in favor of ``api_servers``. The
|
|
|
|
``[glance]api_servers`` conf option is still supported, but should only be
|
|
|
|
used if you need multiple endpoints and are unable to use a load balancer
|
2017-08-04 16:54:08 -05:00
|
|
|
for some reason. However, note that no configuration is necessary with an
|
|
|
|
appropriate service catalog entry for the image service.
|