-
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 setp will prepare the environment and spin up a nested vm (L1) on compute (L0) with a virtio disk passing from compute vm (L0). Noted that this is not passing any device from the host itself. 1. add environment prep and verify function in qa_crowbarsetup.sh 2. create ci job template
- Loading branch information
Showing
4 changed files
with
251 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
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,29 @@ | ||
- 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 | ||
want_pci_passthrough=1 | ||
vcpus=4 | ||
label={label} | ||
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
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