Get CAs returns empty list

Bug #1495576 reported by Dave McCowan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
High
Dave McCowan

Bug Description

Even with CA plugins configured:
    a call to GET /v1/cas returns an empty list
    a call to GET /v1/cas/get-preferred returns 404

Once an order has been posted, then these calls work correctly.

The CAs database is initialized on the first post. It should be initialized when Barbican starts.

Changed in barbican:
status: New → In Progress
assignee: nobody → Dave McCowan (dave-mccowan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to barbican (master)

Fix proposed to branch: master
Review: https://review.openstack.org/224156

Changed in barbican:
importance: Undecided → High
milestone: none → liberty-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/224156
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=91a561dd9adc44b89ada27104e27649e2c726a5a
Submitter: Jenkins
Branch: master

commit 91a561dd9adc44b89ada27104e27649e2c726a5a
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: I0e6f9aec073c897f811b0b87a16db3b52753d734
    Closes-bug: #1495576

Changed in barbican:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in barbican:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in barbican:
milestone: liberty-rc1 → 1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.