Finish Initialization of CA Table when Barbican Starts
Before all CA related commands can succeed, the CA table needs to
be populated. This patch invokes code to refresh the table as
Barbican starts.
In addition, the CA table entries can expire over time, to ensure
GET /cas always returns current values, the table is refreshed as
necessary at that time too.
I also added created a session for this routine to ensure any
updates are written immediately to the database.
Reviewed: https:/ /review. openstack. org/224156 /git.openstack. org/cgit/ openstack/ barbican/ commit/ ?id=91a561dd9ad c44b89ada27104e 27649e2c726a5a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 91a561dd9adc44b 89ada27104e2764 9e2c726a5a
Author: Dave McCowan <email address hidden>
Date: Wed Sep 16 11:39:30 2015 -0400
Finish Initialization of CA Table when Barbican Starts
Before all CA related commands can succeed, the CA table needs to
be populated. This patch invokes code to refresh the table as
Barbican starts.
In addition, the CA table entries can expire over time, to ensure
GET /cas always returns current values, the table is refreshed as
necessary at that time too.
I also added created a session for this routine to ensure any
updates are written immediately to the database.
Change-Id: I0e6f9aec073c89 7f811b0b87a16db 3b52753d734
Closes-bug: #1495576