2025-04-10 16:13:42,346: INFO: Building contrail-analytics-snmp-collector 2025-04-10 16:13:42,480: 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_4_4-1_5 --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-analytics-snmp-collector --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 15.87 kB Step 1/11 : ARG CONTRAIL_REGISTRY Step 2/11 : ARG CONTRAIL_CONTAINER_TAG Step 3/11 : FROM ${CONTRAIL_REGISTRY}/opensdn-analytics-snmp-base:${CONTRAIL_CONTAINER_TAG} ---> 9ac360ab6802 Step 4/11 : ARG PIP_REPOSITORY ---> Running in ae66527beaef ---> Removed intermediate container ae66527beaef ---> 5ac02c916004 Step 5/11 : ARG CONTAINER_NAME ---> Running in bba2119f7bfe ---> Removed intermediate container bba2119f7bfe ---> d90c37f23e03 Step 6/11 : ENV SERVICE_NAME=snmp-collector CONTAINER_NAME=$CONTAINER_NAME ---> Running in f6960522dee3 ---> Removed intermediate container f6960522dee3 ---> 591cc511b178 Step 7/11 : LABEL name=$CONTAINER_NAME summary="SNMP Collector" description="SNMP Collector collects data from switches(Spine/Leaf)." $VENDOR_DOMAIN".service"=$SERVICE_NAME $VENDOR_DOMAIN".container.name"=$CONTAINER_NAME ---> Running in a70500c8a123 ---> Removed intermediate container a70500c8a123 ---> fc74c3d219c4 Step 8/11 : COPY entrypoint.sh / ---> 80d6161d9adf Step 9/11 : RUN set -e ; python3 -m pip install --no-compile --extra-index-url $PIP_REPOSITORY "tf_snmp_collector==0.1.dev0" ; rm -rf /root/.cache ---> Running in cd453ce94044 Looking in indexes: http://tf-mirrors.gz1.opensdn.io/root/pypi/+simple/, http://localhost:6667/pip/simple Collecting tf_snmp_collector==0.1.dev0 Downloading http://localhost:6667/pip/simple/tf-snmp-collector/tf_snmp_collector-0.1.dev0-py3-none-any.whl (63 kB) Requirement already satisfied: gevent in /usr/local/lib64/python3.6/site-packages (from tf_snmp_collector==0.1.dev0) (22.10.2) Requirement already satisfied: sandesh==0.1.dev0 in /usr/local/lib/python3.6/site-packages (from tf_snmp_collector==0.1.dev0) (0.1.dev0) Requirement already satisfied: sandesh-common==0.1.dev0 in /usr/local/lib/python3.6/site-packages (from tf_snmp_collector==0.1.dev0) (0.1.dev0) Requirement already satisfied: contrail-config-common==0.1.dev0 in /usr/local/lib/python3.6/site-packages (from tf_snmp_collector==0.1.dev0) (0.1.dev0) Collecting python3-netsnmp Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/317/dd425036a6af8/python3-netsnmp-1.1a1.tar.gz (24 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' 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: timeout-decorator in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.5.0) Requirement already satisfied: contrail-api-client==0.1.dev0 in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.1.dev0) Requirement already satisfied: bottle<0.13 in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.12.25) Requirement already satisfied: kombu in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (5.1.0) Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.27.1) Requirement already satisfied: stevedore in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.5.2) Requirement already satisfied: cassandra-driver in /usr/local/lib64/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.29.2) Requirement already satisfied: bitarray in /usr/local/lib64/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.3.1) Requirement already satisfied: simplejson in /usr/local/lib64/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.20.1) Requirement already satisfied: xmltodict==0.12.0 in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.12.0) Requirement already satisfied: greenlet in /usr/local/lib64/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.0.2) Requirement already satisfied: kazoo in /usr/local/lib/python3.6/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.10.0) Requirement already satisfied: netaddr<1 in /usr/local/lib/python3.6/site-packages (from sandesh==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.10.1) Requirement already satisfied: fysom in /usr/local/lib/python3.6/site-packages (from sandesh==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.1.6) Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from gevent->tf_snmp_collector==0.1.dev0) (59.6.0) Requirement already satisfied: zope.event in /usr/local/lib/python3.6/site-packages (from gevent->tf_snmp_collector==0.1.dev0) (4.6) Requirement already satisfied: zope.interface in /usr/local/lib64/python3.6/site-packages (from gevent->tf_snmp_collector==0.1.dev0) (5.5.2) Requirement already satisfied: importlib-resources in /usr/local/lib/python3.6/site-packages (from netaddr<1->sandesh==0.1.dev0->tf_snmp_collector==0.1.dev0) (5.4.0) 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->tf_snmp_collector==0.1.dev0) (0.2.1.post1) 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->tf_snmp_collector==0.1.dev0) (5.3.1) Requirement already satisfied: importlib-metadata>=0.18 in /usr/local/lib/python3.6/site-packages (from kombu->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (4.8.3) Requirement already satisfied: cached-property in /usr/local/lib/python3.6/site-packages (from kombu->contrail-config-common==0.1.dev0->tf_snmp_collector==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->tf_snmp_collector==0.1.dev0) (5.1.0) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2025.1.31) Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.6/site-packages (from requests->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (1.26.20) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.10) Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in /usr/local/lib/python3.6/site-packages (from stevedore->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (6.1.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->tf_snmp_collector==0.1.dev0) (8.0.4) Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages (from geomet<0.3,>=0.1->cassandra-driver->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (1.17.0) Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/site-packages (from importlib-metadata>=0.18->kombu->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.6.0) Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.6/site-packages (from importlib-metadata>=0.18->kombu->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (4.1.1) Using legacy 'setup.py install' for python3-netsnmp, since package 'wheel' is not installed. Installing collected packages: python3-netsnmp, libpartition, tf-snmp-collector Running setup.py install for python3-netsnmp: started Running setup.py install for python3-netsnmp: 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 libpartition-0.1.dev0 python3-netsnmp-1.1a1 tf-snmp-collector-0.1.dev0 ---> Removed intermediate container cd453ce94044 ---> 81857cf1fb4c Step 10/11 : ENTRYPOINT ["/entrypoint.sh"] ---> Running in de6d17f19cd9 ---> Removed intermediate container de6d17f19cd9 ---> beb2b9c0add0 Step 11/11 : CMD ["/usr/local/bin/tf-snmp-collector", "-c", "/etc/contrail/tf-snmp-collector.conf", "--device-config-file", "/etc/contrail/device.ini"] ---> Running in 8e338f9b9247 ---> Removed intermediate container 8e338f9b9247 ---> 3ac774f44c35 [Warning] One or more build-args [BASE_EXTRA_RPMS GENERAL_EXTRA_RPMS LINUX_DISTR LINUX_DISTR_VER SITE_MIRROR UBUNTU_DISTR UBUNTU_DISTR_VERSION VENDOR_DOMAIN VENDOR_NAME YUM_ENABLE_REPOS] were not consumed Successfully built 3ac774f44c35 Successfully tagged nexus.gz1.opensdn.io:5101/contrail-analytics-snmp-collector:master-1_2_4_4-1_5 Successfully tagged nexus.gz1.opensdn.io:5101/opensdn-analytics-snmp-collector:master-1_2_4_4-1_5 2025-04-10 16:14:28,767: INFO: Docker build duration: 46 seconds The push refers to repository [nexus.gz1.opensdn.io:5101/contrail-analytics-snmp-collector] 1927f28911dd: Preparing 52f944fc389a: Preparing 1e73ece3d835: Preparing ea875bd1d62a: Preparing 84f3d8ba315f: Preparing 51aea8244299: Preparing 74e22135b8cf: Preparing df3b8c53a1e3: Preparing f0c2d27c07b9: Preparing 260bf56cecaa: Preparing 0a27b7bb2dc7: Preparing 174f56854903: Preparing 1927f28911dd: Waiting 52f944fc389a: Waiting 1e73ece3d835: Waiting ea875bd1d62a: Waiting 84f3d8ba315f: Waiting 51aea8244299: Waiting 74e22135b8cf: Waiting df3b8c53a1e3: Waiting f0c2d27c07b9: Waiting 260bf56cecaa: Waiting 0a27b7bb2dc7: Waiting 174f56854903: Waiting 1e73ece3d835: Layer already exists ea875bd1d62a: Layer already exists 52f944fc389a: Pushed 84f3d8ba315f: Layer already exists 74e22135b8cf: Layer already exists 51aea8244299: Layer already exists f0c2d27c07b9: Layer already exists df3b8c53a1e3: Layer already exists 1927f28911dd: Pushed 0a27b7bb2dc7: Layer already exists 260bf56cecaa: Layer already exists 174f56854903: Layer already exists master-1_2_4_4-1_5: digest: sha256:7c270f92d2d4a590b1458e1b5bcb2aa2483d7fdfe73b0b4a828775af1429864f size: 2829 The push refers to repository [nexus.gz1.opensdn.io:5101/opensdn-analytics-snmp-collector] 1927f28911dd: Preparing 52f944fc389a: Preparing 1e73ece3d835: Preparing ea875bd1d62a: Preparing 84f3d8ba315f: Preparing 51aea8244299: Preparing 74e22135b8cf: Preparing df3b8c53a1e3: Preparing f0c2d27c07b9: Preparing 260bf56cecaa: Preparing 0a27b7bb2dc7: Preparing 174f56854903: Preparing 1927f28911dd: Waiting 52f944fc389a: Waiting 1e73ece3d835: Waiting ea875bd1d62a: Waiting 84f3d8ba315f: Waiting 51aea8244299: Waiting 74e22135b8cf: Waiting df3b8c53a1e3: Waiting f0c2d27c07b9: Waiting 260bf56cecaa: Waiting 0a27b7bb2dc7: Waiting 174f56854903: Waiting 52f944fc389a: Layer already exists 1927f28911dd: Layer already exists 1e73ece3d835: Layer already exists ea875bd1d62a: Layer already exists 51aea8244299: Layer already exists 84f3d8ba315f: Layer already exists 74e22135b8cf: Layer already exists df3b8c53a1e3: Layer already exists 174f56854903: Layer already exists 260bf56cecaa: Layer already exists f0c2d27c07b9: Layer already exists 0a27b7bb2dc7: Layer already exists master-1_2_4_4-1_5: digest: sha256:7c270f92d2d4a590b1458e1b5bcb2aa2483d7fdfe73b0b4a828775af1429864f size: 2829 2025-04-10 16:14:37,231: INFO: Building contrail-analytics-snmp-collector finished successfully, duration: 55 seconds