Bug 1697298

Summary: [Kubevirt-Foreman] multiple PVCs can be selected with bootable option even when containerDisk was selected
Product: Red Hat Satellite Reporter: Vatsal Parekh <vparekh>
Component: Compute Resources - CNVAssignee: Shira Maximov <mshira>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: egolov, masayag, vsedmik
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_kubevirt-0.1.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:51:09 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 Vatsal Parekh 2019-04-08 10:15:32 UTC
Description of problem:
When creating a host with containerDisk Image, able to select Multiple PVC with option of `Bootable`. After selecting multiple disks with this, submitting request shows a error that the host already exists.

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

How reproducible:


Steps to Reproduce:
1.Select multiple PVCs with Bootable option 
2.
3.

Actual results:
First, multiple PVCs can be selected as bootable when none should be able to selected when provisioning with containerDisk
Second, the error shown when submitting this request is wrong exception

Expected results:
Should not let you select bootable pvc with containerDisk, and not multiple PVCs as bootable in general
Also, should throw proper error

Additional info:

Comment 3 Moti Asayag 2019-04-10 04:19:15 UTC
Please attach production.log with the exception to this bug.

Comment 4 Vatsal Parekh 2019-04-12 06:53:19 UTC
Tested this again on latest gems, not seeing the exception now but still can create multiple PVCs with bootable option, even when containerDisk based Image was selected, changing the title for that specific issue

Comment 5 Shira Maximov 2019-04-23 09:11:21 UTC
Created redmine issue https://projects.theforeman.org/issues/26658 from this bug

Comment 8 Bryan Kearney 2019-10-22 19:51:09 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/RHSA-2019:3172