Don't use swift backend for introspection data

This adds a new tht parameter to set introspection
data storage backend.

As we plan to remove swift from undercloud, we change
this to database for it.

Change-Id: Icc8a9e2c80660b0dcc29a75183550917667d030c
This commit is contained in:
ramishra 2021-01-28 17:31:20 +05:30
parent cff1618e40
commit c35df2f7c3
3 changed files with 36 additions and 3 deletions

View File

@ -150,8 +150,16 @@ parameters:
default: {}
IronicInspectorUseSwift:
default: true
description: Whether to use Swift for storing introspection data.
description: |
DEPRECATED: Use IronicInspectorStorageBackend instead.
Whether to use Swift for storing introspection data.
type: boolean
IronicInspectorStorageBackend:
default: 'none'
description: Storage backend for storing introspection data.
type: string
constraints:
- allowed_values: ['none', 'swift', 'database']
IronicIPXEPort:
default: 8088
description: Port to use for serving images when iPXE is used.
@ -176,9 +184,23 @@ parameters:
'2001:db8::/64': 'physnet_b'
type: json
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:
- IronicInspectorIpRange
- IronicInspectorUseSwift
conditions:
enable_ipxe: {equals : [{get_param: IronicInspectorIPXEEnabled}, true]}
use_swift: {equals : [{get_param: IronicInspectorUseSwift}, true]}
use_swift:
or:
- equals: [{get_param: IronicInspectorUseSwift}, true]
- equals: [{get_param: IronicInspectorStorageBackend}, 'swift']
enable_node_discovery: {equals : [{get_param: IronicInspectorEnableNodeDiscovery}, true]}
ironic_inspection_subnets_not_set: {equals : [{get_param: IronicInspectorSubnets}, {}]}
enable_architecture_ppc64le: {contains: ['ppc64le', {get_param: AdditionalArchitectures}]}
@ -336,7 +358,7 @@ outputs:
ironic::inspector::swift::user_domain_name: 'Default'
ironic::inspector::swift::project_domain_name: 'Default'
ironic::inspector::swift::region_name: {get_param: KeystoneRegion}
- {}
- ironic::inspector::store_data: {get_param: IronicInspectorStorageBackend}
-
if:
- enable_node_discovery

View File

@ -131,6 +131,8 @@ parameter_defaults:
IronicInspectorInterface: br-ctlplane
# IronicInspectorSubnets:
# - ip_range: '192.168.24.100,192.168.24.200'
IronicInspectorUseSwift: false
IronicInspectorStorageBackend: 'database'
IronicProvisioningNetwork: 'ctlplane'
IronicRescuingNetwork: 'ctlplane'
NeutronServicePlugins: router,segments

View File

@ -0,0 +1,9 @@
---
features:
- |
Adds a new ``IronicInspectorStorageBackend`` parameter that can be used
to set the storage backend for introspection data.
deprecations:
- |
The ``IronicInspectorUseSwift`` parameter has been deprecated in favor of
``IronicInspectorStorageBackend`` and will be removed in a future release.