What does the dispatcher use LAVA_SERVER_IP for in a standalone setup

Asked by Mustafa Faraj

I am trying to run job in a standalone environment through lava-dispatch using the following command:

(one)gumstix@hwlab:/srv/lava/instances/one/bin$ sudo ./lava-dispatch /srv/lava/instances/one/job/overo-job.json --config-dir=/srv/lava/instances/one/lib/python2.7/site-packages/lava_dispatcher/default-config/lava-dispatcher/devices/overo.conf

and that is currently getting stuck in the deploy_linaro_image phase of the job. It gets stuck in pinging the LAVA_SERVER_IP specified in the lava-dispatcher.conf file. I am not sure why it is trying to contact the server, especially since I am running this in a standalone setup. Is there something I am missing, or is there a workaround to this issue?

Thanks.

Last login: Thu Feb 23 17:59:02 UTC 2012 on tty1
Welcome to Linaro 11.09 (GNU/Linux 3.0.0-1006-linaro-omap armv7l)

 * Documentation: https://wiki.linaro.org/
root@master:~# export PS1="$PS1 [rc=$(echo \$?)]: "
export PS1="$PS1 [rc=$(echo \$?)]: "
root@master:~# <LAVA_DISPATCHER>2012-02-23 10:56:09 AM INFO: System is in master image now

[rc=0]:
root@master:~# [<LAVA_DISPATCHER>2012-02-23 10:56:11 AM INFO: Format testboot and testrootfs partitions
rc=0]: umount /dev/disk/by-label/testrootfs
umount /dev/disk/by-label/testrootfs
umount: /dev/disk/by-label/testrootfs: not mounted
root@master:~# [rc=1]: mkfs -t ext3 -q /dev/disk/by-label/testrootfs -L testrootfs
tfss -t ext3 -q /dev/disk/by-label/testrootfs -L testroo
root@master:~# [rc=0]: umount /dev/disk/by-label/testboot
umount /dev/disk/by-label/testboot
umount: /dev/disk/by-label/testboot: not mounted
root@master:~# [rc=1]: mkfs.vfat /dev/disk/by-label/testboot -n testboot
mkfs.vfat /dev/disk/by-label/testboot -n testboot
mkfs.vfat 3.0.9 (31 Jan 2010)
root@master:~# [rc=0]: <LAVA_DISPATCHER>2012-02-23 10:57:12 AM INFO: Waiting for network to come up
LC_ALL=C ping -W4 -c1 192.168.1.11
LC_ALL=C ping -W4 -c1 192.168.1.11
PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data.

--- 192.168.1.11 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

root@master:~# [rc=1]: LC_ALL=C ping -W4 -c1 192.168.1.11
LC_ALL=C ping -W4 -c1 192.168.1.11
PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data.

--- 192.168.1.11 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

Question information

Language:
English Edit question
Status:
Answered
For:
LAVA Dispatcher Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Paul Larson (pwlars) said :
#1

The way deployment currently works, the image you are trying to deploy is downloaded onto the server, it runs linaro-media-create (or not if you give it the whole image) then extracts the root and boot images as tarballs. Those are then downloaded from the device you are trying to test. So your device needs to know the server, and base url to download those things from, which are specified in the lava-dispatcher.conf file under your instance etc. directory.

Revision history for this message
narendrakumar (narendrakumar-chepuri) said :
#2

Hi I am trying to run a job without PDU by manual disconnecting and connecting of power supply to panda baord but I am gettign some error I am not getting what could be the issue. Can you analyse the log and tell me the sollution for the issue.

Error Log:

2015-03-13 04:12:33 AM DEBUG: expect (600): 'root@master \[rc=(\d+)\]# '
Section 39
39.0 umount /dev/disk/by-label/testrootfs39.1 umount: /dev/disk/by-label/testrootfs: not found
Section 40
40.0 root@master [rc=1]# 2015-03-13 04:12:33 AM DEBUG: expect (1): '['.+', , ]'40.1 2015-03-13 04:12:34 AM DEBUG: send (delay_ms=0): nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs 40.2 2015-03-13 04:12:37 AM DEBUG: send (delay_ms=0):
Section 41
41.0
Section 42
42.0 2015-03-13 04:12:37 AM DEBUG: expect (900): 'root@master \[rc=(\d+)\]# '
Section 43
43.0 nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs43.1 Could not stat /dev/disk/by-label/testrootfs --- No such file or directory43.2 43.3 The device apparently does not exist; did you specify it correctly?
Section 44
44.0 root@master [rc=1]# 2015-03-13 04:12:37 AM INFO: General Exception: executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 144.1 2015-03-13 04:12:37 AM DEBUG: finally status fail44.2 2015-03-13 04:12:37 AM WARNING: [ACTION-E] deploy_linaro_image is finished with error (executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 1).
Section 45
45.0 ErrorMessage: executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 145.1 Lava failed at action deploy_linaro_image with error:executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 1
Section 46
46.0 Traceback (most recent call last):46.1 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/job.py", line 364, in run46.2 action.run(**params)46.3 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/actions/deploy.py", line 115, in run46.4 rootfstype=rootfstype, bootloadertype=bootloadertype,)46.5 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/client/base.py", line 398, in deploy_linaro46.6 bootloadertype)46.7 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/device/bootloader.py", line 370, in deploy_linaro_prebuilt46.8 bootloadertype)46.9 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/device/master.py", line 167, in deploy_linaro_prebuilt46.10 self._deploy_tarballs(boot_tgz, root_tgz, rootfstype)46.11 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/device/master.py", line 178, in _deploy_tarballs46.12 self._format_testpartition(master, rootfstype)46.13 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/device/master.py", line 269, in _format_testpartition46.14 % (fstype, self.testrootfs_path, self.testrootfs_label), timeout=1800)46.15 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/client/base.py", line 122, in run46.16 "executing %r failed with code %s" % (cmd, rc))46.17 RuntimeError: executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 1
Section 47
47.0 2015-03-13 04:12:37 AM DEBUG: Finalizing child process group with PID 1252947.1 2015-03-13 04:12:37 AM INFO: Submitting the test result with parameters = {u'token': '', u'stream': u'/anonymous/narendra/', u'server': u'http://cnk1@127.0.1.1/RPC2/'}47.2 2015-03-13 04:12:37 AM DEBUG: server RPC endpoint URL: http://cnk1@127.0.1.1/RPC2/47.3 2015-03-13 04:12:38 AM INFO: Dashboard : http://127.0.1.1/dashboard/permalink/bundle/7689b7ac4d25584951e539996bb0762effce5968/

Revision history for this message
Dave Pigott (dpigott) said :
#3

Hi,

You’ve lost the testrootfs partition label from your test image. There are plans to actually get rid of the requirement for this label, but until then you’ll have to go onto the test image through a serial connection and make it your self.

Dave

> On 13 Mar 2015, at 04:36, narendrakumar <email address hidden> wrote:
>
> Question #188656 on LAVA Dispatcher changed:
> https://answers.launchpad.net/lava-dispatcher/+question/188656
>
> narendrakumar proposed the following answer:
> Hi I am trying to run a job without PDU by manual disconnecting and
> connecting of power supply to panda baord but I am gettign some error I
> am not getting what could be the issue. Can you analyse the log and tell
> me the sollution for the issue.
>
>
> Error Log:
>
> 2015-03-13 04:12:33 AM DEBUG: expect (600): 'root@master \[rc=(\d+)\]# '
> Section 39
> 39.0 umount /dev/disk/by-label/testrootfs39.1 umount: /dev/disk/by-label/testrootfs: not found
> Section 40
> 40.0 root@master [rc=1]# 2015-03-13 04:12:33 AM DEBUG: expect (1): '['.+', , ]'40.1 2015-03-13 04:12:34 AM DEBUG: send (delay_ms=0): nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs 40.2 2015-03-13 04:12:37 AM DEBUG: send (delay_ms=0):
> Section 41
> 41.0
> Section 42
> 42.0 2015-03-13 04:12:37 AM DEBUG: expect (900): 'root@master \[rc=(\d+)\]# '
> Section 43
> 43.0 nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs43.1 Could not stat /dev/disk/by-label/testrootfs --- No such file or directory43.2 43.3 The device apparently does not exist; did you specify it correctly?
> Section 44
> 44.0 root@master [rc=1]# 2015-03-13 04:12:37 AM INFO: General Exception: executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 144.1 2015-03-13 04:12:37 AM DEBUG: finally status fail44.2 2015-03-13 04:12:37 AM WARNING: [ACTION-E] deploy_linaro_image is finished with error (executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 1).
> Section 45
> 45.0 ErrorMessage: executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 145.1 Lava failed at action deploy_linaro_image with error:executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 1
> Section 46
> 46.0 Traceback (most recent call last):46.1 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/job.py", line 364, in run46.2 action.run(**params)46.3 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/actions/deploy.py", line 115, in run46.4 rootfstype=rootfstype, bootloadertype=bootloadertype,)46.5 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/client/base.py", line 398, in deploy_linaro46.6 bootloadertype)46.7 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/device/bootloader.py", line 370, in deploy_linaro_prebuilt46.8 bootloadertype)46.9 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/device/master.py", line 167, in deploy_linaro_prebuilt46.10 self._deploy_tarballs(boot_tgz, root_tgz, rootfstype)46.11 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/device/master.py", line 178, in _deploy_tarballs46.12 self._format_testpartition(master, rootfstype)46.13 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/device/master.py", line 269, in _format_testpartition46.14 % (fstype, self.testrootfs_path, self.testrootfs_label), timeout=1800)46.15 File "/usr/lib/python2.7/dist-packages/lava_dispatcher/client/base.py", line 122, in run46.16 "executing %r failed with code %s" % (cmd, rc))46.17 RuntimeError: executing u'nice mkfs -t ext4 -q /dev/disk/by-label/testrootfs -L testrootfs' failed with code 1
> Section 47
> 47.0 2015-03-13 04:12:37 AM DEBUG: Finalizing child process group with PID 1252947.1 2015-03-13 04:12:37 AM INFO: Submitting the test result with parameters = {u'token': '', u'stream': u'/anonymous/narendra/', u'server': u'http://cnk1@127.0.1.1/RPC2/'}47.2 2015-03-13 04:12:37 AM DEBUG: server RPC endpoint URL: http://cnk1@127.0.1.1/RPC2/47.3 2015-03-13 04:12:38 AM INFO: Dashboard : http://127.0.1.1/dashboard/permalink/bundle/7689b7ac4d25584951e539996bb0762effce5968/
>
> --
> You received this question notification because you are a member of
> Linaro Validation Team, which is an answer contact for LAVA Dispatcher.

Can you help with this problem?

Provide an answer of your own, or ask Mustafa Faraj for more information if necessary.

To post a message you must log in.