-
Story
-
Resolution: Done
-
Major
-
None
-
5
-
False
-
-
False
-
rhos-storage
-
-
-
-
Storage Integration Sprint 9
-
1
-
Important
Goal:
The FC scenario, when tested on a virtual environment, requires some VMs which hosts OCP controllers and compute nodes to access (in passthrough mode) some HBAs.
ci-framework should be able to handle such scenario.
As a user I want to be able to specify one or more PCI devices in the libvirt-related configuration so that those devices are exposed/attached to some specific VMs.
Acceptance Criteria:
It should be possible to specify one or more PCI devices as passthrough as parameters for the libvirt_manager role of ci-framework, which would be enabled in the corresponding VMs when the role is called.
- Running uni09iota DT with the appropriate parameters would lead to some VMs with a specific label to have some passthrough HBAs attached
Implementation details:
There are two possible ways:
- follow the pattern used to create and attach volumes in libvirt_manager: based on the specified parameters, the volume attachments are defined as XML files (https://github.com/openstack-k8s-operators/ci-framework/blob/df648f6fd4112c7a2d87536e1ca9bd939ff3d0b3/roles/libvirt_manager/tasks/volumes.yml#L88) which are later attached with virsh attach-device (https://github.com/openstack-k8s-operators/ci-framework/blob/df648f6fd4112c7a2d87536e1ca9bd939ff3d0b3/roles/libvirt_manager/tasks/create_vms.yml#L127). In fact virsh attach-device also recognizes passthrough devices (https://www.libvirt.org/manpages/virsh.html#attach-device)
- change the default template used to create VMs ( roles/libvirt_manager/templates/domain.xml.j2 ) to recognize those parameters should be able to recognize them and set them.
The first options is preferred, and probably the easier one.