-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openstack-crowbar: Add pci passthough option
Add Jenkins parameter 'want_pci_passthrough' to allow running tests to validate pci passthough. To test pci passthrough locally with mkcloud, simply just export 'want_pci_passthrouh=1' and append 'rebootcloud testpcipassthru' to 'plain' step, e.g. your_mkcloud.sh plain rebootcloud testpcipassthru The rebootcloud step will ensure intel_iommu=on kernel param enabled. The testpcipassthru step will prepare the environment and spin up a nested vm (L2) on compute (L1) with a virtio disk passing from compute vm (L1). Noted that this is not passing any device from the host (L0) itself. There will be another PR to construct job definition and other prep works for new ci. 1. add environment prep and verify function in qa_crowbarsetup.sh 2. create legacy ci job template 3. introduce testpcipassthru step in mkcloud
- Loading branch information
Showing
3 changed files
with
315 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
jenkins/ci.suse.de/templates/cloud-mkcloud-job-pcipassthru-template.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- job-template: | ||
name: 'cloud-mkcloud{version}-job-pcipassthru-{arch}' | ||
node: cloud-trigger | ||
disabled: '{obj:disabled}' | ||
|
||
triggers: | ||
- timed: 'H 20 * * *' | ||
|
||
logrotate: | ||
numToKeep: -1 | ||
daysToKeep: 7 | ||
|
||
builders: | ||
- trigger-builds: | ||
- project: openstack-mkcloud | ||
condition: SUCCESS | ||
block: true | ||
current-parameters: true | ||
predefined-parameters: | | ||
TESTHEAD=1 | ||
cloudsource=develcloud{version} | ||
libvirt_type=kvm | ||
nodenumber=2 | ||
mkcloudtarget=all testpcipassthru | ||
label={label} | ||
custom_settings='export want_pci_passthrough=1' | ||
job_name=cloud-mkcloud{version}-job-pcipassthru-{arch} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters