Triggered by Gerrit: https://gerrit.o-ran-sc.org/r/c/ric-plt/xapp-frame-py/+/12317 Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-ubuntu1804-builder-2c-2g-2671 (ubuntu1804-builder-2c-2g ubuntu2004-builder-2c-2g) in workspace /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-ewRd1UbOhQuV/agent.5588 SSH_AGENT_PID=5590 [ssh-agent] Started. Running ssh-add (command line suppressed) Identity added: /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master@tmp/private_key_8521198369346369462.key (jenkins-ssh) [ssh-agent] Using credentials jenkins (jenkins) The recommended git tool is: NONE using credential jenkins Wiping out workspace first. Cloning the remote Git repository Cloning repository ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-plt/xapp-frame-py > git init /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master # timeout=10 Fetching upstream changes from ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-plt/xapp-frame-py > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials jenkins > git fetch --tags --force --progress -- ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-plt/xapp-frame-py +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-plt/xapp-frame-py # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-plt/xapp-frame-py # timeout=10 Fetching upstream changes from ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-plt/xapp-frame-py using GIT_SSH to set credentials jenkins > git fetch --tags --force --progress -- ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-plt/xapp-frame-py refs/changes/17/12317/16 # timeout=10 > git rev-parse c07bf6bc2488cd44fe68348ec0445af192b5e568^{commit} # timeout=10 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script Checking out Revision c07bf6bc2488cd44fe68348ec0445af192b5e568 (refs/changes/17/12317/16) > git config core.sparsecheckout # timeout=10 > git checkout -f c07bf6bc2488cd44fe68348ec0445af192b5e568 # timeout=10 Commit message: "RIC-1032: xapp-frame-py block xApp to register when communicating with Rtmgr" > git rev-parse FETCH_HEAD^{commit} # timeout=10 > git rev-list --no-walk e0de19a1c51e607b7e7a4a71a326a09486583539 # timeout=10 > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.nodeb-rnib.url # timeout=10 > git config -f .gitmodules --get submodule.nodeb-rnib.path # timeout=10 > git submodule update --init --recursive nodeb-rnib # timeout=10 provisioning config files... copy managed file [npmrc] to file:/home/jenkins/.npmrc copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins9121924853349891596.sh ---> python-tools-install.sh Setup pyenv: * system (set by /opt/pyenv/version) * 3.8.13 (set by /opt/pyenv/version) * 3.9.13 (set by /opt/pyenv/version) * 3.10.6 (set by /opt/pyenv/version) lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-kDAe lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-kDAe/bin to PATH Generating Requirements File Python 3.10.6 pip 23.3.2 from /tmp/venv-kDAe/lib/python3.10/site-packages/pip (python 3.10) appdirs==1.4.4 argcomplete==3.2.1 aspy.yaml==1.3.0 attrs==23.2.0 autopage==0.5.2 Babel==2.14.0 beautifulsoup4==4.12.2 boto3==1.34.11 botocore==1.34.11 bs4==0.0.1 cachetools==5.3.2 certifi==2023.11.17 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 cliff==4.4.0 cmd2==2.4.3 cryptography==3.3.2 debtcollector==2.5.0 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.14 distlib==0.3.8 dnspython==2.4.2 docker==4.2.2 dogpile.cache==1.3.0 email-validator==2.1.0.post1 filelock==3.13.1 future==0.18.3 gitdb==4.0.11 GitPython==3.1.40 google-auth==2.25.2 httplib2==0.22.0 identify==2.5.33 idna==3.6 importlib-metadata==7.0.1 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.2 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==2.4 jsonschema==4.20.0 jsonschema-specifications==2023.12.1 keystoneauth1==5.4.0 kubernetes==28.1.0 lftools==0.37.8 lxml==5.0.0 MarkupSafe==2.1.3 msgpack==1.0.7 multi_key_dict==2.0.3 munch==4.0.0 netaddr==0.10.1 netifaces==0.11.0 niet==1.4.2 nodeenv==1.8.0 oauth2client==4.1.3 oauthlib==3.2.2 openstacksdk==0.62.0 os-client-config==2.1.0 os-service-types==1.7.0 osc-lib==2.9.0 oslo.config==9.2.0 oslo.context==5.3.0 oslo.i18n==6.2.0 oslo.log==5.4.0 oslo.serialization==5.2.0 oslo.utils==6.3.0 packaging==23.2 pbr==6.0.0 platformdirs==4.1.0 prettytable==3.9.0 pyasn1==0.5.1 pyasn1-modules==0.3.0 pycparser==2.21 pygerrit2==2.0.15 PyGithub==2.1.1 pyinotify==0.9.6 PyJWT==2.8.0 PyNaCl==1.5.0 pyparsing==2.4.7 pyperclip==1.8.2 pyrsistent==0.20.0 python-cinderclient==9.4.0 python-dateutil==2.8.2 python-heatclient==3.3.0 python-jenkins==1.8.2 python-keystoneclient==5.2.0 python-magnumclient==4.3.0 python-novaclient==18.4.0 python-openstackclient==6.0.0 python-swiftclient==4.4.0 pytz==2023.3.post1 PyYAML==6.0.1 referencing==0.32.0 requests==2.31.0 requests-oauthlib==1.3.1 requestsexceptions==1.4.0 rfc3986==2.0.0 rpds-py==0.16.2 rsa==4.9 ruamel.yaml==0.18.5 ruamel.yaml.clib==0.2.8 s3transfer==0.10.0 simplejson==3.19.2 six==1.16.0 smmap==5.0.1 soupsieve==2.5 stevedore==5.1.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.12.3 tqdm==4.66.1 typing_extensions==4.9.0 tzdata==2023.4 urllib3==1.26.18 virtualenv==20.25.0 wcwidth==0.2.12 websocket-client==1.7.0 wrapt==1.16.0 xdg==6.0.0 xmltodict==0.13.0 yq==3.2.3 zipp==3.17.0 [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content PYTHON=python3 [EnvInject] - Variables injected successfully. [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash -l /tmp/jenkins12008727366296660110.sh ---> tox-install.sh + source /home/jenkins/lf-env.sh + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 ++ mktemp -d /tmp/venv-XXXX + lf_venv=/tmp/venv-9PSc + local venv_file=/tmp/.os_lf_venv + local python=python3 + local options + local set_path=true + local install_args= ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 + true + case $1 in + venv_file=/tmp/.toxenv + shift 2 + true + case $1 in + shift + break + case $python in + local pkg_list= + [[ -d /opt/pyenv ]] + echo 'Setup pyenv:' Setup pyenv: + export PYENV_ROOT=/opt/pyenv + PYENV_ROOT=/opt/pyenv + export PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + pyenv versions system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.python-version) + command -v pyenv ++ pyenv init - --no-rehash + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); for i in ${!paths[@]}; do if [[ ${paths[i]} == "'\''/opt/pyenv/shims'\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; fi; done; echo "${paths[*]}"'\'')" export PATH="/opt/pyenv/shims:${PATH}" export PYENV_SHELL=bash source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' pyenv() { local command command="${1:-}" if [ "$#" -gt 0 ]; then shift fi case "$command" in rehash|shell) eval "$(pyenv "sh-$command" "$@")" ;; *) command pyenv "$command" "$@" ;; esac }' +++ bash --norc -ec 'IFS=:; paths=($PATH); for i in ${!paths[@]}; do if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; fi; done; echo "${paths[*]}"' ++ PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ export PYENV_SHELL=bash ++ PYENV_SHELL=bash ++ source /opt/pyenv/libexec/../completions/pyenv.bash +++ complete -F _pyenv pyenv ++ lf-pyver python3 ++ local py_version_xy=python3 ++ local py_version_xyz= ++ grep -E '^[0-9.]*[0-9]$' ++ awk '{ print $1 }' ++ sed 's/^[ *]* //' ++ pyenv versions ++ local command ++ command=versions ++ '[' 1 -gt 0 ']' ++ shift ++ case "$command" in ++ command pyenv versions ++ pyenv versions ++ [[ ! -s /tmp/.pyenv_versions ]] +++ grep '^3' /tmp/.pyenv_versions +++ sort -V +++ tail -n 1 ++ py_version_xyz=3.10.6 ++ [[ -z 3.10.6 ]] ++ echo 3.10.6 ++ return 0 + pyenv local 3.10.6 + local command + command=local + '[' 2 -gt 0 ']' + shift + case "$command" in + command pyenv local 3.10.6 + pyenv local 3.10.6 + for arg in "$@" + case $arg in + pkg_list+='tox ' + for arg in "$@" + case $arg in + pkg_list+='virtualenv ' + for arg in "$@" + case $arg in + pkg_list+='urllib3~=1.26.15 ' + [[ -f /tmp/.toxenv ]] + [[ ! -f /tmp/.toxenv ]] + [[ -n '' ]] + python3 -m venv /tmp/venv-9PSc + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-9PSc' lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-9PSc + echo /tmp/venv-9PSc + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv + /tmp/venv-9PSc/bin/python3 -m pip install --upgrade --quiet pip virtualenv + [[ -z tox virtualenv urllib3~=1.26.15 ]] + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 + /tmp/venv-9PSc/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 + type python3 + true + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-9PSc/bin to PATH' lf-activate-venv(): INFO: Adding /tmp/venv-9PSc/bin to PATH + PATH=/tmp/venv-9PSc/bin:/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + return 0 + python3 --version Python 3.10.6 + python3 -m pip --version pip 23.3.2 from /tmp/venv-9PSc/lib/python3.10/site-packages/pip (python 3.10) + python3 -m pip freeze cachetools==5.3.2 chardet==5.2.0 colorama==0.4.6 distlib==0.3.8 filelock==3.13.1 packaging==23.2 platformdirs==4.1.0 pluggy==1.3.0 pyproject-api==1.6.1 tomli==2.0.1 tox==4.11.4 urllib3==1.26.18 virtualenv==20.25.0 [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins7876146984014386141.sh ---> install-deb-rmr.sh + version_file=rmr-version.yaml + [[ -f rmr-version.yaml ]] ++ grep '^repo:' rmr-version.yaml ++ xargs ++ cut -d: -f2 + repo= ++ xargs ++ grep '^version:' rmr-version.yaml ++ cut -d: -f2 + ver=4.9.1 + [[ -z 4.9.1 ]] + repo=release + for deb in "rmr_${ver}_amd64.deb" "rmr-dev_${ver}_amd64.deb" + wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_4.9.1_amd64.deb/download.deb 2024-01-03 05:29:06 URL:https://d3fo0g5hm7lbuv.cloudfront.net/20756/10598/debian/package_files/4252893.deb?Expires=1704260046&Signature=sOcAB1nOzNaRmhb05M~pk9iiey-BK6f4tkXA4UgHjhN3f8emZE02BWdUQDi18wk3DhVinfpE2B3SBq0AAJKHX2K5zG8eEmRoRdS5rpjOqvuf0wcdOb7whT0r05FNcmSjBHI~XGbQEhWf6i9scTVLDDnpZhb94BvwmtySNe4RkLWJzcc9SYEvRHYpFkTBSVrReoVIJN4y8-TevkL8u7KaJjpTh5w0Y9kuhVda88yBTecGAi5zyERLE3qRmSy1lJ2mp9lf-GlZqIKfJyvfr5~AqBblQZT6HRzYpEU2dfdhapjObvgeVvPK-kLGcS7-mCdddL9BHq1uhgD9bK-KPZEgJA__&Key-Pair-Id=K1ZMSF1EKC3AZL [243050/243050] -> "rmr_4.9.1_amd64.deb" [1] + sudo dpkg -i rmr_4.9.1_amd64.deb Selecting previously unselected package rmr. (Reading database ... 198606 files and directories currently installed.) Preparing to unpack rmr_4.9.1_amd64.deb ... Unpacking rmr (4.9.1) ... Setting up rmr (4.9.1) ... + rm -f rmr_4.9.1_amd64.deb + for deb in "rmr_${ver}_amd64.deb" "rmr-dev_${ver}_amd64.deb" + wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_4.9.1_amd64.deb/download.deb 2024-01-03 05:29:08 URL:https://d3fo0g5hm7lbuv.cloudfront.net/20756/10598/debian/package_files/4252891.deb?Expires=1704260048&Signature=Ueyipbd-0izAa2v7FL2BwGDVKc3UG-JRcS-QH1GTOzfMHEgJ2uU9drTGwW3BerZGbo2gC2Vm5oky~H~fugTJn9YzDXGHxrC97MzXtKsg8K4Hgj-Qu3sHmGjCot62E06rYOse24ws~c2pxMr0WtGR11pcuhOJqGIfTTQBk9q4OHpMuIg~Ni9t~OWntXZjDp24ILZd3qEq4UbDpHPQhOAaiKRYtX2j6g9jWLObix5XBoqqd2RBXMRm6GOf9wNJexjQNSMHJczugGf5CfAzENjItS-ri2doQM-agASCkaZeONXC-DEfKwd1oybG47ZGjSyp6chmVfA6qDOaCm~F7zILZg__&Key-Pair-Id=K1ZMSF1EKC3AZL [126164/126164] -> "rmr-dev_4.9.1_amd64.deb" [1] + sudo dpkg -i rmr-dev_4.9.1_amd64.deb Selecting previously unselected package rmr-dev. (Reading database ... 198614 files and directories currently installed.) Preparing to unpack rmr-dev_4.9.1_amd64.deb ... Unpacking rmr-dev (4.9.1) ... Setting up rmr-dev (4.9.1) ... + rm -f rmr-dev_4.9.1_amd64.deb + echo '---> install-deb-rmr.sh ends' ---> install-deb-rmr.sh ends + echo '---> install-deb-e2ap.sh' ---> install-deb-e2ap.sh + set -eux + version_file=e2ap-version.yaml + [[ -f e2ap-version.yaml ]] ++ grep '^repo:' e2ap-version.yaml ++ xargs ++ cut -d: -f2 + repo= ++ grep '^version:' e2ap-version.yaml ++ xargs ++ cut -d: -f2 + ver=1.1.0 + [[ -z 1.1.0 ]] + repo=release + for deb in "riclibe2ap_${ver}_amd64.deb" "riclibe2ap-dev_${ver}_amd64.deb" + wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/riclibe2ap_1.1.0_amd64.deb/download.deb 2024-01-03 05:29:09 URL:https://d3fo0g5hm7lbuv.cloudfront.net/20756/10598/debian/package_files/2517358.deb?Expires=1704260048&Signature=QupHS1NpE-YAmFxEGJzhnTCeaJByVYmYgqyhNCfp2WuU9LoIR9k1pEA-Mz4xAsetD6-RbgB-XUaoAcdkA4hH8dpYH0uVE2ozbUgvdET72TYJuWfYSLherUU3~DiI64FBsiuy3a7ad3bRx-tizcHUWaa43uW4K0yoZ~pWg2fyQJdUQLNqoRnsEA5mNBnsOxymapKKrsbqF4AskHtuoRlHsvoBH8lsr99kYekZNk5u4MVxNVN3D~CbNcPIoEh~tmAjm35r1fSj3Fd~JFBSCqLNZLGzrHLYxi~O-6e6~bmuUVDw~uTOxHDWT0Ktv3HFUFzqS7BXiGecWnBW-yOStPyhog__&Key-Pair-Id=K1ZMSF1EKC3AZL [341294/341294] -> "riclibe2ap_1.1.0_amd64.deb" [1] + sudo dpkg -i riclibe2ap_1.1.0_amd64.deb Selecting previously unselected package riclibe2ap. (Reading database ... 198621 files and directories currently installed.) Preparing to unpack riclibe2ap_1.1.0_amd64.deb ... Unpacking riclibe2ap (1.1.0) ... Setting up riclibe2ap (1.1.0) ... + rm -f riclibe2ap_1.1.0_amd64.deb + for deb in "riclibe2ap_${ver}_amd64.deb" "riclibe2ap-dev_${ver}_amd64.deb" + wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/riclibe2ap-dev_1.1.0_amd64.deb/download.deb 2024-01-03 05:29:09 URL:https://d3fo0g5hm7lbuv.cloudfront.net/20756/10598/debian/package_files/2517359.deb?Expires=1704260049&Signature=gGq~m7aVG1kzimuEl2o7eR6uQNg6aX2vppVscBQg2W3c5bPPIqqtLA05lIPb1RRIYBrzWZjJBtpETxp8x7xZiwFXmcDaMrwVUv28JHysPKsr5Nig574y7-1xLuapu2DP2mX1lx-D0jZugucxt~u~w6KEVY~moHigrvTVsDhhXyGc5LC33vc2PBTNH~cjRV44RB-uW21owiQRkqWxtu23T7XBNnx0qJZC1U9kl0ojV43wbO8iXw0i6igaAP5I9Ym7r2eydfP-VYgMaNj5Lco6GTxTn9eh3mU44tzzbyUxzu1RB6wbQbUfmM9Zz919ytcVdmDpK2g~kOC~CflK1QSc0g__&Key-Pair-Id=K1ZMSF1EKC3AZL [823070/823070] -> "riclibe2ap-dev_1.1.0_amd64.deb" [1] + sudo dpkg -i riclibe2ap-dev_1.1.0_amd64.deb Selecting previously unselected package riclibe2ap-dev. (Reading database ... 198624 files and directories currently installed.) Preparing to unpack riclibe2ap-dev_1.1.0_amd64.deb ... Unpacking riclibe2ap-dev (1.1.0) ... Setting up riclibe2ap-dev (1.1.0) ... + rm -f riclibe2ap-dev_1.1.0_amd64.deb + echo '---> install-deb-e2ap.sh ends' ---> install-deb-e2ap.sh ends [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content PARALLEL=False [EnvInject] - Variables injected successfully. [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash -l /tmp/jenkins13672366767364587421.sh ---> tox-run.sh + PATH=/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + ARCHIVE_TOX_DIR=/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/archives/tox + ARCHIVE_DOC_DIR=/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/archives/docs + mkdir -p /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/archives/tox + cd /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/. + source /home/jenkins/lf-env.sh + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 ++ mktemp -d /tmp/venv-XXXX + lf_venv=/tmp/venv-N5Yd + local venv_file=/tmp/.os_lf_venv + local python=python3 + local options + local set_path=true + local install_args= ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 + true + case $1 in + venv_file=/tmp/.toxenv + shift 2 + true + case $1 in + shift + break + case $python in + local pkg_list= + [[ -d /opt/pyenv ]] + echo 'Setup pyenv:' Setup pyenv: + export PYENV_ROOT=/opt/pyenv + PYENV_ROOT=/opt/pyenv + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + pyenv versions system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.python-version) + command -v pyenv ++ pyenv init - --no-rehash + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); for i in ${!paths[@]}; do if [[ ${paths[i]} == "'\''/opt/pyenv/shims'\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; fi; done; echo "${paths[*]}"'\'')" export PATH="/opt/pyenv/shims:${PATH}" export PYENV_SHELL=bash source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' pyenv() { local command command="${1:-}" if [ "$#" -gt 0 ]; then shift fi case "$command" in rehash|shell) eval "$(pyenv "sh-$command" "$@")" ;; *) command pyenv "$command" "$@" ;; esac }' +++ bash --norc -ec 'IFS=:; paths=($PATH); for i in ${!paths[@]}; do if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; fi; done; echo "${paths[*]}"' ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ export PYENV_SHELL=bash ++ PYENV_SHELL=bash ++ source /opt/pyenv/libexec/../completions/pyenv.bash +++ complete -F _pyenv pyenv ++ lf-pyver python3 ++ local py_version_xy=python3 ++ local py_version_xyz= ++ pyenv versions ++ local command ++ command=versions ++ '[' 1 -gt 0 ']' ++ shift ++ case "$command" in ++ command pyenv versions ++ pyenv versions ++ awk '{ print $1 }' ++ sed 's/^[ *]* //' ++ grep -E '^[0-9.]*[0-9]$' ++ [[ ! -s /tmp/.pyenv_versions ]] +++ tail -n 1 +++ grep '^3' /tmp/.pyenv_versions +++ sort -V ++ py_version_xyz=3.10.6 ++ [[ -z 3.10.6 ]] ++ echo 3.10.6 ++ return 0 + pyenv local 3.10.6 + local command + command=local + '[' 2 -gt 0 ']' + shift + case "$command" in + command pyenv local 3.10.6 + pyenv local 3.10.6 + for arg in "$@" + case $arg in + pkg_list+='tox ' + for arg in "$@" + case $arg in + pkg_list+='virtualenv ' + for arg in "$@" + case $arg in + pkg_list+='urllib3~=1.26.15 ' + [[ -f /tmp/.toxenv ]] ++ cat /tmp/.toxenv + lf_venv=/tmp/venv-9PSc + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-9PSc from' file:/tmp/.toxenv lf-activate-venv(): INFO: Reuse venv:/tmp/venv-9PSc from file:/tmp/.toxenv + /tmp/venv-9PSc/bin/python3 -m pip install --upgrade --quiet pip virtualenv + [[ -z tox virtualenv urllib3~=1.26.15 ]] + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 + /tmp/venv-9PSc/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 + type python3 + true + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-9PSc/bin to PATH' lf-activate-venv(): INFO: Adding /tmp/venv-9PSc/bin to PATH + PATH=/tmp/venv-9PSc/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + return 0 + [[ -d /opt/pyenv ]] + echo '---> Setting up pyenv' ---> Setting up pyenv + export PYENV_ROOT=/opt/pyenv + PYENV_ROOT=/opt/pyenv + export PATH=/opt/pyenv/bin:/tmp/venv-9PSc/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + PATH=/opt/pyenv/bin:/tmp/venv-9PSc/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ pwd + PYTHONPATH=/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master + export PYTHONPATH + export TOX_TESTENV_PASSENV=PYTHONPATH + TOX_TESTENV_PASSENV=PYTHONPATH + tox --version 4.11.4 from /tmp/venv-9PSc/lib/python3.10/site-packages/tox/__init__.py + PARALLEL=False + TOX_OPTIONS_LIST= + [[ -n code,flake8 ]] + TOX_OPTIONS_LIST=' -e code,flake8' + case ${PARALLEL,,} in + tee -a /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/archives/tox/tox.log + tox -e code,flake8 code: install_deps> python -I -m pip install coverage pytest pytest-cov six .pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel .pkg: _optional_hooks> python /tmp/venv-9PSc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_sdist> python /tmp/venv-9PSc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_wheel> python /tmp/venv-9PSc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: install_requires_for_build_wheel> python -I -m pip install wheel .pkg: freeze> python -m pip freeze --all .pkg: pip==23.3.1,setuptools==69.0.2,wheel==0.42.0 .pkg: prepare_metadata_for_build_wheel> python /tmp/venv-9PSc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_sdist> python /tmp/venv-9PSc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ code: install_package_deps> python -I -m pip install inotify inotify-simple mdclogpy msgpack 'protobuf<3.21.0' requests 'ricsdl<4.0.0,>=3.0.0' code: install_package> python -I -m pip install --force-reinstall --no-deps /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.tox/.tmp/package/1/ricxappframe-3.2.2.tar.gz code: freeze> python -m pip freeze --all code: async-timeout==4.0.3,certifi==2023.11.17,charset-normalizer==3.3.2,coverage==7.4.0,exceptiongroup==1.2.0,hiredis==2.0.0,idna==3.6,iniconfig==2.0.0,inotify==0.2.10,inotify-simple==1.3.5,mdclogpy==1.1.4,msgpack==1.0.7,nose==1.3.7,packaging==23.2,pip==23.3.1,pluggy==1.3.0,protobuf==3.20.3,pytest==7.4.4,pytest-cov==4.1.0,redis==4.3.6,requests==2.31.0,ricsdl==3.1.3,ricxappframe @ file:///w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.tox/.tmp/package/1/ricxappframe-3.2.2.tar.gz#sha256=05901393b9598ee7ad1e81f131b6e395652f522f63ceec1062a54f5581463f06,setuptools==69.0.2,six==1.16.0,tomli==2.0.1,urllib3==2.1.0,wheel==0.42.0 code: commands[0]> pytest --cov ricxappframe --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml=/tmp/tests.xml ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-7.4.4, pluggy-1.3.0 cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master plugins: cov-4.1.0 collected 75 items tests/test_Logger.py .............. [ 18%] tests/test_alarm.py 1704259772680 28105/RMR [INFO] sends: ts=1704259772 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:4569 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259772680 28105/RMR [INFO] sends: ts=1704259772 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:4564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259772680 28105/RMR [INFO] sends: ts=1704259772 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:3564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259772680 28105/RMR [INFO] sends: ts=1704259772 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:3563 open=0 succ=0 fail=0 (hard=0 soft=0) .. [ 21%] tests/test_config.py FFF [ 25%] tests/test_e2ap.py ........ [ 36%] tests/test_init.py .F1704259786625 28105/RMR [INFO] sends: ts=1704259786 src=prd-ubuntu1804-builder-2c-2g-2671:4562 target=127.0.0.1:4569 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259786625 28105/RMR [INFO] sends: ts=1704259786 src=prd-ubuntu1804-builder-2c-2g-2671:4562 target=127.0.0.1:4564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259786625 28105/RMR [INFO] sends: ts=1704259786 src=prd-ubuntu1804-builder-2c-2g-2671:4562 target=127.0.0.1:3564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259786625 28105/RMR [INFO] sends: ts=1704259786 src=prd-ubuntu1804-builder-2c-2g-2671:4562 target=127.0.0.1:3563 open=0 succ=0 fail=0 (hard=0 soft=0) F [ 40%] tests/test_metric.py .. [ 42%] tests/test_rest.py . [ 44%] tests/test_rmr.py 1704259794232 28105/RMR [INFO] sends: ts=1704259794 src=prd-ubuntu1804-builder-2c-2g-2671:3564 target=127.0.0.1:4569 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259794232 28105/RMR [INFO] sends: ts=1704259794 src=prd-ubuntu1804-builder-2c-2g-2671:3564 target=127.0.0.1:4564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259794232 28105/RMR [INFO] sends: ts=1704259794 src=prd-ubuntu1804-builder-2c-2g-2671:3564 target=127.0.0.1:3564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259794232 28105/RMR [INFO] sends: ts=1704259794 src=prd-ubuntu1804-builder-2c-2g-2671:3564 target=127.0.0.1:3563 open=0 succ=0 fail=0 (hard=0 soft=0) ............. [ 61%] tests/test_rmr_mocks.py ... [ 65%] tests/test_rmrclib.py .. [ 68%] tests/test_sdl.py ..... [ 74%] tests/test_subscribe.py .... [ 80%] tests/test_symptomdata.py .... [ 85%] tests/test_xapps.py ..FFFFFFFFF [100%] =================================== FAILURES =================================== ______________________________ test_config_no_env ______________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f56654f0970> def test_config_no_env(monkeypatch): init_config_file() monkeypatch.delenv(Constants.CONFIG_FILE_ENV, raising=False) config_event_seen = False def config_handler(self, json): nonlocal config_event_seen config_event_seen = True global rmr_xapp_noconfig rmr_xapp_noconfig = RMRXapp(default_rmr_handler, config_handler=config_handler, rmr_port=4652, use_fake_sdl=True) # in unit tests we need to thread here or else execution is not returned! rmr_xapp_noconfig.run(thread=True, rmr_timeout=1) write_config_file() # give the work loop a chance to timeout on RMR and process the config event time.sleep(3) assert not config_event_seen > rmr_xapp_noconfig.stop() tests/test_config.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:975: in stop super().stop() ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259775256, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 ----------------------------- Captured stderr call ----------------------------- 1704259776255 28105/RMR [INFO] sends: ts=1704259776 src=prd-ubuntu1804-builder-2c-2g-2671:4652 target=127.0.0.1:4569 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259776255 28105/RMR [INFO] sends: ts=1704259776 src=prd-ubuntu1804-builder-2c-2g-2671:4652 target=127.0.0.1:4564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259776255 28105/RMR [INFO] sends: ts=1704259776 src=prd-ubuntu1804-builder-2c-2g-2671:4652 target=127.0.0.1:3564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259776255 28105/RMR [INFO] sends: ts=1704259776 src=prd-ubuntu1804-builder-2c-2g-2671:4652 target=127.0.0.1:3563 open=0 succ=0 fail=0 (hard=0 soft=0) _________________________ test_default_config_handler __________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: def test_default_config_handler(): """Just for coverage""" init_config_file() # listen port is irrelevant, no messages arrive global rmr_xapp_defconfig rmr_xapp_defconfig = RMRXapp(default_rmr_handler, rmr_port=4567, use_fake_sdl=True) # in unit tests we need to thread here or else execution is not returned! rmr_xapp_defconfig.run(thread=True, rmr_timeout=1) write_config_file() # give the work loop a chance to timeout on RMR and process the config event time.sleep(3) > rmr_xapp_defconfig.stop() tests/test_config.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:975: in stop super().stop() ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 ----------------------------- Captured stderr call ----------------------------- 1704259779373 28105/RMR [INFO] sends: ts=1704259779 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:4569 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259779373 28105/RMR [INFO] sends: ts=1704259779 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:4564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259779373 28105/RMR [INFO] sends: ts=1704259779 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:3564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259779373 28105/RMR [INFO] sends: ts=1704259779 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:3563 open=0 succ=0 fail=0 (hard=0 soft=0) __________________________ test_custom_config_handler __________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: def test_custom_config_handler(): # point watcher at the file init_config_file() startup_config_event = False change_config_event = False def config_handler(self, json): mdc_logger.info("config_handler: json {}".format(json)) nonlocal startup_config_event nonlocal change_config_event if "start" in json: startup_config_event = True if "change" in json: change_config_event = True # listen port is irrelevant, no messages arrive global rmr_xapp_config rmr_xapp_config = RMRXapp(default_rmr_handler, config_handler=config_handler, rmr_port=4567, use_fake_sdl=True) assert startup_config_event rmr_xapp_config.run(thread=True, rmr_timeout=1) # in unit tests we need to thread here or else execution is not returned! write_config_file() # give the work loop a chance to timeout on RMR and process the config event time.sleep(3) assert change_config_event > rmr_xapp_config.stop() tests/test_config.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:975: in stop super().stop() ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 ----------------------------- Captured stderr call ----------------------------- 1704259782453 28105/RMR [INFO] sends: ts=1704259782 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:4569 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259782453 28105/RMR [INFO] sends: ts=1704259782 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:4564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259782453 28105/RMR [INFO] sends: ts=1704259782 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:3564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259782453 28105/RMR [INFO] sends: ts=1704259782 src=prd-ubuntu1804-builder-2c-2g-2671:4567 target=127.0.0.1:3563 open=0 succ=0 fail=0 (hard=0 soft=0) ____________________________ test_init_general_xapp ____________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: def test_init_general_xapp(): def entry(self): # normally we would have some kind of loop here print("bye") gen_xapp = Xapp(xapp_ready_cb=entry, use_fake_sdl=True) gen_xapp.run() time.sleep(1) > gen_xapp.stop() # pytest will never return without this. tests/test_init.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259784545, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 bye ----------------------------- Captured stderr call ----------------------------- 1704259785545 28105/RMR [INFO] sends: ts=1704259785 src=prd-ubuntu1804-builder-2c-2g-2671:4562 target=127.0.0.1:4569 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259785545 28105/RMR [INFO] sends: ts=1704259785 src=prd-ubuntu1804-builder-2c-2g-2671:4562 target=127.0.0.1:4564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259785545 28105/RMR [INFO] sends: ts=1704259785 src=prd-ubuntu1804-builder-2c-2g-2671:4562 target=127.0.0.1:3564 open=0 succ=0 fail=0 (hard=0 soft=0) 1704259785545 28105/RMR [INFO] sends: ts=1704259785 src=prd-ubuntu1804-builder-2c-2g-2671:4562 target=127.0.0.1:3563 open=0 succ=0 fail=0 (hard=0 soft=0) ______________________________ test_init_rmr_xapp ______________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: def test_init_rmr_xapp(): def post_init(self): print("hey") def foo(self, _summary, _sbuf): pass rmr_xapp = RMRXapp(foo, post_init=post_init, use_fake_sdl=True) # pytest will never return without thread and stop rmr_xapp.run(thread=True) time.sleep(1) > rmr_xapp.stop() tests/test_init.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:975: in stop super().stop() ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259785613, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 hey ___________________________ test_rnib_get_list_nodeb ___________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_information = [b'\n\nnodeb_5678\x12\x14\n\tplmn_5678\x12\x07nb_5678\x18\x06', b''] def test_rnib_get_list_nodeb(rnib_information): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) # Test there is no rnib information. gnb_list = rnib_xapp.get_list_gnb_ids() enb_list = rnib_xapp.get_list_enb_ids() assert len(gnb_list) == 0 assert len(enb_list) == 0 # Add rnib information directly. for rnib in rnib_information: rnib_xapp.sdl.add_member(sdl_namespaces.E2_MANAGER, "ENB", rnib, usemsgpack=False) rnib_xapp.sdl.add_member(sdl_namespaces.E2_MANAGER, "GNB", rnib, usemsgpack=False) gnb_list = rnib_xapp.get_list_gnb_ids() assert len(gnb_list) == len(rnib_information) for gnb in gnb_list: assert gnb.SerializeToString() in rnib_information enb_list = rnib_xapp.get_list_enb_ids() assert len(enb_list) == len(rnib_information) for enb in enb_list: assert enb.SerializeToString() in rnib_information > rnib_xapp.stop() tests/test_xapps.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806206, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 _________________________ test_rnib_get_list_all_nodeb _________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_information = [b'\n\nnodeb_5678\x12\x14\n\tplmn_5678\x12\x07nb_5678\x18\x06', b''] def test_rnib_get_list_all_nodeb(rnib_information): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) # Add rnib information directly. for rnib in rnib_information: rnib_xapp.sdl.add_member(sdl_namespaces.E2_MANAGER, "GNB", rnib, usemsgpack=False) nb_list = rnib_xapp.GetListNodebIds() assert len(nb_list) == 2 for rnib in rnib_information: rnib_xapp.sdl.add_member(sdl_namespaces.E2_MANAGER, "ENB", rnib, usemsgpack=False) nb_list = rnib_xapp.GetListNodebIds() assert len(nb_list) == 4 > rnib_xapp.stop() tests/test_xapps.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806275, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 ___________________________ test_rnib_get_list_cells ___________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_cellinformation = [b'\x08\x01', b'\x08\x01'] def test_rnib_get_list_cells(rnib_cellinformation): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) mynb = pb_nb.NbIdentity() mynb.inventory_name = "nodeb_1234" mynb.global_nb_id.plmn_id = "plmn_1234" mynb.global_nb_id.nb_id = "nb_1234" mynb.connection_status = 1 rnib_xapp.sdl.add_member(sdl_namespaces.E2_MANAGER, "ENB", mynb.SerializeToString(), usemsgpack=False) # Add rnib information directly. for rnib in rnib_cellinformation: rnib_xapp.sdl.add_member(sdl_namespaces.E2_MANAGER, "ENBCELL1", rnib, usemsgpack=False) rnib_xapp.sdl.add_member(sdl_namespaces.E2_MANAGER, "ENBCELL2", rnib, usemsgpack=False) > rnib_xapp.stop() tests/test_xapps.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ---------------------------- Captured stdout setup ----------------------------- ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806339, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 _____________________________ test_rnib_get_nodeb ______________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_helpers = def test_rnib_get_nodeb(rnib_helpers): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) nb1 = rnib_helpers.createNodebInfo('nodeb_1234', 'GNB', '192.168.1.1', 8088) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "RAN:" + 'nodeb_1234', nb1.SerializeToString(), usemsgpack=False) nb2 = rnib_helpers.createNodebInfo('nodeb_1234', 'ENB', '192.168.1.2', 8088) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "RAN:" + 'nodeb_1235', nb2.SerializeToString(), usemsgpack=False) gnb = rnib_xapp.GetNodeb('nodeb_1235') assert gnb == nb2 gnb = rnib_xapp.GetNodeb('nodeb_1234') assert gnb == nb1 gnb = rnib_xapp.GetNodeb('nodeb_1230') assert gnb is None > rnib_xapp.stop() tests/test_xapps.py:194: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806404, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 ______________________________ test_rnib_get_cell ______________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_helpers = def test_rnib_get_cell(rnib_helpers): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) c1 = rnib_helpers.createCell('c1234', 8) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "PCI:c1234:08", c1.SerializeToString(), usemsgpack=False) c2 = rnib_helpers.createCell('c1235', 11) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "PCI:c1235:0b", c2.SerializeToString(), usemsgpack=False) cell = rnib_xapp.GetCell('c1235', 11) assert cell == c2 cell = rnib_xapp.GetCell('c1234', 8) assert cell == c1 cell = rnib_xapp.GetCell('c1236', 11) assert cell is None > rnib_xapp.stop() tests/test_xapps.py:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806468, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 ___________________________ test_rnib_get_cell_by_id ___________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_helpers = def test_rnib_get_cell_by_id(rnib_helpers): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) c1 = rnib_helpers.createCell('c1234', 8) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "CELL:c1234", c1.SerializeToString(), usemsgpack=False) c2 = rnib_helpers.createCell('c1235', 11) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "CELL:c1235", c2.SerializeToString(), usemsgpack=False) cell = rnib_xapp.GetCellById('LTE_CELL', 'c1235') assert cell == c2 cell = rnib_xapp.GetCellById('LTE_CELL', 'c1234') assert cell == c1 cell = rnib_xapp.GetCellById('LTE_CELL', 'c1236') assert cell is None > rnib_xapp.stop() tests/test_xapps.py:228: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806529, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 _____________________________ test_rnib_get_cells ______________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_helpers = def test_rnib_get_cells(rnib_helpers): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) nb1 = rnib_helpers.createNodebInfo('nodeb_1234', 'GNB', '192.168.1.1', 8088) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "RAN:" + 'nodeb_1234', nb1.SerializeToString(), usemsgpack=False) nb2 = rnib_helpers.createNodebInfo('nodeb_1234', 'ENB', '192.168.1.2', 8088) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "RAN:" + 'nodeb_1235', nb2.SerializeToString(), usemsgpack=False) sc = rnib_xapp.GetCellList('nodeb_1235') assert sc == nb2.enb.served_cells sc = rnib_xapp.GetCellList('nodeb_1234') assert sc == nb1.gnb.served_nr_cells sc = rnib_xapp.GetCellList('nodeb_1230') assert sc is None > rnib_xapp.stop() tests/test_xapps.py:245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806591, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 __________________________ test_rnib_get_global_nodeb __________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_helpers = def test_rnib_get_global_nodeb(rnib_helpers): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) nb1 = rnib_helpers.createNodeb('nodeb_1234', '358', 'nb_1234') rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "GNB:" + '358:' + 'nodeb_1234', nb1.SerializeToString(), usemsgpack=False) nb2 = rnib_helpers.createNodeb('nodeb_1235', '356', 'nb_1235') rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "GNB:" + '356:' + 'nodeb_1235', nb2.SerializeToString(), usemsgpack=False) gnb = rnib_xapp.GetNodebByGlobalNbId('GNB', '356', 'nodeb_1235') assert gnb == nb2 gnb = rnib_xapp.GetNodebByGlobalNbId('GNB', '358', 'nodeb_1234') assert gnb == nb1 gnb = rnib_xapp.GetNodebByGlobalNbId('GNB', '356', 'nodeb_1230') assert gnb is None > rnib_xapp.stop() tests/test_xapps.py:262: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806674, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 __________________________ test_rnib_get_ranfunction ___________________________ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return > raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") E ricxappframe.xapp_frame.XappError: Response with status code: 200, message: Mocked response ricxappframe/xapp_frame.py:254: XappError The above exception was the direct cause of the following exception: rnib_helpers = def test_rnib_get_ranfunction(rnib_helpers): global rnib_xapp rnib_xapp = _BaseXapp(rmr_port=4777, use_fake_sdl=True) nb1 = rnib_helpers.createNodebInfo('nodeb_1234', 'GNB', '192.168.1.1', 8088) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "RAN:" + 'nodeb_1234', nb1.SerializeToString(), usemsgpack=False) nb2 = rnib_helpers.createNodebInfo('nodeb_1235', 'GNB', '192.168.1.2', 8088) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "RAN:" + 'nodeb_1235', nb2.SerializeToString(), usemsgpack=False) nb3 = rnib_helpers.createNodebInfo('nodeb_1236', 'GNB', '192.168.1.2', 8088) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "RAN:" + 'nodeb_1236', nb3.SerializeToString(), usemsgpack=False) nb4 = rnib_helpers.createNodebInfo('nodeb_1237', 'GNB', '192.168.1.2', 8088) rnib_xapp.sdl.set(sdl_namespaces.E2_MANAGER, "RAN:" + 'nodeb_1237', nb4.SerializeToString(), usemsgpack=False) sc = rnib_xapp.GetRanFunctionDefinition('nodeb_1235', "1.3.6.1.4.1.1.2.2.2") assert sc == ['te524367153'] sc = rnib_xapp.GetRanFunctionDefinition('nodeb_1235', "1.3.6.1.4.1.1.2.2.5") assert sc == [] > rnib_xapp.stop() tests/test_xapps.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ricxappframe/xapp_frame.py:802: in stop self.xapp_shutdown() ricxappframe/xapp_frame.py:274: in xapp_shutdown self.deregister() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def deregister(self): """ Function to deregister the xapp Raises: XappError: De-registration failed """ xappname = self._config_data.get("name") pltnamespace = os.environ.get("PLT_NAMESPACE", Constants.DEFAULT_PLT_NS) request_string = { "appName": xappname, "appInstanceName": xappname, } dereg_url = Constants.DEREGISTER_PATH.format(pltnamespace, pltnamespace) try: self.logger.debug(f'De-registration endpoint: {dereg_url}, request: {request_string}') resp = self._do_post(dereg_url, request_string) if resp.status_code == 204: self.logger.info('Xapp de-registered') self._is_registered = False return raise XappError(f"Response with status code: {resp.status_code}, message: {resp.text}") except Exception as e: > raise XappError("De-registration failed") from e E ricxappframe.xapp_frame.XappError: De-registration failed ricxappframe/xapp_frame.py:256: XappError ----------------------------- Captured stdout call ----------------------------- {"ts": 1704259806736, "crit": "ERROR", "id": "ricxappframe.xapp_frame", "mdc": {}, "msg": "__init__: Cannot Read config file for xapp Registration"} Service urlkey : tcp://127.0.0.1:8080 Service urlkey : tcp://127.0.0.1:4560 =============================== warnings summary =============================== tests/test_init.py::test_init_general_xapp /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.tox/code/lib/python3.10/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-11 (loop) Traceback (most recent call last): File "/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/ricxappframe/xapp_frame.py", line 958, in loop with open(self._config_path) as json_file: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/file.json' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/pyenv/versions/3.10.6/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/opt/pyenv/versions/3.10.6/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/ricxappframe/xapp_frame.py", line 964, in loop raise XappError(f"Error occurred during polling configuration handler: {error}") ricxappframe.xapp_frame.XappError: Error occurred during polling configuration handler: [Errno 2] No such file or directory: '/tmp/file.json' warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------------------- generated xml file: /tmp/tests.xml ---------------------- ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing ----------------------------------------------------------------------- ricxappframe/__init__.py 0 0 100% ricxappframe/alarm/__init__.py 0 0 100% ricxappframe/alarm/alarm.py 94 2 98% 250-251 ricxappframe/alarm/exceptions.py 2 0 100% ricxappframe/constants.py 5 0 100% ricxappframe/e2ap/__init__.py 0 0 100% ricxappframe/e2ap/asn1.py 224 0 100% ricxappframe/e2ap/asn1clib/__init__.py 0 0 100% ricxappframe/e2ap/asn1clib/asn1clib.py 2 0 100% ricxappframe/e2ap/asn1clib/types.py 16 0 100% ricxappframe/logger/__init__.py 0 0 100% ricxappframe/logger/mdclogger.py 133 22 83% 83-87, 95, 188-189, 196, 198, 200, 202, 220-224, 227-234 ricxappframe/metric/__init__.py 0 0 100% ricxappframe/metric/exceptions.py 2 0 100% ricxappframe/metric/metric.py 58 3 95% 122, 201-202 ricxappframe/rmr/__init__.py 0 0 100% ricxappframe/rmr/exceptions.py 4 0 100% ricxappframe/rmr/helpers.py 28 0 100% ricxappframe/rmr/rmr.py 156 3 98% 257, 454, 544 ricxappframe/rmr/rmr_mocks/__init__.py 0 0 100% ricxappframe/rmr/rmr_mocks/rmr_mocks.py 78 6 92% 39, 59, 79, 115, 133, 148 ricxappframe/rmr/rmrclib/__init__.py 0 0 100% ricxappframe/rmr/rmrclib/rmrclib.py 38 1 97% 53 ricxappframe/util/__init__.py 0 0 100% ricxappframe/util/constants.py 12 0 100% ricxappframe/xapp_frame.py 282 24 91% 156, 222-224, 250-252, 268, 275, 287-289, 318-319, 349-350, 663-664, 752, 800, 804, 969, 976-977 ricxappframe/xapp_rest.py 91 12 87% 66, 72-74, 131-132, 142-143, 155-156, 191-193 ricxappframe/xapp_rmr.py 42 9 79% 95-96, 109-115 ricxappframe/xapp_sdl.py 94 1 99% 53 ricxappframe/xapp_subscribe.py 54 3 94% 64, 103, 171 ricxappframe/xapp_symptomdata.py 119 20 83% 43, 111-116, 152, 154-156, 160-161, 200-201, 221-224, 228 ----------------------------------------------------------------------- TOTAL 1534 106 93% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 70% reached. Total coverage: 93.09% =========================== short test summary info ============================ FAILED tests/test_config.py::test_config_no_env - ricxappframe.xapp_frame.Xap... FAILED tests/test_config.py::test_default_config_handler - ricxappframe.xapp_... FAILED tests/test_config.py::test_custom_config_handler - ricxappframe.xapp_f... FAILED tests/test_init.py::test_init_general_xapp - ricxappframe.xapp_frame.X... FAILED tests/test_init.py::test_init_rmr_xapp - ricxappframe.xapp_frame.XappE... FAILED tests/test_xapps.py::test_rnib_get_list_nodeb - ricxappframe.xapp_fram... FAILED tests/test_xapps.py::test_rnib_get_list_all_nodeb - ricxappframe.xapp_... FAILED tests/test_xapps.py::test_rnib_get_list_cells - ricxappframe.xapp_fram... FAILED tests/test_xapps.py::test_rnib_get_nodeb - ricxappframe.xapp_frame.Xap... FAILED tests/test_xapps.py::test_rnib_get_cell - ricxappframe.xapp_frame.Xapp... FAILED tests/test_xapps.py::test_rnib_get_cell_by_id - ricxappframe.xapp_fram... FAILED tests/test_xapps.py::test_rnib_get_cells - ricxappframe.xapp_frame.Xap... FAILED tests/test_xapps.py::test_rnib_get_global_nodeb - ricxappframe.xapp_fr... FAILED tests/test_xapps.py::test_rnib_get_ranfunction - ricxappframe.xapp_fra... ================== 14 failed, 61 passed, 1 warning in 37.78s =================== Build timed out (after 15 minutes). Marking the build as failed. $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 5590 killed; [ssh-agent] Stopped. Build was aborted [PostBuildScript] - [INFO] Executing post build scripts. [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins18258724934858203072.sh ---> sysstat.sh [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins11832358597639413390.sh ---> package-listing.sh ++ facter osfamily ++ tr '[:upper:]' '[:lower:]' + OS_FAMILY=debian + workspace=/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master + START_PACKAGES=/tmp/packages_start.txt + END_PACKAGES=/tmp/packages_end.txt + DIFF_PACKAGES=/tmp/packages_diff.txt + PACKAGES=/tmp/packages_start.txt + '[' /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master ']' + PACKAGES=/tmp/packages_end.txt + case "${OS_FAMILY}" in + dpkg -l + grep '^ii' + '[' -f /tmp/packages_start.txt ']' + '[' -f /tmp/packages_end.txt ']' + diff /tmp/packages_start.txt /tmp/packages_end.txt + true + '[' /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master ']' + mkdir -p /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/archives/ + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/archives/ [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins5331052325583805148.sh ---> capture-instance-metadata.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-kDAe from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools code: exit -15 (786.87 seconds) /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master> pytest --cov ricxappframe --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml=/tmp/tests.xml pid=28105 .pkg: _exit> python /tmp/venv-9PSc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: error while trying to close <_io.BufferedWriter name=6> with BrokenPipeError(32, 'Broken pipe') + tox_status=143 + echo '---> Completed tox runs' ---> Completed tox runs + for i in .tox/*/log ++ echo .tox/code/log ++ awk -F/ '{print $2}' lf-activate-venv(): INFO: Adding /tmp/venv-kDAe/bin to PATH INFO: Running in OpenStack, capturing instance metadata [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins8408527184494044414.sh provisioning config files... copy managed file [jenkins-log-archives-settings] to file:/w/workspace/ric-plt-xapp-frame-py-pypi-verify-master@tmp/config37817511510229088tmp Regular expression run condition: Expression=[^.*logs-s3.*], Label=[] Run condition [Regular expression match] preventing perform for step [Provide Configuration files] [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SERVER_ID=logs [EnvInject] - Variables injected successfully. [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins3141823322421921804.sh ---> create-netrc.sh [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins6846078673417350395.sh ---> python-tools-install.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-kDAe from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-kDAe/bin to PATH [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins10674910675050466026.sh ---> sudo-logs.sh Archiving 'sudo' log.. [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash /tmp/jenkins15974068681648539636.sh ---> job-cost.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-kDAe from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. lftools 0.37.8 requires openstacksdk<1.5.0, but you have openstacksdk 2.0.0 which is incompatible. lf-activate-venv(): INFO: Adding /tmp/venv-kDAe/bin to PATH INFO: No Stack... INFO: Retrieving Pricing Info for: v2-highcpu-2 INFO: Archiving Costs [ric-plt-xapp-frame-py-pypi-verify-master] $ /bin/bash -l /tmp/jenkins16967619322230611101.sh ---> logs-deploy.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-plt-xapp-frame-py-pypi-verify-master/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-kDAe from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. python-openstackclient 6.4.0 requires openstacksdk>=2.0.0, but you have openstacksdk 1.4.0 which is incompatible. lf-activate-venv(): INFO: Adding /tmp/venv-kDAe/bin to PATH INFO: Nexus URL https://nexus.o-ran-sc.org path production/vex-sjc-oran-jenkins-prod-1/ric-plt-xapp-frame-py-pypi-verify-master/266 INFO: archiving workspace using pattern(s): Archives upload complete. INFO: archiving logs to Nexus ---> uname -a: Linux prd-ubuntu1804-builder-2c-2g-2671 5.4.0-146-generic #163-Ubuntu SMP Fri Mar 17 18:26:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ---> lscpu: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 40 bits physical, 48 bits virtual CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 2 NUMA node(s): 1 Vendor ID: AuthenticAMD CPU family: 23 Model: 49 Model name: AMD EPYC-Rome Processor Stepping: 0 CPU MHz: 2800.000 BogoMIPS: 5600.00 Virtualization: AMD-V Hypervisor vendor: KVM Virtualization type: full L1d cache: 64 KiB L1i cache: 64 KiB L2 cache: 1 MiB L3 cache: 32 MiB NUMA node0 CPU(s): 0,1 Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Retbleed: Vulnerable Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr wbnoinvd arat npt nrip_save umip rdpid arch_capabilities ---> nproc: 2 ---> df -h: Filesystem Size Used Avail Use% Mounted on udev 975M 0 975M 0% /dev tmpfs 199M 1012K 198M 1% /run /dev/vda1 20G 8.5G 11G 45% / tmpfs 992M 0 992M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 992M 0 992M 0% /sys/fs/cgroup /dev/vda15 105M 6.1M 99M 6% /boot/efi /dev/loop1 62M 62M 0 100% /snap/core20/1405 /dev/loop2 68M 68M 0 100% /snap/lxd/22753 tmpfs 199M 0 199M 0% /run/user/1001 /dev/loop3 41M 41M 0 100% /snap/snapd/20290 /dev/loop4 92M 92M 0 100% /snap/lxd/24061 ---> free -m: total used free shared buff/cache available Mem: 1983 407 138 2 1436 1381 Swap: 1023 0 1023 ---> ip addr: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: mtu 1450 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:80:a3:c0 brd ff:ff:ff:ff:ff:ff inet 10.32.7.175/23 brd 10.32.7.255 scope global dynamic ens3 valid_lft 85407sec preferred_lft 85407sec inet6 fe80::f816:3eff:fe80:a3c0/64 scope link valid_lft forever preferred_lft forever ---> sar -b -r -n DEV: Linux 5.4.0-146-generic (prd-ubuntu1804-builder-2c-2g-2671) 01/03/24 _x86_64_ (2 CPU) 05:27:04 LINUX RESTART (2 CPU) 05:28:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 05:29:01 128.91 40.83 88.09 0.00 1428.16 15336.64 0.00 05:30:02 73.65 28.25 45.41 0.00 911.18 5930.88 0.00 05:31:01 2.08 0.14 1.95 0.00 18.30 193.56 0.00 05:32:01 1.35 0.00 1.35 0.00 0.00 17.33 0.00 05:33:01 61.31 24.66 36.64 0.00 4910.25 8649.63 0.00 05:34:01 25.20 19.68 5.52 0.00 1353.51 561.51 0.00 05:35:01 1.85 0.00 1.85 0.00 0.00 21.06 0.00 05:36:01 6.30 4.75 1.55 0.00 131.71 18.80 0.00 05:37:01 0.92 0.00 0.92 0.00 0.00 10.66 0.00 05:38:01 1.47 0.00 1.47 0.00 0.00 18.13 0.00 05:39:01 0.85 0.00 0.85 0.00 0.00 8.80 0.00 05:40:01 1.45 0.00 1.45 0.00 0.00 17.33 0.00 05:41:01 0.88 0.00 0.88 0.00 0.00 9.33 0.00 05:42:01 1.38 0.00 1.38 0.00 0.00 16.66 0.00 05:43:01 16.38 6.67 9.72 0.00 502.72 536.71 0.00 Average: 21.62 8.34 13.28 0.00 617.71 2091.89 0.00 05:28:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 05:29:01 101880 1426728 369424 18.19 62616 1332732 837088 27.18 456840 1265260 62860 05:30:02 93740 1398112 396808 19.54 67744 1297464 1305592 42.40 511660 1205724 2700 05:31:01 77748 1384524 409896 20.19 67824 1299828 1657684 53.83 524244 1208092 220 05:32:01 77708 1384996 409940 20.19 67860 1299824 1666036 54.11 523532 1208580 20 05:33:01 175712 1373980 399120 19.65 91536 1184652 1618376 52.56 682288 946108 1040 05:34:01 135932 1374804 398688 19.63 91476 1224044 1618360 52.56 701224 966100 460 05:35:01 135932 1374824 398616 19.63 91492 1224048 1618360 52.56 701324 966104 92 05:36:01 126836 1370212 403012 19.85 91532 1227960 1620164 52.62 708440 969192 176 05:37:01 128844 1372248 400984 19.75 91560 1227952 1620164 52.62 707388 967424 16 05:38:01 128892 1372324 400892 19.74 91584 1227968 1624212 52.75 707392 967432 92 05:39:01 128948 1372332 400852 19.74 91608 1227968 1624212 52.75 707424 967432 172 05:40:01 128624 1372048 401096 19.75 91644 1227972 1624212 52.75 707544 967436 88 05:41:01 128388 1371852 401308 19.76 91668 1227972 1624212 52.75 707584 967436 88 05:42:01 128632 1372112 401040 19.75 91700 1227964 1624212 52.75 707468 967372 8 05:43:01 116532 1392268 381984 18.81 94728 1258176 817612 26.55 702072 990104 43376 Average: 120957 1380891 398244 19.61 85105 1247768 1500033 48.71 650428 1035320 7427 05:28:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 05:29:01 ens3 42.44 40.19 572.52 5.78 0.00 0.00 0.00 0.00 05:29:01 lo 0.53 0.53 0.05 0.05 0.00 0.00 0.00 0.00 05:30:02 ens3 27.73 26.96 81.71 4.70 0.00 0.00 0.00 0.00 05:30:02 lo 4.67 4.67 0.67 0.67 0.00 0.00 0.00 0.00 05:31:01 ens3 6.46 4.88 5.58 1.74 0.00 0.00 0.00 0.00 05:31:01 lo 0.61 0.61 0.07 0.07 0.00 0.00 0.00 0.00 05:32:01 ens3 0.12 0.13 0.01 0.01 0.00 0.00 0.00 0.00 05:32:01 lo 0.20 0.20 0.01 0.01 0.00 0.00 0.00 0.00 05:33:01 ens3 314.78 169.34 2087.96 11.43 0.00 0.00 0.00 0.00 05:33:01 lo 0.47 0.47 0.04 0.04 0.00 0.00 0.00 0.00 05:34:01 ens3 0.17 0.15 0.01 0.01 0.00 0.00 0.00 0.00 05:34:01 lo 0.20 0.20 0.01 0.01 0.00 0.00 0.00 0.00 05:35:01 ens3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 05:35:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 05:36:01 ens3 8.63 6.23 5.99 7.87 0.00 0.00 0.00 0.00 05:36:01 lo 0.33 0.33 0.03 0.03 0.00 0.00 0.00 0.00 05:37:01 ens3 0.00 0.02 0.00 0.00 0.00 0.00 0.00 0.00 05:37:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 05:38:01 ens3 0.22 0.18 0.08 0.07 0.00 0.00 0.00 0.00 05:38:01 lo 0.20 0.20 0.01 0.01 0.00 0.00 0.00 0.00 05:39:01 ens3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 05:39:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 05:40:01 ens3 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 05:40:01 lo 0.20 0.20 0.01 0.01 0.00 0.00 0.00 0.00 05:41:01 ens3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 05:41:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 05:42:01 ens3 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 05:42:01 lo 0.20 0.20 0.01 0.01 0.00 0.00 0.00 0.00 05:43:01 ens3 12.20 12.71 8.90 10.95 0.00 0.00 0.00 0.00 05:43:01 lo 0.67 0.67 0.04 0.04 0.00 0.00 0.00 0.00 Average: ens3 27.55 17.41 184.38 2.84 0.00 0.00 0.00 0.00 Average: lo 0.55 0.55 0.06 0.06 0.00 0.00 0.00 0.00 ---> sar -P ALL: Linux 5.4.0-146-generic (prd-ubuntu1804-builder-2c-2g-2671) 01/03/24 _x86_64_ (2 CPU) 05:27:04 LINUX RESTART (2 CPU) 05:28:01 CPU %user %nice %system %iowait %steal %idle 05:29:01 all 39.27 7.13 7.29 6.89 0.11 39.31 05:29:01 0 44.40 6.43 7.08 8.94 0.12 33.04 05:29:01 1 34.12 7.84 7.50 4.84 0.10 45.59 05:30:02 all 17.73 0.00 2.02 4.41 0.08 75.76 05:30:02 0 19.23 0.00 2.16 6.84 0.07 71.70 05:30:02 1 16.23 0.00 1.88 1.97 0.08 79.83 05:31:01 all 1.65 0.00 0.39 0.09 0.05 97.82 05:31:01 0 0.34 0.00 0.45 0.15 0.05 99.01 05:31:01 1 2.94 0.00 0.34 0.02 0.05 96.65 05:32:01 all 0.78 0.00 0.31 0.04 0.07 98.80 05:32:01 0 0.55 0.00 0.32 0.08 0.07 98.98 05:32:01 1 1.00 0.00 0.30 0.00 0.07 98.63 05:33:01 all 7.39 0.00 4.80 3.01 0.08 84.72 05:33:01 0 8.32 0.00 5.02 4.50 0.08 82.07 05:33:01 1 6.46 0.00 4.57 1.53 0.08 87.36 05:34:01 all 1.26 0.00 0.65 1.07 0.07 96.96 05:34:01 0 1.43 0.00 0.64 0.82 0.05 97.06 05:34:01 1 1.09 0.00 0.65 1.31 0.08 96.86 05:35:01 all 0.43 0.00 0.28 0.01 0.05 99.24 05:35:01 0 0.32 0.00 0.22 0.02 0.05 99.40 05:35:01 1 0.54 0.00 0.33 0.00 0.05 99.08 05:36:01 all 1.23 0.00 0.45 0.13 0.05 98.14 05:36:01 0 1.31 0.00 0.49 0.10 0.05 98.05 05:36:01 1 1.14 0.00 0.42 0.17 0.05 98.22 05:37:01 all 0.33 0.00 0.28 0.01 0.06 99.33 05:37:01 0 0.32 0.00 0.29 0.02 0.07 99.31 05:37:01 1 0.34 0.00 0.27 0.00 0.05 99.35 05:38:01 all 0.95 0.00 0.35 0.02 0.05 98.63 05:38:01 0 0.38 0.00 0.35 0.03 0.03 99.20 05:38:01 1 1.51 0.00 0.35 0.00 0.07 98.07 05:39:01 all 1.35 0.00 0.28 0.02 0.05 98.30 05:39:01 0 1.64 0.00 0.33 0.03 0.07 97.93 05:39:01 1 1.07 0.00 0.23 0.00 0.03 98.67 05:39:01 CPU %user %nice %system %iowait %steal %idle 05:40:01 all 0.79 0.00 0.32 0.02 0.06 98.82 05:40:01 0 1.13 0.00 0.27 0.03 0.05 98.51 05:40:01 1 0.44 0.00 0.37 0.00 0.07 99.13 05:41:01 all 0.27 0.00 0.26 0.04 0.06 99.37 05:41:01 0 0.35 0.00 0.27 0.05 0.07 99.26 05:41:01 1 0.18 0.00 0.25 0.03 0.05 99.48 05:42:01 all 0.39 0.00 0.33 0.01 0.05 99.23 05:42:01 0 0.44 0.00 0.35 0.02 0.05 99.14 05:42:01 1 0.34 0.00 0.30 0.00 0.05 99.31 05:43:01 all 20.95 0.00 3.56 0.83 0.08 74.59 05:43:01 0 8.03 0.00 3.61 1.24 0.05 87.07 05:43:01 1 33.90 0.00 3.50 0.42 0.10 62.08 Average: all 6.32 0.48 1.44 1.11 0.06 90.59 Average: 0 5.90 0.43 1.46 1.53 0.06 90.62 Average: 1 6.75 0.52 1.42 0.68 0.07 90.56