Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1695644

Summary: [Kubevirt-Foreman] Image based provisioning doesn't take additional disks selected
Product: Red Hat Satellite Reporter: Vatsal Parekh <vparekh>
Component: Compute Resources - CNVAssignee: Moti Asayag <masayag>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: egolov, masayag
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_kubevirt-0.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:51:01 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-03 13:52:02 UTC
Description of problem:
Selecting additional disks with Image based provisioning doesn't actually get reflected on VM.
I selected an additional disk, but the VM yaml on CNV doesn't have that
```
        devices:
          disks:
            - disk:
                bus: virtio
              name: homer-ejide-example-com-disk-00
          interfaces:
            - bootOrder: 1
              bridge: {}
              macAddress: 'a2:a2:a2:a2:a2:a2'
              name: default
        machine:
          type: ''
        resources:
          requests:
            memory: 1024M
      networks:
        - name: default
          pod: {}
      terminationGracePeriodSeconds: 0
      volumes:
        - containerDisk:
            image: kubevirt/fedora-cloud-registry-disk-demo
          name: homer-ejide-example-com-disk-00
```
An additional disk was selected from UI

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

How reproducible:


Steps to Reproduce:
1.Add a disk to host config with Image based provisioning
2.
3.

Actual results:
The VM doesn't actually get the additional disk selected

Expected results:
Should have multiple disks as selected

Additional info:

Comment 3 Vatsal Parekh 2019-04-12 07:01:14 UTC
This seems working on latest nightly Foreman + plugin master,
But VM creation still fails due to https://bugzilla.redhat.com/show_bug.cgi?id=1697286

Comment 5 Lukáš Hellebrandt 2019-08-01 10:27:05 UTC
Verified with Sat 6.6 snap 13.

1. Have a Kubevirt CR
2. Hosts -> Create host
3. Deploy on Kubevirt
4. OS -> Image Based
5. VM -> Add 2 volumes
6. Fill the rest, Submit

=> VM created, volumes visible in Sat, YAML contains:

        devices:
          disks:
            - bootOrder: 1
              disk:
                bus: virtio
              name: disks-testdom-example-com-disk-00
            - disk:
                bus: virtio
              name: disks-testdom-example-com-disk-01
            - disk:
                bus: virtio
              name: disks-testdom-example-com-disk-02

      volumes:
        - containerDisk:
            image: kubevirt/cirros-container-disk-demo
          name: disks-testdom-example-com-disk-00
        - name: disks-testdom-example-com-disk-01
          persistentVolumeClaim:
            claimName: disks-testdom-example-com-claim-1
        - name: disks-testdom-example-com-disk-02
          persistentVolumeClaim:
            claimName: disks-testdom-example-com-claim-2

Comment 6 Bryan Kearney 2019-10-22 19:51:01 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