2024-11-11 11:33:42,263: INFO: Building contrail-node-init 2024-11-11 11:33:42,339: INFO: Building args: --network host --build-arg CONTRAIL_REGISTRY=nexus.gz1.opensdn.io:5101 --build-arg CONTRAIL_CONTAINER_TAG=master-1_0_9_8-1_0 --build-arg SITE_MIRROR=http://nexus.gz1.opensdn.io/repository/external-web-cache --build-arg LINUX_DISTR_VER=7 --build-arg LINUX_DISTR=centos --build-arg GENERAL_EXTRA_RPMS="" --build-arg BASE_EXTRA_RPMS="" --build-arg YUM_ENABLE_REPOS="" --build-arg CONTAINER_NAME=contrail-node-init --build-arg UBUNTU_DISTR_VERSION=22.04 --build-arg UBUNTU_DISTR=ubuntu --build-arg VENDOR_NAME=OpenSDN-IO --build-arg VENDOR_DOMAIN=io.opensdn Sending build context to Docker daemon 34.82 kB Step 1/7 : FROM nexus.gz1.opensdn.io:5101/contrail-base:master-1_0_9_8-1_0 ---> 1a868edcc49a Step 2/7 : ARG CONTAINER_NAME ---> Running in f2f8e24d3104 ---> Removed intermediate container f2f8e24d3104 ---> 06bb8fcbd662 Step 3/7 : ENV CONTAINER_NAME=$CONTAINER_NAME ---> Running in 7e1dc048968e ---> Removed intermediate container 7e1dc048968e ---> 2650eb190c93 Step 4/7 : LABEL name=$CONTAINER_NAME summary="Contrail Init container" description="Container is used to configure operating system for Contrail services." $VENDOR_DOMAIN".container.name"=$CONTAINER_NAME ---> Running in bf19e4a1bb68 ---> Removed intermediate container bf19e4a1bb68 ---> 2bc467a9c886 Step 5/7 : RUN yum install -y --downloadonly --downloaddir=/ contrail-tripleo-puppet && yum clean all -y && rm -rf /var/cache/yum ---> Running in 2005cf21a2a4 Loaded plugins: fastestmirror, ovl Determining fastest mirrors http://nexus.gz1.opensdn.io/repository/yum-tpc7/repodata/0fcf7d0a9a3b9676e7112274d81fc3e9abbcf5e53ecde8c51b1dbcabeaf00cb3-primary.xml.gz: [Errno 14] curl#56 - "Recv failure: Connection reset by peer" Trying other mirror. http://nexus.gz1.opensdn.io/repository/yum-tpc7/repodata/0fcf7d0a9a3b9676e7112274d81fc3e9abbcf5e53ecde8c51b1dbcabeaf00cb3-primary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror.  One of the configured repositories failed (Third parties for Contrail), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo=contrail-tpc ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable contrail-tpc or subscription-manager repos --disable=contrail-tpc 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=contrail-tpc.skip_if_unavailable=true failure: repodata/0fcf7d0a9a3b9676e7112274d81fc3e9abbcf5e53ecde8c51b1dbcabeaf00cb3-primary.xml.gz from contrail-tpc: [Errno 256] No more mirrors to try. http://nexus.gz1.opensdn.io/repository/yum-tpc7/repodata/0fcf7d0a9a3b9676e7112274d81fc3e9abbcf5e53ecde8c51b1dbcabeaf00cb3-primary.xml.gz: [Errno -1] Metadata file does not match checksum The command '/bin/sh -c yum install -y --downloadonly --downloaddir=/ contrail-tripleo-puppet && yum clean all -y && rm -rf /var/cache/yum' returned a non-zero code: 1 2024-11-11 11:34:38,243: INFO: Docker build duration: 56 seconds 2024-11-11 11:34:38,249: ERROR: Building contrail-node-init failed, duration: 56 seconds