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 /api-ref | |
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 'api-ref')
0 files changed, 0 insertions, 0 deletions