kata-containers/osbuilder

Update Fedora version

GabyCT opened this issue · 4 comments

I have seen this failure in the jenkins jobs

16:15:34 INFO: Detecting agent go version
16:15:34 INFO: Detecting runtime version using https://raw.githubusercontent.com/kata-containers/agent/36b37f6/VERSION
16:15:34 INFO: Getting golang version from https://raw.githubusercontent.com/kata-containers/runtime/1.10.0-rc0/versions.yaml
16:15:35 Required Go version: 1.11.10
16:15:35 /tmp/jenkins/workspace/kata-containers-runtime-fedora-31-PR/go/src/github.com/kata-containers/osbuilder/rootfs-builder/clearlinux /tmp/jenkins/workspace/kata-containers-runtime-fedora-31-PR/go/src/github.com/kata-containers/osbuilder
16:15:35 /tmp/jenkins/workspace/kata-containers-runtime-fedora-31-PR/go/src/github.com/kata-containers/osbuilder
16:15:35 Sending build context to Docker daemon  4.608kB

16:15:35 Step 1/6 : From docker.io/fedora:30
16:15:35 30: Pulling from library/fedora
16:15:35 b0fe058ffda2: Pulling fs layer
16:15:36 b0fe058ffda2: Verifying Checksum
16:15:36 b0fe058ffda2: Download complete
16:15:38 b0fe058ffda2: Pull complete
16:15:39 Digest: sha256:a31809d5e9d991a291605e932077aaf5f2beff64dee85b34d911228196af406e
16:15:39 Status: Downloaded newer image for fedora:30
16:15:39  ---> 89d6d6a7d521
16:15:39 Step 2/6 : RUN dnf -y update && dnf install -y chrony curl gcc git libseccomp libseccomp-devel make pkgconfig systemd
16:15:49  ---> Running in a1f99421018b
16:15:50 Fedora Modular 30 - x86_64                      4.5 MB/s | 2.7 MB     00:00    
16:15:51 Fedora Modular 30 - x86_64 - Updates            5.5 MB/s | 4.1 MB     00:00    
16:16:13 Fedora 30 - x86_64 - Updates                    397  B/s | 8.1 kB     00:20    
16:16:13 Error: Failed to download metadata for repo 'updates': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
16:16:13 The command '/bin/sh -c dnf -y update && dnf install -y chrony curl gcc git libseccomp libseccomp-devel make pkgconfig systemd' returned a non-zero code: 1
16:16:14 Failed at 120: sudo -E AGENT_INIT="${AGENT_INIT}" AGENT_VERSION="${agent_commit}" GOPATH="$GOPATH" USE_DOCKER=true OS_VERSION=${os_version} ./rootfs-builder/rootfs.sh "${distro}"
16:16:14 Failed at 26: "${cidir}/install_kata_image.sh" "${tag}"

It seems that trying to download the mirrors is becoming an issue

We build the image for different distros to make the guest system boots a container with different distros, I think centos is default base image for non x86_64 architectures.
For the error looks like a network issue that looks more like a fedora issue + docker because what script does is create a container (docker build) using a centos image, if is only in fedora I dont know if is just a matter of network rules, I would try to run the same command in a container in a similar environment and debug what is preventing to reach centos servers.

16:16:13 Fedora 30 - x86_64 - Updates                    397  B/s | 8.1 kB     00:20    
16:16:13 Error: Failed to download metadata for repo 'updates': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

oh actually I see that it is not Centos but Fedora servers I wonder if fedora 30 servers are not working anymore, anyway about fedora you could bump to build the image using fedora 31

@jcvenegas when I change the dockerfile to use Fedora 31 instead of 30, I have the following error

11:26:55 Makefile:86: recipe for target '/tmp/osbuilder-test.IOKvnlt/rootfs-osbuilder/.centos_rootfs.done' failed
11:26:55 make: *** [/tmp/osbuilder-test.IOKvnlt/rootfs-osbuilder/.centos_rootfs.done] Error 2
11:26:55 make: *** Waiting for unfinished jobs....
11:29:05 INFO: Background rootfs build job failed:
11:29:05 INFO: - centos : failed
11:29:05 INFO: - clearlinux : completed
11:29:05 INFO: - debian : completed
11:29:05 INFO: - fedora : completed
11:29:05 INFO: - suse : completed
11:29:05 INFO: - ubuntu : completed
11:29:05 INFO: - alpine : completed
11:29:05 ERROR: rootfs build failed
11:29:05 INFO: ERROR: test failed

It seems that can not build CentOS http://jenkins.katacontainers.io/job/kata-containers-osbuilder-ubuntu-16-04-PR/358/console

now if I update the CentOS version to 8, then we have another issue which is that some packages are missing