Use ipxe for qemu booting
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 19 Nov 2018 21:49:16 +0000 (16:49 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 19 Nov 2018 21:49:16 +0000 (16:49 -0500)
This is necessary for modules support.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
scripts/system-tests/lava2-submit.py
scripts/system-tests/template_lava_job.jinja2

index 406c9843912d1517309662e612f0a4b990dbeae8..f5a61d3c265b3134203a32ff95147a072aaaaddb 100644 (file)
@@ -183,6 +183,7 @@ def get_vlttng_cmd(device, lttng_tools_commit, lttng_ust_commit=None):
     return vlttng_cmd
 
 def main():
+    nfsrootfs = "https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_trusty_2016-02-23-1134.tar.gz"
     test_type = None
     parser = argparse.ArgumentParser(description='Launch baremetal test using Lava')
     parser.add_argument('-t', '--type', required=True)
@@ -223,12 +224,10 @@ def main():
     if test_type in [TestType.baremetal_benchmarks, TestType.baremetal_tests]:
         device_type = DeviceType.x86
         vlttng_path = '/tmp/virtenv'
-        nfsrootfs = "/storage/jenkins-lava/rootfs/rootfs_amd64_trusty_2016-02-23-1134.tar.gz"
 
     else:
         device_type = DeviceType.kvm
         vlttng_path = '/root/virtenv'
-        nfsrootfs = "/storage/jenkins-lava/rootfs/rootfs_amd64_trusty_2016-02-23-1134.tar.gz"
 
     vlttng_cmd = get_vlttng_cmd(device_type, args.tools_commit, args.ust_commit)
 
index 75f7b60e7812dc880cec20004b5e1304ccc713ff..448537fc91a436273af3a2f8d79f2daefd655a35 100644 (file)
@@ -1,4 +1,4 @@
-device_type: {{ device_type }}
+device_type: x86
 job_name: {{ job_name }}
 timeouts:
   job:
@@ -11,6 +11,8 @@ context:
   # the template uses that to ensure that qemu-system-x86_64 is executed.
   {# Used amd64 as a default #}
   arch: amd64
+tags:
+  - qemu
 {% endif %}
 {% if device_type == DeviceType.x86 %}
 tags:
@@ -48,20 +50,10 @@ actions:
     - boot:
         timeout:
           minutes: 10
-      {% if device_type == DeviceType.x86 %}
         method: ipxe
         commands: ramdisk
         prompts:
           - 'root@linaro-server:~#'
-      {% elif device_type == DeviceType.kvm %}
-        method: qemu-nfs
-        media: nfs
-        auto_login:
-          login_prompt: "kvm02 login:"
-          username: root
-        prompts:
-          - 'linaro-test'
-      {% endif %}
 
     - test:
         definitions:
This page took 0.035742 seconds and 4 git commands to generate.