2025-08-11 13:33:13,829: INFO: Building opensdn-external-zookeeper 2025-08-11 13:33:13,902: INFO: Building args: --network host --build-arg PIP_REPOSITORY=http://localhost:6667/pip/simple --build-arg CONTRAIL_REGISTRY=nexus.gz1.opensdn.io:5101 --build-arg CONTRAIL_CONTAINER_TAG=master-1_9_8_5-1_3 --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=opensdn-external-zookeeper --build-arg UBUNTU_DISTR_VERSION=24.04 --build-arg UBUNTU_DISTR=ubuntu --build-arg VENDOR_NAME=OpenSDN-IO --build-arg VENDOR_DOMAIN=io.opensdn Sending build context to Docker daemon 44.54 kB Step 1/17 : ARG CONTRAIL_REGISTRY Step 2/17 : ARG CONTRAIL_CONTAINER_TAG Step 3/17 : FROM ${CONTRAIL_REGISTRY}/opensdn-general-base:${CONTRAIL_CONTAINER_TAG} ---> dd4bb0c8ceb7 Step 4/17 : ARG SITE_MIRROR ---> Running in df7b566fdf9c ---> Removed intermediate container df7b566fdf9c ---> 0d63b59c8a1c Step 5/17 : ARG CONTAINER_NAME ---> Running in b36351bb6700 ---> Removed intermediate container b36351bb6700 ---> cff3ffa13083 Step 6/17 : ENV SERVICE_NAME=zookeeper CONTAINER_NAME=$CONTAINER_NAME ---> Running in 9583e2f02061 ---> Removed intermediate container 9583e2f02061 ---> f86702cf5ab7 Step 7/17 : LABEL name=$CONTAINER_NAME summary="Contrail Zookeeper" description="Contrail uses the Apache ZooKeeper process to maintain synchronization of Contrail configuration, analytics and database running on the different instances of controllers." $VENDOR_DOMAIN".service"=$SERVICE_NAME $VENDOR_DOMAIN".container.name"=$CONTAINER_NAME ---> Running in f05c1e0574da ---> Removed intermediate container f05c1e0574da ---> 9b4bf9e0874d Step 8/17 : ARG ZOO_VERSION="3.7.1" ---> Running in 533c2476317b ---> Removed intermediate container 533c2476317b ---> df7e2ce53752 Step 9/17 : ARG ZOO_DISTRO_NAME="apache-zookeeper-${ZOO_VERSION}-bin" ---> Running in 865c0c84ccaa ---> Removed intermediate container 865c0c84ccaa ---> e9c20f3bb277 Step 10/17 : ENV ZOO_CONF_DIR=/conf ZOO_DATA_DIR=/data ZOO_DATA_LOG_DIR=/datalog ZOO_LOG_DIR=/logs ZOO_TICK_TIME=2000 ZOO_INIT_LIMIT=5 ZOO_SYNC_LIMIT=2 ZOO_AUTOPURGE_PURGEINTERVAL=0 ZOO_AUTOPURGE_SNAPRETAINCOUNT=3 ZOO_MAX_CLIENT_CNXNS=60 ZOO_USER="zookeeper" ZOO_GROUP="zookeeper" PATH=$PATH:/${ZOO_DISTRO_NAME}/bin ZOOCFGDIR=/conf ---> Running in a85847957c68 ---> Removed intermediate container a85847957c68 ---> dee0bef15466 Step 11/17 : COPY *.sh / ---> 240f7dea4206 Step 12/17 : RUN set -ex && for item in `ls /__*` ; do mv $item /${item:3} ; done && yum install -y java java-1.8.0-openjdk nmap-ncat && groupadd -f -g 1000 $ZOO_GROUP && adduser -u 1000 -M -g $ZOO_GROUP $ZOO_USER && usermod -a -G $CONTRAIL_GID $ZOO_USER && mkdir -p "$ZOO_DATA_LOG_DIR" "$ZOO_DATA_DIR" "$ZOO_CONF_DIR" "$ZOO_LOG_DIR" && chown -R ${ZOO_USER}:${ZOO_GROUP} "$ZOO_DATA_LOG_DIR" "$ZOO_DATA_DIR" "$ZOO_CONF_DIR" "$ZOO_LOG_DIR" && source /functions.sh && download_package https://archive.apache.org dist/zookeeper/zookeeper-${ZOO_VERSION}/${ZOO_DISTRO_NAME}.tar.gz ${ZOO_DISTRO_NAME}.tar.gz && tar -xzvf $ZOO_DISTRO_NAME.tar.gz && rm -rf $ZOO_DISTRO_NAME.tar.gz && mv "${ZOO_DISTRO_NAME}/conf/"* "$ZOO_CONF_DIR" && chown -R ${ZOO_USER}:${ZOO_GROUP} $ZOO_DISTRO_NAME && yum clean all -y && rm -rf /var/cache/yum ---> Running in 8ab5be8278cc ++ ls /__common.sh /__contrail-functions.sh + for item in '`ls /__*`' + mv /__common.sh /common.sh + for item in '`ls /__*`' + mv /__contrail-functions.sh /contrail-functions.sh + yum install -y java java-1.8.0-openjdk nmap-ncat Loaded plugins: fastestmirror, ovl Determining fastest mirrors http://nexus.gz1.opensdn.io/repository/yum-tpc7/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: nexus.gz1.opensdn.io; Unknown error" Trying other mirror.  One of the configured repositories failed (Third parties for OpenSDN), 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=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 tpc or subscription-manager repos --disable=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=tpc.skip_if_unavailable=true failure: repodata/repomd.xml from tpc: [Errno 256] No more mirrors to try. http://nexus.gz1.opensdn.io/repository/yum-tpc7/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: nexus.gz1.opensdn.io; Unknown error" The command '/bin/sh -c set -ex && for item in `ls /__*` ; do mv $item /${item:3} ; done && yum install -y java java-1.8.0-openjdk nmap-ncat && groupadd -f -g 1000 $ZOO_GROUP && adduser -u 1000 -M -g $ZOO_GROUP $ZOO_USER && usermod -a -G $CONTRAIL_GID $ZOO_USER && mkdir -p "$ZOO_DATA_LOG_DIR" "$ZOO_DATA_DIR" "$ZOO_CONF_DIR" "$ZOO_LOG_DIR" && chown -R ${ZOO_USER}:${ZOO_GROUP} "$ZOO_DATA_LOG_DIR" "$ZOO_DATA_DIR" "$ZOO_CONF_DIR" "$ZOO_LOG_DIR" && source /functions.sh && download_package https://archive.apache.org dist/zookeeper/zookeeper-${ZOO_VERSION}/${ZOO_DISTRO_NAME}.tar.gz ${ZOO_DISTRO_NAME}.tar.gz && tar -xzvf $ZOO_DISTRO_NAME.tar.gz && rm -rf $ZOO_DISTRO_NAME.tar.gz && mv "${ZOO_DISTRO_NAME}/conf/"* "$ZOO_CONF_DIR" && chown -R ${ZOO_USER}:${ZOO_GROUP} $ZOO_DISTRO_NAME && yum clean all -y && rm -rf /var/cache/yum' returned a non-zero code: 1 2025-08-11 13:33:25,564: INFO: Docker build duration: 12 seconds 2025-08-11 13:33:25,571: ERROR: Building opensdn-external-zookeeper failed, duration: 12 seconds