Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-ubuntu1804-builder-2c-2g-414 (ubuntu1804-builder-2c-2g) in workspace /w/workspace/ric-app-ad-tox-sonarqube [ssh-agent] Looking for ssh-agent implementation... $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-uiYRpC1ENh3q/agent.1653 SSH_AGENT_PID=1655 [ssh-agent] Started. Running ssh-add (command line suppressed) Identity added: /w/workspace/ric-app-ad-tox-sonarqube@tmp/private_key_15532988531252491004.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-app/ad > git init /w/workspace/ric-app-ad-tox-sonarqube # timeout=10 Fetching upstream changes from ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad > git --version # timeout=10 > git --version # 'git version 2.17.1' using GIT_SSH to set credentials jenkins > git fetch --tags --progress -- ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418/ric-app/ad # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision f9f97b8c682d890395e3de5a56450ebb04a5630b (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f f9f97b8c682d890395e3de5a56450ebb04a5630b # timeout=10 Commit message: "Merge "CI: Add merge workflow that runs SonarCloud scan"" > git rev-list --no-walk f9f97b8c682d890395e3de5a56450ebb04a5630b # 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-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins2061021962311127199.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-VJiN 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-VJiN/bin to PATH Generating Requirements File Python 3.10.6 pip 24.3.1 from /tmp/venv-VJiN/lib/python3.10/site-packages/pip (python 3.10) appdirs==1.4.4 argcomplete==3.5.2 aspy.yaml==1.3.0 attrs==24.3.0 autopage==0.5.2 beautifulsoup4==4.12.3 boto3==1.35.90 botocore==1.35.90 bs4==0.0.2 cachetools==5.5.0 certifi==2024.12.14 cffi==1.17.1 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.4.1 click==8.1.8 cliff==4.8.0 cmd2==2.5.8 cryptography==3.3.2 debtcollector==3.0.0 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.15 distlib==0.3.9 dnspython==2.7.0 docker==4.2.2 dogpile.cache==1.3.3 durationpy==0.9 email_validator==2.2.0 filelock==3.16.1 future==1.0.0 gitdb==4.0.11 GitPython==3.1.43 google-auth==2.37.0 httplib2==0.22.0 identify==2.6.3 idna==3.10 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.5 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 jsonschema==4.23.0 jsonschema-specifications==2024.10.1 keystoneauth1==5.9.1 kubernetes==31.0.0 lftools==0.37.10 lxml==5.3.0 MarkupSafe==3.0.2 msgpack==1.1.0 multi_key_dict==2.0.3 munch==4.0.0 netaddr==1.3.0 niet==1.4.2 nodeenv==1.9.1 oauth2client==4.1.3 oauthlib==3.2.2 openstacksdk==4.2.0 os-client-config==2.1.0 os-service-types==1.7.0 osc-lib==3.2.0 oslo.config==9.7.0 oslo.context==5.7.0 oslo.i18n==6.5.0 oslo.log==6.2.0 oslo.serialization==5.6.0 oslo.utils==8.0.0 packaging==24.2 pbr==6.1.0 platformdirs==4.3.6 prettytable==3.12.0 psutil==6.1.1 pyasn1==0.6.1 pyasn1_modules==0.4.1 pycparser==2.22 pygerrit2==2.0.15 PyGithub==2.5.0 PyJWT==2.10.1 PyNaCl==1.5.0 pyparsing==2.4.7 pyperclip==1.9.0 pyrsistent==0.20.0 python-cinderclient==9.6.0 python-dateutil==2.9.0.post0 python-heatclient==4.0.0 python-jenkins==1.8.2 python-keystoneclient==5.5.0 python-magnumclient==4.7.0 python-openstackclient==7.2.1 python-swiftclient==4.6.0 PyYAML==6.0.2 referencing==0.35.1 requests==2.32.3 requests-oauthlib==2.0.0 requestsexceptions==1.4.0 rfc3986==2.0.0 rpds-py==0.22.3 rsa==4.9 ruamel.yaml==0.18.6 ruamel.yaml.clib==0.2.12 s3transfer==0.10.4 simplejson==3.19.3 six==1.17.0 smmap==5.0.1 soupsieve==2.6 stevedore==5.4.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.13.2 tqdm==4.67.1 typing_extensions==4.12.2 tzdata==2024.2 urllib3==1.26.20 virtualenv==20.28.0 wcwidth==0.2.13 websocket-client==1.8.0 wrapt==1.17.0 xdg==6.0.0 xmltodict==0.14.2 yq==3.4.3 [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SET_JDK_VERSION=openjdk17 GIT_URL="ssh://oran-jobbuilder@gerrit.o-ran-sc.org:29418" [EnvInject] - Variables injected successfully. [ric-app-ad-tox-sonarqube] $ /bin/sh /tmp/jenkins6984088491512964556.sh ---> update-java-alternatives.sh ---> Updating Java version ---> Ubuntu/Debian system detected update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/java to provide /usr/bin/java (java) in manual mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in manual mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64 to provide /usr/lib/jvm/java-openjdk (java_sdk_openjdk) in manual mode openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu118.04) OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu118.04, mixed mode, sharing) JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties file path '/tmp/java.env' [EnvInject] - Variables injected successfully. [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content PYTHON=python3 [EnvInject] - Variables injected successfully. [ric-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins15347791360315863132.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-lUCk + 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-app-ad-tox-sonarqube/.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 ++ sed 's/^[ *]* //' ++ awk '{ print $1 }' ++ grep -E '^[0-9.]*[0-9]$' ++ [[ ! -s /tmp/.pyenv_versions ]] +++ grep '^3' /tmp/.pyenv_versions +++ tail -n 1 +++ 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 ]] + [[ ! -f /tmp/.toxenv ]] + [[ -n '' ]] + python3 -m venv /tmp/venv-lUCk + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-lUCk' lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-lUCk + echo /tmp/venv-lUCk + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv + /tmp/venv-lUCk/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-lUCk/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-lUCk/bin to PATH' lf-activate-venv(): INFO: Adding /tmp/venv-lUCk/bin to PATH + PATH=/tmp/venv-lUCk/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 + python3 --version Python 3.10.6 + python3 -m pip --version pip 24.3.1 from /tmp/venv-lUCk/lib/python3.10/site-packages/pip (python 3.10) + python3 -m pip freeze cachetools==5.5.0 chardet==5.2.0 colorama==0.4.6 distlib==0.3.9 filelock==3.16.1 packaging==24.2 platformdirs==4.3.6 pluggy==1.5.0 pyproject-api==1.8.0 tomli==2.2.1 tox==4.23.2 typing_extensions==4.12.2 urllib3==1.26.20 virtualenv==20.28.0 [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins13848626473928167753.sh ---> install-deb-rmr.sh + version_file=rmr-version.yaml + '[' -f rmr-version.yaml ']' ++ xargs ++ cut -d: -f2 ++ grep '^repo:' rmr-version.yaml + repo= ++ xargs ++ cut -d: -f2 ++ grep '^version:' rmr-version.yaml + ver=4.9.0 + '[' -z 4.9.0 ']' + 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.0_amd64.deb/download.deb 2024-12-29 00:35:09 URL:https://d3fo0g5hm7lbuv.cloudfront.net/20756/10598/debian/package_files/4069581.deb?Expires=1735432809&Signature=YjCbshpuYQd32FLD3nVLsmUQRYEBX3Xou7iKufbYcQSjU2w4rtciKymeyHIENT-03lrZbRvZ36lXx2YcuTVplL9miKVK-6ORpeGdaK158kiL7MZjcn2uYUlmhJ~cjEZJxWhzBYqRLghP7LDKo6ohO9qcFoOc74mE56kX389Ljhb4n3z704QP9X~kWavr47WJfuNO7aIGfkXo7PpqmevhIytrNxayqcacPXaYEIuyKMYoMD7AsOg8w7VfboAULeNKE1MoOY685WRqf1YzVi1u0-NNgh0acRvmxg2eoUQGuMLu6ZMHPdAC5FOSVEGg3vpYat2snDab2YpNbXw4fK~Pfw__&Key-Pair-Id=K1ZMSF1EKC3AZL [242746/242746] -> "rmr_4.9.0_amd64.deb" [1] + sudo dpkg -i rmr_4.9.0_amd64.deb Selecting previously unselected package rmr. (Reading database ... 188029 files and directories currently installed.) Preparing to unpack rmr_4.9.0_amd64.deb ... Unpacking rmr (4.9.0) ... Setting up rmr (4.9.0) ... + rm -f rmr_4.9.0_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.0_amd64.deb/download.deb 2024-12-29 00:35:11 URL:https://d3fo0g5hm7lbuv.cloudfront.net/20756/10598/debian/package_files/4069580.deb?Expires=1735432811&Signature=ozVtLZPCSEQCJoxISxq4LkiTF1blKw8sf4Fo8cfF9wKVjmugCGaQhvIZr0Lz16G~MNezTgJcbjvaxSu4Kgm-0nZHdntwj2lEHfSSiqs876Dp8NJZAGvtBzXNAyP64SP3mAgY4tuD7LqLKCp79iEqkoscQaGp7HkYLKPEfumSgyz-8nh803WgzcZZ49HCxxgHE4~-0xN2GWEr6716cbD~B415b4riUGzfcjPH-Wfhm6mIfm9rQi1ZXErCeCUPNT0DOS4Vsq9PfZPN8SyOlaQPL6~qJObQaj6KYjK4NewCqDcA14xaJa3K6YdqDdxOHDNTrAKpEpCudNNOhbHmv92wbg__&Key-Pair-Id=K1ZMSF1EKC3AZL [126094/126094] -> "rmr-dev_4.9.0_amd64.deb" [1] + sudo dpkg -i rmr-dev_4.9.0_amd64.deb Selecting previously unselected package rmr-dev. (Reading database ... 188037 files and directories currently installed.) Preparing to unpack rmr-dev_4.9.0_amd64.deb ... Unpacking rmr-dev (4.9.0) ... Setting up rmr-dev (4.9.0) ... + rm -f rmr-dev_4.9.0_amd64.deb + echo '---> install-deb-rmr.sh ends' ---> install-deb-rmr.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-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins7134498724293549669.sh ---> tox-run.sh + PATH=/home/jenkins/.local/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 + ARCHIVE_TOX_DIR=/w/workspace/ric-app-ad-tox-sonarqube/archives/tox + ARCHIVE_DOC_DIR=/w/workspace/ric-app-ad-tox-sonarqube/archives/docs + mkdir -p /w/workspace/ric-app-ad-tox-sonarqube/archives/tox + cd /w/workspace/ric-app-ad-tox-sonarqube/. + 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-dSOs + 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:/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:/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-app-ad-tox-sonarqube/.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:/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:/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:/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= ++ sed 's/^[ *]* //' ++ pyenv versions ++ local command ++ command=versions ++ '[' 1 -gt 0 ']' ++ shift ++ case "$command" in ++ command pyenv versions ++ pyenv versions ++ grep -E '^[0-9.]*[0-9]$' ++ awk '{ print $1 }' ++ [[ ! -s /tmp/.pyenv_versions ]] +++ grep '^3' /tmp/.pyenv_versions +++ tail -n 1 +++ 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-lUCk + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-lUCk from' file:/tmp/.toxenv lf-activate-venv(): INFO: Reuse venv:/tmp/venv-lUCk from file:/tmp/.toxenv + /tmp/venv-lUCk/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-lUCk/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-lUCk/bin to PATH' lf-activate-venv(): INFO: Adding /tmp/venv-lUCk/bin to PATH + PATH=/tmp/venv-lUCk/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/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-lUCk/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/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-lUCk/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/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-app-ad-tox-sonarqube + export PYTHONPATH + export TOX_TESTENV_PASSENV=PYTHONPATH + TOX_TESTENV_PASSENV=PYTHONPATH + tox --version 4.23.2 from /tmp/venv-lUCk/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 + tox -e code,flake8 + tee -a /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/tox.log code: install_deps> python -I -m pip install coverage pytest pytest-cov .pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel .pkg: _optional_hooks> python /tmp/venv-lUCk/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_sdist> python /tmp/venv-lUCk/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_wheel> python /tmp/venv-lUCk/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: freeze> python -m pip freeze --all .pkg: pip==24.3.1,setuptools==75.6.0,wheel==0.45.1 .pkg: prepare_metadata_for_build_wheel> python /tmp/venv-lUCk/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_sdist> python /tmp/venv-lUCk/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ code: install_package_deps> python -I -m pip install 'Scikit-learn>=0.18' influxdb 'joblib>=0.3.2' 'mdclogpy<=1.1.1' 'pandas>=1.1.3' ricxappframe==3.2.2 'schedule>=0.0.0' code: install_package> python -I -m pip install --force-reinstall --no-deps /w/workspace/ric-app-ad-tox-sonarqube/.tox/.tmp/package/1/ad-1.0.1.tar.gz code: freeze> python -m pip freeze --all code: ad==1.0.1,async-timeout==5.0.1,certifi==2024.12.14,charset-normalizer==3.4.1,coverage==7.6.10,exceptiongroup==1.2.2,hiredis==2.0.0,idna==3.10,influxdb==5.3.2,iniconfig==2.0.0,inotify==0.2.10,inotify_simple==1.3.5,joblib==1.4.2,mdclogpy==1.1.1,msgpack==1.1.0,nose==1.3.7,numpy==2.2.1,packaging==24.2,pandas==2.2.3,pip==24.3.1,pluggy==1.5.0,protobuf==3.20.3,pytest==8.3.4,pytest-cov==6.0.0,python-dateutil==2.9.0.post0,pytz==2024.2,redis==4.3.6,requests==2.32.3,ricsdl==3.1.3,ricxappframe==3.2.2,schedule==1.2.2,scikit-learn==1.6.0,scipy==1.14.1,setuptools==75.6.0,six==1.17.0,threadpoolctl==3.5.0,tomli==2.2.1,tzdata==2024.2,urllib3==2.3.0,wheel==0.45.1 code: commands[0]> pytest -v --cov src --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=50 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-8.3.4, pluggy-1.5.0 -- /w/workspace/ric-app-ad-tox-sonarqube/.tox/code/bin/python cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/ric-app-ad-tox-sonarqube plugins: cov-6.0.0 collecting ... collected 4 items tests/test_ad.py::test_database_connection PASSED [ 25%] tests/test_ad.py::test_trainModel FAILED [ 50%] tests/test_ad.py::test_predict_anomaly FAILED [ 75%] tests/test_ad.py::test_msg_to_ts PASSED [100%] =================================== FAILURES =================================== _______________________________ test_trainModel ________________________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe160587a30> def test_trainModel(monkeypatch): > main.train_model() tests/test_ad.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/main.py:62: in train_model mt.train() src/ad_train.py:122: in train f1, model = self.isoforest() src/ad_train.py:89: in isoforest md = model.fit(self.train_data.values) .tox/code/lib/python3.10/site-packages/sklearn/base.py:1389: in wrapper return fit_method(estimator, *args, **kwargs) .tox/code/lib/python3.10/site-packages/sklearn/model_selection/_search.py:1023: in fit self._run_search(evaluate_candidates) .tox/code/lib/python3.10/site-packages/sklearn/model_selection/_search.py:1950: in _run_search evaluate_candidates( .tox/code/lib/python3.10/site-packages/sklearn/model_selection/_search.py:969: in evaluate_candidates out = parallel( .tox/code/lib/python3.10/site-packages/sklearn/utils/parallel.py:77: in __call__ return super().__call__(iterable_with_config) .tox/code/lib/python3.10/site-packages/joblib/parallel.py:1918: in __call__ return output if self.return_generator else list(output) .tox/code/lib/python3.10/site-packages/joblib/parallel.py:1847: in _get_sequential_output res = func(*args, **kwargs) .tox/code/lib/python3.10/site-packages/sklearn/utils/parallel.py:139: in __call__ return self.function(*args, **kwargs) .tox/code/lib/python3.10/site-packages/sklearn/model_selection/_validation.py:858: in _fit_and_score X_train, y_train = _safe_split(estimator, X, y, train) .tox/code/lib/python3.10/site-packages/sklearn/utils/metaestimators.py:156: in _safe_split X_subset = _safe_indexing(X, indices) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ X = array([[ 3.77292128e-01, 2.86786711e-02, 1.11735082e-04, ..., -3.75802327e-01, -4.02027834e-03, 1.21858569e...0016081e-02, 7.00032162e-05, ..., -5.88727048e-01, -2.85562268e-02, 1.17085036e-02]], shape=(10000, 7)) indices = array(slice(None, None, None), dtype=object) def _safe_indexing(X, indices, *, axis=0): """Return rows, items or columns of X using indices. .. warning:: This utility is documented, but **private**. This means that backward compatibility might be broken without any deprecation cycle. Parameters ---------- X : array-like, sparse-matrix, list, pandas.DataFrame, pandas.Series Data from which to sample rows, items or columns. `list` are only supported when `axis=0`. indices : bool, int, str, slice, array-like - If `axis=0`, boolean and integer array-like, integer slice, and scalar integer are supported. - If `axis=1`: - to select a single column, `indices` can be of `int` type for all `X` types and `str` only for dataframe. The selected subset will be 1D, unless `X` is a sparse matrix in which case it will be 2D. - to select multiples columns, `indices` can be one of the following: `list`, `array`, `slice`. The type used in these containers can be one of the following: `int`, 'bool' and `str`. However, `str` is only supported when `X` is a dataframe. The selected subset will be 2D. axis : int, default=0 The axis along which `X` will be subsampled. `axis=0` will select rows while `axis=1` will select columns. Returns ------- subset Subset of X on axis 0 or 1. Notes ----- CSR, CSC, and LIL sparse matrices are supported. COO sparse matrices are not supported. Examples -------- >>> import numpy as np >>> from sklearn.utils import _safe_indexing >>> data = np.array([[1, 2], [3, 4], [5, 6]]) >>> _safe_indexing(data, 0, axis=0) # select the first row array([1, 2]) >>> _safe_indexing(data, 0, axis=1) # select the first column array([1, 3, 5]) """ if indices is None: return X if axis not in (0, 1): raise ValueError( "'axis' should be either 0 (to index rows) or 1 (to index " " column). Got {} instead.".format(axis) ) indices_dtype = _determine_key_type(indices) if axis == 0 and indices_dtype == "str": > raise ValueError("String indexing is not supported with 'axis=0'") E ValueError: String indexing is not supported with 'axis=0' .tox/code/lib/python3.10/site-packages/sklearn/utils/_indexing.py:242: ValueError ----------------------------- Captured stdout call ----------------------------- {"ts": 1735432552867, "crit": "DEBUG", "id": "ad_train", "mdc": {}, "msg": "Training on 10000 Samples"} {"ts": 1735432552875, "crit": "DEBUG", "id": "ad_train", "mdc": {}, "msg": "Validation on 10000 Samples"} {"ts": 1735432552875, "crit": "DEBUG", "id": "ad_train", "mdc": {}, "msg": "Training Starts"} {"ts": 1735432552915, "crit": "INFO", "id": "ad_train", "mdc": {}, "msg": "Training Isolation Forest"} _____________________________ test_predict_anomaly _____________________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe15fb716c0> ad_ue = du-id ServingCellId RRU.PrbUsedDl ... x y measTimeStampRf 0 1002 c2/B13 8 ... -882 -959 2021-05-12 07:43:51.652 [1 rows x 12 columns] def test_predict_anomaly(monkeypatch, ad_ue): main.load_model() > main.predict_anomaly(monkeypatch, ad_ue) tests/test_ad.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/main.py:99: in predict_anomaly df['Anomaly'] = md.predict(df) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = df = du-id ServingCellId RRU.PrbUsedDl ... x y measTimeStampRf 0 1002 c2/B13 8 ... -882 -959 2021-05-12 07:43:51.652 [1 rows x 12 columns] def predict(self, df): """ Load the saved model and return predicted result. Parameters ......... name:str name of model Return ...... pred:int predict label on a given sample """ self.data = df.loc[:, self.num] self.transformation() > pred = self.model.predict(self.data) E AttributeError: 'modelling' object has no attribute 'model' src/ad_model.py:78: AttributeError ----------------------------- Captured stdout call ----------------------------- {"ts": 1735432553262, "crit": "ERROR", "id": "ad_model", "mdc": {}, "msg": "Model Does not exsist"} {"ts": 1735432553263, "crit": "INFO", "id": "src.main", "mdc": {}, "msg": "throughput threshold parameter is set as 70% (default)"} =============================== warnings summary =============================== tests/test_ad.py::test_trainModel tests/test_ad.py::test_trainModel /w/workspace/ric-app-ad-tox-sonarqube/src/processing.py:52: FutureWarning: ChainedAssignmentError: behaviour will change in pandas 3.0! You are setting values through chained assignment. Currently this works in certain cases, but when using Copy-on-Write (which will become the default behaviour in pandas 3.0) this will never work to update the original DataFrame or Series, because the intermediate object on which we are setting values will behave as a copy. A typical example is when you are setting values in a column of a DataFrame, like: df["col"][row_indexer] = value Use `df.loc[row_indexer, "col"] = values` instead, to perform the assignment in a single step and ensure this keeps updating the original `df`. See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy self.data.iloc[:]['DRB.UEThpDl'] = self.data['DRB.UEThpDl'].apply(lambda x: x*1024) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing ------------------------------------------------- src/__init__.py 0 0 100% src/ad_model.py 67 34 49% 41, 50-51, 57-58, 79-80, 98-115, 119-130 src/ad_train.py 69 22 68% 56-58, 66-68, 90-91, 94-101, 123-129 src/database.py 94 36 62% 64-75, 85-97, 106-110, 113-118, 161, 164 src/exceptions.py 4 4 0% 18-25 src/insert.py 50 50 0% 21-84 src/main.py 116 75 35% 41-46, 70-83, 100-114, 119-130, 139, 146-163, 167-170, 174-177, 181-185, 190-192 src/processing.py 44 0 100% ------------------------------------------------- TOTAL 444 221 50% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 50% reached. Total coverage: 50.23% =========================== short test summary info ============================ FAILED tests/test_ad.py::test_trainModel - ValueError: String indexing is not... FAILED tests/test_ad.py::test_predict_anomaly - AttributeError: 'modelling' o... =================== 2 failed, 2 passed, 2 warnings in 17.09s =================== code: exit 1 (18.17 seconds) /w/workspace/ric-app-ad-tox-sonarqube> pytest -v --cov src --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=50 pid=2652 code: FAIL ✖ in 54.17 seconds flake8: install_deps> python -I -m pip install flake8 flake8: freeze> python -m pip freeze --all flake8: ad==1.0.1,flake8==7.1.1,mccabe==0.7.0,pip==24.3.1,pycodestyle==2.12.1,pyflakes==3.2.0,setuptools==75.6.0,wheel==0.45.1 flake8: commands[0]> flake8 setup.py src tests code: FAIL code 1 (54.17=setup[35.99]+cmd[18.17] seconds) flake8: OK (3.54=setup[3.29]+cmd[0.25] seconds) evaluation failed :( (57.87 seconds) + tox_status=255 + echo '---> Completed tox runs' ---> Completed tox runs + for i in .tox/*/log ++ echo .tox/code/log ++ awk -F/ '{print $2}' + tox_env=code + cp -r .tox/code/log /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/code + for i in .tox/*/log ++ echo .tox/flake8/log ++ awk -F/ '{print $2}' + tox_env=flake8 + cp -r .tox/flake8/log /w/workspace/ric-app-ad-tox-sonarqube/archives/tox/flake8 + DOC_DIR=docs/_build/html + [[ -d docs/_build/html ]] + echo '---> tox-run.sh ends' ---> tox-run.sh ends + test 255 -eq 0 + exit 255 ++ '[' 2 = 1 ']' Build step 'Execute shell' marked build as failure $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 1655 killed; [ssh-agent] Stopped. [PostBuildScript] - [INFO] Executing post build scripts. [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins7250841383985891827.sh ---> sysstat.sh [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins16810004311715664277.sh ---> package-listing.sh ++ facter osfamily ++ tr '[:upper:]' '[:lower:]' + OS_FAMILY=debian + workspace=/w/workspace/ric-app-ad-tox-sonarqube + 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-app-ad-tox-sonarqube ']' + 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-app-ad-tox-sonarqube ']' + mkdir -p /w/workspace/ric-app-ad-tox-sonarqube/archives/ + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/ric-app-ad-tox-sonarqube/archives/ [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins15716617090111831828.sh ---> capture-instance-metadata.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-VJiN from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-VJiN/bin to PATH INFO: Running in OpenStack, capturing instance metadata [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins4314780184069438866.sh provisioning config files... copy managed file [jenkins-log-archives-settings] to file:/w/workspace/ric-app-ad-tox-sonarqube@tmp/config5858778155339162714tmp 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-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins3951292288379012714.sh ---> create-netrc.sh [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins4255014853849434372.sh ---> python-tools-install.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-VJiN from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-VJiN/bin to PATH [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins15192928564565300164.sh ---> sudo-logs.sh Archiving 'sudo' log.. [ric-app-ad-tox-sonarqube] $ /bin/bash /tmp/jenkins5673864669516246484.sh ---> job-cost.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-VJiN from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 lf-activate-venv(): INFO: Adding /tmp/venv-VJiN/bin to PATH INFO: No Stack... INFO: Retrieving Pricing Info for: v2-highcpu-2 INFO: Archiving Costs [ric-app-ad-tox-sonarqube] $ /bin/bash -l /tmp/jenkins9766403814891196011.sh ---> logs-deploy.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/ric-app-ad-tox-sonarqube/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-VJiN from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-VJiN/bin to PATH INFO: Nexus URL https://nexus.o-ran-sc.org path production/vex-sjc-oran-jenkins-prod-1/ric-app-ad-tox-sonarqube/212 INFO: archiving workspace using pattern(s): -p **/*.log Archives upload complete. INFO: archiving logs to Nexus ---> uname -a: Linux prd-ubuntu1804-builder-2c-2g-414 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 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 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: 2799.998 BogoMIPS: 5599.99 Virtualization: AMD-V Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 512K L3 cache: 16384K NUMA node0 CPU(s): 0,1 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 xtopology 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 arat npt nrip_save umip rdpid arch_capabilities ---> nproc: 2 ---> df -h: Filesystem Size Used Avail Use% Mounted on udev 984M 0 984M 0% /dev tmpfs 200M 668K 199M 1% /run /dev/vda1 20G 7.7G 12G 41% / tmpfs 997M 0 997M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 997M 0 997M 0% /sys/fs/cgroup /dev/vda15 105M 5.3M 100M 5% /boot/efi tmpfs 200M 0 200M 0% /run/user/1001 ---> free -m: total used free shared buff/cache available Mem: 1992 342 67 0 1582 1468 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:a2:d1:53 brd ff:ff:ff:ff:ff:ff inet 10.32.7.16/23 brd 10.32.7.255 scope global dynamic ens3 valid_lft 86200sec preferred_lft 86200sec inet6 fe80::f816:3eff:fea2:d153/64 scope link valid_lft forever preferred_lft forever ---> sar -b -r -n DEV: Linux 4.15.0-213-generic (prd-ubuntu1804-builder-2c-2g-414) 12/29/24 _x86_64_ (2 CPU) 00:33:42 LINUX RESTART (2 CPU) 00:34:01 tps rtps wtps bread/s bwrtn/s 00:35:01 167.43 57.43 110.00 2966.74 13493.64 00:36:01 136.02 60.64 75.38 3549.43 22750.09 Average: 151.72 59.03 92.69 3258.11 18122.25 00:34:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 00:35:01 76476 1526104 1964156 96.25 55032 1480472 551176 17.84 421720 1391124 62452 00:36:01 104832 1430864 1935800 94.86 74180 1337172 896140 29.01 474072 1308360 72604 Average: 90654 1478484 1949978 95.56 64606 1408822 723658 23.43 447896 1349742 67528 00:34:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 00:35:01 lo 1.73 1.73 0.16 0.16 0.00 0.00 0.00 0.00 00:35:01 ens3 87.19 78.92 945.62 14.82 0.00 0.00 0.00 0.00 00:36:01 lo 4.66 4.66 0.29 0.29 0.00 0.00 0.00 0.00 00:36:01 ens3 80.43 64.38 1467.94 7.12 0.00 0.00 0.00 0.00 Average: lo 3.20 3.20 0.23 0.23 0.00 0.00 0.00 0.00 Average: ens3 83.81 71.65 1206.80 10.97 0.00 0.00 0.00 0.00 ---> sar -P ALL: Linux 4.15.0-213-generic (prd-ubuntu1804-builder-2c-2g-414) 12/29/24 _x86_64_ (2 CPU) 00:33:42 LINUX RESTART (2 CPU) 00:34:01 CPU %user %nice %system %iowait %steal %idle 00:35:01 all 38.21 0.00 2.82 7.88 0.08 51.01 00:35:01 0 42.61 0.00 3.32 6.06 0.08 47.93 00:35:01 1 33.78 0.00 2.31 9.70 0.10 54.11 00:36:01 all 31.70 0.00 2.97 6.12 0.09 59.12 00:36:01 0 55.99 0.00 3.99 5.76 0.10 34.15 00:36:01 1 7.70 0.00 1.98 6.46 0.07 83.79 Average: all 34.94 0.00 2.90 7.00 0.09 55.07 Average: 0 49.29 0.00 3.65 5.91 0.09 41.05 Average: 1 20.66 0.00 2.14 8.07 0.08 69.04