Bug 1565587

Summary: swap volume attempts between an unencrypted and encrypted volume type still allowed
Product: Red Hat OpenStack Reporter: Lee Yarwood <lyarwood>
Component: openstack-novaAssignee: Lee Yarwood <lyarwood>
Status: CLOSED ERRATA QA Contact: Archit Modi <amodi>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: amodi, berrange, dasmith, eglynn, jhakimra, kchamart, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: betaKeywords: Triaged
Target Release: 13.0 (Queens)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-17.0.3-0.20180417162852.991c292.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1565061 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:
Bug Depends On: 1565061    
Bug Blocks:    

Description Lee Yarwood 2018-04-10 11:13:11 UTC
+++ This bug was initially created as a clone of Bug #1565061 +++

Description of problem:
As detailed in the below upstream bug report swapping from an unencrypted volume to an encrypted volume is still allowed. These attempts need to be blocked until libvirt RFE RHBZ#760547 is resolved.

swap volume not blocked between an unencrypted and encrypted volume while using QEMU to natively decrypt
https://bugs.launchpad.net/nova/+bug/1749418

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

How reproducible:
Always

Steps to Reproduce:
1. nova volume-update ${instance_uuid} ${unencrypted_volume_uuid} ${encrypted_volume_uuid}

Actual results:
Attempt made to swap volumes.

Expected results:
NotImplementedError raised.

Additional info:

Comment 8 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