how to run lava-test in qemu by lava-server control

Asked by chunrongguo on 2012-09-19

hello, all
I add qemu device according documentation (http://lava.readthedocs.org/en/latest/qemu-deploy.html)
I Run command
$ lava-dispatch /tmp/qemu.json
some errors show and how to resolve it ? how to run lava-test in qemu by lava-server control qemu device ?

<LAVA_DISPATCHER>2012-09-19 06:04:24 PM INFO: [ACTION-B] deploy_linaro_image is started with {u'image': u'http://releases.linaro.org/images/12.03/oneiric/nano/beagle-nano.img.gz'}
<LAVA_DISPATCHER>2012-09-19 06:04:24 PM INFO: Downloading image: http://releases.linaro.org/images/12.03/oneiric/nano/beagle-nano.img.gz
<LAVA_DISPATCHER>2012-09-19 06:04:24 PM WARNING: [ACTION-E] deploy_linaro_image is finished with error (<urlopen error [Errno 111] Connection refused>).
Lava failed at action deploy_linaro_image with error:<urlopen error [Errno 111] Connection refused>
Traceback (most recent call last):
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/job.py", line 170, in run
    action.run(**params)
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/actions/deploy.py", line 88, in run
    kernel_matrix=kernel_matrix, rootfstype=rootfstype)
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/client/qemu.py", line 56, in deploy_linaro
    image_file = download_image(image, self.context)
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/downloader.py", line 153, in download_image
    with reader(url, context.lava_proxy, context.lava_cookies) as r:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/downloader.py", line 62, in _http_stream
    resp = opener.open(url, timeout=30)
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 111] Connection refused>
Traceback (most recent call last):
  File "/srv/lava/instances/test/code/r57/bin/lava", line 54, in <module>
    lava.tool.main.LavaDispatcher.run()
  File "/srv/lava/.cache/eggs/lava_tool-0.5-py2.7.egg/lava/tool/dispatcher.py", line 147, in run
    raise SystemExit(cls().dispatch(args))
  File "/srv/lava/.cache/eggs/lava_tool-0.5-py2.7.egg/lava/tool/dispatcher.py", line 137, in dispatch
    return command.invoke()
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava/dispatcher/commands.py", line 101, in invoke
    job.run()
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/job.py", line 170, in run
    action.run(**params)
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/actions/deploy.py", line 88, in run
    kernel_matrix=kernel_matrix, rootfstype=rootfstype)
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/client/qemu.py", line 56, in deploy_linaro
    image_file = download_image(image, self.context)
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/downloader.py", line 153, in download_image
    with reader(url, context.lava_proxy, context.lava_cookies) as r:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/srv/lava/.cache/eggs/lava_dispatcher-0.17.2-py2.7.egg/lava_dispatcher/downloader.py", line 62, in _http_stream
    resp = opener.open(url, timeout=30)
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>

thank you
chrguo

Question information

Language:
English Edit question
Status:
Solved
For:
LAVA Dashboard (deprecated) Edit question
Assignee:
No assignee Edit question
Solved by:
Andy Doan
Solved:
2012-09-21
Last query:
2012-09-21
Last reply:
2012-09-20

This question was reopened

Dave Pigott (dpigott) said : #1

Well, it's saying that the connection was refused. If you go to http://releases.linaro.org/images/12.03/oneiric/nano/ with a browser, does it work?

chunrongguo (chrguo-x) said : #2

it work when I go to http://releases.linaro.org/images/12.03/oneiric/nano/ with b browser

Dave Pigott (dpigott) said : #3

And you can download the .img.gz file using a browser as well?

chunrongguo (chrguo-x) said : #4

yes , I can download the .img.gz

Dave Pigott (dpigott) said : #5

OK. Can you paste in your json file for me please?

Best Andy Doan (doanac) said : #6

This is an issue with our download servers. They have some click-through licensing support that does weird HTTP redirections. If you try downloading that link with curl it will fail.

So the work around for you is to download the image to your local system, then change the "image" in the JSON file to be something like "file:///image.tgz"

Sorry about that. I'll update the doc for future reference.

chunrongguo (chrguo-x) said : #7

Thanks Andy Doan, that solved my question.