Started by upstream project "pipeline-check" build number 1250
originally caused by:
Triggered by Gerrit: https://gerrit.opensdn.io/c/opensdn-io/tf-ansible-deployer/+/1293
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on slave-openstack-gz1_1 (openstack) in workspace /home/jenkins/workspace/test-unit-tox
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
[WS-CLEANUP] Done
The recommended git tool is: git
No credentials specified
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository https://github.com/opensdn-io/tf-jenkins.git
> git init /home/jenkins/workspace/test-unit-tox/src/opensdn-io/tf-jenkins # timeout=10
Fetching upstream changes from https://github.com/opensdn-io/tf-jenkins.git
> git --version # timeout=10
> git --version # 'git version 2.25.1'
> git fetch --tags --force --progress -- https://github.com/opensdn-io/tf-jenkins.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/opensdn-io/tf-jenkins.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision e35f3491f5b56b4f63bfb586e8728615888f36dc (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f e35f3491f5b56b4f63bfb586e8728615888f36dc # timeout=10
Commit message: "Merge "use api worker count for ansible-k8s""
> git rev-list --no-walk e35f3491f5b56b4f63bfb586e8728615888f36dc # timeout=10
The recommended git tool is: NONE
No credentials specified
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository https://github.com/opensdn-io/tf-dev-env.git
> git init /home/jenkins/workspace/test-unit-tox/src/opensdn-io/tf-dev-env # timeout=10
Fetching upstream changes from https://github.com/opensdn-io/tf-dev-env.git
> git --version # timeout=10
> git --version # 'git version 2.25.1'
> git fetch --tags --force --progress -- https://github.com/opensdn-io/tf-dev-env.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/opensdn-io/tf-dev-env.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision d7f2915d3f4bc32e0ce0d3e2f7e312b00af4d914 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f d7f2915d3f4bc32e0ce0d3e2f7e312b00af4d914 # timeout=10
Commit message: "ISSUE-55 commit tf-dev-env after each stage"
> git rev-list --no-walk d7f2915d3f4bc32e0ce0d3e2f7e312b00af4d914 # timeout=10
Copied 4 artifacts from "pipeline-check" build number 1250
[test-unit-tox] $ /bin/bash -xe /tmp/jenkins11440134791048651340.sh
+ export TARGET=tox
+ TARGET=tox
+ source /home/jenkins/workspace/test-unit-tox/global.env
++ export PIPELINE_BUILD_TAG=jenkins-pipeline-check-1250
++ PIPELINE_BUILD_TAG=jenkins-pipeline-check-1250
++ export SLAVE=openstack
++ SLAVE=openstack
++ export SLAVE_REGION=gz1
++ SLAVE_REGION=gz1
++ export LOGS_HOST=nexus.gz1.opensdn.io
++ LOGS_HOST=nexus.gz1.opensdn.io
++ export LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250
++ LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250
++ export LOGS_URL=http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250
++ LOGS_URL=http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250
++ export SITE_MIRROR=http://nexus.gz1.opensdn.io/repository
++ SITE_MIRROR=http://nexus.gz1.opensdn.io/repository
++ export CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ export DEPLOYER_CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ DEPLOYER_CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ export CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ export CONTRAIL_DEPLOYER_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_DEPLOYER_CONTAINER_TAG=master-1_2_9_3-2
++ export CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ export DEPLOYER_CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ DEPLOYER_CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ export CONTRAIL_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ export CONTRAIL_DEPLOYER_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ CONTRAIL_DEPLOYER_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ export GERRIT_PIPELINE=check
++ GERRIT_PIPELINE=check
++ export GERRIT_URL=https://gerrit.opensdn.io/
++ GERRIT_URL=https://gerrit.opensdn.io/
++ export GERRIT_CHANGE_ID=I10e6e0f5036edde0a76b2be1ab7e886519065154
++ GERRIT_CHANGE_ID=I10e6e0f5036edde0a76b2be1ab7e886519065154
++ export GERRIT_BRANCH=master
++ GERRIT_BRANCH=master
++ export GERRIT_PROJECT=opensdn-io/tf-ansible-deployer
++ GERRIT_PROJECT=opensdn-io/tf-ansible-deployer
++ export REPOS_CHANNEL=latest
++ REPOS_CHANNEL=latest
+ source /home/jenkins/workspace/test-unit-tox/vars.test-unit-tox.2063.env
++ export TARGET_SET=py36
++ TARGET_SET=py36
++ export LINUX_DISTR=centos
++ LINUX_DISTR=centos
+ desc='Pipeline: pipeline-check-1250 Random: 2063
'
+ desc+='Target: tox
'
+ desc+='Job logs: http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36'
+ echo 'DESCRIPTION Pipeline: pipeline-check-1250 Random: 2063
Target: tox
Job logs: http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36'
DESCRIPTION Pipeline: pipeline-check-1250 Random: 2063
Target: tox
Job logs: http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36
[description-setter] Description set: Pipeline: pipeline-check-1250 Random: 2063
Target: tox
Job logs: http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36'
[test-unit-tox] $ /bin/bash -xe /tmp/jenkins8410457682344800644.sh
+ set -eo pipefail
+ source /home/jenkins/workspace/test-unit-tox/global.env
++ export PIPELINE_BUILD_TAG=jenkins-pipeline-check-1250
++ PIPELINE_BUILD_TAG=jenkins-pipeline-check-1250
++ export SLAVE=openstack
++ SLAVE=openstack
++ export SLAVE_REGION=gz1
++ SLAVE_REGION=gz1
++ export LOGS_HOST=nexus.gz1.opensdn.io
++ LOGS_HOST=nexus.gz1.opensdn.io
++ export LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250
++ LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250
++ export LOGS_URL=http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250
++ LOGS_URL=http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250
++ export SITE_MIRROR=http://nexus.gz1.opensdn.io/repository
++ SITE_MIRROR=http://nexus.gz1.opensdn.io/repository
++ export CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ export DEPLOYER_CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ DEPLOYER_CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ export CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ export CONTRAIL_DEPLOYER_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_DEPLOYER_CONTAINER_TAG=master-1_2_9_3-2
++ export CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ export DEPLOYER_CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ DEPLOYER_CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ export CONTRAIL_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ export CONTRAIL_DEPLOYER_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ CONTRAIL_DEPLOYER_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ export GERRIT_PIPELINE=check
++ GERRIT_PIPELINE=check
++ export GERRIT_URL=https://gerrit.opensdn.io/
++ GERRIT_URL=https://gerrit.opensdn.io/
++ export GERRIT_CHANGE_ID=I10e6e0f5036edde0a76b2be1ab7e886519065154
++ GERRIT_CHANGE_ID=I10e6e0f5036edde0a76b2be1ab7e886519065154
++ export GERRIT_BRANCH=master
++ GERRIT_BRANCH=master
++ export GERRIT_PROJECT=opensdn-io/tf-ansible-deployer
++ GERRIT_PROJECT=opensdn-io/tf-ansible-deployer
++ export REPOS_CHANNEL=latest
++ REPOS_CHANNEL=latest
+ ./src/opensdn-io/tf-jenkins/infra/gerrit/apply_patchsets.sh ./src opensdn-io/tf-jenkins ./patchsets-info.json
+ ./src/opensdn-io/tf-jenkins/infra/gerrit/apply_patchsets.sh ./src opensdn-io/tf-dev-env ./patchsets-info.json
[test-unit-tox] $ /bin/bash -xe /tmp/jenkins13429534085570562003.sh
+ set -eo pipefail
+ export TARGET=tox
+ TARGET=tox
+ source /home/jenkins/workspace/test-unit-tox/global.env
++ export PIPELINE_BUILD_TAG=jenkins-pipeline-check-1250
++ PIPELINE_BUILD_TAG=jenkins-pipeline-check-1250
++ export SLAVE=openstack
++ SLAVE=openstack
++ export SLAVE_REGION=gz1
++ SLAVE_REGION=gz1
++ export LOGS_HOST=nexus.gz1.opensdn.io
++ LOGS_HOST=nexus.gz1.opensdn.io
++ export LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250
++ LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250
++ export LOGS_URL=http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250
++ LOGS_URL=http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250
++ export SITE_MIRROR=http://nexus.gz1.opensdn.io/repository
++ SITE_MIRROR=http://nexus.gz1.opensdn.io/repository
++ export CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ export DEPLOYER_CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ DEPLOYER_CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ export CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ export CONTRAIL_DEPLOYER_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_DEPLOYER_CONTAINER_TAG=master-1_2_9_3-2
++ export CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ export DEPLOYER_CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ DEPLOYER_CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ export CONTRAIL_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ export CONTRAIL_DEPLOYER_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ CONTRAIL_DEPLOYER_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ export GERRIT_PIPELINE=check
++ GERRIT_PIPELINE=check
++ export GERRIT_URL=https://gerrit.opensdn.io/
++ GERRIT_URL=https://gerrit.opensdn.io/
++ export GERRIT_CHANGE_ID=I10e6e0f5036edde0a76b2be1ab7e886519065154
++ GERRIT_CHANGE_ID=I10e6e0f5036edde0a76b2be1ab7e886519065154
++ export GERRIT_BRANCH=master
++ GERRIT_BRANCH=master
++ export GERRIT_PROJECT=opensdn-io/tf-ansible-deployer
++ GERRIT_PROJECT=opensdn-io/tf-ansible-deployer
++ export REPOS_CHANNEL=latest
++ REPOS_CHANNEL=latest
+ source /home/jenkins/workspace/test-unit-tox/vars.test-unit-tox.2063.env
++ export TARGET_SET=py36
++ TARGET_SET=py36
++ export LINUX_DISTR=centos
++ LINUX_DISTR=centos
+ source /home/jenkins/workspace/test-unit-tox/deps.test-unit-tox.2063.env
++ export PROVIDER=openstack
++ PROVIDER=openstack
++ export ENVIRONMENT_OS=rocky9
++ ENVIRONMENT_OS=rocky9
++ export IMAGE=aa1bd152-a8d4-49ef-85ea-82a4dab8cf7f
++ IMAGE=aa1bd152-a8d4-49ef-85ea-82a4dab8cf7f
++ export IMAGE_SSH_USER=rocky
++ IMAGE_SSH_USER=rocky
++ export INSTANCE_IDS=b90926c3-7e8a-46f5-a112-9ee09156debb,
++ INSTANCE_IDS=b90926c3-7e8a-46f5-a112-9ee09156debb,
++ export INSTANCE_IPS=10.0.0.17,
++ INSTANCE_IPS=10.0.0.17,
++ export instance_ip=10.0.0.17
++ instance_ip=10.0.0.17
++ export UNITTEST_TARGETS=controller/src/agent:test,controller/src/bfd:test,controller/src/bgp:test,controller/src/cat:test,controller/src/config/api-server:test,controller/src/config/fabric-ansible:test,controller/src/config/schema-transformer:test,controller/src/control-node:test,controller/src/db:test,controller/src/dns:test,controller/src/ifmap:test,controller/src/ksync:test,controller/src/net:test,controller/src/xmpp:test,src/contrail-analytics/contrail-collector:test,src/contrail-analytics/contrail-opserver:test,src/contrail-analytics/contrail-query-engine:test,src/contrail-api-client/api-lib:test,src/contrail-api-client/schema:test,src/contrail-common/database/gendb:test,
++ UNITTEST_TARGETS=controller/src/agent:test,controller/src/bfd:test,controller/src/bgp:test,controller/src/cat:test,controller/src/config/api-server:test,controller/src/config/fabric-ansible:test,controller/src/config/schema-transformer:test,controller/src/control-node:test,controller/src/db:test,controller/src/dns:test,controller/src/ifmap:test,controller/src/ksync:test,controller/src/net:test,controller/src/xmpp:test,src/contrail-analytics/contrail-collector:test,src/contrail-analytics/contrail-opserver:test,src/contrail-analytics/contrail-query-engine:test,src/contrail-api-client/api-lib:test,src/contrail-api-client/schema:test,src/contrail-common/database/gendb:test,
+ export FULL_LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36
+ FULL_LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36
+ ./src/opensdn-io/tf-jenkins/jobs/test/unit/run.sh
INFO: UT started. ENVIRONMENT_OS=rocky9 LINUX_DISTR=centos
Warning: Permanently added '10.0.0.17' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.0.0.17' (ECDSA) to the list of known hosts.
Local time: Thu 2025-01-09 01:30:37 PST
Universal time: Thu 2025-01-09 09:30:37 UTC
RTC time: Thu 2025-01-09 09:30:36
Time zone: America/Los_Angeles (PST, -0800)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Local time: Thu 2025-01-09 01:30:37 PST
Universal time: Thu 2025-01-09 09:30:37 UTC
RTC time: Thu 2025-01-09 09:30:36
Time zone: America/Los_Angeles (PST, -0800)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
INFO: tf-dev-env startup
INFO: ensure python is present
Last metadata expiration check: 0:03:17 ago on Thu Jan 9 01:27:20 2025.
Package jq-1.6-17.el9.x86_64 is already installed.
Package lsof-4.94.0-3.el9.x86_64 is already installed.
Package python3-3.9.19-8.el9_5.1.x86_64 is already installed.
Package python3-pip-21.3.1-1.el9.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
+++ dirname /home/rocky/src/opensdn-io/tf-dev-env/common/setup_docker_root.sh
++ realpath /home/rocky/src/opensdn-io/tf-dev-env/common
+ scriptdir=/home/rocky/src/opensdn-io/tf-dev-env/common
+ source /home/rocky/src/opensdn-io/tf-dev-env/common/common.sh
++ '[' -n '' ']'
++ set -o errexit
++ export DEBUGINFO=FALSE
++ DEBUGINFO=FALSE
++ export WORKSPACE=/home/rocky
++ WORKSPACE=/home/rocky
++ export TF_CONFIG_DIR=/home/rocky/.tf
++ TF_CONFIG_DIR=/home/rocky/.tf
++ export TF_DEVENV_PROFILE=/home/rocky/.tf/dev.env
++ TF_DEVENV_PROFILE=/home/rocky/.tf/dev.env
++ export BUILD_MODE=full
++ BUILD_MODE=full
++ '[' -e /home/rocky/.tf/dev.env ']'
++ source /home/rocky/.tf/dev.env
+++ CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
+++ FROZEN_TAG=
+++ FROZEN_REGISTRY=nexus.opensdn.io:5101
+++ CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
+++ RPM_REPO_IP=localhost
+++ RPM_REPO_PORT=6667
+++ BUILD_MODE=full
+++ VENDOR_NAME=OpenSDN-IO
+++ VENDOR_DOMAIN=io.opensdn
++ [[ linux-gnu == \l\i\n\u\x\-\g\n\u ]]
+++ cat /etc/os-release /etc/redhat-release /etc/rocky-release /etc/system-release
+++ egrep '^ID='
+++ awk -F= '{print $2}'
+++ tr -d '"'
++ export DISTRO=rocky
++ DISTRO=rocky
+++ cat /etc/os-release /etc/redhat-release /etc/rocky-release /etc/system-release
+++ egrep '^VERSION_ID='
+++ awk -F= '{print $2}'
+++ tr -d '"'
++ export DISTRO_VER=9.2
++ DISTRO_VER=9.2
++ export DISTRO_VER_MAJOR=9
++ DISTRO_VER_MAJOR=9
++ '[' -z x ']'
++ '[' -z /home/rocky/contrail ']'
++ export CONTRAIL_DIR
++ export CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ [[ nexus.gz1.opensdn.io:5101 == *\:* ]]
+++ echo nexus.gz1.opensdn.io:5101
+++ cut -f 1 -d :
++ export REGISTRY_IP=nexus.gz1.opensdn.io
++ REGISTRY_IP=nexus.gz1.opensdn.io
+++ echo nexus.gz1.opensdn.io:5101
+++ cut -f 2 -d :
++ export REGISTRY_PORT=5101
++ REGISTRY_PORT=5101
++ export FROZEN_REGISTRY=nexus.opensdn.io:5101
++ FROZEN_REGISTRY=nexus.opensdn.io:5101
++ export GERRIT_URL=https://gerrit.opensdn.io/
++ GERRIT_URL=https://gerrit.opensdn.io/
++ export RPM_REPO_IP=localhost
++ RPM_REPO_IP=localhost
++ export RPM_REPO_PORT=6667
++ RPM_REPO_PORT=6667
++ export REGISTRY_CONTAINER_NAME=tf-dev-env-registry
++ REGISTRY_CONTAINER_NAME=tf-dev-env-registry
++ export DEVENV_CONTAINER_NAME=tf-dev-sandbox
++ DEVENV_CONTAINER_NAME=tf-dev-sandbox
++ export CONTRAIL_PARALLEL_BUILD=true
++ CONTRAIL_PARALLEL_BUILD=true
++ export DEVENV_IMAGE_NAME=tf-dev-sandbox
++ DEVENV_IMAGE_NAME=tf-dev-sandbox
++ export DEVENV_TAG=latest
++ DEVENV_TAG=latest
++ export DEVENV_PUSH_TAG=frozen
++ DEVENV_PUSH_TAG=frozen
++ export DEVENV_IMAGE=tf-dev-sandbox:latest
++ DEVENV_IMAGE=tf-dev-sandbox:latest
++ export MULTI_KERNEL_BUILD=false
++ MULTI_KERNEL_BUILD=false
++ export ENABLE_RHSM_REPOS=false
++ ENABLE_RHSM_REPOS=false
++ export CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ export FROZEN_TAG=
++ FROZEN_TAG=
++ export VENDOR_NAME=OpenSDN-IO
++ VENDOR_NAME=OpenSDN-IO
++ export VENDOR_DOMAIN=io.opensdn
++ VENDOR_DOMAIN=io.opensdn
++ export CONTRAIL_BRANCH=master
++ CONTRAIL_BRANCH=master
++ '[' -z z ']'
+ source /home/rocky/src/opensdn-io/tf-dev-env/common/functions.sh
+ ensure_root
++ whoami
+ local me=root
+ '[' root '!=' root ']'
+ install_docker_rhel=(['7.8']='install_docker_rhel_7' ['7.9']='install_docker_rhel_7' ['8.2']='install_docker_rhel_8' ['8.4']='install_docker_rhel_8')
+ declare -A install_docker_rhel
+ echo ''
+ echo 'INFO: [docker install]'
+ echo 'INFO: rocky detected'
+ which docker
++ docker --version
+ echo 'INFO: docker installed: Docker version 27.4.1, build b9d17ea'
+ '[' xrocky '!=' xrhel ']'
++ docker version --format '{{.Client.Version}}'
++ head -1
++ cut -d . -f 1
+ version=27
+ (( version < 16 ))
+ echo
+ echo 'INFO: [docker config]'
++ ip route get 1
++ grep -o 'dev.*'
++ awk '{print $2}'
+ default_iface=eth0
+ CONTRAIL_SKIP_INSECURE_REGISTRY=0
+ insecure_registries=
+ registry_ip=nexus.gz1.opensdn.io
+ UPDATE_INSECURE_REGISTRY=false
+ '[' 0 '!=' 0 ']'
+ '[' -z nexus.gz1.opensdn.io ']'
+ check_insecure_registry nexus.gz1.opensdn.io:5101
+ case ${DISTRO}_${DISTRO_VER} in
+ check_docker_value insecure-registries nexus.gz1.opensdn.io:5101
+ local name=insecure-registries
+ local value=nexus.gz1.opensdn.io:5101
+ python -c 'import json; f=open('\''/etc/docker/daemon.json'\''); data=json.load(f); print(data.get('\''insecure-registries'\''));'
+ grep -qi nexus.gz1.opensdn.io:5101
+ '[' -n '' ']'
+ insecure_registries+=nexus.gz1.opensdn.io:5101
+ '[' -n nexus.gz1.opensdn.io:5101 ']'
+ UPDATE_INSECURE_REGISTRY=true
++ ip link show eth0
++ grep -o 'mtu.*'
++ awk '{print $2}'
+ default_iface_mtu=1500
+ docker_reload=0
+ true
+ update_config_docker nexus.gz1.opensdn.io:5101 1500
+ local insecure_registries=nexus.gz1.opensdn.io:5101
+ local default_iface_mtu=1500
+ case ${DISTRO}_${DISTRO_VER} in
+ '[' '!' -e /etc/docker/daemon.json ']'
+ python
+ docker_reload=1
++ get_docker_mtu
++ case ${DISTRO}_${DISTRO_VER} in
++ docker network inspect '--format={{index .Options "com.docker.network.driver.mtu"}}' bridge
+ runtime_docker_mtu=1500
+ [[ 1500 != \1\5\0\0 ]]
+ [[ 1 == \1 ]]
+ set_docker_mtu 1500
+ local default_iface_mtu=1500
+ echo 'INFO: set docker0 mtu to 1500'
+ case ${DISTRO}_${DISTRO_VER} in
++ command -v ifconfig
+ '[' -x /sbin/ifconfig ']'
+ ifconfig docker0 mtu 1500
+ restart_docker
+ echo 'INFO: restart docker'
+ [[ xrocky == x\c\e\n\t\o\s ]]
+ [[ xrocky == x\r\o\c\k\y ]]
+ systemctl restart docker
+ echo 'REGISTRY_IP: nexus.gz1.opensdn.io'
INFO: [docker install]
INFO: rocky detected
INFO: docker installed: Docker version 27.4.1, build b9d17ea
INFO: [docker config]
INFO: set docker0 mtu to 1500
INFO: restart docker
REGISTRY_IP: nexus.gz1.opensdn.io
[update tf devenv configuration]
tf setup profile /home/rocky/.tf/dev.env
# dev env options
CONTRAIL_CONTAINER_TAG=${CONTRAIL_CONTAINER_TAG:-master-1_2_9_3-2}
FROZEN_TAG=${FROZEN_TAG:-}
FROZEN_REGISTRY=${FROZEN_REGISTRY:-nexus.opensdn.io:5101}
CONTAINER_REGISTRY=${CONTAINER_REGISTRY:-nexus.gz1.opensdn.io:5101}
RPM_REPO_IP='localhost'
RPM_REPO_PORT=${RPM_REPO_PORT:-6667}
BUILD_MODE=${BUILD_MODE:-full}
# others
VENDOR_NAME="${VENDOR_NAME:-OpenSDN-IO}"
VENDOR_DOMAIN="${VENDOR_DOMAIN:-io.opensdn}"
INFO: Docker registry deployment skipped
[load tf devenv configuration]
INFO: make common.env
INFO: common.env content:
LINUX_DISTR=
LINUX_DISTR_VER=
CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
CONTRAIL_DEPLOYERS_TAG=master-1_2_9_3-2
CONTRAIL_REGISTRY=nexus.gz1.opensdn.io:5101
CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
CONTRAIL_REPOSITORY=http://localhost:6667
PIP_REPOSITORY=http://localhost:6667/pip/simple
DEPLOYERS_BASE_CONTAINER=nexus.gz1.opensdn.io:5101/contrail-general-base:master-1_2_9_3-2
CONTRAIL_PARALLEL_BUILD=true
VENDOR_NAME=OpenSDN-IO
VENDOR_DOMAIN=io.opensdn
YUM_ENABLE_REPOS=
INFO: environment setup
INFO: tf-dev-sandbox already running.
INFO: run stage test with target tox
INFO: run stage test with target tox
[load tf devenv configuration]
INFO: source env from /input/tf-developer-sandbox.env
INFO: source env from /root/tf-dev-env/common.env
INFO: create symlinks to work directories with artifacts Thu Jan 9 09:30:39 UTC 2025
Loaded plugins: fastestmirror, ovl, product-id, search-disabled-repos,
: subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Cleaning repos: contrail-tpc tf-mirrors.ci_repos_dockerrepo
: tf-mirrors.ci_repos_epel.repo tf-mirrors.ci_repos_yum7-base
: tf-mirrors.ci_repos_yum7-base-debuginfo
: tf-mirrors.ci_repos_yum7-centos-sclo-rh
: tf-mirrors.ci_repos_yum7-centosplus
: tf-mirrors.ci_repos_yum7-extras tf-mirrors.ci_repos_yum7-updates
INFO: Starting unit tests
Linux jenkins-build-prepare-sandbox-7377-1.novalocal 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 17:09:15 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
INFO: source env from /input/tf-developer-sandbox.env
INFO: source env from /root/tf-dev-env/common.env
INFO: Running tox tests for project: opensdn-io/tf-ansible-deployer, tox target: py36
INFO: short project name: tf-ansible-deployer
INFO: project path: /root/contrail/tf-ansible-deployer
~/contrail/tf-ansible-deployer ~/contrail
py36 create: /root/contrail/tf-ansible-deployer/.tox/py36
py36 installdeps: mock, requests, flake8
py36 develop-inst: /root/contrail/tf-ansible-deployer
py36 installed: certifi==2024.12.14,charset-normalizer==2.0.12,flake8==5.0.4,idna==3.10,importlib-metadata==4.2.0,mccabe==0.7.0,mock==5.1.0,pycodestyle==2.9.1,pyflakes==2.5.0,requests==2.27.1,-e git+https://github.com/opensdn-io/tf-ansible-deployer@293203b7f03575cf847d4f4aa63c6f3c28e0efe2#egg=tf_ansible_deployer,typing_extensions==4.1.1,urllib3==1.26.20,zipp==3.6.0
py36 run-test-pre: PYTHONHASHSEED='2357603149'
py36 run-test: commands[0] | python3 unit_tests/calculate_roles.py
....
----------------------------------------------------------------------
Ran 4 tests in 0.001s
OK
___________________________________ summary ____________________________________
py36: commands succeeded
congratulations :)
~/contrail
/output/logs ~/contrail
real 0m0.003s
user 0m0.002s
sys 0m0.002s
~/contrail
INFO: make successful Thu Jan 9 09:30:45 UTC 2025
[DONE]
There are stages available to run ./run.sh :
build - perform sequence of stages: fetch, configure, compile, package
(if stage was run previously it be skipped)
fetch - sync TF git repos
configure - fetch third party packages and install dependencies
compile - build TF binaries
package - package TF into docker containers (you can specify target container to build like container-vrouter)
test - run unittests
freeze - prepare tf-dev-env for pushing to container registry for future reuse by compressing contrail directory
upload - push tf-dev-env to container registry
none - create the tf-dev-env container empty
frozen - fetch frozen tf-dev-env from Ci registry, you still have to use run.sh or fetch/configure to get sources
doxygen - builds doxygen documentation for the project
For advanced usage You can now connect to the sandbox container by using:
sudo docker exec -it tf-dev-sandbox bash
INFO: UT finished successfully
+ exit
[PostBuildScript] - [INFO] Executing post build scripts.
[test-unit-tox] $ /bin/bash -xe /tmp/jenkins4171302074031968863.sh
+ set -eo pipefail
+ export TARGET=tox
+ TARGET=tox
+ source /home/jenkins/workspace/test-unit-tox/global.env
++ export PIPELINE_BUILD_TAG=jenkins-pipeline-check-1250
++ PIPELINE_BUILD_TAG=jenkins-pipeline-check-1250
++ export SLAVE=openstack
++ SLAVE=openstack
++ export SLAVE_REGION=gz1
++ SLAVE_REGION=gz1
++ export LOGS_HOST=nexus.gz1.opensdn.io
++ LOGS_HOST=nexus.gz1.opensdn.io
++ export LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250
++ LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250
++ export LOGS_URL=http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250
++ LOGS_URL=http://nexus.gz1.opensdn.io:8082/jenkins_logs/gerrit/93/1293/2/check_1250
++ export SITE_MIRROR=http://nexus.gz1.opensdn.io/repository
++ SITE_MIRROR=http://nexus.gz1.opensdn.io/repository
++ export CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ export DEPLOYER_CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ DEPLOYER_CONTAINER_REGISTRY=nexus.gz1.opensdn.io:5101
++ export CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG=master-1_2_9_3-2
++ export CONTRAIL_DEPLOYER_CONTAINER_TAG=master-1_2_9_3-2
++ CONTRAIL_DEPLOYER_CONTAINER_TAG=master-1_2_9_3-2
++ export CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ export DEPLOYER_CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ DEPLOYER_CONTAINER_REGISTRY_ORIGINAL=nexus.gz1.opensdn.io:5101
++ export CONTRAIL_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ CONTRAIL_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ export CONTRAIL_DEPLOYER_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ CONTRAIL_DEPLOYER_CONTAINER_TAG_ORIGINAL=master-1_2_9_3-2
++ export GERRIT_PIPELINE=check
++ GERRIT_PIPELINE=check
++ export GERRIT_URL=https://gerrit.opensdn.io/
++ GERRIT_URL=https://gerrit.opensdn.io/
++ export GERRIT_CHANGE_ID=I10e6e0f5036edde0a76b2be1ab7e886519065154
++ GERRIT_CHANGE_ID=I10e6e0f5036edde0a76b2be1ab7e886519065154
++ export GERRIT_BRANCH=master
++ GERRIT_BRANCH=master
++ export GERRIT_PROJECT=opensdn-io/tf-ansible-deployer
++ GERRIT_PROJECT=opensdn-io/tf-ansible-deployer
++ export REPOS_CHANNEL=latest
++ REPOS_CHANNEL=latest
+ source /home/jenkins/workspace/test-unit-tox/vars.test-unit-tox.2063.env
++ export TARGET_SET=py36
++ TARGET_SET=py36
++ export LINUX_DISTR=centos
++ LINUX_DISTR=centos
+ source /home/jenkins/workspace/test-unit-tox/deps.test-unit-tox.2063.env
++ export PROVIDER=openstack
++ PROVIDER=openstack
++ export ENVIRONMENT_OS=rocky9
++ ENVIRONMENT_OS=rocky9
++ export IMAGE=aa1bd152-a8d4-49ef-85ea-82a4dab8cf7f
++ IMAGE=aa1bd152-a8d4-49ef-85ea-82a4dab8cf7f
++ export IMAGE_SSH_USER=rocky
++ IMAGE_SSH_USER=rocky
++ export INSTANCE_IDS=b90926c3-7e8a-46f5-a112-9ee09156debb,
++ INSTANCE_IDS=b90926c3-7e8a-46f5-a112-9ee09156debb,
++ export INSTANCE_IPS=10.0.0.17,
++ INSTANCE_IPS=10.0.0.17,
++ export instance_ip=10.0.0.17
++ instance_ip=10.0.0.17
++ export UNITTEST_TARGETS=controller/src/agent:test,controller/src/bfd:test,controller/src/bgp:test,controller/src/cat:test,controller/src/config/api-server:test,controller/src/config/fabric-ansible:test,controller/src/config/schema-transformer:test,controller/src/control-node:test,controller/src/db:test,controller/src/dns:test,controller/src/ifmap:test,controller/src/ksync:test,controller/src/net:test,controller/src/xmpp:test,src/contrail-analytics/contrail-collector:test,src/contrail-analytics/contrail-opserver:test,src/contrail-analytics/contrail-query-engine:test,src/contrail-api-client/api-lib:test,src/contrail-api-client/schema:test,src/contrail-common/database/gendb:test,
++ UNITTEST_TARGETS=controller/src/agent:test,controller/src/bfd:test,controller/src/bgp:test,controller/src/cat:test,controller/src/config/api-server:test,controller/src/config/fabric-ansible:test,controller/src/config/schema-transformer:test,controller/src/control-node:test,controller/src/db:test,controller/src/dns:test,controller/src/ifmap:test,controller/src/ksync:test,controller/src/net:test,controller/src/xmpp:test,src/contrail-analytics/contrail-collector:test,src/contrail-analytics/contrail-opserver:test,src/contrail-analytics/contrail-query-engine:test,src/contrail-api-client/api-lib:test,src/contrail-api-client/schema:test,src/contrail-common/database/gendb:test,
+ export FULL_LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36
+ FULL_LOGS_PATH=/var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36
+ ./src/opensdn-io/tf-jenkins/jobs/test/unit/collect_logs.sh
Warning: Identity file **** not accessible: No such file or directory.
Warning: Permanently added '10.0.0.17' (ECDSA) to the list of known hosts.
rocky@10.0.0.17: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Warning: Identity file **** not accessible: No such file or directory.
Warning: Permanently added '10.0.0.17' (ECDSA) to the list of known hosts.
rocky@10.0.0.17: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]
tar (child): /home/jenkins/workspace/test-unit-tox/logs.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Warning: Identity file **** not accessible: No such file or directory.
Warning: Permanently added 'nexus.gz1.opensdn.io,212.233.90.199' (ECDSA) to the list of known hosts.
logserver@nexus.gz1.opensdn.io: Permission denied (publickey).
Warning: Identity file **** not accessible: No such file or directory.
Warning: Permanently added 'nexus.gz1.opensdn.io,212.233.90.199' (ECDSA) to the list of known hosts.
logserver@nexus.gz1.opensdn.io: Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
INFO: Logs collected at /var/www/logs/jenkins_logs/gerrit/93/1293/2/check_1250/test-unit-tox-py36
Archiving artifacts
Finished: SUCCESS