Remove deprecated Manila PGNum parameters

When deploying Manila with Ceph back end you get the
following message:

"WARNING: Following parameter(s) are deprecated and still defined.
Deprecated parameters will be removed soon! ManilaCephFSDataPoolPGNum,
ManilaCephFSMetadataPoolPGNum"

These have been deprecated since Stein[1], so let's remove them.

[1] https://review.opendev.org/#/c/667586/
Change-Id: Id8132d25591768f265b6779d85c5cc14e6838bae
This commit is contained in:
Tom Barron 2020-08-19 09:26:14 -04:00
parent ef83e08422
commit 798010faba
4 changed files with 9 additions and 26 deletions

View File

@ -67,8 +67,6 @@ parameter_defaults:
CephAnsibleEnvironmentVariables:
ANSIBLE_SSH_RETRIES: 4
DEFAULT_FORKS: 3
ManilaCephFSDataPoolPGNum: 16
ManilaCephFSMetadataPoolPGNum: 16
NovaEnableRbdBackend: true
GlanceBackend: rbd
CeilometerEnableGnocchi: true

View File

@ -170,14 +170,6 @@ parameters:
ManilaCephFSMetadataPoolName:
default: manila_metadata
type: string
# start DEPRECATED options for compatibility with older versions
ManilaCephFSDataPoolPGNum:
default: 128
type: number
ManilaCephFSMetadataPoolPGNum:
default: 128
type: number
# end DEPRECATED options for compatibility with older versions
ManilaCephFSShareBackendName:
default: cephfs
type: string
@ -333,16 +325,12 @@ parameter_groups:
- label: deprecated
description: Do not use deprecated params, they will be removed.
parameters:
- ManilaCephFSDataPoolPGNum
- ManilaCephFSMetadataPoolPGNum
- LocalCephAnsibleFetchDirectoryBackup
- SwiftFetchDirGetTempurl
- SwiftFetchDirPutTempurl
- CephIPv6
conditions:
deprecated_data_pool_pgnum: {not: {equals: [{get_param: ManilaCephFSDataPoolPGNum}, 128]}}
deprecated_metadata_pool_pgnum: {not: {equals: [{get_param: ManilaCephFSMetadataPoolPGNum}, 128]}}
dashboard_is_enabled: {equals: [{get_param: CephEnableDashboard}, true]}
custom_registry_host:
yaql:
@ -469,16 +457,8 @@ resources:
vars:
data: {get_param: ManilaCephFSDataPoolName}
metadata: {get_param: ManilaCephFSMetadataPoolName}
data_pg_num:
if:
- deprecated_data_pool_pgnum
- {get_param: ManilaCephFSDataPoolPGNum}
- {get_param: CephPoolDefaultPgNum}
metadata_pg_num:
if:
- deprecated_metadata_pool_pgnum
- {get_param: ManilaCephFSMetadataPoolPGNum}
- {get_param: CephPoolDefaultPgNum}
data_pg_num: {get_param: CephPoolDefaultPgNum}
metadata_pg_num: {get_param: CephPoolDefaultPgNum}
CephKeyVars:
type: OS::Heat::Value

View File

@ -24,7 +24,5 @@ parameter_defaults:
# Override defaults to get HEALTH_OK with 1 OSD (for testing only)
CephPoolDefaultSize: 1
CephPoolDefaultPgNum: 16
ManilaCephFSDataPoolPGNum: 16
ManilaCephFSMetadataPoolPGNum: 16
NovaReservedHostMemory: 512

View File

@ -0,0 +1,7 @@
---
upgrade:
- |
The deprecated``ManilaCephFSDataPoolPGNum`` and ``ManilaCephFSMetadataPoolPGNum``
parameters have been removed. As with the other Ceph pools, use the
``CephPoolDefaultPgNum`` parameter for the default value, or ``CephPools``
to override pg_num for specific pools.