aboutsummaryrefslogtreecommitdiff
path: root/leg-openstack-tempest/lava-job-definitions/mustang/template-deploy-cloud-image.yaml
blob: 6ea0fdfffd9fc36e4da6dfd82a999c9670b38a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
actions:
- command: deploy_linaro_kernel
  parameters:
    dtb: 'http://people.linaro.org/leg-openstack/mustang-deploy/mustang.dtb'
    kernel: 'http://people.linaro.org/leg-openstack/mustang-deploy/uImage'
    ramdisk: 'http://people.linaro.org/leg-openstack/mustang-deploy/uInitrd-nfs'
    nfsrootfs: 'http://people.linaro.org/leg-openstack/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