2025-04-14 11:41:26,172: INFO: Building contrail-analytics-snmp-collector 2025-04-14 11:41:26,244: 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_0_8_7-6_9 --build-arg SITE_MIRROR=http://nexus.gz1.opensdn.io/repository/external-web-cache --build-arg LINUX_DISTR_VER=9 --build-arg LINUX_DISTR=rockylinux --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 #0 building with "default" instance using docker driver #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: #1 transferring dockerfile: 920B done #1 DONE 3.0s #2 [internal] load metadata for nexus.gz1.opensdn.io:5101/opensdn-analytics-snmp-base:master-1_0_8_7-6_9 #2 DONE 0.0s #3 [internal] load .dockerignore #3 transferring context: #3 transferring context: 2B done #3 DONE 1.2s #4 [internal] load build context #4 transferring context: 1.65kB done #4 DONE 3.3s #5 [1/3] FROM nexus.gz1.opensdn.io:5101/opensdn-analytics-snmp-base:master-1_0_8_7-6_9 #5 DONE 11.0s #6 [2/3] COPY entrypoint.sh / #6 DONE 1.4s #7 [3/3] RUN set -e ; python3 -m pip install --no-compile --extra-index-url http://localhost:6667/pip/simple "tf_snmp_collector==0.1.dev0" ; rm -rf /root/.cache #7 2.328 Looking in indexes: http://tf-mirrors.gz1.opensdn.io/root/pypi/+simple/, http://localhost:6667/pip/simple #7 2.419 Collecting tf_snmp_collector==0.1.dev0 #7 2.452 Downloading http://localhost:6667/pip/simple/tf-snmp-collector/tf_snmp_collector-0.1.dev0-py3-none-any.whl (63 kB) #7 2.495 Requirement already satisfied: gevent in /usr/local/lib64/python3.9/site-packages (from tf_snmp_collector==0.1.dev0) (24.11.1) #7 2.560 Collecting python3-netsnmp (from tf_snmp_collector==0.1.dev0) #7 2.610 Downloading http://tf-mirrors.gz1.opensdn.io/root/pypi/%2Bf/317/dd425036a6af8/python3-netsnmp-1.1a1.tar.gz (24 kB) #7 2.675 Installing build dependencies: started #7 13.74 Installing build dependencies: finished with status 'done' #7 13.75 Getting requirements to build wheel: started #7 15.06 Getting requirements to build wheel: finished with status 'done' #7 15.11 Preparing metadata (pyproject.toml): started #7 16.42 Preparing metadata (pyproject.toml): finished with status 'done' #7 16.46 Collecting libpartition==0.1.dev0 (from tf_snmp_collector==0.1.dev0) #7 16.46 Downloading http://localhost:6667/pip/simple/libpartition/libpartition-0.1.dev0-py3-none-any.whl (10 kB) #7 16.46 Requirement already satisfied: sandesh==0.1.dev0 in /usr/local/lib/python3.9/site-packages (from tf_snmp_collector==0.1.dev0) (0.1.dev0) #7 16.46 Requirement already satisfied: sandesh_common==0.1.dev0 in /usr/local/lib/python3.9/site-packages (from tf_snmp_collector==0.1.dev0) (0.1.dev0) #7 16.46 Requirement already satisfied: contrail-config-common==0.1.dev0 in /usr/local/lib/python3.9/site-packages (from tf_snmp_collector==0.1.dev0) (0.1.dev0) #7 16.47 Requirement already satisfied: timeout-decorator in /usr/local/lib/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.5.0) #7 16.47 Requirement already satisfied: bitarray in /usr/local/lib64/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.3.1) #7 16.49 Requirement already satisfied: bottle<0.13 in /usr/local/lib/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.12.25) #7 16.49 Requirement already satisfied: cassandra-driver in /usr/local/lib64/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.29.2) #7 16.49 Requirement already satisfied: contrail-api-client==0.1.dev0 in /usr/local/lib/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.1.dev0) #7 16.49 Requirement already satisfied: greenlet in /usr/local/lib64/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.1.1) #7 16.49 Requirement already satisfied: kazoo in /usr/local/lib/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.10.0) #7 16.49 Requirement already satisfied: kombu in /usr/local/lib/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (5.5.2) #7 16.49 Requirement already satisfied: requests in /usr/local/lib/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.32.3) #7 16.49 Requirement already satisfied: simplejson in /usr/local/lib64/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.20.1) #7 16.49 Requirement already satisfied: stevedore in /usr/local/lib/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (5.4.1) #7 16.49 Requirement already satisfied: xmltodict==0.12.0 in /usr/local/lib/python3.9/site-packages (from contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.12.0) #7 16.49 Requirement already satisfied: netaddr<1 in /usr/local/lib/python3.9/site-packages (from sandesh==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.10.1) #7 16.52 Requirement already satisfied: fysom in /usr/local/lib/python3.9/site-packages (from sandesh==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.1.6) #7 16.56 Requirement already satisfied: zope.event in /usr/local/lib/python3.9/site-packages (from gevent->tf_snmp_collector==0.1.dev0) (5.0) #7 16.56 Requirement already satisfied: zope.interface in /usr/local/lib64/python3.9/site-packages (from gevent->tf_snmp_collector==0.1.dev0) (7.2) #7 16.59 Requirement already satisfied: geomet<0.3,>=0.1 in /usr/local/lib/python3.9/site-packages (from cassandra-driver->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (0.2.1.post1) #7 16.68 Requirement already satisfied: amqp<6.0.0,>=5.1.1 in /usr/local/lib/python3.9/site-packages (from kombu->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (5.3.1) #7 16.68 Requirement already satisfied: vine==5.1.0 in /usr/local/lib/python3.9/site-packages (from kombu->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (5.1.0) #7 16.68 Requirement already satisfied: typing-extensions==4.12.2 in /usr/local/lib/python3.9/site-packages (from kombu->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (4.12.2) #7 16.68 Requirement already satisfied: tzdata==2025.2 in /usr/local/lib/python3.9/site-packages (from kombu->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2025.2) #7 16.74 Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib64/python3.9/site-packages (from requests->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.4.1) #7 16.74 Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (3.10) #7 16.74 Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2.4.0) #7 16.74 Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (2025.1.31) #7 16.76 Requirement already satisfied: pbr>=2.0.0 in /usr/local/lib/python3.9/site-packages (from stevedore->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (6.1.1) #7 16.80 Requirement already satisfied: setuptools in /usr/local/lib/python3.9/site-packages (from zope.event->gevent->tf_snmp_collector==0.1.dev0) (78.1.0) #7 16.99 Requirement already satisfied: click in /usr/local/lib/python3.9/site-packages (from geomet<0.3,>=0.1->cassandra-driver->contrail-config-common==0.1.dev0->tf_snmp_collector==0.1.dev0) (8.1.8) #7 17.02 Requirement already satisfied: six in /usr/local/lib/python3.9/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) #7 17.16 Building wheels for collected packages: python3-netsnmp #7 17.16 Building wheel for python3-netsnmp (pyproject.toml): started #7 18.90 error: subprocess-exited-with-error #7 18.90 #7 18.90 × Building wheel for python3-netsnmp (pyproject.toml) did not run successfully. #7 18.90 │ exit code: 1 #7 18.90 ╰─> [21 lines of output] #7 18.90 /bin/sh: line 1: net-snmp-config: command not found #7 18.90 /tmp/pip-build-env-65zaqwpo/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'test_suite' #7 18.90 warnings.warn(msg) #7 18.90 running bdist_wheel #7 18.90 running build #7 18.90 running build_py #7 18.90 creating build/lib.linux-x86_64-cpython-39/netsnmp #7 18.90 copying netsnmp/__init__.py -> build/lib.linux-x86_64-cpython-39/netsnmp #7 18.90 copying netsnmp/client.py -> build/lib.linux-x86_64-cpython-39/netsnmp #7 18.90 creating build/lib.linux-x86_64-cpython-39/netsnmp/tests #7 18.90 copying netsnmp/tests/test.py -> build/lib.linux-x86_64-cpython-39/netsnmp/tests #7 18.90 copying netsnmp/tests/__init__.py -> build/lib.linux-x86_64-cpython-39/netsnmp/tests #7 18.90 running build_ext #7 18.90 building 'netsnmp.client_intf' extension #7 18.90 creating build/temp.linux-x86_64-cpython-39/netsnmp #7 18.90 gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.9 -c netsnmp/client_intf.c -o build/temp.linux-x86_64-cpython-39/netsnmp/client_intf.o #7 18.90 netsnmp/client_intf.c:3:10: fatal error: net-snmp/net-snmp-config.h: No such file or directory #7 18.90 3 | #include #7 18.90 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ #7 18.90 compilation terminated. #7 18.90 error: command '/usr/bin/gcc' failed with exit code 1 #7 18.90 [end of output] #7 18.90 #7 18.90 note: This error originates from a subprocess, and is likely not a problem with pip. #7 18.91 ERROR: Failed building wheel for python3-netsnmp #7 19.13 Building wheel for python3-netsnmp (pyproject.toml): finished with status 'error' #7 19.13 Failed to build python3-netsnmp #7 19.52 ERROR: Failed to build installable wheels for some pyproject.toml based projects (python3-netsnmp) #7 ERROR: process "/bin/sh -c set -e ; python3 -m pip install --no-compile --extra-index-url $PIP_REPOSITORY "tf_snmp_collector==0.1.dev0" ; rm -rf /root/.cache" did not complete successfully: exit code: 1 ------ > [3/3] RUN set -e ; python3 -m pip install --no-compile --extra-index-url http://localhost:6667/pip/simple "tf_snmp_collector==0.1.dev0" ; rm -rf /root/.cache: 18.90 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 18.90 compilation terminated. 18.90 error: command '/usr/bin/gcc' failed with exit code 1 18.90 [end of output] 18.90 18.90 note: This error originates from a subprocess, and is likely not a problem with pip. 18.91 ERROR: Failed building wheel for python3-netsnmp 19.13 Building wheel for python3-netsnmp (pyproject.toml): finished with status 'error' 19.13 Failed to build python3-netsnmp 19.52 ERROR: Failed to build installable wheels for some pyproject.toml based projects (python3-netsnmp) ------ 1 warning found (use docker --debug to expand):  - InvalidDefaultArgInFrom: Default value for ARG ${CONTRAIL_REGISTRY}/opensdn-analytics-snmp-base:${CONTRAIL_CONTAINER_TAG} results in empty or invalid base image name (line 3) Dockerfile:17 -------------------- 16 | 17 | >>> RUN set -e ; 18 | >>> python3 -m pip install --no-compile --extra-index-url $PIP_REPOSITORY "tf_snmp_collector==0.1.dev0" ; 19 | >>> rm -rf /root/.cache 20 | -------------------- ERROR: failed to solve: process "/bin/sh -c set -e ; python3 -m pip install --no-compile --extra-index-url $PIP_REPOSITORY "tf_snmp_collector==0.1.dev0" ; rm -rf /root/.cache" did not complete successfully: exit code: 1 2025-04-14 11:42:08,166: INFO: Docker build duration: 42 seconds 2025-04-14 11:42:08,171: ERROR: Building contrail-analytics-snmp-collector failed, duration: 42 seconds