Add missing cron jobs for Overcloud cleanup

This will add the Nova cleanup for the shadow
tables.

Depends-On: I2dcf37417c36fb8b1bde207c60d22d580005715c
Change-Id: I1ebfb0964b00920d787115cfc997bcf0494081c9
This commit is contained in:
Carlos Camacho 2018-03-22 17:18:15 +01:00
parent 4738c61b15
commit 6bc7a7fcb7
2 changed files with 11 additions and 1 deletions

View File

@ -144,9 +144,13 @@ class tripleo::profile::base::nova::api (
} }
if $step >= 5 { if $step >= 5 {
if hiera('nova_enable_db_purge', true) { if hiera('nova_enable_db_archive', true) {
include ::nova::cron::archive_deleted_rows 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 # 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 # So we want to update Nova Cells database to be aware of these hosts by executing the
# nova-cell_v2-discover_hosts command again. # nova-cell_v2-discover_hosts command again.

View File

@ -0,0 +1,6 @@
---
features:
- |
Adds a new parameter to validate whether run
the archive or purge manifest for deleted instances
in Nova.