[Fuego] progress with fuego-release-test

Guilherme Camargo guicc at profusion.mobi
Fri Mar 2 18:43:13 UTC 2018


​Hello, Tim.

Thanks for testing.

>From the logs I can see that ​Docker can't recognize the chown
flag that we're using for copying the file structure of fuego-rw
to the container.

> Step 14/32 : COPY --chown=jenkins:jenkins fuego-rw /fuego-rw
> Unknown flag: chown

And this is probably happening because of the Docker version you're using.
That flag has been merged in August, and should be present in
Docker CE 17.09 (release notes
<https://docs.docker.com/release-notes/docker-ce/#17090-ce-2017-09-26>).

This flag is necessary because COPY directives, by default, store the data
that's being copied into the container with root:root ownership - and the
Jenkins
user does not belong to the root group.

This problem would not arise if we mapped the user, though, because the
Entrypoint would chown those directories to Jenkins.

Do you think it would be ok for Fuego to depend on Docker 17.09+?
If not, we can probably manage to solve this problem in other ways through
the entrypoint.

Thanks


On Fri, Mar 2, 2018 at 2:35 AM, <Tim.Bird at sony.com> wrote:

> Using the tips we discussed on slack, I was able to finish building the
> host container, and when I ran the
> fuego-test.default.Functional.fuegotest job, I got to step 14 creating
> the 'DUT" container, and the
> system errors out with the message below:
>
> This is on Ubuntu 14.04, docker version 17.05.0-ce
>
>
> Step 14/32 : COPY --chown=jenkins:jenkins fuego-rw /fuego-rw
> Unknown flag: chown
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.4/dist-packages/docker/api/client.py",
> line 223, in _raise_for_status
>     response.raise_for_status()
>   File "/usr/local/lib/python3.4/dist-packages/requests/models.py", line
> 935, in raise_for_status
>     raise HTTPError(http_error_msg, response=self)
> requests.exceptions.HTTPError: 404 Client Error: Not Found for url:
> http+docker://localunixsocket/v1.35/containers/create?name=
> fuego-release-container
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/fuego-core/engine/tests/Functional.fuegotest/test_run.py", line
> 235, in <module>
>     sys.exit(main())
>   File "/fuego-core/engine/tests/Functional.fuegotest/test_run.py", line
> 225, in main
>     args.container_name)
>   File "/fuego-core/engine/tests/Functional.fuegotest/test_run.py", line
> 97, in setup_docker
>     name=container_name, command='/bin/bash')
>   File "/usr/local/lib/python3.4/dist-packages/docker/models/containers.py",
> line 814, in create
>     resp = self.client.api.create_container(**create_kwargs)
>   File "/usr/local/lib/python3.4/dist-packages/docker/api/container.py",
> line 404, in create_container
>     return self.create_container_from_config(config, name)
>   File "/usr/local/lib/python3.4/dist-packages/docker/api/container.py",
> line 415, in create_container_from_config
>     return self._result(res, True)
>   File "/usr/local/lib/python3.4/dist-packages/docker/api/client.py",
> line 229, in _result
>     self._raise_for_status(response)
>   File "/usr/local/lib/python3.4/dist-packages/docker/api/client.py",
> line 225, in _raise_for_status
>     raise create_api_error_from_http_exception(e)
>   File "/usr/local/lib/python3.4/dist-packages/docker/errors.py", line
> 31, in create_api_error_from_http_exception
>     raise cls(e, response=response, explanation=explanation)
> docker.errors.ImageNotFound: 404 Client Error: Not Found ("No such image:
> fuego-release:latest")
> + signal_handler
> + echo 'in signal_handler'
> in signal_handler
> + unlock_build_dir
> + '[' -e /fuego-rw/buildzone/fuego-test.default.Functional.
> fuegotest-x86_64/fuego.build.lock ']'
> + export FUEGO_RECEIVED_SIGNAL=true
> + FUEGO_RECEIVED_SIGNAL=true...
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/fuego/attachments/20180302/6c559473/attachment-0001.html>


More information about the Fuego mailing list