Enable DB purge cron job after database is initialized

The DB purge operation expects the target database is already
initialized. This change ensures db sync is completed before cron job
is enabled.

Closes-Bug #1955829
Change-Id: Ib3ed541ee0b3a513efe961ba6142a0cbb09ee61a
This commit is contained in:
Takashi Kajinami 2021-12-27 22:25:29 +09:00
parent 9174eaf8da
commit 9be4e0e905
2 changed files with 3 additions and 3 deletions

View File

@ -84,6 +84,6 @@ class manila::cron::db_purge (
monthday => $monthday,
month => $month,
weekday => $weekday,
require => Anchor['manila::install::end'],
require => Anchor['manila::dbsync::end'],
}
}

View File

@ -26,7 +26,7 @@ describe 'manila::cron::db_purge' do
:monthday => params[:monthday],
:month => params[:month],
:weekday => params[:weekday],
:require => 'Anchor[manila::install::end]'
:require => 'Anchor[manila::dbsync::end]'
)}
end
@ -46,7 +46,7 @@ describe 'manila::cron::db_purge' do
:monthday => params[:monthday],
:month => params[:month],
:weekday => params[:weekday],
:require => 'Anchor[manila::install::end]'
:require => 'Anchor[manila::dbsync::end]'
)}
end
end