Le mar. 1 mars 2022 à 15:18, koti <kotisoftwaretest@gmail.com> a écrit :
Hi Remi,

Now we have PDU support to power on/off the board and update those commands under  "/etc/lava-server/dispatcher-config/devices" .

Still we are getting error for this test yaml file i.e

test.yaml
#######
"
- boot:
    timeout:
      minutes: 20
    method: minimal
    soft_reboot: ["reboot"]
    parameters:
      shutdown-message: ["reboot: Restarting system"]
    auto_login:
      login_prompt: 'login:'
       username: root
     timeout:
      minutes: 20
     prompts:
     - '# '
     timeout:
       minutes: 20"

Error log:
#######
"
lavamaster@lava$lavacli -i admin@validation jobs submit  /tmp/test.yaml
Unable to submit /tmp/target.yaml: <Fault 400: "Problem with submitted job data: expected str for dictionary value @ data['actions'][0]['boot']['parameters']['shutdown-message']">"

This should be a string not a dictionnary. 
"

Is there any patch required to fix this issue?

Regards,
Koti
On Fri, 26 Mar 2021 at 21:24, Remi Duraffort <remi.duraffort@linaro.org> wrote:
Hello,

you are not using a PDU to power on/off the board?

Le lun. 22 mars 2021 à 09:44, koti <kotisoftwaretest@gmail.com> a écrit :
Hi Remi,

Thanks for your reply.

Please find the job definition as attached.

Regards,
Koti

On Mon, 22 Mar 2021 at 13:43, Remi Duraffort <remi.duraffort@linaro.org> wrote:
Hello,

could you share the job definition?


Rgds

Le lun. 22 févr. 2021 à 14:52, koti <kotisoftwaretest@gmail.com> a écrit :
Hi,

My test job .yaml does not provide any error while health-check trigger from GUI and give error while submitting the same test job from the command line .

you can find the command line submission error as mentioned below.

"
lavamaster@lava$lavacli -i admin@validation jobs submit  /tmp/test.yaml
Unable to submit /tmp/target.yaml: <Fault 400: "Problem with submitted job data: expected str for dictionary value @ data['actions'][0]['boot']['parameters']['shutdown-message']">"
"

I have reported same type of bug for "soft-reboot" command support and provided the patch by lava-team for this soft-reboot support issue i.e "https://git.lavasoftware.org/lava/lava/-/merge_requests/1067/diffs#05da71b30b41bb2e1c84feb42addf8a93b7f8524_62_61"

Can someone provide the  path for "shutdown-message" support also?

Regards,
Koti
_______________________________________________
Lava-users mailing list
Lava-users@lists.lavasoftware.org
https://lists.lavasoftware.org/mailman/listinfo/lava-users


--
Rémi Duraffort
LAVA Architect
Linaro


--
Rémi Duraffort
LAVA Architect
Linaro


--
Rémi Duraffort
TuxArchitect
Linaro