Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-1697

hard_reset_command: can it be optional ?

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CIAT
    • Labels:

      Description

      slaves:
        - name: agl-core-lab-1
          host: agl-core-lab-1
          zmq_auth_key: /root/lava-docker/certificates.d/agl-core-lab-1.key
          zmq_auth_key_secret: /root/lava-docker/certificates.d/agl-core-lab-1.key_secret
          remote_master: agl-master
          remote_address: lavadocker.automotivelinux.org
          remote_rpc_port: 443
          remote_user: corelab
          remote_proto: https
          dispatcher_ip: 192.168.111.1
          extra_actions:
          - "apt-get -y install lavapdu-client mc"
          - "echo \"#!/bin/bash\" >> /usr/local/bin/hardresetvayu-01.sh"
          - "echo \"curl http://admin:admin@192.168.2.198/FF0600 && sleep 2 && curl http://admin:admin@192.168.2.198/FF0601\" >> /usr/local/bin/hardresetvayu-01.sh"
          - "chmod a+x /usr/local/bin/hardresetvayu-01.sh"
          - "echo \"#!/bin/bash\" >> /usr/local/bin/hardresetrpi3-01.sh"
          - "echo \"curl http://admin:admin@192.168.2.198/FF0200 && sleep 2 && curl http://admin:admin@192.168.2.198/FF0201\" >> /usr/local/bin/hardresetrpi3-01.sh"
          - "chmod a+x /usr/local/bin/hardresetrpi3-01.sh"boards:
        - name: qemu-corelab-01
          type: qemu
        - name: vayu-corelab-01
          type: dra7-evm
          pdu_generic:
            hard_reset_command: hardresetvayu-01.sh
            power_off_command: curl http://admin:admin@192.168.2.198/FF0600
            power_on_command: curl http://admin:admin@192.168.2.198/FF0601
          uart:
            idvendor: 0x0403
            idproduct: 0x6001
            serial: A801ZUBH
            use_screen: true
       

       

      The need to mess with hardreset*.sh instead of writing it directly into hard_reset_command

      is iffy .

      Also iirc lava does already emulate it if it is not specified by power_off and power_on .

      So

      a) why is it not optional

      b) why does    curl ; sleep 1 ; curl    not work

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            clabbe Corentin Labbe
            Reporter:
            jsmoeller Jan-Simon Moeller
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: