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: Ibe5bac7978012c5bb3a6528047b0787b9636bce3
This commit is contained in:
Takashi Kajinami 2021-12-27 22:26:22 +09:00
parent c65ce3396b
commit a3a8c94430
4 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

@ -27,7 +27,7 @@ describe 'glance::cron::db_purge_images_table' do
:monthday => params[:monthday],
:month => params[:month],
:weekday => params[:weekday],
:require => 'Anchor[glance::install::end]'
:require => 'Anchor[glance::dbsync::end]'
)}
end
@ -47,7 +47,7 @@ describe 'glance::cron::db_purge_images_table' do
:monthday => params[:monthday],
:month => params[:month],
:weekday => params[:weekday],
:require => 'Anchor[glance::install::end]'
:require => 'Anchor[glance::dbsync::end]'
)}
end
end

View File

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