aboutsummaryrefslogtreecommitdiff
path: root/leg-openstack-rally/lava-job-definitions/mustang
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2015-05-14 16:41:52 +0100
committerAndrew McDermott <andrew.mcdermott@linaro.org>2015-05-14 16:44:48 +0100
commit5cf4a4180b6639a2e6dc2b78f8a1336254239a53 (patch)
tree06eae8d5a537a53043a8b852ffa250ff124c074c /leg-openstack-rally/lava-job-definitions/mustang
parentb1c4285d42480e2c698c7f3c47b4274805ddf4df (diff)
leg-openstack-rally: add job
Change-Id: Ic71c00a12760a8a33e0b216f1b27ba33c2822c91 Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
Diffstat (limited to 'leg-openstack-rally/lava-job-definitions/mustang')
-rw-r--r--leg-openstack-rally/lava-job-definitions/mustang/template-deploy-cloud-image.yaml68
-rw-r--r--leg-openstack-rally/lava-job-definitions/mustang/template-rally.yaml85
2 files changed, 153 insertions, 0 deletions
diff --git a/leg-openstack-rally/lava-job-definitions/mustang/template-deploy-cloud-image.yaml b/leg-openstack-rally/lava-job-definitions/mustang/template-deploy-cloud-image.yaml
new file mode 100644
index 0000000000..eb48a49fae
--- /dev/null
+++ b/leg-openstack-rally/lava-job-definitions/mustang/template-deploy-cloud-image.yaml
@@ -0,0 +1,68 @@
+actions:
+- command: deploy_linaro_kernel
+ parameters:
+ dtb: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/mustang.dtb'
+ kernel: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/uImage'
+ ramdisk: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/uInitrd-nfs'
+ nfsrootfs: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/ubuntu-arm64-chroot.tar.bz2'
+ target_type: 'ubuntu'
+ login_prompt: 'login:'
+ username: 'ubuntu'
+ password_prompt: 'Password'
+ password: 'ubuntu'
+ login_commands: ['sudo su -l']
+ metadata:
+ build id: '${BUILD_NUMBER}'
+- command: boot_linaro_image
+ parameters:
+ boot_cmds:
+ - 'setenv autoload no'
+ - 'setenv kernel_addr_r ''{KERNEL_ADDR}'''
+ - 'setenv initrd_addr_r ''{RAMDISK_ADDR}'''
+ - 'setenv fdt_addr_r ''{DTB_ADDR}'''
+ - 'setenv loadstuff ''tftp ${kernel_addr_r} {KERNEL}; tftp ${initrd_addr_r} {RAMDISK}; tftp ${fdt_addr_r} {DTB}'''
+ - 'setenv bootargs console=ttyS0,115200 panic=1 root=/dev/nfs rw nfsroot={SERVER_IP}:{NFSROOTFS} ip=dhcp'
+ - 'setenv bootcmd ''dhcp; setenv serverip {SERVER_IP}; run loadstuff; {BOOTX}'''
+ - 'boot'
+- command: lava_test_shell
+ parameters:
+ testdef_repos:
+ - git-repo: 'http://git.linaro.org/leg/openstack/lava-deploy-cloudimg.git'
+ parameters:
+ LAVA_CLOUD_IMG_URL: 'http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-arm64-disk1.img'
+ EXTRA_PREP_SCRIPT_URL: ''
+ timeout: 1800
+- command: deploy_linaro_kernel
+ parameters:
+ # The dtb and kernel are actually ignored.
+ dtb: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/mustang.dtb_1.11'
+ kernel: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/uImage_1.11'
+ target_type: 'ubuntu'
+ login_prompt: 'login:'
+ username: 'ubuntu'
+ password_prompt: 'Password'
+ password: 'password'
+ login_commands: ['sudo -s']
+- command: boot_linaro_image
+ parameters:
+ boot_cmds:
+ - 'setenv script_addr_r 0x4004000000'
+ - 'setenv sata 0x0C'
+ - 'scsi init'
+ - 'ext4load scsi 0 ${script_addr_r} boot/boot.scr'
+ - 'source ${script_addr_r}'
+- command: lava_test_shell
+ parameters:
+ testdef_repos:
+ - git-repo: 'http://git.linaro.org/leg/openstack/lava-deploy-cloudimg.git'
+ testdef: 'hacking-session.yaml'
+ parameters:
+ LAVA_SLEEP_DURATION: 28800
+ timeout: 7200
+- command: submit_results
+ parameters:
+ server: 'http://${LAVA_SERVER}'
+ stream: '${BUNDLE_STREAM_NAME}'
+target: '${DEVICE_TARGET}'
+job_name: '${BUILD_URL}'
+timeout: 28800
diff --git a/leg-openstack-rally/lava-job-definitions/mustang/template-rally.yaml b/leg-openstack-rally/lava-job-definitions/mustang/template-rally.yaml
new file mode 100644
index 0000000000..f37c6999bb
--- /dev/null
+++ b/leg-openstack-rally/lava-job-definitions/mustang/template-rally.yaml
@@ -0,0 +1,85 @@
+actions:
+- command: deploy_linaro_kernel
+ parameters:
+ dtb: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/mustang.dtb'
+ kernel: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/uImage'
+ ramdisk: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/uInitrd-nfs'
+ nfsrootfs: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/ubuntu-arm64-chroot.tar.bz2'
+ target_type: 'ubuntu'
+ login_prompt: 'login:'
+ username: 'ubuntu'
+ password_prompt: 'Password'
+ password: 'ubuntu'
+ login_commands: ['sudo su -l']
+ metadata:
+ build id: '${BUILD_NUMBER}'
+ devstack-branch: '${DEVSTACK_BRANCH}'
+ os-distro: '${OS_DISTRO}'
+ os-version: '${OS_VERSION}'
+- command: boot_linaro_image
+ parameters:
+ boot_cmds:
+ - 'setenv autoload no'
+ - 'setenv kernel_addr_r ''{KERNEL_ADDR}'''
+ - 'setenv initrd_addr_r ''{RAMDISK_ADDR}'''
+ - 'setenv fdt_addr_r ''{DTB_ADDR}'''
+ - 'setenv loadstuff ''tftp ${kernel_addr_r} {KERNEL}; tftp ${initrd_addr_r} {RAMDISK}; tftp ${fdt_addr_r} {DTB}'''
+ - 'setenv bootargs console=ttyS0,115200 panic root=/dev/nfs rw nfsroot={SERVER_IP}:{NFSROOTFS} ip=dhcp'
+ - 'setenv bootcmd ''dhcp; setenv serverip {SERVER_IP}; run loadstuff; {BOOTX}'''
+ - 'boot'
+- command: lava_test_shell
+ parameters:
+ testdef_repos:
+ - git-repo: 'http://git.linaro.org/leg/openstack/lava-deploy-cloudimg.git'
+ parameters:
+ LAVA_CLOUD_IMG_URL: '${LAVA_CLOUD_IMG_URL}'
+ timeout: 900
+- command: deploy_linaro_kernel
+ parameters:
+ # The dtb and kernel are actually ignored.
+ dtb: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/mustang.dtb_1.11'
+ kernel: 'http://people.linaro.org/~andrew.mcdermott/mustang-deploy/uImage_1.11'
+ target_type: 'ubuntu'
+ login_prompt: 'login:'
+ username: 'ubuntu'
+ password_prompt: 'Password'
+ password: 'password'
+ login_commands: ['sudo -s']
+- command: boot_linaro_image
+ parameters:
+ boot_cmds:
+ - 'setenv script_addr_r 0x4004000000'
+ - 'setenv sata 0x0C'
+ - 'scsi init'
+ - 'ext4load scsi 0 ${script_addr_r} boot/boot.scr'
+ - 'source ${script_addr_r}'
+- command: lava_test_shell
+ parameters:
+ testdef_repos:
+ - git-repo: 'http://git.linaro.org/leg/openstack/lava-openstack.git'
+ testdef: 'devstack/openstack-devstack.yaml'
+ parameters:
+ LAVA_SLEEP_FOR_ACCESS: 'no'
+ LAVA_SLEEP_DURATION: 36000
+ LAVA_ADD_RALLY: 'no'
+ LAVA_DEVSTACK_BRANCH: '${DEVSTACK_BRANCH}'
+ - git-repo: 'http://git.linaro.org/leg/openstack/lava-openstack.git'
+ testdef: 'rally/testdefs/prep.yaml'
+ parameters:
+ PARAMETER_FILENAME: 'rally/parameters/iter1.yaml'
+ - git-repo: 'http://git.linaro.org/leg/openstack/lava-openstack.git'
+ testdef: 'rally/testdefs/keystone.yaml'
+ parameters:
+ PARAMETER_FILENAME: 'rally/parameters/iter1.yaml'
+ - git-repo: 'http://git.linaro.org/leg/openstack/lava-openstack.git'
+ testdef: 'rally/testdefs/report.yaml'
+ parameters:
+ PARAMETER_FILENAME: 'rally/parameters/iter1.yaml'
+ timeout: 10800
+- command: submit_results
+ parameters:
+ server: 'http://${LAVA_SERVER}'
+ stream: '${BUNDLE_STREAM_NAME}'
+target: '${DEVICE_TARGET}'
+job_name: '${BUILD_URL}'
+timeout: 28800