diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-01-08 18:05:39 +0200 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-01-08 18:05:39 +0200 |
commit | 06a722063d64dc74bfeee900a18c70fcb9baf78a (patch) | |
tree | feb3c19159b028d407c0c15b6f1a2967251de164 |
import
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r-- | .gitingore | 0 | ||||
-rw-r--r-- | example.yaml | 94 | ||||
-rw-r--r-- | execs/odp-mdev.yaml | 50 | ||||
-rw-r--r-- | execs/ubuntu-build-essential.yaml | 40 | ||||
-rw-r--r-- | lng-generator-01/mellanox-ubuntu-17.10.yaml | 77 | ||||
-rw-r--r-- | lng-generator-03/t5-debian-stretch.yaml | 72 | ||||
-rw-r--r-- | lng-generator-03/t5-ubuntu-16.04.yaml | 78 | ||||
-rw-r--r-- | lng-generator-03/t5-ubuntu-17.10.yaml | 83 |
8 files changed, 494 insertions, 0 deletions
diff --git a/.gitingore b/.gitingore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.gitingore diff --git a/example.yaml b/example.yaml new file mode 100644 index 0000000..c1fbd54 --- /dev/null +++ b/example.yaml @@ -0,0 +1,94 @@ +job_name: generator-hacking-session
+
+timeouts:
+ job:
+ hours: 4
+ action:
+ hours: 5
+ connection:
+ hours: 5
+
+visibility: public
+priority: medium
+device_type: x86
+
+protocols:
+ lava-multinode:
+ roles:
+ vpp_host:
+ device_type: x86
+ count: 1
+ lava-vland:
+ vpp_host:
+ vlan_jpc:
+ tags:
+ - 40G
+
+actions:
+- deploy:
+ role:
+ - vpp_host
+ timeout:
+ minutes: 10
+ to: tftp
+
+ kernel:
+ url: http://people.linaro.org/~bogdan.pricope/kernel4.4/vmlinuz-4.4.0-31-generic
+ nfsrootfs:
+ url: http://people.linaro.org/~bogdan.pricope/kernel4.4/linaro-jessie-nano-20150123-1.tar.gz
+ compression: gz
+ prefix: binary/
+ modules:
+ url: http://people.linaro.org/~bogdan.pricope/kernel4.4/overlay.tar.gz
+ compression: gz
+ ramdisk:
+ url: http://people.linaro.org/~bogdan.pricope/kernel4.4/initramfs.amd64-new18.cpio.gz
+ compression: gz
+ os: debian
+
+- boot:
+ role:
+ - vpp_host
+ timeout:
+ minutes: 10
+ method: ipxe
+ commands: nfs
+ parameters:
+ shutdown-message: "reboot: Restarting system"
+ prompts:
+ - 'linaro-test'
+ - 'root@linaro-nano:'
+ - 'root@linaro'
+
+- test:
+ role:
+ - vpp_host
+ timeout:
+ hours: 4
+ definitions:
+ - repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: setup-host
+ description: Sets up the host environment
+ os:
+ - debian
+ - fedora
+ scope:
+ - functional
+ run:
+ steps:
+ - lscpu
+ - echo "nameserver 8.8.8.8" >> /etc/resolv.conf
+ - cat /etc/resolv.conf
+ from: inline
+ path: inline/setup-host.yaml
+ name: setup-host
+
+ - repository: https://git.linaro.org/lava-team/hacking-session.git
+ from: git
+ path: hacking-session-debian.yaml
+ name: hacking-server
+ parameters:
+ "IRC_USER": "michal.mazur"
+ "PUB_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC60L2Qo88u1DAMeYxsHIRQMiKRBxAzXQZj+E4aQlpAAdAq2USMQrvnfBxude63r3ChENgDb56FrZ50d7ANKpAXwk1PjAaAkA4sbjPAVMV6dBfG7pwUAE7P6SOUHNAvbR/ZQHOpeq5bXR0u8y+onaDACO3H0j0AiSTEHQ6Sr9Awluvs/ybjuqXLizjaIetzm5A+CbS7a3UnYOCH1kC4ojHRCYUXEWkPfKAEbLqiwFvDhfkVw8AaXmc92S748MwZjq6RB0mx+3Qv12OXeHuJlQ1cFgAlpYWkq/8hBQOHzRuRYdbRkYKzPb/r02y9BP/H95ogdf6c5ifR19qxjTScuSBl mkm@mkm-spire"
diff --git a/execs/odp-mdev.yaml b/execs/odp-mdev.yaml new file mode 100644 index 0000000..6366ee3 --- /dev/null +++ b/execs/odp-mdev.yaml @@ -0,0 +1,50 @@ +metadata: + name: ODP mdev + format: "Lava-Test-Shell Test Definition 1.0" + description: "Setup ODP with mediated devices support" + version: 1.0 + +params: + PUB_KEY: None + IRC_SERVER: irc.freenode.net + ODP_BRANCH: ddf + BUILD_DIR: /root + ODP_JOBS: 32 + +install: + deps: + - autotools-dev + - autoconf + - libtool + - autogen + - gcc + - g++ + - make + - libssl-dev + - libcunit1 + - libcunit1-dev + - libconfig-dev + - m4 + - pkg-config + - uuid + - uuid-runtime + - locales-all + +run: + steps: + - echo "Build ODP kernel drivers" + - git clone https://github.com/apalos/odp-linux-mdev.git + - cd odp-linux-mdev && make -j32 && cd .. + - mkdir -p /usr/include/uapi + - cp odp-linux-mdev/include/uapi/linux/* /usr/include/uapi + - echo "Build ODP" + # add missing kernel headers + - git clone https://github.com/apalos/odp.git + - cd odp + - git checkout $ODP_BRANCH + - ./bootstrap + - autoreconf -i + - ./configure --enable-debug --enable-debug-print --enable-mdev + - make -j $ODP_JOBS + - make install + - cp mdev/odp.conf /root diff --git a/execs/ubuntu-build-essential.yaml b/execs/ubuntu-build-essential.yaml new file mode 100644 index 0000000..b7f3a9b --- /dev/null +++ b/execs/ubuntu-build-essential.yaml @@ -0,0 +1,40 @@ +metadata: + name: ubuntu-build-essential + format: "Lava-Test-Shell Test Definition 1.0" + description: "Install basic packages for ubuntu 17.10" + version: 1.0 + +params: + ODP_BRANCH: ddf + BUILD_DIR: /root + INSTALL_DIR: /root/odp_install + ODP_JOBS: 32 + +install: + deps: + - autotools-dev + - autoconf + - autogen + - libtool + - gcc + - g++ + - libssl-dev + - libcunit1 + - libcunit1-dev + - libconfig-dev + - locales-all + - make + - m4 + - pkg-config + - uuid + - uuid-runtime + - libnuma-dev + - libnuma1 + - pkg-config + - python + - pciutils + - git + - ethtool + - sudo + - bison + - flex diff --git a/lng-generator-01/mellanox-ubuntu-17.10.yaml b/lng-generator-01/mellanox-ubuntu-17.10.yaml new file mode 100644 index 0000000..f7ef574 --- /dev/null +++ b/lng-generator-01/mellanox-ubuntu-17.10.yaml @@ -0,0 +1,77 @@ +job_name: ubuntu-17.10-hacking-session-chelsio-T5 + +timeouts: + job: + minutes: 360 + action: + minutes: 20 + connection: + minutes: 20 + +visibility: public +priority: medium +device_type: x86 + +protocols: + lava-multinode: + roles: + mdev_host: + device_type: x86 + count: 1 + context: + extra_kernel_args: default_hugepagesz=2M hugepagesz=1G hugepages=1 hugepagesz=2M hugepages=1024 intel_iommu=on iommu=on + lava-vland: + mdev_host: + vlan_jpc: + tags: + - 25G +actions: +- deploy: + role: + - mdev_host + timeout: + minutes: 10 + to: tftp + + kernel: + url: http://people.linaro.org/~ilias.apalodimas/images/ubuntu-17.10/vmlinuz-4.13.0-19-generic + nfsrootfs: + url: http://people.linaro.org/~ilias.apalodimas/images/ubuntu-17.10/images/ubuntu-17.10/binary.tar.xz + compression: xz + prefix: binary/ + ramdisk: + url: http://people.linaro.org/~ilias.apalodimas/images/ubuntu-17.10/images/ubuntu-17.10/initrd.img-4.13.0-19-generic + compression: gz + os: debian + +- boot: + role: + - mdev_host + timeout: + minutes: 15 + method: ipxe + commands: nfs + parameters: + shutdown-message: "reboot: Restarting system" + prompts: + - 'root@lng(.*)' + +- test: + role: + - mdev_host + timeout: + minutes: 360 + + definitions: + - repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/ + from: git + path: execs/ubuntu-build-essential.yaml + name: ubuntu-build-essential + + - repository: https://git.linaro.org/lava-team/hacking-session.git + from: git + path: hacking-session-debian.yaml + name: hacking-server + parameters: + "IRC_USER": "apalos" + "PUB_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6q2BgQb4F3WXT89p5XoPe2J32DHKaeQAL/IHWKYFKoHnvMSVLIODBciG9CWQ+FrYO67tOlc7IaxZqhSOK2zXNID4oqIiM5O/iAlW4LXdNtSNQUR2B+528/FKt+10ZyKH0C7zV31lEWjVfv7CsNVRumOv2bwmYoQH3kCxpwyYhGkdTLdnpXGEaSLp2YDUrgDzi/+j5CH2tkJWaWXl48qXHPUuJf89nbcT52kMwHUSV/c5XHb5kVjpIpUaapgemy9HfBVi8f4T1paFU6BPymJaF43a3vIXm3byVkBi4nZDUgPFX3HL1v7jNypVbQyK1r5LO+BCPu6cyfcjXO9W0EzNV2tdmEEAHYqgBvMiHBQ5+zcvFBHztzs5xIIBA5fsYFPe2xRmUz9Ah15NcFbXlPl/QlRCoVGMC/RztMDDdbv+/mAh5Kaqas8FDRJyyebDIu/TKAajekTq6wdifjcTZbFFO/fx3UJnwt9QKArYJfcfqeRyNDQ2cdAWPBU4cwAa4dr2Txxl43N7DnT1qe3Dd9Yg0P3W03Lr7jR2JBFlGlIFhpaQSO/kAt07PTNj98P+3L/UfeVZrYR9py+WolYkgTZOvb7BJ2JfD7RwIhHpfez8m2ddoBhBbfufm1mepYBmHxD8jqzdiANu+j9a5hsQM+2MAS6GrrDVMn5e3FYa/PtKsbQ== ilias.apalodimas@linaro.org" diff --git a/lng-generator-03/t5-debian-stretch.yaml b/lng-generator-03/t5-debian-stretch.yaml new file mode 100644 index 0000000..68be1c1 --- /dev/null +++ b/lng-generator-03/t5-debian-stretch.yaml @@ -0,0 +1,72 @@ +job_name: debian-hacking-session-chelsio-T5 + +timeouts: + job: + minutes: 360 + action: + minutes: 20 + connection: + minutes: 20 + +visibility: public +priority: medium +device_type: x86 + +protocols: + lava-multinode: + roles: + mdev_host: + device_type: x86 + count: 1 + context: + extra_kernel_args: default_hugepagesz=2M hugepagesz=1G hugepages=1 hugepagesz=2M hugepages=1024 intel_iommu=on iommu=on + lava-vland: + mdev_host: + vlan_jpc: + tags: + - 40G +actions: +- deploy: + role: + - mdev_host + timeout: + minutes: 10 + to: tftp + + kernel: + url: http://people.linaro.org/~ilias.apalodimas/images/debian-stretch/vmlinuz-4.9.0-4-amd64 + nfsrootfs: + url: http://people.linaro.org/~ilias.apalodimas/images/debian-stretch/binary.tar.xz + compression: xz + prefix: binary/ + ramdisk: + url: http://people.linaro.org/~ilias.apalodimas/images/debian-stretch/initrd.img-4.9.0-4-amd64 + compression: gz + os: debian + +- boot: + role: + - mdev_host + timeout: + minutes: 15 + method: ipxe + commands: nfs + parameters: + shutdown-message: "reboot: Restarting system" + prompts: + - 'root@lng(.*)' + +- test: + role: + - mdev_host + timeout: + minutes: 360 + + definitions: + - repository: https://git.linaro.org/lava-team/hacking-session.git + from: git + path: hacking-session-debian.yaml + name: hacking-server + parameters: + "IRC_USER": "apalos" + "PUB_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6q2BgQb4F3WXT89p5XoPe2J32DHKaeQAL/IHWKYFKoHnvMSVLIODBciG9CWQ+FrYO67tOlc7IaxZqhSOK2zXNID4oqIiM5O/iAlW4LXdNtSNQUR2B+528/FKt+10ZyKH0C7zV31lEWjVfv7CsNVRumOv2bwmYoQH3kCxpwyYhGkdTLdnpXGEaSLp2YDUrgDzi/+j5CH2tkJWaWXl48qXHPUuJf89nbcT52kMwHUSV/c5XHb5kVjpIpUaapgemy9HfBVi8f4T1paFU6BPymJaF43a3vIXm3byVkBi4nZDUgPFX3HL1v7jNypVbQyK1r5LO+BCPu6cyfcjXO9W0EzNV2tdmEEAHYqgBvMiHBQ5+zcvFBHztzs5xIIBA5fsYFPe2xRmUz9Ah15NcFbXlPl/QlRCoVGMC/RztMDDdbv+/mAh5Kaqas8FDRJyyebDIu/TKAajekTq6wdifjcTZbFFO/fx3UJnwt9QKArYJfcfqeRyNDQ2cdAWPBU4cwAa4dr2Txxl43N7DnT1qe3Dd9Yg0P3W03Lr7jR2JBFlGlIFhpaQSO/kAt07PTNj98P+3L/UfeVZrYR9py+WolYkgTZOvb7BJ2JfD7RwIhHpfez8m2ddoBhBbfufm1mepYBmHxD8jqzdiANu+j9a5hsQM+2MAS6GrrDVMn5e3FYa/PtKsbQ== ilias.apalodimas@linaro.org" diff --git a/lng-generator-03/t5-ubuntu-16.04.yaml b/lng-generator-03/t5-ubuntu-16.04.yaml new file mode 100644 index 0000000..d04cd75 --- /dev/null +++ b/lng-generator-03/t5-ubuntu-16.04.yaml @@ -0,0 +1,78 @@ +job_name: ubuntu-16.04-hacking-session-chelsio-T5 + +timeouts: + job: + minutes: 360 + action: + minutes: 20 + connection: + minutes: 20 + +visibility: public +priority: medium +device_type: x86 + +protocols: + lava-multinode: + roles: + mdev_host: + device_type: x86 + count: 1 + context: + #extra_kernel_args: default_hugepagesz=2M hugepagesz=1G hugepages=1 hugepagesz=2M hugepages=1024 + extra_kernel_args: default_hugepagesz=2M hugepagesz=1G hugepages=1 hugepagesz=2M hugepages=1024 intel_iommu=on iommu=on + lava-vland: + mdev_host: + vlan_jpc: + tags: + - 40G +actions: +- deploy: + role: + - mdev_host + timeout: + minutes: 10 + to: tftp + + kernel: + url: http://people.linaro.org/~ilias.apalodimasimages/ubuntu-16.04/vmlinuz-4.4.0-21-generic + nfsrootfs: + url: http://people.linaro.org/~ilias.apalodimas/images/ubuntu-16.04/binary.tar.xz + compression: xz + prefix: binary/ + ramdisk: + url: http://people.linaro.org/~ilias.apalodimas/images/ubuntu-16.04/initrd.img-4.4.0-21-generic + compression: gz + os: debian + +- boot: + role: + - mdev_host + timeout: + minutes: 15 + method: ipxe + commands: nfs + parameters: + shutdown-message: "reboot: Restarting system" + prompts: + - 'root@lng(.*)' + +- test: + role: + - mdev_host + timeout: + minutes: 360 + + definitions: + - repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/ + from: git + path: execs/ubuntu-build-essential.yaml + name: ubuntu-build-essential + + - repository: https://git.linaro.org/lava-team/hacking-session.git + from: git + path: hacking-session-debian.yaml + name: hacking-server + parameters: + "IRC_USER": "apalos" + "PUB_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6q2BgQb4F3WXT89p5XoPe2J32DHKaeQAL/IHWKYFKoHnvMSVLIODBciG9CWQ+FrYO67tOlc7IaxZqhSOK2zXNID4oqIiM5O/iAlW4LXdNtSNQUR2B+528/FKt+10ZyKH0C7zV31lEWjVfv7CsNVRumOv2bwmYoQH3kCxpwyYhGkdTLdnpXGEaSLp2YDUrgDzi/+j5CH2tkJWaWXl48qXHPUuJf89nbcT52kMwHUSV/c5XHb5kVjpIpUaapgemy9HfBVi8f4T1paFU6BPymJaF43a3vIXm3byVkBi4nZDUgPFX3HL1v7jNypVbQyK1r5LO+BCPu6cyfcjXO9W0EzNV2tdmEEAHYqgBvMiHBQ5+zcvFBHztzs5xIIBA5fsYFPe2xRmUz9Ah15NcFbXlPl/QlRCoVGMC/RztMDDdbv+/mAh5Kaqas8FDRJyyebDIu/TKAajekTq6wdifjcTZbFFO/fx3UJnwt9QKArYJfcfqeRyNDQ2cdAWPBU4cwAa4dr2Txxl43N7DnT1qe3Dd9Yg0P3W03Lr7jR2JBFlGlIFhpaQSO/kAt07PTNj98P+3L/UfeVZrYR9py+WolYkgTZOvb7BJ2JfD7RwIhHpfez8m2ddoBhBbfufm1mepYBmHxD8jqzdiANu+j9a5hsQM+2MAS6GrrDVMn5e3FYa/PtKsbQ== ilias.apalodimas@linaro.org" diff --git a/lng-generator-03/t5-ubuntu-17.10.yaml b/lng-generator-03/t5-ubuntu-17.10.yaml new file mode 100644 index 0000000..98544af --- /dev/null +++ b/lng-generator-03/t5-ubuntu-17.10.yaml @@ -0,0 +1,83 @@ +job_name: ubuntu-17.10-hacking-session-chelsio-T5 + +timeouts: + job: + minutes: 360 + action: + minutes: 20 + connection: + minutes: 20 + +visibility: public +priority: medium +device_type: x86 + +protocols: + lava-multinode: + roles: + mdev_host: + device_type: x86 + count: 1 + context: + #extra_kernel_args: default_hugepagesz=2M hugepagesz=1G hugepages=1 hugepagesz=2M hugepages=1024 + extra_kernel_args: default_hugepagesz=2M hugepagesz=1G hugepages=1 hugepagesz=2M hugepages=1024 intel_iommu=on iommu=on + lava-vland: + mdev_host: + vlan_jpc: + tags: + - 40G +actions: +- deploy: + role: + - mdev_host + timeout: + minutes: 10 + to: tftp + + kernel: + url: http://people.linaro.org/~ilias.apalodimas/images/ubuntu-17.10/vmlinuz-4.13.0-19-generic + nfsrootfs: + url: http://people.linaro.org/~ilias.apalodimas/images/ubuntu-17.10/binary.tar.xz + compression: xz + prefix: binary/ + ramdisk: + url: http://people.linaro.org/~ilias.apalodimas/images/ubuntu-17.10/initrd.img-4.13.0-19-generic + compression: gz + os: debian + +- boot: + role: + - mdev_host + timeout: + minutes: 15 + method: ipxe + commands: nfs + parameters: + shutdown-message: "reboot: Restarting system" + prompts: + - 'root@lng(.*)' + +- test: + role: + - mdev_host + timeout: + minutes: 360 + + definitions: + - repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/ + from: git + path: execs/ubuntu-build-essential.yaml + name: ubuntu-build-essential + + - repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/ + from: git + path: execs/odp-mdev.yaml + name: odp-mdev + + - repository: https://git.linaro.org/lava-team/hacking-session.git + from: git + path: hacking-session-debian.yaml + name: hacking-server + parameters: + "IRC_USER": "apalos" + "PUB_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6q2BgQb4F3WXT89p5XoPe2J32DHKaeQAL/IHWKYFKoHnvMSVLIODBciG9CWQ+FrYO67tOlc7IaxZqhSOK2zXNID4oqIiM5O/iAlW4LXdNtSNQUR2B+528/FKt+10ZyKH0C7zV31lEWjVfv7CsNVRumOv2bwmYoQH3kCxpwyYhGkdTLdnpXGEaSLp2YDUrgDzi/+j5CH2tkJWaWXl48qXHPUuJf89nbcT52kMwHUSV/c5XHb5kVjpIpUaapgemy9HfBVi8f4T1paFU6BPymJaF43a3vIXm3byVkBi4nZDUgPFX3HL1v7jNypVbQyK1r5LO+BCPu6cyfcjXO9W0EzNV2tdmEEAHYqgBvMiHBQ5+zcvFBHztzs5xIIBA5fsYFPe2xRmUz9Ah15NcFbXlPl/QlRCoVGMC/RztMDDdbv+/mAh5Kaqas8FDRJyyebDIu/TKAajekTq6wdifjcTZbFFO/fx3UJnwt9QKArYJfcfqeRyNDQ2cdAWPBU4cwAa4dr2Txxl43N7DnT1qe3Dd9Yg0P3W03Lr7jR2JBFlGlIFhpaQSO/kAt07PTNj98P+3L/UfeVZrYR9py+WolYkgTZOvb7BJ2JfD7RwIhHpfez8m2ddoBhBbfufm1mepYBmHxD8jqzdiANu+j9a5hsQM+2MAS6GrrDVMn5e3FYa/PtKsbQ== ilias.apalodimas@linaro.org" |