Enable trust flush cron job after database is initialized

The trust flush operation expects the keystone database is already
initialized. This change ensures db sync is completed before cron job
is enabled.

Closes-Bug #1955829
Change-Id: I71380611c0075bd0d5a1dcedca621066559e1e9d
This commit is contained in:
Takashi Kajinami 2021-12-27 22:27:14 +09:00
parent 384771791a
commit 258bd8c5e9
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -19,7 +19,7 @@ describe 'keystone::cron::trust_flush' do
:monthday => '*',
:month => '*',
:weekday => '*',
:require => 'Anchor[keystone::install::end]',
:require => 'Anchor[keystone::dbsync::end]',
)}
end
@ -48,7 +48,7 @@ describe 'keystone::cron::trust_flush' do
:monthday => params[:monthday],
:month => params[:month],
:weekday => params[:weekday],
:require => 'Anchor[keystone::install::end]',
:require => 'Anchor[keystone::dbsync::end]',
)}
end
end