osbuilder/rootfs build with docker on native ubuntu host
Hi all, I fail to build rootfs on ubuntu host after following the “rootfs-builder/README.md” guide. Could anyone give me some idea to do further check? Issue: sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora ~/LINUX/go_repo/osbuilder/rootfs-builder/fedora ~/LINUX/go_repo/osbuilder # # Copyright (c) 2018 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 From fedora:27 RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils # This will install the proper golang to build Kata components ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz /tmp RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.gz ENV GOROOT=/usr/go ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin Dockerfile: /usr/share/man/man5/Dockerfile.5.gz ~/LINUX/go_repo/osbuilder Sending build context to Docker daemon 4.096kB Step 1/6 : From fedora:27 27: Pulling from library/fedora 2176639d844b: Pull complete Digest: sha256:ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467 Status: Downloaded newer image for fedora:27 ---> 9110ae7f579f Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils ---> Running in d367d5572325 Error: Failed to synchronize cache for repo 'updates' The command '/bin/sh -c dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils' returned a non-zero code: 1 Environment: 1. Host info: lsb_release -a LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial 2. Docker info: sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version' Server Version: 18.03.1-ce Runtimes: runc Default Runtime: runc containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88 runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: 949e6fa Kernel Version: 4.4.0-31-generic HTTP Proxy: http://*********:913/ HTTPS Proxy: https://******:913/ No Proxy: localhost,127.0.0.0/8 sudo docker version Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:17:20 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:15:30 2018 OS/Arch: linux/amd64 Experimental: false Regards, Changcheng
Hi Changcheng, It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic). Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue? - https://github.com/kata-containers/osbuilder/issues/new Cheers, James 2018-06-06 13:12 GMT+01:00 Liu, Changcheng <changcheng.liu@intel.com>:
Hi all,
I fail to build rootfs on ubuntu host after following the “ rootfs-builder/README.md” guide.
Could anyone give me some idea to do further check?
*Issue:*
*sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora*
*~/LINUX/go_repo/osbuilder/rootfs-builder/fedora ~/LINUX/go_repo/osbuilder*
*#*
*# Copyright (c) 2018 Intel Corporation*
*#*
*# SPDX-License-Identifier: Apache-2.0*
*From fedora:27*
*RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils*
*# This will install the proper golang to build Kata components*
*ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz <https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz> /tmp*
*RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.gz*
*ENV GOROOT=/usr/go*
*ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin*
*Dockerfile: /usr/share/man/man5/Dockerfile.5.gz*
*~/LINUX/go_repo/osbuilder*
*Sending build context to Docker daemon 4.096kB*
*Step 1/6 : From fedora:27*
*27: Pulling from library/fedora*
*2176639d844b: Pull complete*
*Digest: sha256:ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467*
*Status: Downloaded newer image for fedora:27*
*---> 9110ae7f579f*
*Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils*
*---> Running in d367d5572325*
*Error: Failed to synchronize cache for repo 'updates'*
*The command '/bin/sh -c dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils' returned a non-zero code: 1*
*Environment:*
1. Host info:
*lsb_release -a*
*LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch*
*Distributor ID: Ubuntu*
*Description: Ubuntu 16.04.1 LTS*
*Release: 16.04*
*Codename: xenial*
2. Docker info:
*sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version'*
*Server Version: 18.03.1-ce*
*Runtimes: runc*
*Default Runtime: runc*
*containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88*
*runc version: 4fc53a81fb7c994640722ac585fa9ca548971871*
*init version: 949e6fa*
*Kernel Version: 4.4.0-31-generic*
*HTTP Proxy: http://*********:913/*
*HTTPS Proxy: https://******:913/*
*No Proxy: localhost,127.0.0.0/8 <http://127.0.0.0/8>*
*sudo docker version*
*Client:*
*Version: 18.03.1-ce*
*API version: 1.37*
*Go version: go1.9.5*
*Git commit: 9ee9f40*
*Built: Thu Apr 26 07:17:20 2018*
*OS/Arch: linux/amd64*
*Experimental: false*
*Orchestrator: swarm*
*Server:*
*Engine:*
* Version: 18.03.1-ce*
* API version: 1.37 (minimum version 1.12)*
* Go version: go1.9.5*
* Git commit: 9ee9f40*
* Built: Thu Apr 26 07:15:30 2018*
* OS/Arch: linux/amd64*
* Experimental: false*
Regards,
Changcheng
_______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
-- James --- https://katacontainers.io/ | https://github.com/clearcontainers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.
Can you see if you can start an Ubuntu container and run apt-get update within the container? It sounds like connectivity to me as well. Docker needs proxy settings separately for inside the container connectivity. Eric On Jun 6, 2018, at 5:32 AM, Hunt, James O <james.o.hunt@intel.com<mailto:james.o.hunt@intel.com>> wrote: Hi Changcheng, It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic). Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue? - https://github.com/kata-containers/osbuilder/issues/new Cheers, James 2018-06-06 13:12 GMT+01:00 Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>>: Hi all, I fail to build rootfs on ubuntu host after following the “rootfs-builder/README.md<http://rootfs-builder/README.md>” guide. Could anyone give me some idea to do further check? Issue: sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora ~/LINUX/go_repo/osbuilder/rootfs-builder/fedora ~/LINUX/go_repo/osbuilder # # Copyright (c) 2018 Intel Corporation # # SPDX-License-Identifier: Apache-2.0
From fedora:27
RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils # This will install the proper golang to build Kata components ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz /tmp RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.gz ENV GOROOT=/usr/go ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin Dockerfile: /usr/share/man/man5/Dockerfile.5.gz ~/LINUX/go_repo/osbuilder Sending build context to Docker daemon 4.096kB Step 1/6 : From fedora:27 27: Pulling from library/fedora 2176639d844b: Pull complete Digest: sha256:ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467 Status: Downloaded newer image for fedora:27 ---> 9110ae7f579f Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils ---> Running in d367d5572325 Error: Failed to synchronize cache for repo 'updates' The command '/bin/sh -c dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils' returned a non-zero code: 1 Environment: 1. Host info: lsb_release -a LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial 2. Docker info: sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version' Server Version: 18.03.1-ce Runtimes: runc Default Runtime: runc containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88 runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: 949e6fa Kernel Version: 4.4.0-31-generic HTTP Proxy: http://*********:913/ HTTPS Proxy: https://******:913/ No Proxy: localhost,127.0.0.0/8<http://127.0.0.0/8> sudo docker version Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:17:20 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:15:30 2018 OS/Arch: linux/amd64 Experimental: false Regards, Changcheng _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev -- James --- https://katacontainers.io/ | https://github.com/clearcontainers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ. _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
Hi Eric, I'll give your feedback in the morning (It's a little late in PRC). --Thanks Changcheng From: Ernst, Eric Sent: Wednesday, June 6, 2018 8:59 PM To: Hunt, James O <james.o.hunt@intel.com> Cc: Liu, Changcheng <changcheng.liu@intel.com>; kata-dev@lists.katacontainers.io Subject: Re: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host Can you see if you can start an Ubuntu container and run apt-get update within the container? It sounds like connectivity to me as well. Docker needs proxy settings separately for inside the container connectivity. Eric On Jun 6, 2018, at 5:32 AM, Hunt, James O <james.o.hunt@intel.com<mailto:james.o.hunt@intel.com>> wrote: Hi Changcheng, It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic). Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue? - https://github.com/kata-containers/osbuilder/issues/new Cheers, James 2018-06-06 13:12 GMT+01:00 Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>>: Hi all, I fail to build rootfs on ubuntu host after following the "rootfs-builder/README.md<http://rootfs-builder/README.md>" guide. Could anyone give me some idea to do further check? Issue: sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora ~/LINUX/go_repo/osbuilder/rootfs-builder/fedora ~/LINUX/go_repo/osbuilder # # Copyright (c) 2018 Intel Corporation # # SPDX-License-Identifier: Apache-2.0
From fedora:27
RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils # This will install the proper golang to build Kata components ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz /tmp RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.gz ENV GOROOT=/usr/go ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin Dockerfile: /usr/share/man/man5/Dockerfile.5.gz ~/LINUX/go_repo/osbuilder Sending build context to Docker daemon 4.096kB Step 1/6 : From fedora:27 27: Pulling from library/fedora 2176639d844b: Pull complete Digest: sha256:ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467 Status: Downloaded newer image for fedora:27 ---> 9110ae7f579f Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils ---> Running in d367d5572325 Error: Failed to synchronize cache for repo 'updates' The command '/bin/sh -c dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils' returned a non-zero code: 1 Environment: 1. Host info: lsb_release -a LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial 2. Docker info: sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version' Server Version: 18.03.1-ce Runtimes: runc Default Runtime: runc containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88 runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: 949e6fa Kernel Version: 4.4.0-31-generic HTTP Proxy: http://*********:913/ HTTPS Proxy: https://******:913/ No Proxy: localhost,127.0.0.0/8<http://127.0.0.0/8> sudo docker version Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:17:20 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:15:30 2018 OS/Arch: linux/amd64 Experimental: false Regards, Changcheng _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev -- James --- https://katacontainers.io/ | https://github.com/clearcontainers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ. _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
Sure. In particular, I believe you’ll want to add something like $ cat $HOME/.docker/config.json { "proxies": { "default": { "httpProxy": "http://proxyurl:proxyport ", "httpsProxy": " http://proxyurl:proxyport ", "noProxy": "*.yourcorpurl.com,localhost" } } } After doing this, don’t forget daemon-reload and restart of docker. From: "Liu, Changcheng" <changcheng.liu@intel.com> Date: Wednesday, June 6, 2018 at 9:34 AM To: Eric Ernst <eric.ernst@intel.com>, "Hunt, James O" <james.o.hunt@intel.com> Cc: "kata-dev@lists.katacontainers.io" <kata-dev@lists.katacontainers.io> Subject: RE: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host Hi Eric, I’ll give your feedback in the morning (It’s a little late in PRC). --Thanks Changcheng From: Ernst, Eric Sent: Wednesday, June 6, 2018 8:59 PM To: Hunt, James O <james.o.hunt@intel.com> Cc: Liu, Changcheng <changcheng.liu@intel.com>; kata-dev@lists.katacontainers.io Subject: Re: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host Can you see if you can start an Ubuntu container and run apt-get update within the container? It sounds like connectivity to me as well. Docker needs proxy settings separately for inside the container connectivity. Eric On Jun 6, 2018, at 5:32 AM, Hunt, James O <james.o.hunt@intel.com<mailto:james.o.hunt@intel.com>> wrote: Hi Changcheng, It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic). Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue? - https://github.com/kata-containers/osbuilder/issues/new Cheers, James 2018-06-06 13:12 GMT+01:00 Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>>: Hi all, I fail to build rootfs on ubuntu host after following the “rootfs-builder/README.md<http://rootfs-builder/README.md>” guide. Could anyone give me some idea to do further check? Issue: sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora ~/LINUX/go_repo/osbuilder/rootfs-builder/fedora ~/LINUX/go_repo/osbuilder # # Copyright (c) 2018 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 From fedora:27 RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils # This will install the proper golang to build Kata components ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz /tmp RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.gz ENV GOROOT=/usr/go ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin Dockerfile: /usr/share/man/man5/Dockerfile.5.gz ~/LINUX/go_repo/osbuilder Sending build context to Docker daemon 4.096kB Step 1/6 : From fedora:27 27: Pulling from library/fedora 2176639d844b: Pull complete Digest: sha256:ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467 Status: Downloaded newer image for fedora:27 ---> 9110ae7f579f Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils ---> Running in d367d5572325 Error: Failed to synchronize cache for repo 'updates' The command '/bin/sh -c dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils' returned a non-zero code: 1 Environment: 1. Host info: lsb_release -a LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial 2. Docker info: sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version' Server Version: 18.03.1-ce Runtimes: runc Default Runtime: runc containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88 runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: 949e6fa Kernel Version: 4.4.0-31-generic HTTP Proxy: http://*********:913/ HTTPS Proxy: https://******:913/ No Proxy: localhost,127.0.0.0/8<http://127.0.0.0/8> sudo docker version Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:17:20 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:15:30 2018 OS/Arch: linux/amd64 Experimental: false Regards, Changcheng _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev -- James --- https://katacontainers.io/ | https://github.com/clearcontainers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ. _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
@James, Thanks for your reminding. I’ll raise the ticket if I still hit the issue. From: Hunt, James O [mailto:james.o.hunt@intel.com] Sent: Wednesday, June 6, 2018 8:31 PM To: Liu, Changcheng <changcheng.liu@intel.com> Cc: kata-dev@lists.katacontainers.io Subject: Re: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host Hi Changcheng, It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic). Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue? - https://github.com/kata-containers/osbuilder/issues/new Cheers, James 2018-06-06 13:12 GMT+01:00 Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>>: Hi all, I fail to build rootfs on ubuntu host after following the “rootfs-builder/README.md<http://rootfs-builder/README.md>” guide. Could anyone give me some idea to do further check? Issue: sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora ~/LINUX/go_repo/osbuilder/rootfs-builder/fedora ~/LINUX/go_repo/osbuilder # # Copyright (c) 2018 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 From fedora:27 RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils # This will install the proper golang to build Kata components ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz /tmp RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.gz ENV GOROOT=/usr/go ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin Dockerfile: /usr/share/man/man5/Dockerfile.5.gz ~/LINUX/go_repo/osbuilder Sending build context to Docker daemon 4.096kB Step 1/6 : From fedora:27 27: Pulling from library/fedora 2176639d844b: Pull complete Digest: sha256:ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467 Status: Downloaded newer image for fedora:27 ---> 9110ae7f579f Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils ---> Running in d367d5572325 Error: Failed to synchronize cache for repo 'updates' The command '/bin/sh -c dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils' returned a non-zero code: 1 Environment: 1. Host info: lsb_release -a LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial 2. Docker info: sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version' Server Version: 18.03.1-ce Runtimes: runc Default Runtime: runc containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88 runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: 949e6fa Kernel Version: 4.4.0-31-generic HTTP Proxy: http://*********:913/ HTTPS Proxy: https://******:913/ No Proxy: localhost,127.0.0.0/8<http://127.0.0.0/8> sudo docker version Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:17:20 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:15:30 2018 OS/Arch: linux/amd64 Experimental: false Regards, Changcheng _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev -- James --- https://katacontainers.io/ | https://github.com/clearcontainers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.
Hi James, The issue is WAed when building centos rootfs by below changes: 1) set the proxy ip:port explicitly in rootfs.sh 2) set the dns info when staring docker daemon. Even with the above change, I still can’t build the fedora rootfs which maybe the image’s issue. Need further check. File ticket: https://github.com/kata-containers/osbuilder/issues/48 --Thanks Changcheng From: Liu, Changcheng Sent: Thursday, June 7, 2018 12:35 AM To: 'Hunt, James O' <james.o.hunt@intel.com> Cc: kata-dev@lists.katacontainers.io Subject: RE: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host @James, Thanks for your reminding. I’ll raise the ticket if I still hit the issue. From: Hunt, James O [mailto:james.o.hunt@intel.com] Sent: Wednesday, June 6, 2018 8:31 PM To: Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>> Cc: kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> Subject: Re: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host Hi Changcheng, It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic). Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue? - https://github.com/kata-containers/osbuilder/issues/new Cheers, James 2018-06-06 13:12 GMT+01:00 Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>>: Hi all, I fail to build rootfs on ubuntu host after following the “rootfs-builder/README.md<http://rootfs-builder/README.md>” guide. Could anyone give me some idea to do further check? Issue: sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora ~/LINUX/go_repo/osbuilder/rootfs-builder/fedora ~/LINUX/go_repo/osbuilder # # Copyright (c) 2018 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 From fedora:27 RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils # This will install the proper golang to build Kata components ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz /tmp RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.gz ENV GOROOT=/usr/go ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin Dockerfile: /usr/share/man/man5/Dockerfile.5.gz ~/LINUX/go_repo/osbuilder Sending build context to Docker daemon 4.096kB Step 1/6 : From fedora:27 27: Pulling from library/fedora 2176639d844b: Pull complete Digest: sha256:ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467 Status: Downloaded newer image for fedora:27 ---> 9110ae7f579f Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils ---> Running in d367d5572325 Error: Failed to synchronize cache for repo 'updates' The command '/bin/sh -c dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils' returned a non-zero code: 1 Environment: 1. Host info: lsb_release -a LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial 2. Docker info: sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version' Server Version: 18.03.1-ce Runtimes: runc Default Runtime: runc containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88 runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: 949e6fa Kernel Version: 4.4.0-31-generic HTTP Proxy: http://*********:913/ HTTPS Proxy: https://******:913/ No Proxy: localhost,127.0.0.0/8<http://127.0.0.0/8> sudo docker version Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:17:20 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:15:30 2018 OS/Arch: linux/amd64 Experimental: false Regards, Changcheng _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev -- James --- https://katacontainers.io/ | https://github.com/clearcontainers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.
Hi James, The issue is WAed when building centos rootfs by below changes: 1) set the proxy ip:port explicitly in rootfs.sh 2) set the dns info when staring docker daemon. Even with the above change, I still can’t build the fedora rootfs which maybe the image’s issue. Need further check. File ticket: https://github.com/kata-containers/osbuilder/issues/48 --Thanks Changcheng From: Liu, Changcheng Sent: Thursday, June 7, 2018 12:35 AM To: 'Hunt, James O' <james.o.hunt@intel.com<mailto:james.o.hunt@intel.com>> Cc: kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> Subject: RE: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host @James, Thanks for your reminding. I’ll raise the ticket if I still hit the issue. From: Hunt, James O [mailto:james.o.hunt@intel.com] Sent: Wednesday, June 6, 2018 8:31 PM To: Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>> Cc: kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> Subject: Re: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host Hi Changcheng, It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic). Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue? - https://github.com/kata-containers/osbuilder/issues/new Cheers, James
I’m pretty confident this is proxy name resolution issues. Thanks corporate network. Disable dnsmasq in the host. (Assuming Ubuntu host) Thx, Eric Comment out dnsmasq in: $ sudo vi /etc/NetworkManager/NetworkManager.conf $ sudo systemctl daemon-reload $ sudo systemctl restart network-manager On Jun 7, 2018, at 8:20 AM, Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>> wrote: Hi James, The issue is WAed when building centos rootfs by below changes: 1) set the proxy ip:port explicitly in rootfs.sh 2) set the dns info when staring docker daemon. Even with the above change, I still can’t build the fedora rootfs which maybe the image’s issue. Need further check. File ticket: https://github.com/kata-containers/osbuilder/issues/48 --Thanks Changcheng From: Liu, Changcheng Sent: Thursday, June 7, 2018 12:35 AM To: 'Hunt, James O' <james.o.hunt@intel.com<mailto:james.o.hunt@intel.com>> Cc: kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> Subject: RE: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host @James, Thanks for your reminding. I’ll raise the ticket if I still hit the issue. From: Hunt, James O [mailto:james.o.hunt@intel.com] Sent: Wednesday, June 6, 2018 8:31 PM To: Liu, Changcheng <changcheng.liu@intel.com<mailto:changcheng.liu@intel.com>> Cc: kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> Subject: Re: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host Hi Changcheng, It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic). Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue? - https://github.com/kata-containers/osbuilder/issues/new Cheers, James _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io<mailto:kata-dev@lists.katacontainers.io> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
Hi all, Thanks for Eric's help. Issue is closed https://github.com/kata-containers/osbuilder/issues/110 Regards, Changcheng From: Ernst, Eric Sent: Thursday, June 7, 2018 11:28 PM To: Liu, Changcheng <changcheng.liu@intel.com> Cc: Hunt, James O <james.o.hunt@intel.com>; kata-dev@lists.katacontainers.io Subject: Re: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host I'm pretty confident this is proxy name resolution issues. Thanks corporate network. Disable dnsmasq in the host. (Assuming Ubuntu host) Thx, Eric Comment out dnsmasq in: $ sudo vi /etc/NetworkManager/NetworkManager.conf $ sudo systemctl daemon-reload $ sudo systemctl restart network-manager
participants (3)
-
Ernst, Eric
-
Hunt, James O
-
Liu, Changcheng