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:
parent
c65ce3396b
commit
a3a8c94430
@ -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'],
|
||||
}
|
||||
}
|
||||
|
@ -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'],
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user