diff options
author | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-06-21 07:46:03 +0000 |
---|---|---|
committer | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-12-14 13:36:03 +0200 |
commit | 4d43262955f8882cdeee2a042e852eaa8396178b (patch) | |
tree | 2a9a2e15712b316b9acac17e03bc7927191ecb69 /releasenotes/notes/deprecated-neutron-opts-2e1d9e65f00301d3.yaml | |
parent | 39a63602c7aefe2ea36999c64bb499435422ac59 (diff) | |
download | ironic-4d43262955f8882cdeee2a042e852eaa8396178b.tar.gz |
Use adapters for neutronclient
deprecates the following options in [neutron] section:
- url
- url_timeout
- auth_strategy
Changes some internal networking-related functions/methods
to accept a request context as optional keyword argument (defaults to
None).
This allows to pass a global request id to neutron client and
in future will simplify creating a user auth plugin from request
context.
For backward compatibility, when calling those functions/methods
without a request context, a dummy request context will be generated
automatically.
Change-Id: Ib327c7a141cfbca63b870027ad8e901c0f48bb2d
Partial-Bug: #1699547
Diffstat (limited to 'releasenotes/notes/deprecated-neutron-opts-2e1d9e65f00301d3.yaml')
-rw-r--r-- | releasenotes/notes/deprecated-neutron-opts-2e1d9e65f00301d3.yaml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/releasenotes/notes/deprecated-neutron-opts-2e1d9e65f00301d3.yaml b/releasenotes/notes/deprecated-neutron-opts-2e1d9e65f00301d3.yaml new file mode 100644 index 000000000..dd280e24b --- /dev/null +++ b/releasenotes/notes/deprecated-neutron-opts-2e1d9e65f00301d3.yaml @@ -0,0 +1,49 @@ +--- +deprecations: + - | + Configuration option ``[neutron]/url`` is deprecated + and will be ignored in the Rocky release. + Instead, use ``[neutron]/endpoint_override`` configuration option to set + specific neutron API address when automatic discovery of neutron API + endpoint from keystone catalog is not desired. + This option has no default value, and must be set explicitly + for a stand alone deployment of ironic and neutron + (when ``[neutron]/auth_type`` is set to ``none``), since the + service catalog is not available in this case. + Otherwise it is generally recommended to rely on keystone service catalog + for service endpoint discovery. + + - | + Configuration option ``[neutron]/url_timeout`` is deprecated + and will be ignored in the Rocky release. + Instead, use ``[neutron]/timeout`` configuration option. + This new option has no default value and must be set explicitly + to ``30`` to keep previous default behavior. + + - | + Configuration option ``[neutron]/auth_strategy`` is deprecated + and will be ignored in the Rocky release. + Instead, set ``[neutron]/auth_type`` configuration option to ``none``, + and provide neutron API address as ``[neutron]/endpoint_override`` + configuration option. + +other: + - | + Signatures of several networking-related functions/methods have been + changed to include request context as an optional keyword argument. + + The functions/methods in question are: + + - ``ironic.common.neutron.get_client`` + - ``ironic.common.neutron.unbind_neutron_port`` + - ``ironic.common.neutron.update_port_address`` + - ``ironic.common.neutron.validate_network`` + - ``ironic.common.neutron.NeutronNetworkInterfaceMixin.get_cleaning_network`` + - ``ironic.common.neutron.NeutronNetworkInterfaceMixin.get_provisioning_network`` + - ``ironic.dhcp.neutron.NeutronDHCPApi.update_port_dhcp_opts`` + - ``ironic.dhcp.none.NeutronDHCPApi.update_port_dhcp_opts`` + + If you are using any of the above functions/methods in your out-of-tree + ironic driver or driver interface code, you should update the code + to pass an instance of ``ironic.common.context.RequestContext`` class + as a ``context`` keyword argument to those functions/methods. |