[Avocado-devel] Fwd: Avocado crashed on fedora25 docker container

Lukáš Doktor ldoktor at redhat.com
Tue Nov 28 15:24:33 UTC 2017


Dne 16.11.2017 v 15:49 chandrpm at codeaurora.org napsal(a):
> Hi,

Hello Chandrashekar,

I'm sorry for such a late reply, the message got lost in piles of emails...

> 
> Host is Ubuntu aarch64 machine.
> 
> I have two issues one is unable to run the docker:
> 
> root at ubuntu:~# docker run ldoktor/fedora-avocado /bin/true
> standard_init_linux.go:178: exec user process caused "exec format error"

google had answer for me https://github.com/ethereum/go-ethereum/issues/3775

it's because the `ldoktor/fedora-avocado` is built for `x86_64` architecture. You have to use your own image. You can try our dockerfile: https://github.com/ldoktor/fedora-avocado but use `aarch64` fedora instead of the default one (not sure how, never tried it myself).

> 
> root at ubuntu:~# docker run --rm  ldoktor/fedora-avocado /bin/false
> standard_init_linux.go:178: exec user process caused "exec format error"
> 
> 
> Secondly, if I pull fedora and install the avocado, when I run the avocado list within the docker, the avocado crashes.

This is odd and there is probably something wrong in the way Avocado is being installed. Can you share the docker-file with us?


Kind regards,
Lukáš

> 
> I am trying to run few basic tests to see avocado works for docker containers, that is what we are looking at.
> 
> Thanks,
> Chandrashekar
> 
> 
> On 2017-11-16 14:34, Amador Pahim wrote:
>> "I pulled the fedora container and installed the avocado to run the remotely"
>>
>> I don't think he's using 'ldoktor/fedora-avocado'.
>>
>> On Thu, Nov 16, 2017 at 9:56 AM, Lukáš Doktor <ldoktor at redhat.com> wrote:
>>> Dne 16.11.2017 v 08:22 chandrpm at codeaurora.org napsal(a):
>>>>
>>>> Hi,
>>>>
>>>> I pulled the fedora container and installed the avocado to run the remotely,
>>>>
>>>> when I run the avocado, it crashes with the following error.
>>>>
>>>> Am I doing something wrong ?
>>>>
>>>> Avocado crashed:
>>>> Traceback (most recent call last):
>>>>   File "/usr/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs
>>>>     func(*targs, **kargs)
>>>>   File "/usr/lib64/python2.7/logging/__init__.py", line 1668, in shutdown
>>>>     h.flush()
>>>>   File "/usr/lib64/python2.7/logging/__init__.py", line 845, in flush
>>>>     self.stream.flush()
>>>>   File "/usr/lib/python2.7/site-packages/avocado/core/output.py", line 565, in flush
>>>>     if not self.pipe.closed:
>>>> AttributeError: '_StdOutputFile' object has no attribute 'closed'
>>>>
>>>> Thanks,
>>>> Chandrashekar
>>>
>>> Dear Chandrashekar,
>>>
>>> can you please provide more details about the environment and way you invoke Avocado? I tried:
>>>
>>> $ docker run ldoktor/fedora-avocado /bin/true
>>> Unable to find image 'ldoktor/fedora-avocado:latest' locally
>>> Trying to pull repository docker.io/ldoktor/fedora-avocado ...
>>> sha256:0ebe31572b456d7d949e844b04f258161c5b39cc38c4a20ea3aaa594363a858c: Pulling from docker.io/ldoktor/fedora-avocado
>>>
>>> 00ddb097f3f5: Pull complete
>>> 3a3524f4880e: Pull complete
>>> Digest: sha256:0ebe31572b456d7d949e844b04f258161c5b39cc38c4a20ea3aaa594363a858c
>>> Status: Downloaded newer image for docker.io/ldoktor/fedora-avocado:latest
>>> $ echo $?
>>> 0
>>> $ docker run --rm  ldoktor/fedora-avocado /bin/false
>>> $ echo $?
>>> 1
>>>
>>> As well as:
>>>
>>> $ docker run --rm -i -t ldoktor/fedora-avocado /bin/sh
>>> sh-4.4# avocado run /bin/true
>>> JOB ID     : a3c95eb29b9e4cd773fa00ef2c1ed4b7c5191272
>>> JOB LOG    : /root/avocado/job-results/job-2017-11-16T08.51-a3c95eb/job.log
>>>  (1/1) /bin/true: PASS (0.00 s)
>>> RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
>>> JOB TIME   : 0.61 s
>>> sh-4.4# exit
>>>
>>> both working well.
>>>
>>> My system is:
>>> Fedora.23
>>> Docker version 1.12.6, build ae7d637/1.12.6
>>> docker.io/ldoktor/fedora-avocado   latest              88adeddfcecf        9 days ago          329.4 MB
>>>
>>> Kind regards,
>>> Lukáš
>>>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 502 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20171128/81c4160d/attachment.sig>


More information about the Avocado-devel mailing list