diff options
author | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-06-21 07:48:35 +0000 |
---|---|---|
committer | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-11-21 09:33:08 +0200 |
commit | 303ac3f835f6741ac922abcdf5f153b7e9e1d07b (patch) | |
tree | 852ea687fbc59f4915680b9ce0fc8af72168e192 /releasenotes/notes/deprecated-inspector-opts-b19a08339712cfd7.yaml | |
parent | 3e84bdb6db67856558aa8ed167721e5e6e2599e6 (diff) | |
download | ironic-303ac3f835f6741ac922abcdf5f153b7e9e1d07b.tar.gz |
Use adapters for inspectorclient
Inspector-client is a bit lacking behind other clients, as it does not
have Adapter-based SessionClient and thus does not support all
adapter-related options.
That's why we construct a session and an adapter from config section,
use adapter to resolve inspector API from service catalog
(or return the fixed endpoint_override one)
and then pass the session and inspector API endpoint to client.
This patch also deprecates `[inspector]service_url` in favor of
`[inspector]endpoint_override`.
As a side-effect, addressig inspector service now supports both regions
and interfaces to specify entry in service catalog.
Also, inspectorclient calls are now being made with the user token
(wrapped with a service token) when there is a token in the task's
request context.
Change-Id: I21836e712fa9764468ac2654525554b5b4f03741
Partial-Bug: #1699547
Diffstat (limited to 'releasenotes/notes/deprecated-inspector-opts-b19a08339712cfd7.yaml')
-rw-r--r-- | releasenotes/notes/deprecated-inspector-opts-b19a08339712cfd7.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/releasenotes/notes/deprecated-inspector-opts-b19a08339712cfd7.yaml b/releasenotes/notes/deprecated-inspector-opts-b19a08339712cfd7.yaml new file mode 100644 index 000000000..b1603cc72 --- /dev/null +++ b/releasenotes/notes/deprecated-inspector-opts-b19a08339712cfd7.yaml @@ -0,0 +1,17 @@ +--- +deprecations: + - | + Configuration option ``[inspector]/service_url`` is deprecated + and will be ignored in the Rocky release. + Instead, use ``[inspector]/endpoint_override`` configuration option to set + specific ironic-inspector api address when automatic discovery of + inspector API endpoint from keystone catalog is not desired. + This new option has no default value (``None``) and must be set explicitly. + + - | + Relying on the value of ``[DEFAULT]/auth_strategy`` configuration option to + configure usage of standalone mode for inspector client is deprecated and + will be impossible the the Rocky release. + Instead, set ``[inspector]/auth_type`` configuration option to ``none`` and + provide the inspector API address as ``[inspector]/endpoint_override`` + configuration option. |