Hello,

you are not specifying the connection_list for this specific device, only the connection_command. This is not enough for uuu that requires a connection_list.


Rgds

Le lun. 19 oct. 2020 à 15:51, DAS, BHARGAV <BHARGAV_DAS@mentor.com> a écrit :

Hi Remi,

 

Please check the attached rendered yaml.

 

Regards,

Bhargav

 

From: Remi Duraffort [mailto:remi.duraffort@linaro.org]
Sent: 19 October 2020 04:45 PM
To: DAS, BHARGAV <BHARGAV_DAS@mentor.com>
Cc: lava-users@lists.lavasoftware.org
Subject: Re: [Lava-users] Error while using uuu boot method

 

Hello,

 

could you paste the device dictionary after the rendering? Click on "Rendered YAML" tab.

 

 

Rgds

 

Le mer. 14 oct. 2020 à 14:11, DAS, BHARGAV <BHARGAV_DAS@mentor.com> a écrit :

Hi Remi,

After adding these line in the device dictionary as you suggested I was able to successfully execute my job in a imx6 device

 

{% set connection_list = ['uart0'] %}
{% set connection_tags = {'uart0': ['primary', 'telnet']} %}
{% set connection_commands = {'uart0': 'telnet staging01 7106'} %} 

 

But now when I am trying to execute a similar job in imx8mmini device, I am again getting the same error

 

Job error: Invalid job data: ['Unable to connect to shell - missing connections block.']

 

Here is my device dictionary


{% extends 'imx8mm-evk.jinja2' %}

{% set device_type = 'imx8mm-evk' %}

{% set soft_reset_command = 'reboot' %}

{% set soft_reboot_command = 'reboot' %}

{% set connection_list = ['uart0'] %}

{% set connection_tags = {'uart0': ['primary', 'telnet']} %}

{% set connection_commands = {'uart0': 'telnet localhost 8007'} %}

{% set uboot_bootcmd = 'bootm 0x40480000' %}

{% set uuu_usb_otg_path = '3:2' %}

{% set uuu_corrupt_boot_media_command = ['mmc dev 1', 'mmc erase 0 0x400'] %}

{% set bootloader_prompt = 'u-boot=>' %}

{% set shutdown_message = 'Restarting system' %}

{% set power_off_command = '/usr/bin/pduclient --daemon 34.86.60.229 --hostname 34.86.254.21 --command off --port 15' %}

{% set hard_reset_command = '/usr/bin/pduclient --daemon 34.86.60.229 --hostname 34.86.254.21 --command reboot --port 15' %}

{% set power_on_command = '/usr/bin/pduclient --daemon 34.86.60.229 --hostname 34.86.254.21 --command on --port 15' %}

 

 

Regards,

Bhargav

 

From: Remi Duraffort [mailto:remi.duraffort@linaro.org]
Sent: 08 October 2020 10:13 PM
To: DAS, BHARGAV <BHARGAV_DAS@mentor.com>
Cc: lava-users@lists.lavasoftware.org
Subject: Re: [Lava-users] Error while using uuu boot method

 

 

 

Le jeu. 8 oct. 2020 à 18:31, DAS, BHARGAV <BHARGAV_DAS@mentor.com> a écrit :

Hi Remi,

In the following line ‘uart0’ needs to be obtained from the worker where the target is connected or it is just a tag ?

{% set connection_list = ['uart0'] %}

 

This name is just an internal reference to indicate to lava that it should use "uart0" from the connection command:

 

{% set connection_commands = {'uart0': 'telnet staging01 7106'} %}

 

 

Also, as I have mentioned in another server I am not facing this issue even that target doesn’t have the connection commands in the device dictionary.

 

Regards,

Bhargav

 

From: Remi Duraffort [mailto:remi.duraffort@linaro.org]
Sent: 08 October 2020 09:52 PM
To: DAS, BHARGAV <BHARGAV_DAS@mentor.com>
Cc: lava-users@lists.lavasoftware.org
Subject: Re: [Lava-users] Error while using uuu boot method

 

Hello,

 

this is due to a misconfiguration of your device. The device dictionary is missing the connection commands.

 

 

{% set connection_list = ['uart0'] %}
{% set connection_tags = {'uart0': ['primary', 'telnet']} %}
{% set connection_commands = {'uart0': 'telnet staging01 7106'} %} 

 

 

Rgds

 

Le jeu. 8 oct. 2020 à 16:38, DAS, BHARGAV <BHARGAV_DAS@mentor.com> a écrit :

Hi Lava users,

 

 

I am getting “ Job error: Invalid job data: ['Unable to connect to shell - missing connections block.'] “ error while submitting jobs which is using ‘uuu’ deploy and boot method.

 

Same job I am using in a different server and there it is working perfectly. Both the servers are using same version.

 

Please check the attached job yaml file (uuu-job.yaml) and the job log (uuu-job-fail-log.txt).

 

 

Regards,
Bhargav

_______________________________________________
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

LAVA Architect

Linaro



--
Rémi Duraffort
LAVA Architect
Linaro