nova: add parameters to configure nova::cron::archive_deleted_rows

This patch adds new parameter to configure the crontab in charge of
archiving the deleted rows in Nova database.
The defaults were hard coded but now our operators can override it.
New parameters:
  NovaCronDBArchivedMinute
  NovaCronDBArchivedHour
  NovaCronDBArchivedMonthday
  NovaCronDBArchivedMonth
  NovaCronDBArchivedWeekday

Note: the default didn't change for backward compatibility.

Closes-Bug: #1783155
Change-Id: I786179e1604ccf192826b012992cc88dacdd2b87
This commit is contained in:
Emilien Macchi 2018-07-23 14:39:49 -04:00
parent 7499685bcd
commit 0b5efadbf7
1 changed files with 30 additions and 0 deletions

View File

@ -85,6 +85,31 @@ parameters:
e.g. { nova-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
default: {}
type: json
NovaCronDBArchivedMinute:
type: string
description: >
Cron to move deleted instances to another table that doesn't need backup - Minute
default: '1'
NovaCronDBArchivedHour:
type: string
description: >
Cron to move deleted instances to another table that doesn't need backup - Hour
default: '0'
NovaCronDBArchivedMonthday:
type: string
description: >
Cron to move deleted instances to another table that doesn't need backup - Month Day
default: '*'
NovaCronDBArchivedMonth:
type: string
description: >
Cron to move deleted instances to another table that doesn't need backup - Month
default: '*'
NovaCronDBArchivedWeekday:
type: string
description: >
Cron to move deleted instances to another table that doesn't need backup - Week Day
default: '*'
conditions:
nova_workers_zero: {equals : [{get_param: NovaWorkers}, 0]}
@ -168,6 +193,11 @@ outputs:
nova::api::neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
nova::api::instance_name_template: {get_param: InstanceNameTemplate}
nova_enable_db_purge: {get_param: NovaEnableDBPurge}
nova::cron::archive_deleted_rows::minute: {get_param: NovaCronDBArchivedMinute}
nova::cron::archive_deleted_rows::hour: {get_param: NovaCronDBArchivedHour}
nova::cron::archive_deleted_rows::monthday: {get_param: NovaCronDBArchivedMonthday}
nova::cron::archive_deleted_rows::month: {get_param: NovaCronDBArchivedMonth}
nova::cron::archive_deleted_rows::weekday: {get_param: NovaCronDBArchivedWeekday}
nova_enable_db_archive: {get_param: NovaEnableDBArchive}
nova::policy::policies: {get_param: NovaApiPolicies}
-