Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1565215

Summary: Key migration to Barbican not handling backups
Product: Red Hat OpenStack Reporter: Alan Bishop <abishop>
Component: openstack-cinderAssignee: Alan Bishop <abishop>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: medium Docs Contact: Kim Nylander <knylande>
Priority: medium    
Version: 13.0 (Queens)CC: jschluet, srevivo
Target Milestone: betaKeywords: Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-cinder-12.0.1-0.20180409184129.bc76abe.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 13:50:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alan Bishop 2018-04-09 16:11:56 UTC
Description of problem:

When migrating encryption keys based on the ConfKeyManager's fixed_key to Barbican, entries in the Cinder backup table need to be migrated.

Version-Release number of selected component (if applicable):


How reproducible:

Always

Steps to Reproduce:
1. Create an encrypted volume using the ConfKeyManager
2. Create a backup of the volume
3. Update the deployment to Barbican and perform the Barbican key migration procedure

Actual results:

The encrypted volume's entry in the Backup table will still reference the all-zeros encryption_key_id associated with the ConfKeyMgr

Expected results:

The Backup table entry will have a Barbican encryption_key_id (not all zeros)

Additional info:

This issue has been fixed in stable/queens, and this BZ is to track testing the fix for OSP-13.

Comment 7 Avi Avraham 2018-05-03 12:05:03 UTC
Verified
RPM package version 
# docker exec -ti openstack-cinder-volume-docker-0 bash -c "rpm -q openstack-cinder"                               
openstack-cinder-12.0.1-0.20180418194613.c476898.el7ost.noarch

Verified according to steps describes in the bug description: 

1. Create an encrypted volume using the ConfKeyManager
2. Create a backup of the volume
3. Update the deployment to Barbican and perform the Barbican key migration procedure

Comment 9 errata-xmlrpc 2018-06-27 13:50:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:2086