Hi, Lava Team!
Want to use user_commands as written here : https://validation.linaro.org/static/docs/v2/actions-command.html
Device dictionary has : {% set user_commands = {'switch_mode' : {'do': './usr/local/scripts/switch_mode.sh'}} %}
Job https://pastebin.com/hhWbC207 I have lxc and custom script to set device flash-mode. But have error error_msg: 'common' is a reserved namespace that should not be present with other namespaces
To fix it I added namespace to command: - command: namespace: tlxc name: switch_to_qdl
But error again in validate before submit Invalid definition: extra keys not allowed @ data['actions'][3]['command']['namespace']
I have fastboot and custom flash methods. pre_power_command in deploy I use for fastboot. Need to use somehow custom script to switch to another mode, that's why I decided to use -command action.
Please help how to fix error with namespaces or suggest another solution.
Best regards, Ilya Fedusiv
Hello,
IIRC this has been fixed some time ago. Which version of lava are you using?
Rgds
Le mar. 25 févr. 2020 à 18:14, Ilya Fedusiv ilya.f@l4b-software.com a écrit :
Hi, Lava Team!
Want to use user_commands as written here : https://validation.linaro.org/static/docs/v2/actions-command.html
Device dictionary has : {% set user_commands = {'switch_mode' : {'do': './usr/local/scripts/switch_mode.sh'}} %}
Job https://pastebin.com/hhWbC207 I have lxc and custom script to set device flash-mode. But have error
*error_msg: 'common' is a reserved namespace that should not be present with other namespaces *To fix it I added namespace to command:
*- command: *
- namespace: tlxc *
- name: switch_to_qdl*
But error again in validate before submit Invalid definition: extra keys not allowed @ data['actions'][3]['command']['namespace']
I have fastboot and custom flash methods. pre_power_command in deploy I use for fastboot. Need to use somehow custom script to switch to another mode, that's why I decided to use -command action.
Please help how to fix error with namespaces or suggest another solution.
Best regards, Ilya Fedusiv
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
2019.09 ________________________________ From: Remi Duraffort remi.duraffort@linaro.org Sent: Thursday, February 27, 2020 1:03 PM To: Ilya Fedusiv ilya.f@l4b-software.com Cc: lava-users@lists.lavasoftware.org lava-users@lists.lavasoftware.org Subject: Re: [Lava-users] Use user commands
Hello,
IIRC this has been fixed some time ago. Which version of lava are you using?
Rgds
Le mar. 25 févr. 2020 à 18:14, Ilya Fedusiv <ilya.f@l4b-software.commailto:ilya.f@l4b-software.com> a écrit : Hi, Lava Team!
Want to use user_commands as written here : https://validation.linaro.org/static/docs/v2/actions-command.html
Device dictionary has : {% set user_commands = {'switch_mode' : {'do': './usr/local/scripts/switch_mode.sh'}} %}
Job https://pastebin.com/hhWbC207 I have lxc and custom script to set device flash-mode. But have error error_msg: 'common' is a reserved namespace that should not be present with other namespaces
To fix it I added namespace to command: - command: namespace: tlxc name: switch_to_qdl
But error again in validate before submit Invalid definition: extra keys not allowed @ data['actions'][3]['command']['namespace']
I have fastboot and custom flash methods. pre_power_command in deploy I use for fastboot. Need to use somehow custom script to switch to another mode, that's why I decided to use -command action.
Please help how to fix error with namespaces or suggest another solution.
Best regards, Ilya Fedusiv
_______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.orgmailto:Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
-- Rémi Duraffort LAVA Architect Linaro
Hello
that's was fixed in 2019.04 ( https://git.lavasoftware.org/lava/lava/-/merge_requests/448) so that should work in your instance.
I tried on my instance and I don't have any error with your example (after adding the namespace to the command action).
Rgds
Le jeu. 27 févr. 2020 à 12:30, Ilya Fedusiv ilya.f@l4b-software.com a écrit :
2019.09
*From:* Remi Duraffort remi.duraffort@linaro.org *Sent:* Thursday, February 27, 2020 1:03 PM *To:* Ilya Fedusiv ilya.f@l4b-software.com *Cc:* lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org
*Subject:* Re: [Lava-users] Use user commands
Hello,
IIRC this has been fixed some time ago. Which version of lava are you using?
Rgds
Le mar. 25 févr. 2020 à 18:14, Ilya Fedusiv ilya.f@l4b-software.com a écrit :
Hi, Lava Team!
Want to use user_commands as written here : https://validation.linaro.org/static/docs/v2/actions-command.html
Device dictionary has : {% set user_commands = {'switch_mode' : {'do': './usr/local/scripts/switch_mode.sh'}} %}
Job https://pastebin.com/hhWbC207 I have lxc and custom script to set device flash-mode. But have error
*error_msg: 'common' is a reserved namespace that should not be present with other namespaces *To fix it I added namespace to command:
*- command: *
- namespace: tlxc *
- name: switch_to_qdl*
But error again in validate before submit Invalid definition: extra keys not allowed @ data['actions'][3]['command']['namespace']
I have fastboot and custom flash methods. pre_power_command in deploy I use for fastboot. Need to use somehow custom script to switch to another mode, that's why I decided to use -command action.
Please help how to fix error with namespaces or suggest another solution.
Best regards, Ilya Fedusiv
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
-- Rémi Duraffort LAVA Architect Linaro
lava-users@lists.lavasoftware.org