2025-08-12 09:09:56,313: INFO: Building opensdn-analytics-api 2025-08-12 09:09:56,414: 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_2_2_2-5_1 --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-analytics-api --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 15.87 kB Step 1/11 : ARG CONTRAIL_REGISTRY Step 2/11 : ARG CONTRAIL_CONTAINER_TAG Step 3/11 : FROM ${CONTRAIL_REGISTRY}/opensdn-analytics-base:${CONTRAIL_CONTAINER_TAG} ---> 4ed9aa3d1960 Step 4/11 : ARG PIP_REPOSITORY ---> Running in 5b33a2baf0e4 ---> Removed intermediate container 5b33a2baf0e4 ---> b269a81bfe66 Step 5/11 : ARG CONTAINER_NAME ---> Running in eab2fd5671d3 ---> Removed intermediate container eab2fd5671d3 ---> 078b34055438 Step 6/11 : ENV SERVICE_NAME=api CONTAINER_NAME=$CONTAINER_NAME ---> Running in dae174ead8ea ---> Removed intermediate container dae174ead8ea ---> e2ffb7045646 Step 7/11 : LABEL name=$CONTAINER_NAME summary="Contrail Analytics API" description="Contrail Analytics API provides REST API to access collected analytics data." $VENDOR_DOMAIN".service"=$SERVICE_NAME $VENDOR_DOMAIN".container.name"=$CONTAINER_NAME ---> Running in 36836fd72bfc ---> Removed intermediate container 36836fd72bfc ---> 7a4e741554fb Step 8/11 : COPY entrypoint.sh / ---> 3c8dfe614190 Step 9/11 : RUN set -e ; python3 -m pip install --no-compile --extra-index-url $PIP_REPOSITORY "opserver==0.1.dev0" ; rm -rf /root/.cache ; yum install -y contrail-docs ; yum clean all -y ; rm -rf /var/cache/yum ---> Running in 39085bea7817 Looking in indexes: http://tf-mirrors.gz1.opensdn.io/root/pypi/+simple/, http://localhost:6667/pip/simple Collecting opserver==0.1.dev0 Downloading http://localhost:6667/pip/simple/opserver/opserver-0.1.dev0-py3-none-any.whl (226 kB) Requirement already satisfied: sandesh==0.1.dev0 in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (0.1.dev0) Requirement already satisfied: sandesh-common==0.1.dev0 in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (0.1.dev0) Collecting kafka-python<2.2 Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/8a9/e12694b687977/kafka_python-2.1.6-py2.py3-none-any.whl (285 kB) Requirement already satisfied: stevedore in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (3.5.2) Requirement already satisfied: kazoo in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (2.10.0) Collecting libpartition==0.1.dev0 Downloading http://localhost:6667/pip/simple/libpartition/libpartition-0.1.dev0-py3-none-any.whl (10 kB) Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (2.27.1) Requirement already satisfied: bottle<0.13 in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (0.12.25) Requirement already satisfied: gevent in /usr/local/lib64/python3.6/site-packages (from opserver==0.1.dev0) (22.10.2) Requirement already satisfied: xmltodict in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (0.12.0) Collecting sseclient Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/b2f/e534dcb33b1d3/sseclient-0.0.27.tar.gz (7.5 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting lxml Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/97d/ac543661e84a2/lxml-5.4.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB) Requirement already satisfied: contrail-api-client==0.1.dev0 in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (0.1.dev0) Requirement already satisfied: contrail-config-common==0.1.dev0 in /usr/local/lib/python3.6/site-packages (from opserver==0.1.dev0) (0.1.dev0) Collecting redis Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/1ea/4018b8b5d8a13/redis-4.3.6-py3-none-any.whl (248 kB) Requirement already satisfied: cassandra-driver in /usr/local/lib64/python3.6/site-packages (from contrail-config-common==0.1.dev0->opserver==0.1.dev0) (3.29.2) Requirement already satisfied: timeout-decorator in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->opserver==0.1.dev0) (0.5.0) Requirement already satisfied: bitarray in /usr/local/lib64/python3.6/site-packages (from contrail-config-common==0.1.dev0->opserver==0.1.dev0) (3.6.0) Requirement already satisfied: kombu in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->opserver==0.1.dev0) (5.1.0) Requirement already satisfied: simplejson in /usr/local/lib64/python3.6/site-packages (from contrail-config-common==0.1.dev0->opserver==0.1.dev0) (3.20.1) Requirement already satisfied: greenlet in /usr/local/lib64/python3.6/site-packages (from contrail-config-common==0.1.dev0->opserver==0.1.dev0) (2.0.2) Requirement already satisfied: netaddr<1 in /usr/local/lib/python3.6/site-packages (from sandesh==0.1.dev0->opserver==0.1.dev0) (0.10.1) Requirement already satisfied: fysom in /usr/local/lib/python3.6/site-packages (from sandesh==0.1.dev0->opserver==0.1.dev0) (2.1.6) Requirement already satisfied: zope.interface in /usr/local/lib64/python3.6/site-packages (from gevent->opserver==0.1.dev0) (5.5.2) Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from gevent->opserver==0.1.dev0) (59.6.0) Requirement already satisfied: zope.event in /usr/local/lib/python3.6/site-packages (from gevent->opserver==0.1.dev0) (4.6) Requirement already satisfied: typing-extensions in /usr/local/lib/python3.6/site-packages (from redis->opserver==0.1.dev0) (4.1.1) Collecting packaging>=20.4 Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/ef1/03e05f519cdc7/packaging-21.3-py3-none-any.whl (40 kB) Collecting async-timeout>=4.0.2 Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/8ca/1e4fcf50d0741/async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Requirement already satisfied: importlib-metadata>=1.0 in /usr/local/lib/python3.6/site-packages (from redis->opserver==0.1.dev0) (4.8.3) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests->opserver==0.1.dev0) (3.10) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->opserver==0.1.dev0) (1.26.20) Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.6/site-packages (from requests->opserver==0.1.dev0) (2.0.12) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->opserver==0.1.dev0) (2025.4.26) Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages (from sseclient->opserver==0.1.dev0) (1.17.0) Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in /usr/local/lib/python3.6/site-packages (from stevedore->opserver==0.1.dev0) (6.1.1) Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/site-packages (from importlib-metadata>=1.0->redis->opserver==0.1.dev0) (3.6.0) Requirement already satisfied: importlib-resources in /usr/local/lib/python3.6/site-packages (from netaddr<1->sandesh==0.1.dev0->opserver==0.1.dev0) (5.4.0) Collecting pyparsing!=3.0.5,>=2.0.2 Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/a6a/7ee4235a3f944/pyparsing-3.1.4-py3-none-any.whl (104 kB) Requirement already satisfied: geomet<0.3,>=0.1 in /usr/local/lib/python3.6/site-packages (from cassandra-driver->contrail-config-common==0.1.dev0->opserver==0.1.dev0) (0.2.1.post1) Requirement already satisfied: cached-property in /usr/local/lib/python3.6/site-packages (from kombu->contrail-config-common==0.1.dev0->opserver==0.1.dev0) (1.5.2) Requirement already satisfied: vine in /usr/local/lib/python3.6/site-packages (from kombu->contrail-config-common==0.1.dev0->opserver==0.1.dev0) (5.1.0) Requirement already satisfied: amqp<6.0.0,>=5.0.6 in /usr/local/lib/python3.6/site-packages (from kombu->contrail-config-common==0.1.dev0->opserver==0.1.dev0) (5.3.1) Requirement already satisfied: click in /usr/local/lib/python3.6/site-packages (from geomet<0.3,>=0.1->cassandra-driver->contrail-config-common==0.1.dev0->opserver==0.1.dev0) (8.0.4) Using legacy 'setup.py install' for sseclient, since package 'wheel' is not installed. Installing collected packages: pyparsing, packaging, async-timeout, sseclient, redis, lxml, libpartition, kafka-python, opserver Running setup.py install for sseclient: started Running setup.py install for sseclient: finished with status 'done' WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Successfully installed async-timeout-4.0.2 kafka-python-2.1.6 libpartition-0.1.dev0 lxml-5.4.0 opserver-0.1.dev0 packaging-21.3 pyparsing-3.1.4 redis-4.3.6 sseclient-0.0.27 Loaded plugins: fastestmirror, ovl Determining fastest mirrors http://tf-mirrors.gz1.opensdn.io/repos/yum7/latest/centos-openstack-queens/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: tf-mirrors.gz1.opensdn.io; Unknown error" Trying other mirror.  One of the configured repositories failed (added from: http://tf-mirrors.gz1.opensdn.io/repos/yum7/latest/centos-openstack-queens/), 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=tf-mirrors.ci_repos_centos-openstack-queens ... 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 tf-mirrors.ci_repos_centos-openstack-queens or subscription-manager repos --disable=tf-mirrors.ci_repos_centos-openstack-queens 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=tf-mirrors.ci_repos_centos-openstack-queens.skip_if_unavailable=true failure: repodata/repomd.xml from tf-mirrors.ci_repos_centos-openstack-queens: [Errno 256] No more mirrors to try. http://tf-mirrors.gz1.opensdn.io/repos/yum7/latest/centos-openstack-queens/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: tf-mirrors.gz1.opensdn.io; Unknown error" The command '/bin/sh -c set -e ; python3 -m pip install --no-compile --extra-index-url $PIP_REPOSITORY "opserver==0.1.dev0" ; rm -rf /root/.cache ; yum install -y contrail-docs ; yum clean all -y ; rm -rf /var/cache/yum' returned a non-zero code: 1 2025-08-12 09:10:39,812: INFO: Docker build duration: 43 seconds 2025-08-12 09:10:39,822: ERROR: Building opensdn-analytics-api failed, duration: 43 seconds