Change authentication method for Mellanox sdn controller

Change sdn authentication from basic(username,password) to token
authentication, deprecate MlnxSDNUsername and MlnxSDNPassword
and add a new parameter "MlnxSDNToken" to authenticate sdn controller

Depends-on: https://review.opendev.org/c/openstack/puppet-neutron/+/814554
Change-Id: Icf39bbd3621423f350275d5183071987719622e1
This commit is contained in:
waleedm 2021-10-19 11:17:41 +00:00 committed by waleed mousa
parent 067211b74f
commit d98009ae49
3 changed files with 29 additions and 6 deletions

View File

@ -32,11 +32,15 @@ parameters:
description: The container image to use for the neutron config_volume
type: string
MlnxSDNUsername:
description: The username for the SDN server.
description: DEPRECATED, The username for the SDN server.
type: string
MlnxSDNPassword:
type: string
description: The password for the SDN server.
description: DEPRECATED, The password for the SDN server.
hidden: true
MlnxSDNToken:
description: The token for the SDN server.
type: string
hidden: true
MlnxSDNUrl:
description: SDN server URL
@ -55,6 +59,17 @@ parameters:
type: string
default: 'datacentre'
parameter_groups:
- label: deprecated
description: |
The following parameters are deprecated and will be removed. They should not
be relied on for new deployments. If you have concerns regarding deprecated
parameters, please contact the TripleO development team on IRC or the
Openstack mailing list.
parameters:
- MlnxSDNUsername
- MlnxSDNPassword
resources:
NeutronMl2Base:
type: ./neutron-plugin-ml2.yaml
@ -73,8 +88,7 @@ outputs:
config_settings:
map_merge:
- get_attr: [NeutronMl2Base, role_data, config_settings]
- neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_username: {get_param: MlnxSDNUsername}
neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_password: {get_param: MlnxSDNPassword}
neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_token: {get_param: MlnxSDNToken}
neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_url: {get_param: MlnxSDNUrl}
neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sdn_domain: {get_param: MlnxSDNDomain}
neutron::plugins::ml2::mellanox::mlnx_sdn_assist::sync_enabled: {get_param: MlnxSDNSyncEnabled}

View File

@ -5,8 +5,7 @@ resource_registry:
parameter_defaults:
MlnxSDNUsername: 'sdn_username'
#MlnxSDNPassword:
MlnxSDNToken: 'sdn_token'
MlnxSDNUrl: 'sdn_url'
MlnxSDNDomain: 'cloudx'
MlnxSDNSyncEnabled: true

View File

@ -0,0 +1,10 @@
---
deprecations:
- |
The MlnxSDNUsername and MlnxSDNPassword have been deprecated
and have no effect
other:
- |
A new param MlnxSDNToken has been added to authenticate sdn
controller