diff --git a/manifests/profile/base/nova/api.pp b/manifests/profile/base/nova/api.pp index e120d7aab..0785561cf 100644 --- a/manifests/profile/base/nova/api.pp +++ b/manifests/profile/base/nova/api.pp @@ -144,9 +144,13 @@ class tripleo::profile::base::nova::api ( } if $step >= 5 { - if hiera('nova_enable_db_purge', true) { + if hiera('nova_enable_db_archive', true) { include ::nova::cron::archive_deleted_rows + if hiera('nova_enable_db_purge', true) { + include ::nova::cron::purge_shadow_tables + } } + # At step 5, we consider all nova-compute services started and registred to nova-conductor # So we want to update Nova Cells database to be aware of these hosts by executing the # nova-cell_v2-discover_hosts command again. diff --git a/releasenotes/notes/add-purge-tables-4f2de7c7e12ccf0c.yaml b/releasenotes/notes/add-purge-tables-4f2de7c7e12ccf0c.yaml new file mode 100644 index 000000000..7e3f4fc73 --- /dev/null +++ b/releasenotes/notes/add-purge-tables-4f2de7c7e12ccf0c.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + Adds a new parameter to validate whether run + the archive or purge manifest for deleted instances + in Nova.