11:39:38 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/113937 11:39:38 Running as SYSTEM 11:39:38 [EnvInject] - Loading node environment variables. 11:39:38 Building remotely on prd-ubuntu2004-docker-4c-16g-788 (ubuntu2004-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 11:39:39 [ssh-agent] Looking for ssh-agent implementation... 11:39:39 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:39:39 $ ssh-agent 11:39:39 SSH_AUTH_SOCK=/tmp/ssh-I2xRx6WD6D8K/agent.11831 11:39:39 SSH_AGENT_PID=11833 11:39:39 [ssh-agent] Started. 11:39:39 Running ssh-add (command line suppressed) 11:39:39 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_13453674730388862469.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_13453674730388862469.key) 11:39:39 [ssh-agent] Using credentials jenkins (jenkins-ssh) 11:39:39 The recommended git tool is: NONE 11:39:41 using credential jenkins-ssh 11:39:41 Wiping out workspace first. 11:39:41 Cloning the remote Git repository 11:39:41 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 11:39:41 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 11:39:41 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 11:39:41 > git --version # timeout=10 11:39:41 > git --version # 'git version 2.25.1' 11:39:41 using GIT_SSH to set credentials jenkins-ssh 11:39:41 Verifying host key using known hosts file 11:39:41 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 11:39:41 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 11:39:44 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 11:39:44 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:39:45 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 11:39:45 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 11:39:45 using GIT_SSH to set credentials jenkins-ssh 11:39:45 Verifying host key using known hosts file 11:39:45 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 11:39:45 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/37/113937/13 # timeout=10 11:39:45 > git rev-parse c033bdd9cf7dbbab89d444ddfe81b821407fb5cf^{commit} # timeout=10 11:39:45 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 11:39:45 Checking out Revision c033bdd9cf7dbbab89d444ddfe81b821407fb5cf (refs/changes/37/113937/13) 11:39:45 > git config core.sparsecheckout # timeout=10 11:39:45 > git checkout -f c033bdd9cf7dbbab89d444ddfe81b821407fb5cf # timeout=10 11:39:45 Commit message: "Add Func Test for Topology extension" 11:39:45 > git rev-parse FETCH_HEAD^{commit} # timeout=10 11:39:45 > git rev-list --no-walk 494394ff3d42cece3d58957d534da3e28501e917 # timeout=10 11:39:45 > git remote # timeout=10 11:39:45 > git submodule init # timeout=10 11:39:45 > git submodule sync # timeout=10 11:39:45 > git config --get remote.origin.url # timeout=10 11:39:45 > git submodule init # timeout=10 11:39:46 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 11:39:46 ERROR: No submodules found. 11:39:49 provisioning config files... 11:39:49 copy managed file [npmrc] to file:/home/jenkins/.npmrc 11:39:49 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 11:39:49 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13762927735292361004.sh 11:39:49 ---> python-tools-install.sh 11:39:49 Setup pyenv: 11:39:49 * system (set by /opt/pyenv/version) 11:39:49 * 3.8.13 (set by /opt/pyenv/version) 11:39:49 * 3.9.13 (set by /opt/pyenv/version) 11:39:49 * 3.10.13 (set by /opt/pyenv/version) 11:39:49 * 3.11.7 (set by /opt/pyenv/version) 11:39:54 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-nxg5 11:39:54 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 11:39:57 lf-activate-venv(): INFO: Installing: lftools 11:40:26 lf-activate-venv(): INFO: Adding /tmp/venv-nxg5/bin to PATH 11:40:26 Generating Requirements File 11:40:46 Python 3.11.7 11:40:46 pip 24.2 from /tmp/venv-nxg5/lib/python3.11/site-packages/pip (python 3.11) 11:40:46 appdirs==1.4.4 11:40:46 argcomplete==3.5.1 11:40:46 aspy.yaml==1.3.0 11:40:46 attrs==24.2.0 11:40:46 autopage==0.5.2 11:40:46 beautifulsoup4==4.12.3 11:40:46 boto3==1.35.47 11:40:46 botocore==1.35.47 11:40:46 bs4==0.0.2 11:40:46 cachetools==5.5.0 11:40:46 certifi==2024.8.30 11:40:46 cffi==1.17.1 11:40:46 cfgv==3.4.0 11:40:46 chardet==5.2.0 11:40:46 charset-normalizer==3.4.0 11:40:46 click==8.1.7 11:40:46 cliff==4.7.0 11:40:46 cmd2==2.5.0 11:40:46 cryptography==3.3.2 11:40:46 debtcollector==3.0.0 11:40:46 decorator==5.1.1 11:40:46 defusedxml==0.7.1 11:40:46 Deprecated==1.2.14 11:40:46 distlib==0.3.9 11:40:46 dnspython==2.7.0 11:40:46 docker==4.2.2 11:40:46 dogpile.cache==1.3.3 11:40:46 durationpy==0.9 11:40:46 email_validator==2.2.0 11:40:46 filelock==3.16.1 11:40:46 future==1.0.0 11:40:46 gitdb==4.0.11 11:40:46 GitPython==3.1.43 11:40:46 google-auth==2.35.0 11:40:46 httplib2==0.22.0 11:40:46 identify==2.6.1 11:40:46 idna==3.10 11:40:46 importlib-resources==1.5.0 11:40:46 iso8601==2.1.0 11:40:46 Jinja2==3.1.4 11:40:46 jmespath==1.0.1 11:40:46 jsonpatch==1.33 11:40:46 jsonpointer==3.0.0 11:40:46 jsonschema==4.23.0 11:40:46 jsonschema-specifications==2024.10.1 11:40:46 keystoneauth1==5.8.0 11:40:46 kubernetes==31.0.0 11:40:46 lftools==0.37.10 11:40:46 lxml==5.3.0 11:40:46 MarkupSafe==3.0.2 11:40:46 msgpack==1.1.0 11:40:46 multi_key_dict==2.0.3 11:40:46 munch==4.0.0 11:40:46 netaddr==1.3.0 11:40:46 netifaces==0.11.0 11:40:46 niet==1.4.2 11:40:46 nodeenv==1.9.1 11:40:46 oauth2client==4.1.3 11:40:46 oauthlib==3.2.2 11:40:46 openstacksdk==4.1.0 11:40:46 os-client-config==2.1.0 11:40:46 os-service-types==1.7.0 11:40:46 osc-lib==3.1.0 11:40:46 oslo.config==9.6.0 11:40:46 oslo.context==5.6.0 11:40:46 oslo.i18n==6.4.0 11:40:46 oslo.log==6.1.2 11:40:46 oslo.serialization==5.5.0 11:40:46 oslo.utils==7.3.0 11:40:46 packaging==24.1 11:40:46 pbr==6.1.0 11:40:46 platformdirs==4.3.6 11:40:46 prettytable==3.11.0 11:40:46 pyasn1==0.6.1 11:40:46 pyasn1_modules==0.4.1 11:40:46 pycparser==2.22 11:40:46 pygerrit2==2.0.15 11:40:46 PyGithub==2.4.0 11:40:46 PyJWT==2.9.0 11:40:46 PyNaCl==1.5.0 11:40:46 pyparsing==2.4.7 11:40:46 pyperclip==1.9.0 11:40:46 pyrsistent==0.20.0 11:40:46 python-cinderclient==9.6.0 11:40:46 python-dateutil==2.9.0.post0 11:40:46 python-heatclient==4.0.0 11:40:46 python-jenkins==1.8.2 11:40:46 python-keystoneclient==5.5.0 11:40:46 python-magnumclient==4.7.0 11:40:46 python-openstackclient==7.2.0 11:40:46 python-swiftclient==4.6.0 11:40:46 PyYAML==6.0.2 11:40:46 referencing==0.35.1 11:40:46 requests==2.32.3 11:40:46 requests-oauthlib==2.0.0 11:40:46 requestsexceptions==1.4.0 11:40:46 rfc3986==2.0.0 11:40:46 rpds-py==0.20.0 11:40:46 rsa==4.9 11:40:46 ruamel.yaml==0.18.6 11:40:46 ruamel.yaml.clib==0.2.12 11:40:46 s3transfer==0.10.3 11:40:46 simplejson==3.19.3 11:40:46 six==1.16.0 11:40:46 smmap==5.0.1 11:40:46 soupsieve==2.6 11:40:46 stevedore==5.3.0 11:40:46 tabulate==0.9.0 11:40:46 toml==0.10.2 11:40:46 tomlkit==0.13.2 11:40:46 tqdm==4.66.5 11:40:46 typing_extensions==4.12.2 11:40:46 tzdata==2024.2 11:40:46 urllib3==1.26.20 11:40:46 virtualenv==20.27.0 11:40:46 wcwidth==0.2.13 11:40:46 websocket-client==1.8.0 11:40:46 wrapt==1.16.0 11:40:46 xdg==6.0.0 11:40:46 xmltodict==0.14.2 11:40:46 yq==3.4.3 11:40:46 [EnvInject] - Injecting environment variables from a build step. 11:40:46 [EnvInject] - Injecting as environment variables the properties content 11:40:46 PYTHON=python3 11:40:46 11:40:46 [EnvInject] - Variables injected successfully. 11:40:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins18005922925791238514.sh 11:40:46 ---> tox-install.sh 11:40:46 + source /home/jenkins/lf-env.sh 11:40:46 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 11:40:46 ++ mktemp -d /tmp/venv-XXXX 11:40:46 + lf_venv=/tmp/venv-DvtE 11:40:46 + local venv_file=/tmp/.os_lf_venv 11:40:46 + local python=python3 11:40:46 + local options 11:40:46 + local set_path=true 11:40:46 + local install_args= 11:40:46 ++ 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 11:40:46 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 11:40:46 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 11:40:46 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 11:40:46 + true 11:40:46 + case $1 in 11:40:46 + venv_file=/tmp/.toxenv 11:40:46 + shift 2 11:40:46 + true 11:40:46 + case $1 in 11:40:46 + shift 11:40:46 + break 11:40:46 + case $python in 11:40:46 + local pkg_list= 11:40:46 + [[ -d /opt/pyenv ]] 11:40:46 + echo 'Setup pyenv:' 11:40:46 Setup pyenv: 11:40:46 + export PYENV_ROOT=/opt/pyenv 11:40:46 + PYENV_ROOT=/opt/pyenv 11:40:46 + 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 11:40:46 + 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 11:40:46 + pyenv versions 11:40:46 system 11:40:46 3.8.13 11:40:46 3.9.13 11:40:46 3.10.13 11:40:46 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 11:40:46 + command -v pyenv 11:40:46 ++ pyenv init - --no-rehash 11:40:47 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 11:40:47 for i in ${!paths[@]}; do 11:40:47 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 11:40:47 fi; done; 11:40:47 echo "${paths[*]}"'\'')" 11:40:47 export PATH="/opt/pyenv/shims:${PATH}" 11:40:47 export PYENV_SHELL=bash 11:40:47 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 11:40:47 pyenv() { 11:40:47 local command 11:40:47 command="${1:-}" 11:40:47 if [ "$#" -gt 0 ]; then 11:40:47 shift 11:40:47 fi 11:40:47 11:40:47 case "$command" in 11:40:47 rehash|shell) 11:40:47 eval "$(pyenv "sh-$command" "$@")" 11:40:47 ;; 11:40:47 *) 11:40:47 command pyenv "$command" "$@" 11:40:47 ;; 11:40:47 esac 11:40:47 }' 11:40:47 +++ bash --norc -ec 'IFS=:; paths=($PATH); 11:40:47 for i in ${!paths[@]}; do 11:40:47 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 11:40:47 fi; done; 11:40:47 echo "${paths[*]}"' 11:40:47 ++ 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 11:40:47 ++ 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 11:40:47 ++ 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 11:40:47 ++ export PYENV_SHELL=bash 11:40:47 ++ PYENV_SHELL=bash 11:40:47 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 11:40:47 +++ complete -F _pyenv pyenv 11:40:47 ++ lf-pyver python3 11:40:47 ++ local py_version_xy=python3 11:40:47 ++ local py_version_xyz= 11:40:47 ++ pyenv versions 11:40:47 ++ local command 11:40:47 ++ command=versions 11:40:47 ++ '[' 1 -gt 0 ']' 11:40:47 ++ shift 11:40:47 ++ case "$command" in 11:40:47 ++ command pyenv versions 11:40:47 ++ pyenv versions 11:40:47 ++ sed 's/^[ *]* //' 11:40:47 ++ awk '{ print $1 }' 11:40:47 ++ grep -E '^[0-9.]*[0-9]$' 11:40:47 ++ [[ ! -s /tmp/.pyenv_versions ]] 11:40:47 +++ grep '^3' /tmp/.pyenv_versions 11:40:47 +++ sort -V 11:40:47 +++ tail -n 1 11:40:47 ++ py_version_xyz=3.11.7 11:40:47 ++ [[ -z 3.11.7 ]] 11:40:47 ++ echo 3.11.7 11:40:47 ++ return 0 11:40:47 + pyenv local 3.11.7 11:40:47 + local command 11:40:47 + command=local 11:40:47 + '[' 2 -gt 0 ']' 11:40:47 + shift 11:40:47 + case "$command" in 11:40:47 + command pyenv local 3.11.7 11:40:47 + pyenv local 3.11.7 11:40:47 + for arg in "$@" 11:40:47 + case $arg in 11:40:47 + pkg_list+='tox ' 11:40:47 + for arg in "$@" 11:40:47 + case $arg in 11:40:47 + pkg_list+='virtualenv ' 11:40:47 + for arg in "$@" 11:40:47 + case $arg in 11:40:47 + pkg_list+='urllib3~=1.26.15 ' 11:40:47 + [[ -f /tmp/.toxenv ]] 11:40:47 + [[ ! -f /tmp/.toxenv ]] 11:40:47 + [[ -n '' ]] 11:40:47 + python3 -m venv /tmp/venv-DvtE 11:40:51 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-DvtE' 11:40:51 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-DvtE 11:40:51 + echo /tmp/venv-DvtE 11:40:51 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 11:40:51 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 11:40:51 + /tmp/venv-DvtE/bin/python3 -m pip install --upgrade --quiet pip virtualenv 11:40:53 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 11:40:53 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 11:40:53 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 11:40:53 + /tmp/venv-DvtE/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 11:40:56 + type python3 11:40:56 + true 11:40:56 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-DvtE/bin to PATH' 11:40:56 lf-activate-venv(): INFO: Adding /tmp/venv-DvtE/bin to PATH 11:40:56 + PATH=/tmp/venv-DvtE/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 11:40:56 + return 0 11:40:56 + python3 --version 11:40:56 Python 3.11.7 11:40:56 + python3 -m pip --version 11:40:56 pip 24.2 from /tmp/venv-DvtE/lib/python3.11/site-packages/pip (python 3.11) 11:40:56 + python3 -m pip freeze 11:40:57 cachetools==5.5.0 11:40:57 chardet==5.2.0 11:40:57 colorama==0.4.6 11:40:57 distlib==0.3.9 11:40:57 filelock==3.16.1 11:40:57 packaging==24.1 11:40:57 platformdirs==4.3.6 11:40:57 pluggy==1.5.0 11:40:57 pyproject-api==1.8.0 11:40:57 tox==4.23.2 11:40:57 urllib3==1.26.20 11:40:57 virtualenv==20.27.0 11:40:57 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins6261925872275231505.sh 11:40:57 [EnvInject] - Injecting environment variables from a build step. 11:40:57 [EnvInject] - Injecting as environment variables the properties content 11:40:57 PARALLEL=True 11:40:57 11:40:57 [EnvInject] - Variables injected successfully. 11:40:57 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins2314408971946738662.sh 11:40:57 ---> tox-run.sh 11:40:57 + 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 11:40:57 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 11:40:57 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 11:40:57 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 11:40:57 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 11:40:57 + source /home/jenkins/lf-env.sh 11:40:57 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 11:40:57 ++ mktemp -d /tmp/venv-XXXX 11:40:57 + lf_venv=/tmp/venv-aMfc 11:40:57 + local venv_file=/tmp/.os_lf_venv 11:40:57 + local python=python3 11:40:57 + local options 11:40:57 + local set_path=true 11:40:57 + local install_args= 11:40:57 ++ 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 11:40:57 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 11:40:57 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 11:40:57 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 11:40:57 + true 11:40:57 + case $1 in 11:40:57 + venv_file=/tmp/.toxenv 11:40:57 + shift 2 11:40:57 + true 11:40:57 + case $1 in 11:40:57 + shift 11:40:57 + break 11:40:57 + case $python in 11:40:57 + local pkg_list= 11:40:57 + [[ -d /opt/pyenv ]] 11:40:57 + echo 'Setup pyenv:' 11:40:57 Setup pyenv: 11:40:57 + export PYENV_ROOT=/opt/pyenv 11:40:57 + PYENV_ROOT=/opt/pyenv 11:40:57 + 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 11:40:57 + 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 11:40:57 + pyenv versions 11:40:57 system 11:40:57 3.8.13 11:40:57 3.9.13 11:40:57 3.10.13 11:40:57 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 11:40:57 + command -v pyenv 11:40:57 ++ pyenv init - --no-rehash 11:40:57 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 11:40:57 for i in ${!paths[@]}; do 11:40:57 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 11:40:57 fi; done; 11:40:57 echo "${paths[*]}"'\'')" 11:40:57 export PATH="/opt/pyenv/shims:${PATH}" 11:40:57 export PYENV_SHELL=bash 11:40:57 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 11:40:57 pyenv() { 11:40:57 local command 11:40:57 command="${1:-}" 11:40:57 if [ "$#" -gt 0 ]; then 11:40:57 shift 11:40:57 fi 11:40:57 11:40:57 case "$command" in 11:40:57 rehash|shell) 11:40:57 eval "$(pyenv "sh-$command" "$@")" 11:40:57 ;; 11:40:57 *) 11:40:57 command pyenv "$command" "$@" 11:40:57 ;; 11:40:57 esac 11:40:57 }' 11:40:57 +++ bash --norc -ec 'IFS=:; paths=($PATH); 11:40:57 for i in ${!paths[@]}; do 11:40:57 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 11:40:57 fi; done; 11:40:57 echo "${paths[*]}"' 11:40:57 ++ 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 11:40:57 ++ 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 11:40:57 ++ 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 11:40:57 ++ export PYENV_SHELL=bash 11:40:57 ++ PYENV_SHELL=bash 11:40:57 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 11:40:57 +++ complete -F _pyenv pyenv 11:40:57 ++ lf-pyver python3 11:40:57 ++ local py_version_xy=python3 11:40:57 ++ local py_version_xyz= 11:40:57 ++ pyenv versions 11:40:57 ++ local command 11:40:57 ++ command=versions 11:40:57 ++ '[' 1 -gt 0 ']' 11:40:57 ++ shift 11:40:57 ++ case "$command" in 11:40:57 ++ command pyenv versions 11:40:57 ++ pyenv versions 11:40:57 ++ awk '{ print $1 }' 11:40:57 ++ grep -E '^[0-9.]*[0-9]$' 11:40:57 ++ sed 's/^[ *]* //' 11:40:57 ++ [[ ! -s /tmp/.pyenv_versions ]] 11:40:57 +++ grep '^3' /tmp/.pyenv_versions 11:40:57 +++ sort -V 11:40:57 +++ tail -n 1 11:40:57 ++ py_version_xyz=3.11.7 11:40:57 ++ [[ -z 3.11.7 ]] 11:40:57 ++ echo 3.11.7 11:40:57 ++ return 0 11:40:57 + pyenv local 3.11.7 11:40:57 + local command 11:40:57 + command=local 11:40:57 + '[' 2 -gt 0 ']' 11:40:57 + shift 11:40:57 + case "$command" in 11:40:57 + command pyenv local 3.11.7 11:40:57 + pyenv local 3.11.7 11:40:57 + for arg in "$@" 11:40:57 + case $arg in 11:40:57 + pkg_list+='tox ' 11:40:57 + for arg in "$@" 11:40:57 + case $arg in 11:40:57 + pkg_list+='virtualenv ' 11:40:57 + for arg in "$@" 11:40:57 + case $arg in 11:40:57 + pkg_list+='urllib3~=1.26.15 ' 11:40:57 + [[ -f /tmp/.toxenv ]] 11:40:57 ++ cat /tmp/.toxenv 11:40:57 + lf_venv=/tmp/venv-DvtE 11:40:57 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-DvtE from' file:/tmp/.toxenv 11:40:57 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-DvtE from file:/tmp/.toxenv 11:40:57 + /tmp/venv-DvtE/bin/python3 -m pip install --upgrade --quiet pip virtualenv 11:40:58 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 11:40:58 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 11:40:58 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 11:40:58 + /tmp/venv-DvtE/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 11:40:59 + type python3 11:40:59 + true 11:40:59 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-DvtE/bin to PATH' 11:40:59 lf-activate-venv(): INFO: Adding /tmp/venv-DvtE/bin to PATH 11:40:59 + PATH=/tmp/venv-DvtE/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 11:40:59 + return 0 11:40:59 + [[ -d /opt/pyenv ]] 11:40:59 + echo '---> Setting up pyenv' 11:40:59 ---> Setting up pyenv 11:40:59 + export PYENV_ROOT=/opt/pyenv 11:40:59 + PYENV_ROOT=/opt/pyenv 11:40:59 + export PATH=/opt/pyenv/bin:/tmp/venv-DvtE/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 11:40:59 + PATH=/opt/pyenv/bin:/tmp/venv-DvtE/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 11:40:59 ++ pwd 11:40:59 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 11:40:59 + export PYTHONPATH 11:40:59 + export TOX_TESTENV_PASSENV=PYTHONPATH 11:40:59 + TOX_TESTENV_PASSENV=PYTHONPATH 11:40:59 + tox --version 11:40:59 4.23.2 from /tmp/venv-DvtE/lib/python3.11/site-packages/tox/__init__.py 11:40:59 + PARALLEL=True 11:40:59 + TOX_OPTIONS_LIST= 11:40:59 + [[ -n '' ]] 11:40:59 + case ${PARALLEL,,} in 11:40:59 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 11:40:59 + tox --parallel auto --parallel-live 11:40:59 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 11:41:01 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:41:01 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 11:41:01 docs: install_deps> python -I -m pip install -r docs/requirements.txt 11:41:01 checkbashisms: freeze> python -m pip freeze --all 11:41:01 checkbashisms: pip==24.2,setuptools==75.2.0,wheel==0.44.0 11:41:01 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 11:41:01 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 11:41:01 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 11:41:02 script ./reflectwarn.sh does not appear to have a #! interpreter line; 11:41:02 you may get strange results 11:41:03 checkbashisms: OK ✔ in 3.14 seconds 11:41:03 pre-commit: install_deps> python -I -m pip install pre-commit 11:41:06 pre-commit: freeze> python -m pip freeze --all 11:41:06 pre-commit: cfgv==3.4.0,distlib==0.3.9,filelock==3.16.1,identify==2.6.1,nodeenv==1.9.1,pip==24.2,platformdirs==4.3.6,pre_commit==4.0.1,PyYAML==6.0.2,setuptools==75.2.0,virtualenv==20.27.0,wheel==0.44.0 11:41:06 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 11:41:06 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 11:41:06 /usr/bin/cpan 11:41:06 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 11:41:06 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 11:41:06 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 11:41:06 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 11:41:07 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 11:41:07 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 11:41:07 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 11:41:07 buildcontroller: freeze> python -m pip freeze --all 11:41:08 buildcontroller: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 11:41:08 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 11:41:08 + update-java-alternatives -l 11:41:08 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 11:41:08 java-1.12.0-openjdk-amd64 1211 /usr/lib/jvm/java-1.12.0-openjdk-amd64 11:41:08 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 11:41:08 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 11:41:08 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64 11:41:08 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 11:41:08 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 11:41:08 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 11:41:08 + java -version 11:41:08 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 11:41:08 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 11:41:08 + JAVA_VER=21 11:41:08 + echo 21 11:41:08 21 11:41:08 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 11:41:08 + javac -version 11:41:09 21 11:41:09 + JAVAC_VER=21 11:41:09 + echo 21 11:41:09 + [ 21 -ge 21 ] 11:41:09 + [ 21 -ge 21 ] 11:41:09 + echo ok, java is 21 or newer 11:41:09 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz -P /tmp 11:41:09 ok, java is 21 or newer 11:41:09 2024-10-24 11:41:09 URL:https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz [9083702/9083702] -> "/tmp/apache-maven-3.9.8-bin.tar.gz" [1] 11:41:09 + sudo mkdir -p /opt 11:41:09 + sudo tar xf /tmp/apache-maven-3.9.8-bin.tar.gz -C /opt 11:41:09 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 11:41:09 [INFO] Once installed this environment will be reused. 11:41:09 [INFO] This may take a few minutes... 11:41:09 + sudo ln -s /opt/apache-maven-3.9.8 /opt/maven 11:41:09 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 11:41:09 + mvn --version 11:41:10 Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) 11:41:10 Maven home: /opt/maven 11:41:10 Java version: 21.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 11:41:10 Default locale: en, platform encoding: UTF-8 11:41:10 OS name: "linux", version: "5.4.0-190-generic", arch: "amd64", family: "unix" 11:41:10 NOTE: Picked up JDK_JAVA_OPTIONS: 11:41:10 --add-opens=java.base/java.io=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.lang=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.net=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.nio=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.nio.file=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.util=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.util.jar=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.util.stream=ALL-UNNAMED 11:41:10 --add-opens=java.base/java.util.zip=ALL-UNNAMED 11:41:10 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 11:41:10 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 11:41:10 -Xlog:disable 11:41:14 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 11:41:14 [INFO] Once installed this environment will be reused. 11:41:14 [INFO] This may take a few minutes... 11:41:23 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 11:41:23 [INFO] Once installed this environment will be reused. 11:41:23 [INFO] This may take a few minutes... 11:41:27 [INFO] Installing environment for https://github.com/perltidy/perltidy. 11:41:27 [INFO] Once installed this environment will be reused. 11:41:27 [INFO] This may take a few minutes... 11:41:38 docs-linkcheck: freeze> python -m pip freeze --all 11:41:38 docs: freeze> python -m pip freeze --all 11:41:38 trim trailing whitespace.................................................docs-linkcheck: alabaster==1.0.0,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.4.0,contourpy==1.3.0,cycler==0.12.1,docutils==0.21.2,fonttools==4.54.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.10,imagesize==1.4.1,Jinja2==3.1.4,jsonschema==3.2.0,kiwisolver==1.4.7,lfdocs-conf==0.9.0,MarkupSafe==3.0.2,matplotlib==3.9.2,numpy==2.1.2,nwdiag==3.0.0,packaging==24.1,pillow==11.0.0,pip==24.2,Pygments==2.18.0,pyparsing==3.2.0,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==75.2.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==8.1.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.1,sphinx-tabs==3.4.7,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.2.3,webcolors==24.8.0,wheel==0.44.0 11:41:38 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 11:41:38 Passed 11:41:38 Tabs remover.............................................................docs: alabaster==1.0.0,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.4.0,contourpy==1.3.0,cycler==0.12.1,docutils==0.21.2,fonttools==4.54.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.10,imagesize==1.4.1,Jinja2==3.1.4,jsonschema==3.2.0,kiwisolver==1.4.7,lfdocs-conf==0.9.0,MarkupSafe==3.0.2,matplotlib==3.9.2,numpy==2.1.2,nwdiag==3.0.0,packaging==24.1,pillow==11.0.0,pip==24.2,Pygments==2.18.0,pyparsing==3.2.0,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==75.2.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==8.1.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.1,sphinx-tabs==3.4.7,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.2.3,webcolors==24.8.0,wheel==0.44.0 11:41:38 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 11:41:38 Passed 11:41:39 autopep8.................................................................docs: OK ✔ in 42.79 seconds 11:41:42 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 11:41:44 Passed 11:41:44 perltidy.................................................................Passed 11:41:44 docs-linkcheck: OK ✔ in 43.75 seconds 11:41:44 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 11:41:45 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 11:41:45 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 11:41:45 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 11:41:45 [INFO] Once installed this environment will be reused. 11:41:45 [INFO] This may take a few minutes... 11:41:46 pylint: freeze> python -m pip freeze --all 11:41:47 pylint: astroid==3.3.5,dill==0.3.9,isort==5.13.2,mccabe==0.7.0,pip==24.2,platformdirs==4.3.6,pylint==3.3.1,setuptools==75.2.0,tomlkit==0.13.2,wheel==0.44.0 11:41:47 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 11:41:52 gitlint..................................................................Passed 11:42:06 11:42:06 ------------------------------------ 11:42:06 Your code has been rated at 10.00/10 11:42:06 11:42:47 pre-commit: OK ✔ in 49.78 seconds 11:42:47 pylint: OK ✔ in 25.48 seconds 11:42:47 buildcontroller: OK ✔ in 1 minute 47.07 seconds 11:42:47 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:42:47 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:42:47 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:42:47 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:42:54 build_karaf_tests221: freeze> python -m pip freeze --all 11:42:54 build_karaf_tests121: freeze> python -m pip freeze --all 11:42:54 sims: freeze> python -m pip freeze --all 11:42:54 build_karaf_tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 11:42:54 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 11:42:54 NOTE: Picked up JDK_JAVA_OPTIONS: 11:42:54 --add-opens=java.base/java.io=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.lang=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.net=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.nio=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.nio.file=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.util=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.util.jar=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.util.stream=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.util.zip=ALL-UNNAMED 11:42:54 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 11:42:54 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 11:42:54 -Xlog:disable 11:42:54 build_karaf_tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 11:42:54 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 11:42:54 sims: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 11:42:54 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 11:42:54 Using lighynode version 20.1.0.2 11:42:54 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 11:42:54 NOTE: Picked up JDK_JAVA_OPTIONS: 11:42:54 --add-opens=java.base/java.io=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.lang=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.net=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.nio=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.nio.file=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.util=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.util.jar=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.util.stream=ALL-UNNAMED 11:42:54 --add-opens=java.base/java.util.zip=ALL-UNNAMED 11:42:54 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 11:42:54 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 11:42:54 -Xlog:disable 11:42:57 sims: OK ✔ in 10.89 seconds 11:42:57 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:43:13 build_karaf_tests71: freeze> python -m pip freeze --all 11:43:14 build_karaf_tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 11:43:14 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 11:43:14 NOTE: Picked up JDK_JAVA_OPTIONS: 11:43:14 --add-opens=java.base/java.io=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.lang=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.net=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.nio=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.nio.file=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.util=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.util.jar=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.util.stream=ALL-UNNAMED 11:43:14 --add-opens=java.base/java.util.zip=ALL-UNNAMED 11:43:14 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 11:43:14 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 11:43:14 -Xlog:disable 11:43:46 build_karaf_tests221: OK ✔ in 58.34 seconds 11:43:46 build_karaf_tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:43:47 build_karaf_tests121: OK ✔ in 1 minute 0.52 seconds 11:43:47 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:43:55 build_karaf_tests_hybrid: freeze> python -m pip freeze --all 11:43:55 build_karaf_tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 11:43:55 build_karaf_tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 11:43:55 NOTE: Picked up JDK_JAVA_OPTIONS: 11:43:55 --add-opens=java.base/java.io=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.lang=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.net=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.nio=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.nio.file=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.util=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.util.jar=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.util.stream=ALL-UNNAMED 11:43:55 --add-opens=java.base/java.util.zip=ALL-UNNAMED 11:43:55 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 11:43:55 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 11:43:55 -Xlog:disable 11:43:55 tests_tapi: freeze> python -m pip freeze --all 11:43:55 tests_tapi: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 11:43:55 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 11:43:55 using environment variables from ./karaf221.env 11:43:55 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 11:44:34 build_karaf_tests71: OK ✔ in 1 minute 31.41 seconds 11:44:34 testsPCE: freeze> python -m pip freeze --all 11:44:35 testsPCE: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,click==8.1.7,contourpy==1.3.0,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.6,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.54.1,gnpy4tpce==2.4.7,idna==3.10,iniconfig==2.0.0,injector==0.22.0,itsdangerous==2.2.0,Jinja2==3.1.4,kiwisolver==1.4.7,lxml==5.3.0,MarkupSafe==3.0.2,matplotlib==3.9.2,netconf-client==3.1.1,networkx==2.8.8,numpy==1.26.4,packaging==24.1,pandas==1.5.3,paramiko==3.5.0,pbr==5.11.1,pillow==11.0.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pyparsing==3.2.0,pytest==8.3.3,python-dateutil==2.9.0.post0,pytz==2024.2,requests==2.32.3,scipy==1.14.1,setuptools==50.3.2,six==1.16.0,urllib3==2.2.3,Werkzeug==2.0.3,wheel==0.44.0,xlrd==1.2.0 11:44:35 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 11:44:35 pytest -q transportpce_tests/pce/test01_pce.py 11:45:27 ............................................ [100%] 11:46:30 20 passed in 115.37s (0:01:55) 11:46:31 pytest -q transportpce_tests/pce/test02_pce_400G.py 11:46:32 ................. [100%] 11:47:14 9 passed in 42.70s 11:47:14 pytest -q transportpce_tests/pce/test03_gnpy.py 11:47:17 .............. [100%] 11:47:52 8 passed in 38.16s 11:47:52 pytest -q transportpce_tests/pce/test04_pce_bug_fix.py 11:48:01 .............. [100%] 11:48:28 3 passed in 36.14s 11:48:29 build_karaf_tests_hybrid: OK ✔ in 59.12 seconds 11:48:29 testsPCE: OK ✔ in 5 minutes 42.11 seconds 11:48:29 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 11:48:35 tests121: freeze> python -m pip freeze --all 11:48:35 tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 11:48:35 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 11:48:35 using environment variables from ./karaf121.env 11:48:35 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 11:51:01 . [100%] 11:51:05 50 passed in 430.26s (0:07:10) 11:51:06 pytest -q transportpce_tests/tapi/test02_full_topology.py 11:52:07 ................................... [100%] 11:52:57 21 passed in 262.12s (0:04:22) 11:52:57 pytest -q transportpce_tests/1.2.1/test02_topo_portmapping.py 11:53:19 ..................... [100%] 11:58:37 30 passed in 451.53s (0:07:31) 11:58:37 pytest -q transportpce_tests/tapi/test03_tapi_device_change_notifications.py 11:59:38 ... [100%] 11:59:42 6 passed in 405.05s (0:06:45) 11:59:43 pytest -q transportpce_tests/1.2.1/test03_topology.py 11:59:43 .................................................................... [100%] 12:03:11 70 passed in 273.55s (0:04:33) 12:03:11 tests_tapi: OK ✔ in 19 minutes 24.19 seconds 12:03:11 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:03:22 tests71: freeze> python -m pip freeze --all 12:03:22 tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 12:03:22 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 12:03:22 using environment variables from ./karaf71.env 12:03:22 pytest -q transportpce_tests/7.1/test01_portmapping.py 12:03:27 ........................ [100%] 12:04:12 12 passed in 49.29s 12:04:12 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 12:04:37 .............................................................. [100%] 12:06:47 62 passed in 155.23s (0:02:35) 12:06:47 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 12:06:55 ........................................................ [100%] 12:09:04 48 passed in 136.70s (0:02:16) 12:09:04 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 12:09:30 .......................... [100%] 12:10:18 22 passed in 73.11s (0:01:13) 12:10:18 tests71: OK ✔ in 7 minutes 6.65 seconds 12:10:18 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:10:18 tests_network: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:10:19 ...tests_network: freeze> python -m pip freeze --all 12:10:24 tests221: freeze> python -m pip freeze --all 12:10:24 tests_network: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 12:10:24 tests_network: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh network 12:10:24 using environment variables from ./karaf221.env 12:10:24 pytest -q transportpce_tests/network/test01_topo_extension.py 12:10:24 tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 12:10:24 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 12:10:24 using environment variables from ./karaf221.env 12:10:24 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 12:10:25 ................. [100%] 12:11:01 44 passed in 678.56s (0:11:18) 12:11:01 pytest -q transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py 12:11:17 .............................EEEEEEEEEEEEEEEEEE [100%] 12:14:31 ==================================== ERRORS ==================================== 12:14:31 _________ ERROR at setup of TransportPCEtesting.test_01_connect_spdrA __________ 12:14:31 12:14:31 cls = 12:14:31 12:14:31 @classmethod 12:14:31 def setUpClass(cls): 12:14:31 # pylint: disable=unsubscriptable-object 12:14:31 cls.init_failed = False 12:14:31 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:31 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:31 cls.processes = test_utils.start_tpce() 12:14:31 # TAPI feature is not installed by default in Karaf 12:14:31 if 'NO_ODL_STARTUP' not in os.environ or 'USE_LIGHTY' not in os.environ or os.environ['USE_LIGHTY'] != 'True': 12:14:31 print('installing tapi feature...') 12:14:31 result = test_utils.install_karaf_feature('odl-transportpce-tapi') 12:14:31 if result.returncode != 0: 12:14:31 cls.init_failed = True 12:14:31 print('Restarting OpenDaylight...') 12:14:31 test_utils.shutdown_process(cls.processes[0]) 12:14:31 cls.processes[0] = test_utils.start_karaf() 12:14:31 test_utils.process_list[0] = cls.processes[0] 12:14:31 cls.init_failed = not test_utils.wait_until_log_contains( 12:14:31 test_utils.KARAF_LOG, test_utils.KARAF_OK_START_MSG, time_to_wait=60) 12:14:31 if cls.init_failed: 12:14:31 print('tapi installation feature failed...') 12:14:31 test_utils.shutdown_process(cls.processes[0]) 12:14:31 sys.exit(2) 12:14:31 > cls.processes = test_utils.start_sims([('spdra', cls.NODE_VERSION), 12:14:31 ('roadma', cls.NODE_VERSION), 12:14:31 ('roadmc', cls.NODE_VERSION), 12:14:31 ('spdrc', cls.NODE_VERSION)]) 12:14:31 12:14:31 transportpce_tests/network/test01_topo_extension.py:158: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 sims_list = [('spdra', '2.2.1'), ('roadma', '2.2.1'), ('roadmc', '2.2.1'), ('spdrc', '2.2.1')] 12:14:31 12:14:31 def start_sims(sims_list): 12:14:31 if SIMS_TO_USE == 'None': 12:14:31 return None 12:14:31 if SIMS_TO_USE == 'honeynode': 12:14:31 start_msg = HONEYNODE_OK_START_MSG 12:14:31 start_method = start_honeynode 12:14:31 else: 12:14:31 start_msg = LIGHTYNODE_OK_START_MSG 12:14:31 start_method = start_lightynode 12:14:31 for sim in sims_list: 12:14:31 print('starting simulator ' + sim[0] + ' in OpenROADM device version ' + sim[1] + '...') 12:14:31 log_file = os.path.join(SIM_LOG_DIRECTORY, SIMS[sim]['logfile']) 12:14:31 process = start_method(log_file, sim) 12:14:31 if wait_until_log_contains(log_file, start_msg, 100): 12:14:31 print('simulator for ' + sim[0] + ' started') 12:14:31 else: 12:14:31 print('simulator for ' + sim[0] + ' failed to start') 12:14:31 shutdown_process(process) 12:14:31 for pid in process_list: 12:14:31 shutdown_process(pid) 12:14:31 > sys.exit(3) 12:14:31 E SystemExit: 3 12:14:31 12:14:31 transportpce_tests/common/test_utils.py:206: SystemExit 12:14:31 ---------------------------- Captured stdout setup ----------------------------- 12:14:31 starting OpenDaylight... 12:14:31 starting KARAF TransportPCE build... 12:14:31 Searching for pattern 'Transportpce controller started' in karaf.log... Pattern found! OpenDaylight started ! 12:14:31 installing tapi feature... 12:14:31 installing feature odl-transportpce-tapi 12:14:31 client: JAVA_HOME not set; results may vary 12:14:31 odl-transportpce-tapi │ 10.0.0.SNAPSHOT │ x │ Started │ odl-transportpce-tapi │ OpenDaylight :: transportpce :: tapi 12:14:31 Restarting OpenDaylight... 12:14:31 starting KARAF TransportPCE build... 12:14:31 Searching for pattern 'Transportpce controller started' in karaf.log... Pattern found! starting simulator spdra in OpenROADM device version 2.2.1... 12:14:31 Searching for pattern 'Data tree change listeners registered' in spdra-221.log... Pattern found! simulator for spdra started 12:14:31 starting simulator roadma in OpenROADM device version 2.2.1... 12:14:31 Searching for pattern 'Data tree change listeners registered' in roadma-221.log... Pattern not found after 100 seconds! simulator for roadma failed to start 12:14:31 ---------------------------- Captured stderr setup ----------------------------- 12:14:31 SLF4J(W): No SLF4J providers were found. 12:14:31 SLF4J(W): Defaulting to no-operation (NOP) logger implementation 12:14:31 SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details. 12:14:31 SLF4J(W): Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier. 12:14:31 SLF4J(W): Ignoring binding found at [jar:file:/w/workspace/transportpce-tox-verify-transportpce-master/karaf221/target/assembly/system/org/apache/karaf/org.apache.karaf.client/4.4.6/org.apache.karaf.client-4.4.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] 12:14:31 SLF4J(W): See https://www.slf4j.org/codes.html#ignoredBindings for an explanation. 12:14:31 _________ ERROR at setup of TransportPCEtesting.test_02_connect_spdrC __________ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 > return fun(self, *args, **kwargs) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:31 raise raise_from(err, None) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:31 return fun(self) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:31 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:31 return cat(fname, fallback=fallback, _open=open_binary) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:31 with _open(fname) as f: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 fname = '/proc/45001/stat' 12:14:31 12:14:31 def open_binary(fname): 12:14:31 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:31 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 > self._ident = self._get_ident() 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:31 return (self.pid, self.create_time()) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:31 self._create_time = self._proc.create_time() 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:31 return fun(self, *args, **kwargs) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:31 ctime = float(self._parse_stat_file()['create_time']) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 return fun(self, *args, **kwargs) 12:14:31 except PermissionError: 12:14:31 raise AccessDenied(self.pid, self._name) 12:14:31 except ProcessLookupError: 12:14:31 self._raise_if_zombie() 12:14:31 raise NoSuchProcess(self.pid, self._name) 12:14:31 except FileNotFoundError: 12:14:31 self._raise_if_zombie() 12:14:31 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:31 > raise NoSuchProcess(self.pid, self._name) 12:14:31 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 cls = 12:14:31 12:14:31 @classmethod 12:14:31 def setUpClass(cls): 12:14:31 # pylint: disable=unsubscriptable-object 12:14:31 cls.init_failed = False 12:14:31 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:31 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:31 > cls.processes = test_utils.start_tpce() 12:14:31 12:14:31 transportpce_tests/network/test01_topo_extension.py:141: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:31 shutdown_process(pid) 12:14:31 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:31 for child in psutil.Process(process.pid).children(): 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:31 self._init(pid) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 self._ident = self._get_ident() 12:14:31 except AccessDenied: 12:14:31 # This should happen on Windows only, since we use the fast 12:14:31 # create time method. AFAIK, on all other platforms we are 12:14:31 # able to get create time for all PIDs. 12:14:31 pass 12:14:31 except ZombieProcess: 12:14:31 # Zombies can still be queried by this class (although 12:14:31 # not always) and pids() return them so just go on. 12:14:31 pass 12:14:31 except NoSuchProcess: 12:14:31 if not _ignore_nsp: 12:14:31 msg = "process PID not found" 12:14:31 > raise NoSuchProcess(pid, msg=msg) 12:14:31 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:31 ---------------------------- Captured stdout setup ----------------------------- 12:14:31 starting OpenDaylight... 12:14:31 starting KARAF TransportPCE build... 12:14:31 Searching for pattern 'Transportpce controller started' in karaf.log... Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:14:31 __________ ERROR at setup of TransportPCEtesting.test_03_connect_rdmA __________ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 > return fun(self, *args, **kwargs) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:31 raise raise_from(err, None) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:31 return fun(self) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:31 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:31 return cat(fname, fallback=fallback, _open=open_binary) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:31 with _open(fname) as f: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 fname = '/proc/45001/stat' 12:14:31 12:14:31 def open_binary(fname): 12:14:31 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:31 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 > self._ident = self._get_ident() 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:31 return (self.pid, self.create_time()) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:31 self._create_time = self._proc.create_time() 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:31 return fun(self, *args, **kwargs) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:31 ctime = float(self._parse_stat_file()['create_time']) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 return fun(self, *args, **kwargs) 12:14:31 except PermissionError: 12:14:31 raise AccessDenied(self.pid, self._name) 12:14:31 except ProcessLookupError: 12:14:31 self._raise_if_zombie() 12:14:31 raise NoSuchProcess(self.pid, self._name) 12:14:31 except FileNotFoundError: 12:14:31 self._raise_if_zombie() 12:14:31 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:31 > raise NoSuchProcess(self.pid, self._name) 12:14:31 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 cls = 12:14:31 12:14:31 @classmethod 12:14:31 def setUpClass(cls): 12:14:31 # pylint: disable=unsubscriptable-object 12:14:31 cls.init_failed = False 12:14:31 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:31 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:31 > cls.processes = test_utils.start_tpce() 12:14:31 12:14:31 transportpce_tests/network/test01_topo_extension.py:141: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:31 shutdown_process(pid) 12:14:31 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:31 for child in psutil.Process(process.pid).children(): 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:31 self._init(pid) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 self._ident = self._get_ident() 12:14:31 except AccessDenied: 12:14:31 # This should happen on Windows only, since we use the fast 12:14:31 # create time method. AFAIK, on all other platforms we are 12:14:31 # able to get create time for all PIDs. 12:14:31 pass 12:14:31 except ZombieProcess: 12:14:31 # Zombies can still be queried by this class (although 12:14:31 # not always) and pids() return them so just go on. 12:14:31 pass 12:14:31 except NoSuchProcess: 12:14:31 if not _ignore_nsp: 12:14:31 msg = "process PID not found" 12:14:31 > raise NoSuchProcess(pid, msg=msg) 12:14:31 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:31 __________ ERROR at setup of TransportPCEtesting.test_04_connect_rdmC __________ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 > return fun(self, *args, **kwargs) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:31 raise raise_from(err, None) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:31 return fun(self) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:31 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:31 return cat(fname, fallback=fallback, _open=open_binary) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:31 with _open(fname) as f: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 fname = '/proc/45001/stat' 12:14:31 12:14:31 def open_binary(fname): 12:14:31 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:31 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 > self._ident = self._get_ident() 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:31 return (self.pid, self.create_time()) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:31 self._create_time = self._proc.create_time() 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:31 return fun(self, *args, **kwargs) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:31 ctime = float(self._parse_stat_file()['create_time']) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 return fun(self, *args, **kwargs) 12:14:31 except PermissionError: 12:14:31 raise AccessDenied(self.pid, self._name) 12:14:31 except ProcessLookupError: 12:14:31 self._raise_if_zombie() 12:14:31 raise NoSuchProcess(self.pid, self._name) 12:14:31 except FileNotFoundError: 12:14:31 self._raise_if_zombie() 12:14:31 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:31 > raise NoSuchProcess(self.pid, self._name) 12:14:31 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 cls = 12:14:31 12:14:31 @classmethod 12:14:31 def setUpClass(cls): 12:14:31 # pylint: disable=unsubscriptable-object 12:14:31 cls.init_failed = False 12:14:31 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:31 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:31 > cls.processes = test_utils.start_tpce() 12:14:31 12:14:31 transportpce_tests/network/test01_topo_extension.py:141: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:31 shutdown_process(pid) 12:14:31 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:31 for child in psutil.Process(process.pid).children(): 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:31 self._init(pid) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 self._ident = self._get_ident() 12:14:31 except AccessDenied: 12:14:31 # This should happen on Windows only, since we use the fast 12:14:31 # create time method. AFAIK, on all other platforms we are 12:14:31 # able to get create time for all PIDs. 12:14:31 pass 12:14:31 except ZombieProcess: 12:14:31 # Zombies can still be queried by this class (although 12:14:31 # not always) and pids() return them so just go on. 12:14:31 pass 12:14:31 except NoSuchProcess: 12:14:31 if not _ignore_nsp: 12:14:31 msg = "process PID not found" 12:14:31 > raise NoSuchProcess(pid, msg=msg) 12:14:31 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:31 _ ERROR at setup of TransportPCEtesting.test_05_connect_sprdA_1_N1_to_TAPI_EXT_roadmTA1_PP1 _ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 > return fun(self, *args, **kwargs) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:31 raise raise_from(err, None) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:31 return fun(self) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:31 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:31 return cat(fname, fallback=fallback, _open=open_binary) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:31 with _open(fname) as f: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 fname = '/proc/45001/stat' 12:14:31 12:14:31 def open_binary(fname): 12:14:31 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:31 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 > self._ident = self._get_ident() 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:31 return (self.pid, self.create_time()) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:31 self._create_time = self._proc.create_time() 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:31 return fun(self, *args, **kwargs) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:31 ctime = float(self._parse_stat_file()['create_time']) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 return fun(self, *args, **kwargs) 12:14:31 except PermissionError: 12:14:31 raise AccessDenied(self.pid, self._name) 12:14:31 except ProcessLookupError: 12:14:31 self._raise_if_zombie() 12:14:31 raise NoSuchProcess(self.pid, self._name) 12:14:31 except FileNotFoundError: 12:14:31 self._raise_if_zombie() 12:14:31 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:31 > raise NoSuchProcess(self.pid, self._name) 12:14:31 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 cls = 12:14:31 12:14:31 @classmethod 12:14:31 def setUpClass(cls): 12:14:31 # pylint: disable=unsubscriptable-object 12:14:31 cls.init_failed = False 12:14:31 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:31 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:31 > cls.processes = test_utils.start_tpce() 12:14:31 12:14:31 transportpce_tests/network/test01_topo_extension.py:141: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:31 shutdown_process(pid) 12:14:31 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:31 for child in psutil.Process(process.pid).children(): 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:31 self._init(pid) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 self._ident = self._get_ident() 12:14:31 except AccessDenied: 12:14:31 # This should happen on Windows only, since we use the fast 12:14:31 # create time method. AFAIK, on all other platforms we are 12:14:31 # able to get create time for all PIDs. 12:14:31 pass 12:14:31 except ZombieProcess: 12:14:31 # Zombies can still be queried by this class (although 12:14:31 # not always) and pids() return them so just go on. 12:14:31 pass 12:14:31 except NoSuchProcess: 12:14:31 if not _ignore_nsp: 12:14:31 msg = "process PID not found" 12:14:31 > raise NoSuchProcess(pid, msg=msg) 12:14:31 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:31 _ ERROR at setup of TransportPCEtesting.test_06_connect_TAPI_EXT_roadmTA1_PP1_to_spdrA_1_N1 _ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 > return fun(self, *args, **kwargs) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:31 raise raise_from(err, None) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:31 return fun(self) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:31 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:31 return cat(fname, fallback=fallback, _open=open_binary) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:31 with _open(fname) as f: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 fname = '/proc/45001/stat' 12:14:31 12:14:31 def open_binary(fname): 12:14:31 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:31 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 > self._ident = self._get_ident() 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:31 return (self.pid, self.create_time()) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:31 self._create_time = self._proc.create_time() 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:31 return fun(self, *args, **kwargs) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:31 ctime = float(self._parse_stat_file()['create_time']) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 return fun(self, *args, **kwargs) 12:14:31 except PermissionError: 12:14:31 raise AccessDenied(self.pid, self._name) 12:14:31 except ProcessLookupError: 12:14:31 self._raise_if_zombie() 12:14:31 raise NoSuchProcess(self.pid, self._name) 12:14:31 except FileNotFoundError: 12:14:31 self._raise_if_zombie() 12:14:31 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:31 > raise NoSuchProcess(self.pid, self._name) 12:14:31 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 cls = 12:14:31 12:14:31 @classmethod 12:14:31 def setUpClass(cls): 12:14:31 # pylint: disable=unsubscriptable-object 12:14:31 cls.init_failed = False 12:14:31 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:31 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:31 > cls.processes = test_utils.start_tpce() 12:14:31 12:14:31 transportpce_tests/network/test01_topo_extension.py:141: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:31 shutdown_process(pid) 12:14:31 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:31 for child in psutil.Process(process.pid).children(): 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:31 self._init(pid) 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 self._ident = self._get_ident() 12:14:31 except AccessDenied: 12:14:31 # This should happen on Windows only, since we use the fast 12:14:31 # create time method. AFAIK, on all other platforms we are 12:14:31 # able to get create time for all PIDs. 12:14:31 pass 12:14:31 except ZombieProcess: 12:14:31 # Zombies can still be queried by this class (although 12:14:31 # not always) and pids() return them so just go on. 12:14:31 pass 12:14:31 except NoSuchProcess: 12:14:31 if not _ignore_nsp: 12:14:31 msg = "process PID not found" 12:14:31 > raise NoSuchProcess(pid, msg=msg) 12:14:31 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:31 _ ERROR at setup of TransportPCEtesting.test_07_connect_sprdC_1_N1_to_TAPI_EXT_roadmTC1_PP1 _ 12:14:31 12:14:31 self = , args = () 12:14:31 kwargs = {} 12:14:31 12:14:31 @functools.wraps(fun) 12:14:31 def wrapper(self, *args, **kwargs): 12:14:31 try: 12:14:31 > return fun(self, *args, **kwargs) 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:31 raise raise_from(err, None) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:31 return fun(self) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:31 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:31 return cat(fname, fallback=fallback, _open=open_binary) 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:31 with _open(fname) as f: 12:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:31 12:14:31 fname = '/proc/45001/stat' 12:14:31 12:14:31 def open_binary(fname): 12:14:31 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:31 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:31 12:14:31 During handling of the above exception, another exception occurred: 12:14:31 12:14:31 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:31 _ignore_nsp = False 12:14:31 12:14:31 def _init(self, pid, _ignore_nsp=False): 12:14:31 if pid is None: 12:14:31 pid = os.getpid() 12:14:31 else: 12:14:31 if not _PY3 and not isinstance(pid, (int, long)): 12:14:31 msg = "pid must be an integer (got %r)" % pid 12:14:31 raise TypeError(msg) 12:14:31 if pid < 0: 12:14:31 msg = "pid must be a positive integer (got %s)" % pid 12:14:31 raise ValueError(msg) 12:14:31 try: 12:14:31 _psplatform.cext.check_pid_range(pid) 12:14:31 except OverflowError: 12:14:31 msg = "process PID out of range (got %s)" % pid 12:14:31 raise NoSuchProcess(pid, msg=msg) 12:14:31 12:14:31 self._pid = pid 12:14:31 self._name = None 12:14:31 self._exe = None 12:14:31 self._create_time = None 12:14:31 self._gone = False 12:14:31 self._pid_reused = False 12:14:31 self._hash = None 12:14:31 self._lock = threading.RLock() 12:14:31 # used for caching on Windows only (on POSIX ppid may change) 12:14:31 self._ppid = None 12:14:31 # platform-specific modules define an _psplatform.Process 12:14:31 # implementation class 12:14:31 self._proc = _psplatform.Process(pid) 12:14:31 self._last_sys_cpu_times = None 12:14:31 self._last_proc_cpu_times = None 12:14:31 self._exitcode = _SENTINEL 12:14:31 self._ident = (self.pid, None) 12:14:31 try: 12:14:31 > self._ident = self._get_ident() 12:14:31 12:14:31 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 _ ERROR at setup of TransportPCEtesting.test_08_connect_TAPI_EXT_roadmTC1_PP1_to_spdrC_1_N1 _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 _______ ERROR at setup of TransportPCEtesting.test_09_check_otn_topology _______ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 ____ ERROR at setup of TransportPCEtesting.test_10_check_openroadm_topology ____ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 _ ERROR at setup of TransportPCEtesting.test_11_connect_RDMA1_to_TAPI_EXT_roadmTA1 _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 _ ERROR at setup of TransportPCEtesting.test_12_connect_RDMC1_to_TAPI_EXT_roadmTC1 _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 ___ ERROR at setup of TransportPCEtesting.test_13_getLinks_OpenroadmTopology ___ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 ___ ERROR at setup of TransportPCEtesting.test_14_getNodes_OpenRoadmTopology ___ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 ________ ERROR at setup of TransportPCEtesting.test_15_disconnect_spdrA ________ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 ________ ERROR at setup of TransportPCEtesting.test_16_disconnect_spdrC ________ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 _______ ERROR at setup of TransportPCEtesting.test_17_disconnect_roadmA ________ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 _______ ERROR at setup of TransportPCEtesting.test_18_disconnect_roadmC ________ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 > return fun(self, *args, **kwargs) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:508: in wrapper 12:14:32 raise raise_from(err, None) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:506: in wrapper 12:14:32 return fun(self) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1780: in _parse_stat_file 12:14:32 data = bcat("%s/%s/stat" % (self._procfs_path, self.pid)) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:851: in bcat 12:14:32 return cat(fname, fallback=fallback, _open=open_binary) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:839: in cat 12:14:32 with _open(fname) as f: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 fname = '/proc/45001/stat' 12:14:32 12:14:32 def open_binary(fname): 12:14:32 > return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE) 12:14:32 E FileNotFoundError: [Errno 2] No such file or directory: '/proc/45001/stat' 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_common.py:799: FileNotFoundError 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 > self._ident = self._get_ident() 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:355: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:396: in _get_ident 12:14:32 return (self.pid, self.create_time()) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:778: in create_time 12:14:32 self._create_time = self._proc.create_time() 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1717: in wrapper 12:14:32 return fun(self, *args, **kwargs) 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1953: in create_time 12:14:32 ctime = float(self._parse_stat_file()['create_time']) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = , args = () 12:14:32 kwargs = {} 12:14:32 12:14:32 @functools.wraps(fun) 12:14:32 def wrapper(self, *args, **kwargs): 12:14:32 try: 12:14:32 return fun(self, *args, **kwargs) 12:14:32 except PermissionError: 12:14:32 raise AccessDenied(self.pid, self._name) 12:14:32 except ProcessLookupError: 12:14:32 self._raise_if_zombie() 12:14:32 raise NoSuchProcess(self.pid, self._name) 12:14:32 except FileNotFoundError: 12:14:32 self._raise_if_zombie() 12:14:32 if not os.path.exists("%s/%s" % (self._procfs_path, self.pid)): 12:14:32 > raise NoSuchProcess(self.pid, self._name) 12:14:32 E psutil.NoSuchProcess: process no longer exists (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/_pslinux.py:1726: NoSuchProcess 12:14:32 12:14:32 During handling of the above exception, another exception occurred: 12:14:32 12:14:32 cls = 12:14:32 12:14:32 @classmethod 12:14:32 def setUpClass(cls): 12:14:32 # pylint: disable=unsubscriptable-object 12:14:32 cls.init_failed = False 12:14:32 os.environ['JAVA_MIN_MEM'] = '1024M' 12:14:32 os.environ['JAVA_MAX_MEM'] = '4096M' 12:14:32 > cls.processes = test_utils.start_tpce() 12:14:32 12:14:32 transportpce_tests/network/test01_topo_extension.py:141: 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 transportpce_tests/common/test_utils.py:228: in start_tpce 12:14:32 shutdown_process(pid) 12:14:32 transportpce_tests/common/test_utils.py:270: in shutdown_process 12:14:32 for child in psutil.Process(process.pid).children(): 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:319: in __init__ 12:14:32 self._init(pid) 12:14:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:14:32 12:14:32 self = psutil.Process(pid=45001, status='terminated'), pid = 45001 12:14:32 _ignore_nsp = False 12:14:32 12:14:32 def _init(self, pid, _ignore_nsp=False): 12:14:32 if pid is None: 12:14:32 pid = os.getpid() 12:14:32 else: 12:14:32 if not _PY3 and not isinstance(pid, (int, long)): 12:14:32 msg = "pid must be an integer (got %r)" % pid 12:14:32 raise TypeError(msg) 12:14:32 if pid < 0: 12:14:32 msg = "pid must be a positive integer (got %s)" % pid 12:14:32 raise ValueError(msg) 12:14:32 try: 12:14:32 _psplatform.cext.check_pid_range(pid) 12:14:32 except OverflowError: 12:14:32 msg = "process PID out of range (got %s)" % pid 12:14:32 raise NoSuchProcess(pid, msg=msg) 12:14:32 12:14:32 self._pid = pid 12:14:32 self._name = None 12:14:32 self._exe = None 12:14:32 self._create_time = None 12:14:32 self._gone = False 12:14:32 self._pid_reused = False 12:14:32 self._hash = None 12:14:32 self._lock = threading.RLock() 12:14:32 # used for caching on Windows only (on POSIX ppid may change) 12:14:32 self._ppid = None 12:14:32 # platform-specific modules define an _psplatform.Process 12:14:32 # implementation class 12:14:32 self._proc = _psplatform.Process(pid) 12:14:32 self._last_sys_cpu_times = None 12:14:32 self._last_proc_cpu_times = None 12:14:32 self._exitcode = _SENTINEL 12:14:32 self._ident = (self.pid, None) 12:14:32 try: 12:14:32 self._ident = self._get_ident() 12:14:32 except AccessDenied: 12:14:32 # This should happen on Windows only, since we use the fast 12:14:32 # create time method. AFAIK, on all other platforms we are 12:14:32 # able to get create time for all PIDs. 12:14:32 pass 12:14:32 except ZombieProcess: 12:14:32 # Zombies can still be queried by this class (although 12:14:32 # not always) and pids() return them so just go on. 12:14:32 pass 12:14:32 except NoSuchProcess: 12:14:32 if not _ignore_nsp: 12:14:32 msg = "process PID not found" 12:14:32 > raise NoSuchProcess(pid, msg=msg) 12:14:32 E psutil.NoSuchProcess: process PID not found (pid=45001) 12:14:32 12:14:32 ../.tox/tests_network/lib/python3.11/site-packages/psutil/__init__.py:368: NoSuchProcess 12:14:32 =========================== short test summary info ============================ 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_01_connect_spdrA 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_02_connect_spdrC 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_03_connect_rdmA 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_04_connect_rdmC 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_05_connect_sprdA_1_N1_to_TAPI_EXT_roadmTA1_PP1 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_06_connect_TAPI_EXT_roadmTA1_PP1_to_spdrA_1_N1 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_07_connect_sprdC_1_N1_to_TAPI_EXT_roadmTC1_PP1 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_08_connect_TAPI_EXT_roadmTC1_PP1_to_spdrC_1_N1 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_09_check_otn_topology 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_10_check_openroadm_topology 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_11_connect_RDMA1_to_TAPI_EXT_roadmTA1 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_12_connect_RDMC1_to_TAPI_EXT_roadmTC1 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_13_getLinks_OpenroadmTopology 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_14_getNodes_OpenRoadmTopology 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_15_disconnect_spdrA 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_16_disconnect_spdrC 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_17_disconnect_roadmA 12:14:32 ERROR transportpce_tests/network/test01_topo_extension.py::TransportPCEtesting::test_18_disconnect_roadmC 12:14:32 18 errors in 247.39s (0:04:07) 12:14:32 tests_network: exit 1 (247.62 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh network pid=44212 12:14:38 ....... [100%] 12:14:57 35 passed in 272.86s (0:04:32) 12:14:57 pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py 12:15:29 ...... [100%] 12:15:43 6 passed in 45.28s 12:15:43 pytest -q transportpce_tests/2.2.1/test03_topology.py 12:16:25 .....................................F.F.F.F.F.F.F.F.F [100%] 12:18:00 44 passed in 137.27s (0:02:17) 12:18:00 pytest -q transportpce_tests/2.2.1/test04_otn_topology.py 12:18:00 FFFFFFFFFFF............ [100%] 12:18:59 12 passed in 59.06s 12:18:59 pytest -q transportpce_tests/2.2.1/test05_flex_grid.py 12:19:26 ................ [100%] 12:20:55 16 passed in 115.03s (0:01:55) 12:20:55 pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py 12:21:24 .F.............................. [100%] 12:21:30 31 passed in 35.51s 12:21:30 pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py 12:22:06 .......................... [100%] 12:23:02 26 passed in 91.09s (0:01:31) 12:23:02 pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py 12:23:38 ................F. [100%] 12:24:29 =================================== FAILURES =================================== 12:24:29 _____________ TransportPCERendererTesting.test_03_rdm_portmapping ______________ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_03_rdm_portmapping(self): 12:24:29 response = test_utils.get_portmapping_node_attr("ROADMA01", None, None) 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 409 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:58: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_03_rdm_portmapping 12:24:29 _____________ TransportPCERendererTesting.test_04_xpdr_portmapping _____________ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_04_xpdr_portmapping(self): 12:24:29 response = test_utils.get_portmapping_node_attr("XPDRA01", None, None) 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 409 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:72: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_04_xpdr_portmapping 12:24:29 ___________ TransportPCERendererTesting.test_05_service_path_create ____________ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_05_service_path_create(self): 12:24:29 response = test_utils.transportpce_api_rpc_request( 12:24:29 'transportpce-device-renderer', 'service-path', 12:24:29 { 12:24:29 'service-name': 'service_test', 12:24:29 'wave-number': '7', 12:24:29 'modulation-format': 'dp-qpsk', 12:24:29 'operation': 'create', 12:24:29 'nodes': [{'node-id': 'ROADMA01', 'src-tp': 'SRG1-PP7-TXRX', 'dest-tp': 'DEG1-TTP-TXRX'}, 12:24:29 {'node-id': 'XPDRA01', 'src-tp': 'XPDR1-CLIENT1', 'dest-tp': 'XPDR1-NETWORK1'}], 12:24:29 'center-freq': 195.8, 12:24:29 'nmc-width': 40, 12:24:29 'min-freq': 195.775, 12:24:29 'max-freq': 195.825, 12:24:29 'lower-spectral-slot-number': 713, 12:24:29 'higher-spectral-slot-number': 720 12:24:29 }) 12:24:29 self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 > self.assertIn('Interfaces created successfully for nodes: ROADMA01', response['output']['result']) 12:24:29 E AssertionError: 'Interfaces created successfully for nodes: ROADMA01' not found in 'XPDRA01 is not mounted on the controller\nROADMA01 is not mounted on the controller' 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:107: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_05_service_path_create 12:24:29 ______ TransportPCERendererTesting.test_06_service_path_create_rdm_check _______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_06_service_path_create_rdm_check(self): 12:24:29 response = test_utils.check_node_attribute_request("ROADMA01", "interface", "DEG1-TTP-TXRX-713:720") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 503 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:111: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_06_service_path_create_rdm_check 12:24:29 ______ TransportPCERendererTesting.test_07_service_path_create_rdm_check _______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_07_service_path_create_rdm_check(self): 12:24:29 response = test_utils.check_node_attribute_request("ROADMA01", "interface", "SRG1-PP7-TXRX-713:720") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 503 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:127: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_07_service_path_create_rdm_check 12:24:29 ______ TransportPCERendererTesting.test_08_service_path_create_rdm_check _______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_08_service_path_create_rdm_check(self): 12:24:29 response = test_utils.check_node_attribute_request( 12:24:29 "ROADMA01", "roadm-connections", "SRG1-PP7-TXRX-DEG1-TTP-TXRX-713:720") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 503 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:144: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_08_service_path_create_rdm_check 12:24:29 ______ TransportPCERendererTesting.test_09_service_path_create_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_09_service_path_create_xpdr_check(self): 12:24:29 response = test_utils.check_node_attribute_request("XPDRA01", "interface", "XPDR1-NETWORK1-713:720") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 503 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:157: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_09_service_path_create_xpdr_check 12:24:29 ______ TransportPCERendererTesting.test_10_service_path_create_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_10_service_path_create_xpdr_check(self): 12:24:29 response = test_utils.check_node_attribute_request("XPDRA01", "interface", "XPDR1-NETWORK1-OTU") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 503 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:175: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_10_service_path_create_xpdr_check 12:24:29 ______ TransportPCERendererTesting.test_11_service_path_create_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_11_service_path_create_xpdr_check(self): 12:24:29 response = test_utils.check_node_attribute_request("XPDRA01", "interface", "XPDR1-NETWORK1-ODU") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 503 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:192: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_11_service_path_create_xpdr_check 12:24:29 ______ TransportPCERendererTesting.test_12_service_path_create_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 > sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 12:24:29 raise err 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 address = ('localhost', 8182), timeout = 10, source_address = None 12:24:29 socket_options = [(6, 1, 1)] 12:24:29 12:24:29 def create_connection( 12:24:29 address: tuple[str, int], 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 source_address: tuple[str, int] | None = None, 12:24:29 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 12:24:29 ) -> socket.socket: 12:24:29 """Connect to *address* and return the socket object. 12:24:29 12:24:29 Convenience function. Connect to *address* (a 2-tuple ``(host, 12:24:29 port)``) and return the socket object. Passing the optional 12:24:29 *timeout* parameter will set the timeout on the socket instance 12:24:29 before attempting to connect. If no *timeout* is supplied, the 12:24:29 global default timeout setting returned by :func:`socket.getdefaulttimeout` 12:24:29 is used. If *source_address* is set it must be a tuple of (host, port) 12:24:29 for the socket to bind as a source address before making the connection. 12:24:29 An host of '' or port 0 tells the OS to use the default. 12:24:29 """ 12:24:29 12:24:29 host, port = address 12:24:29 if host.startswith("["): 12:24:29 host = host.strip("[]") 12:24:29 err = None 12:24:29 12:24:29 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 12:24:29 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 12:24:29 # The original create_connection function always returns all records. 12:24:29 family = allowed_gai_family() 12:24:29 12:24:29 try: 12:24:29 host.encode("idna") 12:24:29 except UnicodeError: 12:24:29 raise LocationParseError(f"'{host}', label empty or too long") from None 12:24:29 12:24:29 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 12:24:29 af, socktype, proto, canonname, sa = res 12:24:29 sock = None 12:24:29 try: 12:24:29 sock = socket.socket(af, socktype, proto) 12:24:29 12:24:29 # If provided, set socket level options before connecting. 12:24:29 _set_socket_options(sock, socket_options) 12:24:29 12:24:29 if timeout is not _DEFAULT_TIMEOUT: 12:24:29 sock.settimeout(timeout) 12:24:29 if source_address: 12:24:29 sock.bind(source_address) 12:24:29 > sock.connect(sa) 12:24:29 E ConnectionRefusedError: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ETHERNET?content=nonconfig' 12:24:29 body = None 12:24:29 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 12:24:29 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 redirect = False, assert_same_host = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 12:24:29 release_conn = False, chunked = False, body_pos = None, preload_content = False 12:24:29 decode_content = False, response_kw = {} 12:24:29 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topolog.../org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ETHERNET', query='content=nonconfig', fragment=None) 12:24:29 destination_scheme = None, conn = None, release_this_conn = True 12:24:29 http_tunnel_required = False, err = None, clean_exit = False 12:24:29 12:24:29 def urlopen( # type: ignore[override] 12:24:29 self, 12:24:29 method: str, 12:24:29 url: str, 12:24:29 body: _TYPE_BODY | None = None, 12:24:29 headers: typing.Mapping[str, str] | None = None, 12:24:29 retries: Retry | bool | int | None = None, 12:24:29 redirect: bool = True, 12:24:29 assert_same_host: bool = True, 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 pool_timeout: int | None = None, 12:24:29 release_conn: bool | None = None, 12:24:29 chunked: bool = False, 12:24:29 body_pos: _TYPE_BODY_POSITION | None = None, 12:24:29 preload_content: bool = True, 12:24:29 decode_content: bool = True, 12:24:29 **response_kw: typing.Any, 12:24:29 ) -> BaseHTTPResponse: 12:24:29 """ 12:24:29 Get a connection from the pool and perform an HTTP request. This is the 12:24:29 lowest level call for making a request, so you'll need to specify all 12:24:29 the raw details. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 More commonly, it's appropriate to use a convenience method 12:24:29 such as :meth:`request`. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 `release_conn` will only behave as expected if 12:24:29 `preload_content=False` because we want to make 12:24:29 `preload_content=False` the default behaviour someday soon without 12:24:29 breaking backwards compatibility. 12:24:29 12:24:29 :param method: 12:24:29 HTTP request method (such as GET, POST, PUT, etc.) 12:24:29 12:24:29 :param url: 12:24:29 The URL to perform the request on. 12:24:29 12:24:29 :param body: 12:24:29 Data to send in the request body, either :class:`str`, :class:`bytes`, 12:24:29 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 12:24:29 12:24:29 :param headers: 12:24:29 Dictionary of custom headers to send, such as User-Agent, 12:24:29 If-None-Match, etc. If None, pool headers are used. If provided, 12:24:29 these headers completely replace any pool-specific headers. 12:24:29 12:24:29 :param retries: 12:24:29 Configure the number of retries to allow before raising a 12:24:29 :class:`~urllib3.exceptions.MaxRetryError` exception. 12:24:29 12:24:29 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 12:24:29 :class:`~urllib3.util.retry.Retry` object for fine-grained control 12:24:29 over different types of retries. 12:24:29 Pass an integer number to retry connection errors that many times, 12:24:29 but no other types of errors. Pass zero to never retry. 12:24:29 12:24:29 If ``False``, then retries are disabled and any exception is raised 12:24:29 immediately. Also, instead of raising a MaxRetryError on redirects, 12:24:29 the redirect response will be returned. 12:24:29 12:24:29 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 12:24:29 12:24:29 :param redirect: 12:24:29 If True, automatically handle redirects (status codes 301, 302, 12:24:29 303, 307, 308). Each redirect counts as a retry. Disabling retries 12:24:29 will disable redirect, too. 12:24:29 12:24:29 :param assert_same_host: 12:24:29 If ``True``, will make sure that the host of the pool requests is 12:24:29 consistent else will raise HostChangedError. When ``False``, you can 12:24:29 use the pool on an HTTP proxy and request foreign hosts. 12:24:29 12:24:29 :param timeout: 12:24:29 If specified, overrides the default timeout for this one 12:24:29 request. It may be a float (in seconds) or an instance of 12:24:29 :class:`urllib3.util.Timeout`. 12:24:29 12:24:29 :param pool_timeout: 12:24:29 If set and the pool is set to block=True, then this method will 12:24:29 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 12:24:29 connection is available within the time period. 12:24:29 12:24:29 :param bool preload_content: 12:24:29 If True, the response's body will be preloaded into memory. 12:24:29 12:24:29 :param bool decode_content: 12:24:29 If True, will attempt to decode the body based on the 12:24:29 'content-encoding' header. 12:24:29 12:24:29 :param release_conn: 12:24:29 If False, then the urlopen call will not release the connection 12:24:29 back into the pool once a response is received (but will release if 12:24:29 you read the entire contents of the response such as when 12:24:29 `preload_content=True`). This is useful if you're not preloading 12:24:29 the response's content immediately. You will need to call 12:24:29 ``r.release_conn()`` on the response ``r`` to return the connection 12:24:29 back into the pool. If None, it takes the value of ``preload_content`` 12:24:29 which defaults to ``True``. 12:24:29 12:24:29 :param bool chunked: 12:24:29 If True, urllib3 will send the body using chunked transfer 12:24:29 encoding. Otherwise, urllib3 will send the body using the standard 12:24:29 content-length form. Defaults to False. 12:24:29 12:24:29 :param int body_pos: 12:24:29 Position to seek to in file-like body in the event of a retry or 12:24:29 redirect. Typically this won't need to be set because urllib3 will 12:24:29 auto-populate the value when needed. 12:24:29 """ 12:24:29 parsed_url = parse_url(url) 12:24:29 destination_scheme = parsed_url.scheme 12:24:29 12:24:29 if headers is None: 12:24:29 headers = self.headers 12:24:29 12:24:29 if not isinstance(retries, Retry): 12:24:29 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 12:24:29 12:24:29 if release_conn is None: 12:24:29 release_conn = preload_content 12:24:29 12:24:29 # Check host 12:24:29 if assert_same_host and not self.is_same_host(url): 12:24:29 raise HostChangedError(self, url, retries) 12:24:29 12:24:29 # Ensure that the URL we're connecting to is properly encoded 12:24:29 if url.startswith("/"): 12:24:29 url = to_str(_encode_target(url)) 12:24:29 else: 12:24:29 url = to_str(parsed_url.url) 12:24:29 12:24:29 conn = None 12:24:29 12:24:29 # Track whether `conn` needs to be released before 12:24:29 # returning/raising/recursing. Update this variable if necessary, and 12:24:29 # leave `release_conn` constant throughout the function. That way, if 12:24:29 # the function recurses, the original value of `release_conn` will be 12:24:29 # passed down into the recursive call, and its value will be respected. 12:24:29 # 12:24:29 # See issue #651 [1] for details. 12:24:29 # 12:24:29 # [1] 12:24:29 release_this_conn = release_conn 12:24:29 12:24:29 http_tunnel_required = connection_requires_http_tunnel( 12:24:29 self.proxy, self.proxy_config, destination_scheme 12:24:29 ) 12:24:29 12:24:29 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 12:24:29 # have to copy the headers dict so we can safely change it without those 12:24:29 # changes being reflected in anyone else's copy. 12:24:29 if not http_tunnel_required: 12:24:29 headers = headers.copy() # type: ignore[attr-defined] 12:24:29 headers.update(self.proxy_headers) # type: ignore[union-attr] 12:24:29 12:24:29 # Must keep the exception bound to a separate variable or else Python 3 12:24:29 # complains about UnboundLocalError. 12:24:29 err = None 12:24:29 12:24:29 # Keep track of whether we cleanly exited the except block. This 12:24:29 # ensures we do proper cleanup in finally. 12:24:29 clean_exit = False 12:24:29 12:24:29 # Rewind body position, if needed. Record current position 12:24:29 # for future rewinds in the event of a redirect/retry. 12:24:29 body_pos = set_file_position(body, body_pos) 12:24:29 12:24:29 try: 12:24:29 # Request a connection from the queue. 12:24:29 timeout_obj = self._get_timeout(timeout) 12:24:29 conn = self._get_conn(timeout=pool_timeout) 12:24:29 12:24:29 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 12:24:29 12:24:29 # Is this a closed/new connection that requires CONNECT tunnelling? 12:24:29 if self.proxy is not None and http_tunnel_required and conn.is_closed: 12:24:29 try: 12:24:29 self._prepare_proxy(conn) 12:24:29 except (BaseSSLError, OSError, SocketTimeout) as e: 12:24:29 self._raise_timeout( 12:24:29 err=e, url=self.proxy.url, timeout_value=conn.timeout 12:24:29 ) 12:24:29 raise 12:24:29 12:24:29 # If we're going to release the connection in ``finally:``, then 12:24:29 # the response doesn't need to know about the connection. Otherwise 12:24:29 # it will also try to release it and we'll have a double-release 12:24:29 # mess. 12:24:29 response_conn = conn if not release_conn else None 12:24:29 12:24:29 # Make the request on the HTTPConnection object 12:24:29 > response = self._make_request( 12:24:29 conn, 12:24:29 method, 12:24:29 url, 12:24:29 timeout=timeout_obj, 12:24:29 body=body, 12:24:29 headers=headers, 12:24:29 chunked=chunked, 12:24:29 retries=retries, 12:24:29 response_conn=response_conn, 12:24:29 preload_content=preload_content, 12:24:29 decode_content=decode_content, 12:24:29 **response_kw, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 12:24:29 conn.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 12:24:29 self.endheaders() 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 12:24:29 self._send_output(message_body, encode_chunked=encode_chunked) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 12:24:29 self.send(msg) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 12:24:29 self.connect() 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 12:24:29 self.sock = self._new_conn() 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 except socket.gaierror as e: 12:24:29 raise NameResolutionError(self.host, self, e) from e 12:24:29 except SocketTimeout as e: 12:24:29 raise ConnectTimeoutError( 12:24:29 self, 12:24:29 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 12:24:29 ) from e 12:24:29 12:24:29 except OSError as e: 12:24:29 > raise NewConnectionError( 12:24:29 self, f"Failed to establish a new connection: {e}" 12:24:29 ) from e 12:24:29 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 > resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 12:24:29 retries = retries.increment( 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ETHERNET?content=nonconfig' 12:24:29 response = None 12:24:29 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 12:24:29 _pool = 12:24:29 _stacktrace = 12:24:29 12:24:29 def increment( 12:24:29 self, 12:24:29 method: str | None = None, 12:24:29 url: str | None = None, 12:24:29 response: BaseHTTPResponse | None = None, 12:24:29 error: Exception | None = None, 12:24:29 _pool: ConnectionPool | None = None, 12:24:29 _stacktrace: TracebackType | None = None, 12:24:29 ) -> Self: 12:24:29 """Return a new Retry object with incremented retry counters. 12:24:29 12:24:29 :param response: A response object, or None, if the server did not 12:24:29 return a response. 12:24:29 :type response: :class:`~urllib3.response.BaseHTTPResponse` 12:24:29 :param Exception error: An error encountered during the request, or 12:24:29 None if the response was received successfully. 12:24:29 12:24:29 :return: A new ``Retry`` object. 12:24:29 """ 12:24:29 if self.total is False and error: 12:24:29 # Disabled, indicate to re-raise the error. 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 12:24:29 total = self.total 12:24:29 if total is not None: 12:24:29 total -= 1 12:24:29 12:24:29 connect = self.connect 12:24:29 read = self.read 12:24:29 redirect = self.redirect 12:24:29 status_count = self.status 12:24:29 other = self.other 12:24:29 cause = "unknown" 12:24:29 status = None 12:24:29 redirect_location = None 12:24:29 12:24:29 if error and self._is_connection_error(error): 12:24:29 # Connect retry? 12:24:29 if connect is False: 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif connect is not None: 12:24:29 connect -= 1 12:24:29 12:24:29 elif error and self._is_read_error(error): 12:24:29 # Read retry? 12:24:29 if read is False or method is None or not self._is_method_retryable(method): 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif read is not None: 12:24:29 read -= 1 12:24:29 12:24:29 elif error: 12:24:29 # Other retry? 12:24:29 if other is not None: 12:24:29 other -= 1 12:24:29 12:24:29 elif response and response.get_redirect_location(): 12:24:29 # Redirect retry? 12:24:29 if redirect is not None: 12:24:29 redirect -= 1 12:24:29 cause = "too many redirects" 12:24:29 response_redirect_location = response.get_redirect_location() 12:24:29 if response_redirect_location: 12:24:29 redirect_location = response_redirect_location 12:24:29 status = response.status 12:24:29 12:24:29 else: 12:24:29 # Incrementing because of a server error like a 500 in 12:24:29 # status_forcelist and the given method is in the allowed_methods 12:24:29 cause = ResponseError.GENERIC_ERROR 12:24:29 if response and response.status: 12:24:29 if status_count is not None: 12:24:29 status_count -= 1 12:24:29 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 12:24:29 status = response.status 12:24:29 12:24:29 history = self.history + ( 12:24:29 RequestHistory(method, url, error, status, redirect_location), 12:24:29 ) 12:24:29 12:24:29 new_retry = self.new( 12:24:29 total=total, 12:24:29 connect=connect, 12:24:29 read=read, 12:24:29 redirect=redirect, 12:24:29 status=status_count, 12:24:29 other=other, 12:24:29 history=history, 12:24:29 ) 12:24:29 12:24:29 if new_retry.is_exhausted(): 12:24:29 reason = error or ResponseError(cause) 12:24:29 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 12:24:29 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ETHERNET?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 12:24:29 12:24:29 During handling of the above exception, another exception occurred: 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_12_service_path_create_xpdr_check(self): 12:24:29 > response = test_utils.check_node_attribute_request("XPDRA01", "interface", "XPDR1-CLIENT1-ETHERNET") 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:214: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 transportpce_tests/common/test_utils.py:401: in check_node_attribute_request 12:24:29 response = get_request(url[RESTCONF_VERSION].format('{}', node, attribute, attribute_value)) 12:24:29 transportpce_tests/common/test_utils.py:116: in get_request 12:24:29 return requests.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 12:24:29 return session.request(method=method, url=url, **kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 12:24:29 resp = self.send(prep, **send_kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 12:24:29 r = adapter.send(request, **kwargs) 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 except (ProtocolError, OSError) as err: 12:24:29 raise ConnectionError(err, request=request) 12:24:29 12:24:29 except MaxRetryError as e: 12:24:29 if isinstance(e.reason, ConnectTimeoutError): 12:24:29 # TODO: Remove this in 3.0.0: see #2811 12:24:29 if not isinstance(e.reason, NewConnectionError): 12:24:29 raise ConnectTimeout(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, ResponseError): 12:24:29 raise RetryError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _ProxyError): 12:24:29 raise ProxyError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _SSLError): 12:24:29 # This branch is for urllib3 v1.22 and later. 12:24:29 raise SSLError(e, request=request) 12:24:29 12:24:29 > raise ConnectionError(e, request=request) 12:24:29 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ETHERNET?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_12_service_path_create_xpdr_check 12:24:29 ______ TransportPCERendererTesting.test_13_service_path_create_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 > sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 12:24:29 raise err 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 address = ('localhost', 8182), timeout = 10, source_address = None 12:24:29 socket_options = [(6, 1, 1)] 12:24:29 12:24:29 def create_connection( 12:24:29 address: tuple[str, int], 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 source_address: tuple[str, int] | None = None, 12:24:29 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 12:24:29 ) -> socket.socket: 12:24:29 """Connect to *address* and return the socket object. 12:24:29 12:24:29 Convenience function. Connect to *address* (a 2-tuple ``(host, 12:24:29 port)``) and return the socket object. Passing the optional 12:24:29 *timeout* parameter will set the timeout on the socket instance 12:24:29 before attempting to connect. If no *timeout* is supplied, the 12:24:29 global default timeout setting returned by :func:`socket.getdefaulttimeout` 12:24:29 is used. If *source_address* is set it must be a tuple of (host, port) 12:24:29 for the socket to bind as a source address before making the connection. 12:24:29 An host of '' or port 0 tells the OS to use the default. 12:24:29 """ 12:24:29 12:24:29 host, port = address 12:24:29 if host.startswith("["): 12:24:29 host = host.strip("[]") 12:24:29 err = None 12:24:29 12:24:29 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 12:24:29 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 12:24:29 # The original create_connection function always returns all records. 12:24:29 family = allowed_gai_family() 12:24:29 12:24:29 try: 12:24:29 host.encode("idna") 12:24:29 except UnicodeError: 12:24:29 raise LocationParseError(f"'{host}', label empty or too long") from None 12:24:29 12:24:29 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 12:24:29 af, socktype, proto, canonname, sa = res 12:24:29 sock = None 12:24:29 try: 12:24:29 sock = socket.socket(af, socktype, proto) 12:24:29 12:24:29 # If provided, set socket level options before connecting. 12:24:29 _set_socket_options(sock, socket_options) 12:24:29 12:24:29 if timeout is not _DEFAULT_TIMEOUT: 12:24:29 sock.settimeout(timeout) 12:24:29 if source_address: 12:24:29 sock.bind(source_address) 12:24:29 > sock.connect(sa) 12:24:29 E ConnectionRefusedError: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/circuit-packs=1%2F0%2F1-PLUG-NET?content=nonconfig' 12:24:29 body = None 12:24:29 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 12:24:29 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 redirect = False, assert_same_host = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 12:24:29 release_conn = False, chunked = False, body_pos = None, preload_content = False 12:24:29 decode_content = False, response_kw = {} 12:24:29 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topolog.../org-openroadm-device:org-openroadm-device/circuit-packs=1%2F0%2F1-PLUG-NET', query='content=nonconfig', fragment=None) 12:24:29 destination_scheme = None, conn = None, release_this_conn = True 12:24:29 http_tunnel_required = False, err = None, clean_exit = False 12:24:29 12:24:29 def urlopen( # type: ignore[override] 12:24:29 self, 12:24:29 method: str, 12:24:29 url: str, 12:24:29 body: _TYPE_BODY | None = None, 12:24:29 headers: typing.Mapping[str, str] | None = None, 12:24:29 retries: Retry | bool | int | None = None, 12:24:29 redirect: bool = True, 12:24:29 assert_same_host: bool = True, 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 pool_timeout: int | None = None, 12:24:29 release_conn: bool | None = None, 12:24:29 chunked: bool = False, 12:24:29 body_pos: _TYPE_BODY_POSITION | None = None, 12:24:29 preload_content: bool = True, 12:24:29 decode_content: bool = True, 12:24:29 **response_kw: typing.Any, 12:24:29 ) -> BaseHTTPResponse: 12:24:29 """ 12:24:29 Get a connection from the pool and perform an HTTP request. This is the 12:24:29 lowest level call for making a request, so you'll need to specify all 12:24:29 the raw details. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 More commonly, it's appropriate to use a convenience method 12:24:29 such as :meth:`request`. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 `release_conn` will only behave as expected if 12:24:29 `preload_content=False` because we want to make 12:24:29 `preload_content=False` the default behaviour someday soon without 12:24:29 breaking backwards compatibility. 12:24:29 12:24:29 :param method: 12:24:29 HTTP request method (such as GET, POST, PUT, etc.) 12:24:29 12:24:29 :param url: 12:24:29 The URL to perform the request on. 12:24:29 12:24:29 :param body: 12:24:29 Data to send in the request body, either :class:`str`, :class:`bytes`, 12:24:29 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 12:24:29 12:24:29 :param headers: 12:24:29 Dictionary of custom headers to send, such as User-Agent, 12:24:29 If-None-Match, etc. If None, pool headers are used. If provided, 12:24:29 these headers completely replace any pool-specific headers. 12:24:29 12:24:29 :param retries: 12:24:29 Configure the number of retries to allow before raising a 12:24:29 :class:`~urllib3.exceptions.MaxRetryError` exception. 12:24:29 12:24:29 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 12:24:29 :class:`~urllib3.util.retry.Retry` object for fine-grained control 12:24:29 over different types of retries. 12:24:29 Pass an integer number to retry connection errors that many times, 12:24:29 but no other types of errors. Pass zero to never retry. 12:24:29 12:24:29 If ``False``, then retries are disabled and any exception is raised 12:24:29 immediately. Also, instead of raising a MaxRetryError on redirects, 12:24:29 the redirect response will be returned. 12:24:29 12:24:29 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 12:24:29 12:24:29 :param redirect: 12:24:29 If True, automatically handle redirects (status codes 301, 302, 12:24:29 303, 307, 308). Each redirect counts as a retry. Disabling retries 12:24:29 will disable redirect, too. 12:24:29 12:24:29 :param assert_same_host: 12:24:29 If ``True``, will make sure that the host of the pool requests is 12:24:29 consistent else will raise HostChangedError. When ``False``, you can 12:24:29 use the pool on an HTTP proxy and request foreign hosts. 12:24:29 12:24:29 :param timeout: 12:24:29 If specified, overrides the default timeout for this one 12:24:29 request. It may be a float (in seconds) or an instance of 12:24:29 :class:`urllib3.util.Timeout`. 12:24:29 12:24:29 :param pool_timeout: 12:24:29 If set and the pool is set to block=True, then this method will 12:24:29 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 12:24:29 connection is available within the time period. 12:24:29 12:24:29 :param bool preload_content: 12:24:29 If True, the response's body will be preloaded into memory. 12:24:29 12:24:29 :param bool decode_content: 12:24:29 If True, will attempt to decode the body based on the 12:24:29 'content-encoding' header. 12:24:29 12:24:29 :param release_conn: 12:24:29 If False, then the urlopen call will not release the connection 12:24:29 back into the pool once a response is received (but will release if 12:24:29 you read the entire contents of the response such as when 12:24:29 `preload_content=True`). This is useful if you're not preloading 12:24:29 the response's content immediately. You will need to call 12:24:29 ``r.release_conn()`` on the response ``r`` to return the connection 12:24:29 back into the pool. If None, it takes the value of ``preload_content`` 12:24:29 which defaults to ``True``. 12:24:29 12:24:29 :param bool chunked: 12:24:29 If True, urllib3 will send the body using chunked transfer 12:24:29 encoding. Otherwise, urllib3 will send the body using the standard 12:24:29 content-length form. Defaults to False. 12:24:29 12:24:29 :param int body_pos: 12:24:29 Position to seek to in file-like body in the event of a retry or 12:24:29 redirect. Typically this won't need to be set because urllib3 will 12:24:29 auto-populate the value when needed. 12:24:29 """ 12:24:29 parsed_url = parse_url(url) 12:24:29 destination_scheme = parsed_url.scheme 12:24:29 12:24:29 if headers is None: 12:24:29 headers = self.headers 12:24:29 12:24:29 if not isinstance(retries, Retry): 12:24:29 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 12:24:29 12:24:29 if release_conn is None: 12:24:29 release_conn = preload_content 12:24:29 12:24:29 # Check host 12:24:29 if assert_same_host and not self.is_same_host(url): 12:24:29 raise HostChangedError(self, url, retries) 12:24:29 12:24:29 # Ensure that the URL we're connecting to is properly encoded 12:24:29 if url.startswith("/"): 12:24:29 url = to_str(_encode_target(url)) 12:24:29 else: 12:24:29 url = to_str(parsed_url.url) 12:24:29 12:24:29 conn = None 12:24:29 12:24:29 # Track whether `conn` needs to be released before 12:24:29 # returning/raising/recursing. Update this variable if necessary, and 12:24:29 # leave `release_conn` constant throughout the function. That way, if 12:24:29 # the function recurses, the original value of `release_conn` will be 12:24:29 # passed down into the recursive call, and its value will be respected. 12:24:29 # 12:24:29 # See issue #651 [1] for details. 12:24:29 # 12:24:29 # [1] 12:24:29 release_this_conn = release_conn 12:24:29 12:24:29 http_tunnel_required = connection_requires_http_tunnel( 12:24:29 self.proxy, self.proxy_config, destination_scheme 12:24:29 ) 12:24:29 12:24:29 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 12:24:29 # have to copy the headers dict so we can safely change it without those 12:24:29 # changes being reflected in anyone else's copy. 12:24:29 if not http_tunnel_required: 12:24:29 headers = headers.copy() # type: ignore[attr-defined] 12:24:29 headers.update(self.proxy_headers) # type: ignore[union-attr] 12:24:29 12:24:29 # Must keep the exception bound to a separate variable or else Python 3 12:24:29 # complains about UnboundLocalError. 12:24:29 err = None 12:24:29 12:24:29 # Keep track of whether we cleanly exited the except block. This 12:24:29 # ensures we do proper cleanup in finally. 12:24:29 clean_exit = False 12:24:29 12:24:29 # Rewind body position, if needed. Record current position 12:24:29 # for future rewinds in the event of a redirect/retry. 12:24:29 body_pos = set_file_position(body, body_pos) 12:24:29 12:24:29 try: 12:24:29 # Request a connection from the queue. 12:24:29 timeout_obj = self._get_timeout(timeout) 12:24:29 conn = self._get_conn(timeout=pool_timeout) 12:24:29 12:24:29 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 12:24:29 12:24:29 # Is this a closed/new connection that requires CONNECT tunnelling? 12:24:29 if self.proxy is not None and http_tunnel_required and conn.is_closed: 12:24:29 try: 12:24:29 self._prepare_proxy(conn) 12:24:29 except (BaseSSLError, OSError, SocketTimeout) as e: 12:24:29 self._raise_timeout( 12:24:29 err=e, url=self.proxy.url, timeout_value=conn.timeout 12:24:29 ) 12:24:29 raise 12:24:29 12:24:29 # If we're going to release the connection in ``finally:``, then 12:24:29 # the response doesn't need to know about the connection. Otherwise 12:24:29 # it will also try to release it and we'll have a double-release 12:24:29 # mess. 12:24:29 response_conn = conn if not release_conn else None 12:24:29 12:24:29 # Make the request on the HTTPConnection object 12:24:29 > response = self._make_request( 12:24:29 conn, 12:24:29 method, 12:24:29 url, 12:24:29 timeout=timeout_obj, 12:24:29 body=body, 12:24:29 headers=headers, 12:24:29 chunked=chunked, 12:24:29 retries=retries, 12:24:29 response_conn=response_conn, 12:24:29 preload_content=preload_content, 12:24:29 decode_content=decode_content, 12:24:29 **response_kw, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 12:24:29 conn.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 12:24:29 self.endheaders() 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 12:24:29 self._send_output(message_body, encode_chunked=encode_chunked) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 12:24:29 self.send(msg) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 12:24:29 self.connect() 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 12:24:29 self.sock = self._new_conn() 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 except socket.gaierror as e: 12:24:29 raise NameResolutionError(self.host, self, e) from e 12:24:29 except SocketTimeout as e: 12:24:29 raise ConnectTimeoutError( 12:24:29 self, 12:24:29 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 12:24:29 ) from e 12:24:29 12:24:29 except OSError as e: 12:24:29 > raise NewConnectionError( 12:24:29 self, f"Failed to establish a new connection: {e}" 12:24:29 ) from e 12:24:29 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 > resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 12:24:29 retries = retries.increment( 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/circuit-packs=1%2F0%2F1-PLUG-NET?content=nonconfig' 12:24:29 response = None 12:24:29 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 12:24:29 _pool = 12:24:29 _stacktrace = 12:24:29 12:24:29 def increment( 12:24:29 self, 12:24:29 method: str | None = None, 12:24:29 url: str | None = None, 12:24:29 response: BaseHTTPResponse | None = None, 12:24:29 error: Exception | None = None, 12:24:29 _pool: ConnectionPool | None = None, 12:24:29 _stacktrace: TracebackType | None = None, 12:24:29 ) -> Self: 12:24:29 """Return a new Retry object with incremented retry counters. 12:24:29 12:24:29 :param response: A response object, or None, if the server did not 12:24:29 return a response. 12:24:29 :type response: :class:`~urllib3.response.BaseHTTPResponse` 12:24:29 :param Exception error: An error encountered during the request, or 12:24:29 None if the response was received successfully. 12:24:29 12:24:29 :return: A new ``Retry`` object. 12:24:29 """ 12:24:29 if self.total is False and error: 12:24:29 # Disabled, indicate to re-raise the error. 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 12:24:29 total = self.total 12:24:29 if total is not None: 12:24:29 total -= 1 12:24:29 12:24:29 connect = self.connect 12:24:29 read = self.read 12:24:29 redirect = self.redirect 12:24:29 status_count = self.status 12:24:29 other = self.other 12:24:29 cause = "unknown" 12:24:29 status = None 12:24:29 redirect_location = None 12:24:29 12:24:29 if error and self._is_connection_error(error): 12:24:29 # Connect retry? 12:24:29 if connect is False: 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif connect is not None: 12:24:29 connect -= 1 12:24:29 12:24:29 elif error and self._is_read_error(error): 12:24:29 # Read retry? 12:24:29 if read is False or method is None or not self._is_method_retryable(method): 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif read is not None: 12:24:29 read -= 1 12:24:29 12:24:29 elif error: 12:24:29 # Other retry? 12:24:29 if other is not None: 12:24:29 other -= 1 12:24:29 12:24:29 elif response and response.get_redirect_location(): 12:24:29 # Redirect retry? 12:24:29 if redirect is not None: 12:24:29 redirect -= 1 12:24:29 cause = "too many redirects" 12:24:29 response_redirect_location = response.get_redirect_location() 12:24:29 if response_redirect_location: 12:24:29 redirect_location = response_redirect_location 12:24:29 status = response.status 12:24:29 12:24:29 else: 12:24:29 # Incrementing because of a server error like a 500 in 12:24:29 # status_forcelist and the given method is in the allowed_methods 12:24:29 cause = ResponseError.GENERIC_ERROR 12:24:29 if response and response.status: 12:24:29 if status_count is not None: 12:24:29 status_count -= 1 12:24:29 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 12:24:29 status = response.status 12:24:29 12:24:29 history = self.history + ( 12:24:29 RequestHistory(method, url, error, status, redirect_location), 12:24:29 ) 12:24:29 12:24:29 new_retry = self.new( 12:24:29 total=total, 12:24:29 connect=connect, 12:24:29 read=read, 12:24:29 redirect=redirect, 12:24:29 status=status_count, 12:24:29 other=other, 12:24:29 history=history, 12:24:29 ) 12:24:29 12:24:29 if new_retry.is_exhausted(): 12:24:29 reason = error or ResponseError(cause) 12:24:29 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 12:24:29 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/circuit-packs=1%2F0%2F1-PLUG-NET?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 12:24:29 12:24:29 During handling of the above exception, another exception occurred: 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_13_service_path_create_xpdr_check(self): 12:24:29 > response = test_utils.check_node_attribute_request("XPDRA01", "circuit-packs", "1%2F0%2F1-PLUG-NET") 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:234: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 transportpce_tests/common/test_utils.py:401: in check_node_attribute_request 12:24:29 response = get_request(url[RESTCONF_VERSION].format('{}', node, attribute, attribute_value)) 12:24:29 transportpce_tests/common/test_utils.py:116: in get_request 12:24:29 return requests.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 12:24:29 return session.request(method=method, url=url, **kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 12:24:29 resp = self.send(prep, **send_kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 12:24:29 r = adapter.send(request, **kwargs) 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 except (ProtocolError, OSError) as err: 12:24:29 raise ConnectionError(err, request=request) 12:24:29 12:24:29 except MaxRetryError as e: 12:24:29 if isinstance(e.reason, ConnectTimeoutError): 12:24:29 # TODO: Remove this in 3.0.0: see #2811 12:24:29 if not isinstance(e.reason, NewConnectionError): 12:24:29 raise ConnectTimeout(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, ResponseError): 12:24:29 raise RetryError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _ProxyError): 12:24:29 raise ProxyError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _SSLError): 12:24:29 # This branch is for urllib3 v1.22 and later. 12:24:29 raise SSLError(e, request=request) 12:24:29 12:24:29 > raise ConnectionError(e, request=request) 12:24:29 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/circuit-packs=1%2F0%2F1-PLUG-NET?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_13_service_path_create_xpdr_check 12:24:29 ___________ TransportPCERendererTesting.test_14_service_path_delete ____________ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 > sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 12:24:29 raise err 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 address = ('localhost', 8182), timeout = 10, source_address = None 12:24:29 socket_options = [(6, 1, 1)] 12:24:29 12:24:29 def create_connection( 12:24:29 address: tuple[str, int], 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 source_address: tuple[str, int] | None = None, 12:24:29 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 12:24:29 ) -> socket.socket: 12:24:29 """Connect to *address* and return the socket object. 12:24:29 12:24:29 Convenience function. Connect to *address* (a 2-tuple ``(host, 12:24:29 port)``) and return the socket object. Passing the optional 12:24:29 *timeout* parameter will set the timeout on the socket instance 12:24:29 before attempting to connect. If no *timeout* is supplied, the 12:24:29 global default timeout setting returned by :func:`socket.getdefaulttimeout` 12:24:29 is used. If *source_address* is set it must be a tuple of (host, port) 12:24:29 for the socket to bind as a source address before making the connection. 12:24:29 An host of '' or port 0 tells the OS to use the default. 12:24:29 """ 12:24:29 12:24:29 host, port = address 12:24:29 if host.startswith("["): 12:24:29 host = host.strip("[]") 12:24:29 err = None 12:24:29 12:24:29 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 12:24:29 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 12:24:29 # The original create_connection function always returns all records. 12:24:29 family = allowed_gai_family() 12:24:29 12:24:29 try: 12:24:29 host.encode("idna") 12:24:29 except UnicodeError: 12:24:29 raise LocationParseError(f"'{host}', label empty or too long") from None 12:24:29 12:24:29 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 12:24:29 af, socktype, proto, canonname, sa = res 12:24:29 sock = None 12:24:29 try: 12:24:29 sock = socket.socket(af, socktype, proto) 12:24:29 12:24:29 # If provided, set socket level options before connecting. 12:24:29 _set_socket_options(sock, socket_options) 12:24:29 12:24:29 if timeout is not _DEFAULT_TIMEOUT: 12:24:29 sock.settimeout(timeout) 12:24:29 if source_address: 12:24:29 sock.bind(source_address) 12:24:29 > sock.connect(sa) 12:24:29 E ConnectionRefusedError: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 method = 'POST' 12:24:29 url = '/rests/operations/transportpce-device-renderer:service-path' 12:24:29 body = '{"input": {"service-name": "service_test", "wave-number": "7", "modulation-format": "dp-qpsk", "operation": "delete",... 40, "min-freq": 195.775, "max-freq": 195.825, "lower-spectral-slot-number": 713, "higher-spectral-slot-number": 720}}' 12:24:29 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '441', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 12:24:29 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 redirect = False, assert_same_host = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 12:24:29 release_conn = False, chunked = False, body_pos = None, preload_content = False 12:24:29 decode_content = False, response_kw = {} 12:24:29 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/operations/transportpce-device-renderer:service-path', query=None, fragment=None) 12:24:29 destination_scheme = None, conn = None, release_this_conn = True 12:24:29 http_tunnel_required = False, err = None, clean_exit = False 12:24:29 12:24:29 def urlopen( # type: ignore[override] 12:24:29 self, 12:24:29 method: str, 12:24:29 url: str, 12:24:29 body: _TYPE_BODY | None = None, 12:24:29 headers: typing.Mapping[str, str] | None = None, 12:24:29 retries: Retry | bool | int | None = None, 12:24:29 redirect: bool = True, 12:24:29 assert_same_host: bool = True, 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 pool_timeout: int | None = None, 12:24:29 release_conn: bool | None = None, 12:24:29 chunked: bool = False, 12:24:29 body_pos: _TYPE_BODY_POSITION | None = None, 12:24:29 preload_content: bool = True, 12:24:29 decode_content: bool = True, 12:24:29 **response_kw: typing.Any, 12:24:29 ) -> BaseHTTPResponse: 12:24:29 """ 12:24:29 Get a connection from the pool and perform an HTTP request. This is the 12:24:29 lowest level call for making a request, so you'll need to specify all 12:24:29 the raw details. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 More commonly, it's appropriate to use a convenience method 12:24:29 such as :meth:`request`. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 `release_conn` will only behave as expected if 12:24:29 `preload_content=False` because we want to make 12:24:29 `preload_content=False` the default behaviour someday soon without 12:24:29 breaking backwards compatibility. 12:24:29 12:24:29 :param method: 12:24:29 HTTP request method (such as GET, POST, PUT, etc.) 12:24:29 12:24:29 :param url: 12:24:29 The URL to perform the request on. 12:24:29 12:24:29 :param body: 12:24:29 Data to send in the request body, either :class:`str`, :class:`bytes`, 12:24:29 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 12:24:29 12:24:29 :param headers: 12:24:29 Dictionary of custom headers to send, such as User-Agent, 12:24:29 If-None-Match, etc. If None, pool headers are used. If provided, 12:24:29 these headers completely replace any pool-specific headers. 12:24:29 12:24:29 :param retries: 12:24:29 Configure the number of retries to allow before raising a 12:24:29 :class:`~urllib3.exceptions.MaxRetryError` exception. 12:24:29 12:24:29 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 12:24:29 :class:`~urllib3.util.retry.Retry` object for fine-grained control 12:24:29 over different types of retries. 12:24:29 Pass an integer number to retry connection errors that many times, 12:24:29 but no other types of errors. Pass zero to never retry. 12:24:29 12:24:29 If ``False``, then retries are disabled and any exception is raised 12:24:29 immediately. Also, instead of raising a MaxRetryError on redirects, 12:24:29 the redirect response will be returned. 12:24:29 12:24:29 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 12:24:29 12:24:29 :param redirect: 12:24:29 If True, automatically handle redirects (status codes 301, 302, 12:24:29 303, 307, 308). Each redirect counts as a retry. Disabling retries 12:24:29 will disable redirect, too. 12:24:29 12:24:29 :param assert_same_host: 12:24:29 If ``True``, will make sure that the host of the pool requests is 12:24:29 consistent else will raise HostChangedError. When ``False``, you can 12:24:29 use the pool on an HTTP proxy and request foreign hosts. 12:24:29 12:24:29 :param timeout: 12:24:29 If specified, overrides the default timeout for this one 12:24:29 request. It may be a float (in seconds) or an instance of 12:24:29 :class:`urllib3.util.Timeout`. 12:24:29 12:24:29 :param pool_timeout: 12:24:29 If set and the pool is set to block=True, then this method will 12:24:29 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 12:24:29 connection is available within the time period. 12:24:29 12:24:29 :param bool preload_content: 12:24:29 If True, the response's body will be preloaded into memory. 12:24:29 12:24:29 :param bool decode_content: 12:24:29 If True, will attempt to decode the body based on the 12:24:29 'content-encoding' header. 12:24:29 12:24:29 :param release_conn: 12:24:29 If False, then the urlopen call will not release the connection 12:24:29 back into the pool once a response is received (but will release if 12:24:29 you read the entire contents of the response such as when 12:24:29 `preload_content=True`). This is useful if you're not preloading 12:24:29 the response's content immediately. You will need to call 12:24:29 ``r.release_conn()`` on the response ``r`` to return the connection 12:24:29 back into the pool. If None, it takes the value of ``preload_content`` 12:24:29 which defaults to ``True``. 12:24:29 12:24:29 :param bool chunked: 12:24:29 If True, urllib3 will send the body using chunked transfer 12:24:29 encoding. Otherwise, urllib3 will send the body using the standard 12:24:29 content-length form. Defaults to False. 12:24:29 12:24:29 :param int body_pos: 12:24:29 Position to seek to in file-like body in the event of a retry or 12:24:29 redirect. Typically this won't need to be set because urllib3 will 12:24:29 auto-populate the value when needed. 12:24:29 """ 12:24:29 parsed_url = parse_url(url) 12:24:29 destination_scheme = parsed_url.scheme 12:24:29 12:24:29 if headers is None: 12:24:29 headers = self.headers 12:24:29 12:24:29 if not isinstance(retries, Retry): 12:24:29 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 12:24:29 12:24:29 if release_conn is None: 12:24:29 release_conn = preload_content 12:24:29 12:24:29 # Check host 12:24:29 if assert_same_host and not self.is_same_host(url): 12:24:29 raise HostChangedError(self, url, retries) 12:24:29 12:24:29 # Ensure that the URL we're connecting to is properly encoded 12:24:29 if url.startswith("/"): 12:24:29 url = to_str(_encode_target(url)) 12:24:29 else: 12:24:29 url = to_str(parsed_url.url) 12:24:29 12:24:29 conn = None 12:24:29 12:24:29 # Track whether `conn` needs to be released before 12:24:29 # returning/raising/recursing. Update this variable if necessary, and 12:24:29 # leave `release_conn` constant throughout the function. That way, if 12:24:29 # the function recurses, the original value of `release_conn` will be 12:24:29 # passed down into the recursive call, and its value will be respected. 12:24:29 # 12:24:29 # See issue #651 [1] for details. 12:24:29 # 12:24:29 # [1] 12:24:29 release_this_conn = release_conn 12:24:29 12:24:29 http_tunnel_required = connection_requires_http_tunnel( 12:24:29 self.proxy, self.proxy_config, destination_scheme 12:24:29 ) 12:24:29 12:24:29 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 12:24:29 # have to copy the headers dict so we can safely change it without those 12:24:29 # changes being reflected in anyone else's copy. 12:24:29 if not http_tunnel_required: 12:24:29 headers = headers.copy() # type: ignore[attr-defined] 12:24:29 headers.update(self.proxy_headers) # type: ignore[union-attr] 12:24:29 12:24:29 # Must keep the exception bound to a separate variable or else Python 3 12:24:29 # complains about UnboundLocalError. 12:24:29 err = None 12:24:29 12:24:29 # Keep track of whether we cleanly exited the except block. This 12:24:29 # ensures we do proper cleanup in finally. 12:24:29 clean_exit = False 12:24:29 12:24:29 # Rewind body position, if needed. Record current position 12:24:29 # for future rewinds in the event of a redirect/retry. 12:24:29 body_pos = set_file_position(body, body_pos) 12:24:29 12:24:29 try: 12:24:29 # Request a connection from the queue. 12:24:29 timeout_obj = self._get_timeout(timeout) 12:24:29 conn = self._get_conn(timeout=pool_timeout) 12:24:29 12:24:29 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 12:24:29 12:24:29 # Is this a closed/new connection that requires CONNECT tunnelling? 12:24:29 if self.proxy is not None and http_tunnel_required and conn.is_closed: 12:24:29 try: 12:24:29 self._prepare_proxy(conn) 12:24:29 except (BaseSSLError, OSError, SocketTimeout) as e: 12:24:29 self._raise_timeout( 12:24:29 err=e, url=self.proxy.url, timeout_value=conn.timeout 12:24:29 ) 12:24:29 raise 12:24:29 12:24:29 # If we're going to release the connection in ``finally:``, then 12:24:29 # the response doesn't need to know about the connection. Otherwise 12:24:29 # it will also try to release it and we'll have a double-release 12:24:29 # mess. 12:24:29 response_conn = conn if not release_conn else None 12:24:29 12:24:29 # Make the request on the HTTPConnection object 12:24:29 > response = self._make_request( 12:24:29 conn, 12:24:29 method, 12:24:29 url, 12:24:29 timeout=timeout_obj, 12:24:29 body=body, 12:24:29 headers=headers, 12:24:29 chunked=chunked, 12:24:29 retries=retries, 12:24:29 response_conn=response_conn, 12:24:29 preload_content=preload_content, 12:24:29 decode_content=decode_content, 12:24:29 **response_kw, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 12:24:29 conn.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 12:24:29 self.endheaders() 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 12:24:29 self._send_output(message_body, encode_chunked=encode_chunked) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 12:24:29 self.send(msg) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 12:24:29 self.connect() 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 12:24:29 self.sock = self._new_conn() 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 except socket.gaierror as e: 12:24:29 raise NameResolutionError(self.host, self, e) from e 12:24:29 except SocketTimeout as e: 12:24:29 raise ConnectTimeoutError( 12:24:29 self, 12:24:29 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 12:24:29 ) from e 12:24:29 12:24:29 except OSError as e: 12:24:29 > raise NewConnectionError( 12:24:29 self, f"Failed to establish a new connection: {e}" 12:24:29 ) from e 12:24:29 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 > resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 12:24:29 retries = retries.increment( 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 method = 'POST' 12:24:29 url = '/rests/operations/transportpce-device-renderer:service-path' 12:24:29 response = None 12:24:29 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 12:24:29 _pool = 12:24:29 _stacktrace = 12:24:29 12:24:29 def increment( 12:24:29 self, 12:24:29 method: str | None = None, 12:24:29 url: str | None = None, 12:24:29 response: BaseHTTPResponse | None = None, 12:24:29 error: Exception | None = None, 12:24:29 _pool: ConnectionPool | None = None, 12:24:29 _stacktrace: TracebackType | None = None, 12:24:29 ) -> Self: 12:24:29 """Return a new Retry object with incremented retry counters. 12:24:29 12:24:29 :param response: A response object, or None, if the server did not 12:24:29 return a response. 12:24:29 :type response: :class:`~urllib3.response.BaseHTTPResponse` 12:24:29 :param Exception error: An error encountered during the request, or 12:24:29 None if the response was received successfully. 12:24:29 12:24:29 :return: A new ``Retry`` object. 12:24:29 """ 12:24:29 if self.total is False and error: 12:24:29 # Disabled, indicate to re-raise the error. 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 12:24:29 total = self.total 12:24:29 if total is not None: 12:24:29 total -= 1 12:24:29 12:24:29 connect = self.connect 12:24:29 read = self.read 12:24:29 redirect = self.redirect 12:24:29 status_count = self.status 12:24:29 other = self.other 12:24:29 cause = "unknown" 12:24:29 status = None 12:24:29 redirect_location = None 12:24:29 12:24:29 if error and self._is_connection_error(error): 12:24:29 # Connect retry? 12:24:29 if connect is False: 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif connect is not None: 12:24:29 connect -= 1 12:24:29 12:24:29 elif error and self._is_read_error(error): 12:24:29 # Read retry? 12:24:29 if read is False or method is None or not self._is_method_retryable(method): 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif read is not None: 12:24:29 read -= 1 12:24:29 12:24:29 elif error: 12:24:29 # Other retry? 12:24:29 if other is not None: 12:24:29 other -= 1 12:24:29 12:24:29 elif response and response.get_redirect_location(): 12:24:29 # Redirect retry? 12:24:29 if redirect is not None: 12:24:29 redirect -= 1 12:24:29 cause = "too many redirects" 12:24:29 response_redirect_location = response.get_redirect_location() 12:24:29 if response_redirect_location: 12:24:29 redirect_location = response_redirect_location 12:24:29 status = response.status 12:24:29 12:24:29 else: 12:24:29 # Incrementing because of a server error like a 500 in 12:24:29 # status_forcelist and the given method is in the allowed_methods 12:24:29 cause = ResponseError.GENERIC_ERROR 12:24:29 if response and response.status: 12:24:29 if status_count is not None: 12:24:29 status_count -= 1 12:24:29 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 12:24:29 status = response.status 12:24:29 12:24:29 history = self.history + ( 12:24:29 RequestHistory(method, url, error, status, redirect_location), 12:24:29 ) 12:24:29 12:24:29 new_retry = self.new( 12:24:29 total=total, 12:24:29 connect=connect, 12:24:29 read=read, 12:24:29 redirect=redirect, 12:24:29 status=status_count, 12:24:29 other=other, 12:24:29 history=history, 12:24:29 ) 12:24:29 12:24:29 if new_retry.is_exhausted(): 12:24:29 reason = error or ResponseError(cause) 12:24:29 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 12:24:29 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/operations/transportpce-device-renderer:service-path (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 12:24:29 12:24:29 During handling of the above exception, another exception occurred: 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_14_service_path_delete(self): 12:24:29 > response = test_utils.transportpce_api_rpc_request( 12:24:29 'transportpce-device-renderer', 'service-path', 12:24:29 { 12:24:29 'service-name': 'service_test', 12:24:29 'wave-number': '7', 12:24:29 'modulation-format': 'dp-qpsk', 12:24:29 'operation': 'delete', 12:24:29 'nodes': [{'node-id': 'ROADMA01', 'src-tp': 'SRG1-PP7-TXRX', 'dest-tp': 'DEG1-TTP-TXRX'}, 12:24:29 {'node-id': 'XPDRA01', 'src-tp': 'XPDR1-CLIENT1', 'dest-tp': 'XPDR1-NETWORK1'}], 12:24:29 'center-freq': 195.8, 12:24:29 'nmc-width': 40, 12:24:29 'min-freq': 195.775, 12:24:29 'max-freq': 195.825, 12:24:29 'lower-spectral-slot-number': 713, 12:24:29 'higher-spectral-slot-number': 720 12:24:29 }) 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:240: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 transportpce_tests/common/test_utils.py:684: in transportpce_api_rpc_request 12:24:29 response = post_request(url, data) 12:24:29 transportpce_tests/common/test_utils.py:142: in post_request 12:24:29 return requests.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 12:24:29 return session.request(method=method, url=url, **kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 12:24:29 resp = self.send(prep, **send_kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 12:24:29 r = adapter.send(request, **kwargs) 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 except (ProtocolError, OSError) as err: 12:24:29 raise ConnectionError(err, request=request) 12:24:29 12:24:29 except MaxRetryError as e: 12:24:29 if isinstance(e.reason, ConnectTimeoutError): 12:24:29 # TODO: Remove this in 3.0.0: see #2811 12:24:29 if not isinstance(e.reason, NewConnectionError): 12:24:29 raise ConnectTimeout(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, ResponseError): 12:24:29 raise RetryError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _ProxyError): 12:24:29 raise ProxyError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _SSLError): 12:24:29 # This branch is for urllib3 v1.22 and later. 12:24:29 raise SSLError(e, request=request) 12:24:29 12:24:29 > raise ConnectionError(e, request=request) 12:24:29 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/operations/transportpce-device-renderer:service-path (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_14_service_path_delete 12:24:29 ______ TransportPCERendererTesting.test_15_service_path_delete_rdm_check _______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 > sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 12:24:29 raise err 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 address = ('localhost', 8182), timeout = 10, source_address = None 12:24:29 socket_options = [(6, 1, 1)] 12:24:29 12:24:29 def create_connection( 12:24:29 address: tuple[str, int], 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 source_address: tuple[str, int] | None = None, 12:24:29 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 12:24:29 ) -> socket.socket: 12:24:29 """Connect to *address* and return the socket object. 12:24:29 12:24:29 Convenience function. Connect to *address* (a 2-tuple ``(host, 12:24:29 port)``) and return the socket object. Passing the optional 12:24:29 *timeout* parameter will set the timeout on the socket instance 12:24:29 before attempting to connect. If no *timeout* is supplied, the 12:24:29 global default timeout setting returned by :func:`socket.getdefaulttimeout` 12:24:29 is used. If *source_address* is set it must be a tuple of (host, port) 12:24:29 for the socket to bind as a source address before making the connection. 12:24:29 An host of '' or port 0 tells the OS to use the default. 12:24:29 """ 12:24:29 12:24:29 host, port = address 12:24:29 if host.startswith("["): 12:24:29 host = host.strip("[]") 12:24:29 err = None 12:24:29 12:24:29 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 12:24:29 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 12:24:29 # The original create_connection function always returns all records. 12:24:29 family = allowed_gai_family() 12:24:29 12:24:29 try: 12:24:29 host.encode("idna") 12:24:29 except UnicodeError: 12:24:29 raise LocationParseError(f"'{host}', label empty or too long") from None 12:24:29 12:24:29 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 12:24:29 af, socktype, proto, canonname, sa = res 12:24:29 sock = None 12:24:29 try: 12:24:29 sock = socket.socket(af, socktype, proto) 12:24:29 12:24:29 # If provided, set socket level options before connecting. 12:24:29 _set_socket_options(sock, socket_options) 12:24:29 12:24:29 if timeout is not _DEFAULT_TIMEOUT: 12:24:29 sock.settimeout(timeout) 12:24:29 if source_address: 12:24:29 sock.bind(source_address) 12:24:29 > sock.connect(sa) 12:24:29 E ConnectionRefusedError: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=DEG1-TTP-TXRX-713:720?content=nonconfig' 12:24:29 body = None 12:24:29 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 12:24:29 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 redirect = False, assert_same_host = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 12:24:29 release_conn = False, chunked = False, body_pos = None, preload_content = False 12:24:29 decode_content = False, response_kw = {} 12:24:29 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topolog...t/org-openroadm-device:org-openroadm-device/interface=DEG1-TTP-TXRX-713:720', query='content=nonconfig', fragment=None) 12:24:29 destination_scheme = None, conn = None, release_this_conn = True 12:24:29 http_tunnel_required = False, err = None, clean_exit = False 12:24:29 12:24:29 def urlopen( # type: ignore[override] 12:24:29 self, 12:24:29 method: str, 12:24:29 url: str, 12:24:29 body: _TYPE_BODY | None = None, 12:24:29 headers: typing.Mapping[str, str] | None = None, 12:24:29 retries: Retry | bool | int | None = None, 12:24:29 redirect: bool = True, 12:24:29 assert_same_host: bool = True, 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 pool_timeout: int | None = None, 12:24:29 release_conn: bool | None = None, 12:24:29 chunked: bool = False, 12:24:29 body_pos: _TYPE_BODY_POSITION | None = None, 12:24:29 preload_content: bool = True, 12:24:29 decode_content: bool = True, 12:24:29 **response_kw: typing.Any, 12:24:29 ) -> BaseHTTPResponse: 12:24:29 """ 12:24:29 Get a connection from the pool and perform an HTTP request. This is the 12:24:29 lowest level call for making a request, so you'll need to specify all 12:24:29 the raw details. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 More commonly, it's appropriate to use a convenience method 12:24:29 such as :meth:`request`. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 `release_conn` will only behave as expected if 12:24:29 `preload_content=False` because we want to make 12:24:29 `preload_content=False` the default behaviour someday soon without 12:24:29 breaking backwards compatibility. 12:24:29 12:24:29 :param method: 12:24:29 HTTP request method (such as GET, POST, PUT, etc.) 12:24:29 12:24:29 :param url: 12:24:29 The URL to perform the request on. 12:24:29 12:24:29 :param body: 12:24:29 Data to send in the request body, either :class:`str`, :class:`bytes`, 12:24:29 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 12:24:29 12:24:29 :param headers: 12:24:29 Dictionary of custom headers to send, such as User-Agent, 12:24:29 If-None-Match, etc. If None, pool headers are used. If provided, 12:24:29 these headers completely replace any pool-specific headers. 12:24:29 12:24:29 :param retries: 12:24:29 Configure the number of retries to allow before raising a 12:24:29 :class:`~urllib3.exceptions.MaxRetryError` exception. 12:24:29 12:24:29 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 12:24:29 :class:`~urllib3.util.retry.Retry` object for fine-grained control 12:24:29 over different types of retries. 12:24:29 Pass an integer number to retry connection errors that many times, 12:24:29 but no other types of errors. Pass zero to never retry. 12:24:29 12:24:29 If ``False``, then retries are disabled and any exception is raised 12:24:29 immediately. Also, instead of raising a MaxRetryError on redirects, 12:24:29 the redirect response will be returned. 12:24:29 12:24:29 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 12:24:29 12:24:29 :param redirect: 12:24:29 If True, automatically handle redirects (status codes 301, 302, 12:24:29 303, 307, 308). Each redirect counts as a retry. Disabling retries 12:24:29 will disable redirect, too. 12:24:29 12:24:29 :param assert_same_host: 12:24:29 If ``True``, will make sure that the host of the pool requests is 12:24:29 consistent else will raise HostChangedError. When ``False``, you can 12:24:29 use the pool on an HTTP proxy and request foreign hosts. 12:24:29 12:24:29 :param timeout: 12:24:29 If specified, overrides the default timeout for this one 12:24:29 request. It may be a float (in seconds) or an instance of 12:24:29 :class:`urllib3.util.Timeout`. 12:24:29 12:24:29 :param pool_timeout: 12:24:29 If set and the pool is set to block=True, then this method will 12:24:29 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 12:24:29 connection is available within the time period. 12:24:29 12:24:29 :param bool preload_content: 12:24:29 If True, the response's body will be preloaded into memory. 12:24:29 12:24:29 :param bool decode_content: 12:24:29 If True, will attempt to decode the body based on the 12:24:29 'content-encoding' header. 12:24:29 12:24:29 :param release_conn: 12:24:29 If False, then the urlopen call will not release the connection 12:24:29 back into the pool once a response is received (but will release if 12:24:29 you read the entire contents of the response such as when 12:24:29 `preload_content=True`). This is useful if you're not preloading 12:24:29 the response's content immediately. You will need to call 12:24:29 ``r.release_conn()`` on the response ``r`` to return the connection 12:24:29 back into the pool. If None, it takes the value of ``preload_content`` 12:24:29 which defaults to ``True``. 12:24:29 12:24:29 :param bool chunked: 12:24:29 If True, urllib3 will send the body using chunked transfer 12:24:29 encoding. Otherwise, urllib3 will send the body using the standard 12:24:29 content-length form. Defaults to False. 12:24:29 12:24:29 :param int body_pos: 12:24:29 Position to seek to in file-like body in the event of a retry or 12:24:29 redirect. Typically this won't need to be set because urllib3 will 12:24:29 auto-populate the value when needed. 12:24:29 """ 12:24:29 parsed_url = parse_url(url) 12:24:29 destination_scheme = parsed_url.scheme 12:24:29 12:24:29 if headers is None: 12:24:29 headers = self.headers 12:24:29 12:24:29 if not isinstance(retries, Retry): 12:24:29 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 12:24:29 12:24:29 if release_conn is None: 12:24:29 release_conn = preload_content 12:24:29 12:24:29 # Check host 12:24:29 if assert_same_host and not self.is_same_host(url): 12:24:29 raise HostChangedError(self, url, retries) 12:24:29 12:24:29 # Ensure that the URL we're connecting to is properly encoded 12:24:29 if url.startswith("/"): 12:24:29 url = to_str(_encode_target(url)) 12:24:29 else: 12:24:29 url = to_str(parsed_url.url) 12:24:29 12:24:29 conn = None 12:24:29 12:24:29 # Track whether `conn` needs to be released before 12:24:29 # returning/raising/recursing. Update this variable if necessary, and 12:24:29 # leave `release_conn` constant throughout the function. That way, if 12:24:29 # the function recurses, the original value of `release_conn` will be 12:24:29 # passed down into the recursive call, and its value will be respected. 12:24:29 # 12:24:29 # See issue #651 [1] for details. 12:24:29 # 12:24:29 # [1] 12:24:29 release_this_conn = release_conn 12:24:29 12:24:29 http_tunnel_required = connection_requires_http_tunnel( 12:24:29 self.proxy, self.proxy_config, destination_scheme 12:24:29 ) 12:24:29 12:24:29 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 12:24:29 # have to copy the headers dict so we can safely change it without those 12:24:29 # changes being reflected in anyone else's copy. 12:24:29 if not http_tunnel_required: 12:24:29 headers = headers.copy() # type: ignore[attr-defined] 12:24:29 headers.update(self.proxy_headers) # type: ignore[union-attr] 12:24:29 12:24:29 # Must keep the exception bound to a separate variable or else Python 3 12:24:29 # complains about UnboundLocalError. 12:24:29 err = None 12:24:29 12:24:29 # Keep track of whether we cleanly exited the except block. This 12:24:29 # ensures we do proper cleanup in finally. 12:24:29 clean_exit = False 12:24:29 12:24:29 # Rewind body position, if needed. Record current position 12:24:29 # for future rewinds in the event of a redirect/retry. 12:24:29 body_pos = set_file_position(body, body_pos) 12:24:29 12:24:29 try: 12:24:29 # Request a connection from the queue. 12:24:29 timeout_obj = self._get_timeout(timeout) 12:24:29 conn = self._get_conn(timeout=pool_timeout) 12:24:29 12:24:29 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 12:24:29 12:24:29 # Is this a closed/new connection that requires CONNECT tunnelling? 12:24:29 if self.proxy is not None and http_tunnel_required and conn.is_closed: 12:24:29 try: 12:24:29 self._prepare_proxy(conn) 12:24:29 except (BaseSSLError, OSError, SocketTimeout) as e: 12:24:29 self._raise_timeout( 12:24:29 err=e, url=self.proxy.url, timeout_value=conn.timeout 12:24:29 ) 12:24:29 raise 12:24:29 12:24:29 # If we're going to release the connection in ``finally:``, then 12:24:29 # the response doesn't need to know about the connection. Otherwise 12:24:29 # it will also try to release it and we'll have a double-release 12:24:29 # mess. 12:24:29 response_conn = conn if not release_conn else None 12:24:29 12:24:29 # Make the request on the HTTPConnection object 12:24:29 > response = self._make_request( 12:24:29 conn, 12:24:29 method, 12:24:29 url, 12:24:29 timeout=timeout_obj, 12:24:29 body=body, 12:24:29 headers=headers, 12:24:29 chunked=chunked, 12:24:29 retries=retries, 12:24:29 response_conn=response_conn, 12:24:29 preload_content=preload_content, 12:24:29 decode_content=decode_content, 12:24:29 **response_kw, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 12:24:29 conn.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 12:24:29 self.endheaders() 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 12:24:29 self._send_output(message_body, encode_chunked=encode_chunked) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 12:24:29 self.send(msg) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 12:24:29 self.connect() 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 12:24:29 self.sock = self._new_conn() 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 except socket.gaierror as e: 12:24:29 raise NameResolutionError(self.host, self, e) from e 12:24:29 except SocketTimeout as e: 12:24:29 raise ConnectTimeoutError( 12:24:29 self, 12:24:29 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 12:24:29 ) from e 12:24:29 12:24:29 except OSError as e: 12:24:29 > raise NewConnectionError( 12:24:29 self, f"Failed to establish a new connection: {e}" 12:24:29 ) from e 12:24:29 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 > resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 12:24:29 retries = retries.increment( 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=DEG1-TTP-TXRX-713:720?content=nonconfig' 12:24:29 response = None 12:24:29 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 12:24:29 _pool = 12:24:29 _stacktrace = 12:24:29 12:24:29 def increment( 12:24:29 self, 12:24:29 method: str | None = None, 12:24:29 url: str | None = None, 12:24:29 response: BaseHTTPResponse | None = None, 12:24:29 error: Exception | None = None, 12:24:29 _pool: ConnectionPool | None = None, 12:24:29 _stacktrace: TracebackType | None = None, 12:24:29 ) -> Self: 12:24:29 """Return a new Retry object with incremented retry counters. 12:24:29 12:24:29 :param response: A response object, or None, if the server did not 12:24:29 return a response. 12:24:29 :type response: :class:`~urllib3.response.BaseHTTPResponse` 12:24:29 :param Exception error: An error encountered during the request, or 12:24:29 None if the response was received successfully. 12:24:29 12:24:29 :return: A new ``Retry`` object. 12:24:29 """ 12:24:29 if self.total is False and error: 12:24:29 # Disabled, indicate to re-raise the error. 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 12:24:29 total = self.total 12:24:29 if total is not None: 12:24:29 total -= 1 12:24:29 12:24:29 connect = self.connect 12:24:29 read = self.read 12:24:29 redirect = self.redirect 12:24:29 status_count = self.status 12:24:29 other = self.other 12:24:29 cause = "unknown" 12:24:29 status = None 12:24:29 redirect_location = None 12:24:29 12:24:29 if error and self._is_connection_error(error): 12:24:29 # Connect retry? 12:24:29 if connect is False: 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif connect is not None: 12:24:29 connect -= 1 12:24:29 12:24:29 elif error and self._is_read_error(error): 12:24:29 # Read retry? 12:24:29 if read is False or method is None or not self._is_method_retryable(method): 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif read is not None: 12:24:29 read -= 1 12:24:29 12:24:29 elif error: 12:24:29 # Other retry? 12:24:29 if other is not None: 12:24:29 other -= 1 12:24:29 12:24:29 elif response and response.get_redirect_location(): 12:24:29 # Redirect retry? 12:24:29 if redirect is not None: 12:24:29 redirect -= 1 12:24:29 cause = "too many redirects" 12:24:29 response_redirect_location = response.get_redirect_location() 12:24:29 if response_redirect_location: 12:24:29 redirect_location = response_redirect_location 12:24:29 status = response.status 12:24:29 12:24:29 else: 12:24:29 # Incrementing because of a server error like a 500 in 12:24:29 # status_forcelist and the given method is in the allowed_methods 12:24:29 cause = ResponseError.GENERIC_ERROR 12:24:29 if response and response.status: 12:24:29 if status_count is not None: 12:24:29 status_count -= 1 12:24:29 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 12:24:29 status = response.status 12:24:29 12:24:29 history = self.history + ( 12:24:29 RequestHistory(method, url, error, status, redirect_location), 12:24:29 ) 12:24:29 12:24:29 new_retry = self.new( 12:24:29 total=total, 12:24:29 connect=connect, 12:24:29 read=read, 12:24:29 redirect=redirect, 12:24:29 status=status_count, 12:24:29 other=other, 12:24:29 history=history, 12:24:29 ) 12:24:29 12:24:29 if new_retry.is_exhausted(): 12:24:29 reason = error or ResponseError(cause) 12:24:29 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 12:24:29 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=DEG1-TTP-TXRX-713:720?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 12:24:29 12:24:29 During handling of the above exception, another exception occurred: 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_15_service_path_delete_rdm_check(self): 12:24:29 > response = test_utils.check_node_attribute_request("ROADMA01", "interface", "DEG1-TTP-TXRX-713:720") 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:260: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 transportpce_tests/common/test_utils.py:401: in check_node_attribute_request 12:24:29 response = get_request(url[RESTCONF_VERSION].format('{}', node, attribute, attribute_value)) 12:24:29 transportpce_tests/common/test_utils.py:116: in get_request 12:24:29 return requests.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 12:24:29 return session.request(method=method, url=url, **kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 12:24:29 resp = self.send(prep, **send_kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 12:24:29 r = adapter.send(request, **kwargs) 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 except (ProtocolError, OSError) as err: 12:24:29 raise ConnectionError(err, request=request) 12:24:29 12:24:29 except MaxRetryError as e: 12:24:29 if isinstance(e.reason, ConnectTimeoutError): 12:24:29 # TODO: Remove this in 3.0.0: see #2811 12:24:29 if not isinstance(e.reason, NewConnectionError): 12:24:29 raise ConnectTimeout(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, ResponseError): 12:24:29 raise RetryError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _ProxyError): 12:24:29 raise ProxyError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _SSLError): 12:24:29 # This branch is for urllib3 v1.22 and later. 12:24:29 raise SSLError(e, request=request) 12:24:29 12:24:29 > raise ConnectionError(e, request=request) 12:24:29 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=DEG1-TTP-TXRX-713:720?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_15_service_path_delete_rdm_check 12:24:29 ______ TransportPCERendererTesting.test_16_service_path_delete_rdm_check _______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 > sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 12:24:29 raise err 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 address = ('localhost', 8182), timeout = 10, source_address = None 12:24:29 socket_options = [(6, 1, 1)] 12:24:29 12:24:29 def create_connection( 12:24:29 address: tuple[str, int], 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 source_address: tuple[str, int] | None = None, 12:24:29 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 12:24:29 ) -> socket.socket: 12:24:29 """Connect to *address* and return the socket object. 12:24:29 12:24:29 Convenience function. Connect to *address* (a 2-tuple ``(host, 12:24:29 port)``) and return the socket object. Passing the optional 12:24:29 *timeout* parameter will set the timeout on the socket instance 12:24:29 before attempting to connect. If no *timeout* is supplied, the 12:24:29 global default timeout setting returned by :func:`socket.getdefaulttimeout` 12:24:29 is used. If *source_address* is set it must be a tuple of (host, port) 12:24:29 for the socket to bind as a source address before making the connection. 12:24:29 An host of '' or port 0 tells the OS to use the default. 12:24:29 """ 12:24:29 12:24:29 host, port = address 12:24:29 if host.startswith("["): 12:24:29 host = host.strip("[]") 12:24:29 err = None 12:24:29 12:24:29 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 12:24:29 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 12:24:29 # The original create_connection function always returns all records. 12:24:29 family = allowed_gai_family() 12:24:29 12:24:29 try: 12:24:29 host.encode("idna") 12:24:29 except UnicodeError: 12:24:29 raise LocationParseError(f"'{host}', label empty or too long") from None 12:24:29 12:24:29 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 12:24:29 af, socktype, proto, canonname, sa = res 12:24:29 sock = None 12:24:29 try: 12:24:29 sock = socket.socket(af, socktype, proto) 12:24:29 12:24:29 # If provided, set socket level options before connecting. 12:24:29 _set_socket_options(sock, socket_options) 12:24:29 12:24:29 if timeout is not _DEFAULT_TIMEOUT: 12:24:29 sock.settimeout(timeout) 12:24:29 if source_address: 12:24:29 sock.bind(source_address) 12:24:29 > sock.connect(sa) 12:24:29 E ConnectionRefusedError: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=SRG1-PP7-TXRX-713:720?content=nonconfig' 12:24:29 body = None 12:24:29 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 12:24:29 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 redirect = False, assert_same_host = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 12:24:29 release_conn = False, chunked = False, body_pos = None, preload_content = False 12:24:29 decode_content = False, response_kw = {} 12:24:29 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topolog...t/org-openroadm-device:org-openroadm-device/interface=SRG1-PP7-TXRX-713:720', query='content=nonconfig', fragment=None) 12:24:29 destination_scheme = None, conn = None, release_this_conn = True 12:24:29 http_tunnel_required = False, err = None, clean_exit = False 12:24:29 12:24:29 def urlopen( # type: ignore[override] 12:24:29 self, 12:24:29 method: str, 12:24:29 url: str, 12:24:29 body: _TYPE_BODY | None = None, 12:24:29 headers: typing.Mapping[str, str] | None = None, 12:24:29 retries: Retry | bool | int | None = None, 12:24:29 redirect: bool = True, 12:24:29 assert_same_host: bool = True, 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 pool_timeout: int | None = None, 12:24:29 release_conn: bool | None = None, 12:24:29 chunked: bool = False, 12:24:29 body_pos: _TYPE_BODY_POSITION | None = None, 12:24:29 preload_content: bool = True, 12:24:29 decode_content: bool = True, 12:24:29 **response_kw: typing.Any, 12:24:29 ) -> BaseHTTPResponse: 12:24:29 """ 12:24:29 Get a connection from the pool and perform an HTTP request. This is the 12:24:29 lowest level call for making a request, so you'll need to specify all 12:24:29 the raw details. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 More commonly, it's appropriate to use a convenience method 12:24:29 such as :meth:`request`. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 `release_conn` will only behave as expected if 12:24:29 `preload_content=False` because we want to make 12:24:29 `preload_content=False` the default behaviour someday soon without 12:24:29 breaking backwards compatibility. 12:24:29 12:24:29 :param method: 12:24:29 HTTP request method (such as GET, POST, PUT, etc.) 12:24:29 12:24:29 :param url: 12:24:29 The URL to perform the request on. 12:24:29 12:24:29 :param body: 12:24:29 Data to send in the request body, either :class:`str`, :class:`bytes`, 12:24:29 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 12:24:29 12:24:29 :param headers: 12:24:29 Dictionary of custom headers to send, such as User-Agent, 12:24:29 If-None-Match, etc. If None, pool headers are used. If provided, 12:24:29 these headers completely replace any pool-specific headers. 12:24:29 12:24:29 :param retries: 12:24:29 Configure the number of retries to allow before raising a 12:24:29 :class:`~urllib3.exceptions.MaxRetryError` exception. 12:24:29 12:24:29 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 12:24:29 :class:`~urllib3.util.retry.Retry` object for fine-grained control 12:24:29 over different types of retries. 12:24:29 Pass an integer number to retry connection errors that many times, 12:24:29 but no other types of errors. Pass zero to never retry. 12:24:29 12:24:29 If ``False``, then retries are disabled and any exception is raised 12:24:29 immediately. Also, instead of raising a MaxRetryError on redirects, 12:24:29 the redirect response will be returned. 12:24:29 12:24:29 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 12:24:29 12:24:29 :param redirect: 12:24:29 If True, automatically handle redirects (status codes 301, 302, 12:24:29 303, 307, 308). Each redirect counts as a retry. Disabling retries 12:24:29 will disable redirect, too. 12:24:29 12:24:29 :param assert_same_host: 12:24:29 If ``True``, will make sure that the host of the pool requests is 12:24:29 consistent else will raise HostChangedError. When ``False``, you can 12:24:29 use the pool on an HTTP proxy and request foreign hosts. 12:24:29 12:24:29 :param timeout: 12:24:29 If specified, overrides the default timeout for this one 12:24:29 request. It may be a float (in seconds) or an instance of 12:24:29 :class:`urllib3.util.Timeout`. 12:24:29 12:24:29 :param pool_timeout: 12:24:29 If set and the pool is set to block=True, then this method will 12:24:29 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 12:24:29 connection is available within the time period. 12:24:29 12:24:29 :param bool preload_content: 12:24:29 If True, the response's body will be preloaded into memory. 12:24:29 12:24:29 :param bool decode_content: 12:24:29 If True, will attempt to decode the body based on the 12:24:29 'content-encoding' header. 12:24:29 12:24:29 :param release_conn: 12:24:29 If False, then the urlopen call will not release the connection 12:24:29 back into the pool once a response is received (but will release if 12:24:29 you read the entire contents of the response such as when 12:24:29 `preload_content=True`). This is useful if you're not preloading 12:24:29 the response's content immediately. You will need to call 12:24:29 ``r.release_conn()`` on the response ``r`` to return the connection 12:24:29 back into the pool. If None, it takes the value of ``preload_content`` 12:24:29 which defaults to ``True``. 12:24:29 12:24:29 :param bool chunked: 12:24:29 If True, urllib3 will send the body using chunked transfer 12:24:29 encoding. Otherwise, urllib3 will send the body using the standard 12:24:29 content-length form. Defaults to False. 12:24:29 12:24:29 :param int body_pos: 12:24:29 Position to seek to in file-like body in the event of a retry or 12:24:29 redirect. Typically this won't need to be set because urllib3 will 12:24:29 auto-populate the value when needed. 12:24:29 """ 12:24:29 parsed_url = parse_url(url) 12:24:29 destination_scheme = parsed_url.scheme 12:24:29 12:24:29 if headers is None: 12:24:29 headers = self.headers 12:24:29 12:24:29 if not isinstance(retries, Retry): 12:24:29 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 12:24:29 12:24:29 if release_conn is None: 12:24:29 release_conn = preload_content 12:24:29 12:24:29 # Check host 12:24:29 if assert_same_host and not self.is_same_host(url): 12:24:29 raise HostChangedError(self, url, retries) 12:24:29 12:24:29 # Ensure that the URL we're connecting to is properly encoded 12:24:29 if url.startswith("/"): 12:24:29 url = to_str(_encode_target(url)) 12:24:29 else: 12:24:29 url = to_str(parsed_url.url) 12:24:29 12:24:29 conn = None 12:24:29 12:24:29 # Track whether `conn` needs to be released before 12:24:29 # returning/raising/recursing. Update this variable if necessary, and 12:24:29 # leave `release_conn` constant throughout the function. That way, if 12:24:29 # the function recurses, the original value of `release_conn` will be 12:24:29 # passed down into the recursive call, and its value will be respected. 12:24:29 # 12:24:29 # See issue #651 [1] for details. 12:24:29 # 12:24:29 # [1] 12:24:29 release_this_conn = release_conn 12:24:29 12:24:29 http_tunnel_required = connection_requires_http_tunnel( 12:24:29 self.proxy, self.proxy_config, destination_scheme 12:24:29 ) 12:24:29 12:24:29 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 12:24:29 # have to copy the headers dict so we can safely change it without those 12:24:29 # changes being reflected in anyone else's copy. 12:24:29 if not http_tunnel_required: 12:24:29 headers = headers.copy() # type: ignore[attr-defined] 12:24:29 headers.update(self.proxy_headers) # type: ignore[union-attr] 12:24:29 12:24:29 # Must keep the exception bound to a separate variable or else Python 3 12:24:29 # complains about UnboundLocalError. 12:24:29 err = None 12:24:29 12:24:29 # Keep track of whether we cleanly exited the except block. This 12:24:29 # ensures we do proper cleanup in finally. 12:24:29 clean_exit = False 12:24:29 12:24:29 # Rewind body position, if needed. Record current position 12:24:29 # for future rewinds in the event of a redirect/retry. 12:24:29 body_pos = set_file_position(body, body_pos) 12:24:29 12:24:29 try: 12:24:29 # Request a connection from the queue. 12:24:29 timeout_obj = self._get_timeout(timeout) 12:24:29 conn = self._get_conn(timeout=pool_timeout) 12:24:29 12:24:29 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 12:24:29 12:24:29 # Is this a closed/new connection that requires CONNECT tunnelling? 12:24:29 if self.proxy is not None and http_tunnel_required and conn.is_closed: 12:24:29 try: 12:24:29 self._prepare_proxy(conn) 12:24:29 except (BaseSSLError, OSError, SocketTimeout) as e: 12:24:29 self._raise_timeout( 12:24:29 err=e, url=self.proxy.url, timeout_value=conn.timeout 12:24:29 ) 12:24:29 raise 12:24:29 12:24:29 # If we're going to release the connection in ``finally:``, then 12:24:29 # the response doesn't need to know about the connection. Otherwise 12:24:29 # it will also try to release it and we'll have a double-release 12:24:29 # mess. 12:24:29 response_conn = conn if not release_conn else None 12:24:29 12:24:29 # Make the request on the HTTPConnection object 12:24:29 > response = self._make_request( 12:24:29 conn, 12:24:29 method, 12:24:29 url, 12:24:29 timeout=timeout_obj, 12:24:29 body=body, 12:24:29 headers=headers, 12:24:29 chunked=chunked, 12:24:29 retries=retries, 12:24:29 response_conn=response_conn, 12:24:29 preload_content=preload_content, 12:24:29 decode_content=decode_content, 12:24:29 **response_kw, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 12:24:29 conn.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 12:24:29 self.endheaders() 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 12:24:29 self._send_output(message_body, encode_chunked=encode_chunked) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 12:24:29 self.send(msg) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 12:24:29 self.connect() 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 12:24:29 self.sock = self._new_conn() 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 except socket.gaierror as e: 12:24:29 raise NameResolutionError(self.host, self, e) from e 12:24:29 except SocketTimeout as e: 12:24:29 raise ConnectTimeoutError( 12:24:29 self, 12:24:29 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 12:24:29 ) from e 12:24:29 12:24:29 except OSError as e: 12:24:29 > raise NewConnectionError( 12:24:29 self, f"Failed to establish a new connection: {e}" 12:24:29 ) from e 12:24:29 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 > resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 12:24:29 retries = retries.increment( 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=SRG1-PP7-TXRX-713:720?content=nonconfig' 12:24:29 response = None 12:24:29 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 12:24:29 _pool = 12:24:29 _stacktrace = 12:24:29 12:24:29 def increment( 12:24:29 self, 12:24:29 method: str | None = None, 12:24:29 url: str | None = None, 12:24:29 response: BaseHTTPResponse | None = None, 12:24:29 error: Exception | None = None, 12:24:29 _pool: ConnectionPool | None = None, 12:24:29 _stacktrace: TracebackType | None = None, 12:24:29 ) -> Self: 12:24:29 """Return a new Retry object with incremented retry counters. 12:24:29 12:24:29 :param response: A response object, or None, if the server did not 12:24:29 return a response. 12:24:29 :type response: :class:`~urllib3.response.BaseHTTPResponse` 12:24:29 :param Exception error: An error encountered during the request, or 12:24:29 None if the response was received successfully. 12:24:29 12:24:29 :return: A new ``Retry`` object. 12:24:29 """ 12:24:29 if self.total is False and error: 12:24:29 # Disabled, indicate to re-raise the error. 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 12:24:29 total = self.total 12:24:29 if total is not None: 12:24:29 total -= 1 12:24:29 12:24:29 connect = self.connect 12:24:29 read = self.read 12:24:29 redirect = self.redirect 12:24:29 status_count = self.status 12:24:29 other = self.other 12:24:29 cause = "unknown" 12:24:29 status = None 12:24:29 redirect_location = None 12:24:29 12:24:29 if error and self._is_connection_error(error): 12:24:29 # Connect retry? 12:24:29 if connect is False: 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif connect is not None: 12:24:29 connect -= 1 12:24:29 12:24:29 elif error and self._is_read_error(error): 12:24:29 # Read retry? 12:24:29 if read is False or method is None or not self._is_method_retryable(method): 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif read is not None: 12:24:29 read -= 1 12:24:29 12:24:29 elif error: 12:24:29 # Other retry? 12:24:29 if other is not None: 12:24:29 other -= 1 12:24:29 12:24:29 elif response and response.get_redirect_location(): 12:24:29 # Redirect retry? 12:24:29 if redirect is not None: 12:24:29 redirect -= 1 12:24:29 cause = "too many redirects" 12:24:29 response_redirect_location = response.get_redirect_location() 12:24:29 if response_redirect_location: 12:24:29 redirect_location = response_redirect_location 12:24:29 status = response.status 12:24:29 12:24:29 else: 12:24:29 # Incrementing because of a server error like a 500 in 12:24:29 # status_forcelist and the given method is in the allowed_methods 12:24:29 cause = ResponseError.GENERIC_ERROR 12:24:29 if response and response.status: 12:24:29 if status_count is not None: 12:24:29 status_count -= 1 12:24:29 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 12:24:29 status = response.status 12:24:29 12:24:29 history = self.history + ( 12:24:29 RequestHistory(method, url, error, status, redirect_location), 12:24:29 ) 12:24:29 12:24:29 new_retry = self.new( 12:24:29 total=total, 12:24:29 connect=connect, 12:24:29 read=read, 12:24:29 redirect=redirect, 12:24:29 status=status_count, 12:24:29 other=other, 12:24:29 history=history, 12:24:29 ) 12:24:29 12:24:29 if new_retry.is_exhausted(): 12:24:29 reason = error or ResponseError(cause) 12:24:29 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 12:24:29 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=SRG1-PP7-TXRX-713:720?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 12:24:29 12:24:29 During handling of the above exception, another exception occurred: 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_16_service_path_delete_rdm_check(self): 12:24:29 > response = test_utils.check_node_attribute_request("ROADMA01", "interface", "SRG1-PP7-TXRX-713:720") 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:264: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 transportpce_tests/common/test_utils.py:401: in check_node_attribute_request 12:24:29 response = get_request(url[RESTCONF_VERSION].format('{}', node, attribute, attribute_value)) 12:24:29 transportpce_tests/common/test_utils.py:116: in get_request 12:24:29 return requests.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 12:24:29 return session.request(method=method, url=url, **kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 12:24:29 resp = self.send(prep, **send_kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 12:24:29 r = adapter.send(request, **kwargs) 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 except (ProtocolError, OSError) as err: 12:24:29 raise ConnectionError(err, request=request) 12:24:29 12:24:29 except MaxRetryError as e: 12:24:29 if isinstance(e.reason, ConnectTimeoutError): 12:24:29 # TODO: Remove this in 3.0.0: see #2811 12:24:29 if not isinstance(e.reason, NewConnectionError): 12:24:29 raise ConnectTimeout(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, ResponseError): 12:24:29 raise RetryError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _ProxyError): 12:24:29 raise ProxyError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _SSLError): 12:24:29 # This branch is for urllib3 v1.22 and later. 12:24:29 raise SSLError(e, request=request) 12:24:29 12:24:29 > raise ConnectionError(e, request=request) 12:24:29 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=SRG1-PP7-TXRX-713:720?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_16_service_path_delete_rdm_check 12:24:29 ______ TransportPCERendererTesting.test_17_service_path_delete_rdm_check _______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 > sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 12:24:29 raise err 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 address = ('localhost', 8182), timeout = 10, source_address = None 12:24:29 socket_options = [(6, 1, 1)] 12:24:29 12:24:29 def create_connection( 12:24:29 address: tuple[str, int], 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 source_address: tuple[str, int] | None = None, 12:24:29 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 12:24:29 ) -> socket.socket: 12:24:29 """Connect to *address* and return the socket object. 12:24:29 12:24:29 Convenience function. Connect to *address* (a 2-tuple ``(host, 12:24:29 port)``) and return the socket object. Passing the optional 12:24:29 *timeout* parameter will set the timeout on the socket instance 12:24:29 before attempting to connect. If no *timeout* is supplied, the 12:24:29 global default timeout setting returned by :func:`socket.getdefaulttimeout` 12:24:29 is used. If *source_address* is set it must be a tuple of (host, port) 12:24:29 for the socket to bind as a source address before making the connection. 12:24:29 An host of '' or port 0 tells the OS to use the default. 12:24:29 """ 12:24:29 12:24:29 host, port = address 12:24:29 if host.startswith("["): 12:24:29 host = host.strip("[]") 12:24:29 err = None 12:24:29 12:24:29 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 12:24:29 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 12:24:29 # The original create_connection function always returns all records. 12:24:29 family = allowed_gai_family() 12:24:29 12:24:29 try: 12:24:29 host.encode("idna") 12:24:29 except UnicodeError: 12:24:29 raise LocationParseError(f"'{host}', label empty or too long") from None 12:24:29 12:24:29 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 12:24:29 af, socktype, proto, canonname, sa = res 12:24:29 sock = None 12:24:29 try: 12:24:29 sock = socket.socket(af, socktype, proto) 12:24:29 12:24:29 # If provided, set socket level options before connecting. 12:24:29 _set_socket_options(sock, socket_options) 12:24:29 12:24:29 if timeout is not _DEFAULT_TIMEOUT: 12:24:29 sock.settimeout(timeout) 12:24:29 if source_address: 12:24:29 sock.bind(source_address) 12:24:29 > sock.connect(sa) 12:24:29 E ConnectionRefusedError: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/roadm-connections=SRG1-PP7-TXRX-DEG1-TTP-TXRX-713:720?content=nonconfig' 12:24:29 body = None 12:24:29 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 12:24:29 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 redirect = False, assert_same_host = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 12:24:29 release_conn = False, chunked = False, body_pos = None, preload_content = False 12:24:29 decode_content = False, response_kw = {} 12:24:29 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topolog...:org-openroadm-device/roadm-connections=SRG1-PP7-TXRX-DEG1-TTP-TXRX-713:720', query='content=nonconfig', fragment=None) 12:24:29 destination_scheme = None, conn = None, release_this_conn = True 12:24:29 http_tunnel_required = False, err = None, clean_exit = False 12:24:29 12:24:29 def urlopen( # type: ignore[override] 12:24:29 self, 12:24:29 method: str, 12:24:29 url: str, 12:24:29 body: _TYPE_BODY | None = None, 12:24:29 headers: typing.Mapping[str, str] | None = None, 12:24:29 retries: Retry | bool | int | None = None, 12:24:29 redirect: bool = True, 12:24:29 assert_same_host: bool = True, 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 pool_timeout: int | None = None, 12:24:29 release_conn: bool | None = None, 12:24:29 chunked: bool = False, 12:24:29 body_pos: _TYPE_BODY_POSITION | None = None, 12:24:29 preload_content: bool = True, 12:24:29 decode_content: bool = True, 12:24:29 **response_kw: typing.Any, 12:24:29 ) -> BaseHTTPResponse: 12:24:29 """ 12:24:29 Get a connection from the pool and perform an HTTP request. This is the 12:24:29 lowest level call for making a request, so you'll need to specify all 12:24:29 the raw details. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 More commonly, it's appropriate to use a convenience method 12:24:29 such as :meth:`request`. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 `release_conn` will only behave as expected if 12:24:29 `preload_content=False` because we want to make 12:24:29 `preload_content=False` the default behaviour someday soon without 12:24:29 breaking backwards compatibility. 12:24:29 12:24:29 :param method: 12:24:29 HTTP request method (such as GET, POST, PUT, etc.) 12:24:29 12:24:29 :param url: 12:24:29 The URL to perform the request on. 12:24:29 12:24:29 :param body: 12:24:29 Data to send in the request body, either :class:`str`, :class:`bytes`, 12:24:29 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 12:24:29 12:24:29 :param headers: 12:24:29 Dictionary of custom headers to send, such as User-Agent, 12:24:29 If-None-Match, etc. If None, pool headers are used. If provided, 12:24:29 these headers completely replace any pool-specific headers. 12:24:29 12:24:29 :param retries: 12:24:29 Configure the number of retries to allow before raising a 12:24:29 :class:`~urllib3.exceptions.MaxRetryError` exception. 12:24:29 12:24:29 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 12:24:29 :class:`~urllib3.util.retry.Retry` object for fine-grained control 12:24:29 over different types of retries. 12:24:29 Pass an integer number to retry connection errors that many times, 12:24:29 but no other types of errors. Pass zero to never retry. 12:24:29 12:24:29 If ``False``, then retries are disabled and any exception is raised 12:24:29 immediately. Also, instead of raising a MaxRetryError on redirects, 12:24:29 the redirect response will be returned. 12:24:29 12:24:29 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 12:24:29 12:24:29 :param redirect: 12:24:29 If True, automatically handle redirects (status codes 301, 302, 12:24:29 303, 307, 308). Each redirect counts as a retry. Disabling retries 12:24:29 will disable redirect, too. 12:24:29 12:24:29 :param assert_same_host: 12:24:29 If ``True``, will make sure that the host of the pool requests is 12:24:29 consistent else will raise HostChangedError. When ``False``, you can 12:24:29 use the pool on an HTTP proxy and request foreign hosts. 12:24:29 12:24:29 :param timeout: 12:24:29 If specified, overrides the default timeout for this one 12:24:29 request. It may be a float (in seconds) or an instance of 12:24:29 :class:`urllib3.util.Timeout`. 12:24:29 12:24:29 :param pool_timeout: 12:24:29 If set and the pool is set to block=True, then this method will 12:24:29 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 12:24:29 connection is available within the time period. 12:24:29 12:24:29 :param bool preload_content: 12:24:29 If True, the response's body will be preloaded into memory. 12:24:29 12:24:29 :param bool decode_content: 12:24:29 If True, will attempt to decode the body based on the 12:24:29 'content-encoding' header. 12:24:29 12:24:29 :param release_conn: 12:24:29 If False, then the urlopen call will not release the connection 12:24:29 back into the pool once a response is received (but will release if 12:24:29 you read the entire contents of the response such as when 12:24:29 `preload_content=True`). This is useful if you're not preloading 12:24:29 the response's content immediately. You will need to call 12:24:29 ``r.release_conn()`` on the response ``r`` to return the connection 12:24:29 back into the pool. If None, it takes the value of ``preload_content`` 12:24:29 which defaults to ``True``. 12:24:29 12:24:29 :param bool chunked: 12:24:29 If True, urllib3 will send the body using chunked transfer 12:24:29 encoding. Otherwise, urllib3 will send the body using the standard 12:24:29 content-length form. Defaults to False. 12:24:29 12:24:29 :param int body_pos: 12:24:29 Position to seek to in file-like body in the event of a retry or 12:24:29 redirect. Typically this won't need to be set because urllib3 will 12:24:29 auto-populate the value when needed. 12:24:29 """ 12:24:29 parsed_url = parse_url(url) 12:24:29 destination_scheme = parsed_url.scheme 12:24:29 12:24:29 if headers is None: 12:24:29 headers = self.headers 12:24:29 12:24:29 if not isinstance(retries, Retry): 12:24:29 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 12:24:29 12:24:29 if release_conn is None: 12:24:29 release_conn = preload_content 12:24:29 12:24:29 # Check host 12:24:29 if assert_same_host and not self.is_same_host(url): 12:24:29 raise HostChangedError(self, url, retries) 12:24:29 12:24:29 # Ensure that the URL we're connecting to is properly encoded 12:24:29 if url.startswith("/"): 12:24:29 url = to_str(_encode_target(url)) 12:24:29 else: 12:24:29 url = to_str(parsed_url.url) 12:24:29 12:24:29 conn = None 12:24:29 12:24:29 # Track whether `conn` needs to be released before 12:24:29 # returning/raising/recursing. Update this variable if necessary, and 12:24:29 # leave `release_conn` constant throughout the function. That way, if 12:24:29 # the function recurses, the original value of `release_conn` will be 12:24:29 # passed down into the recursive call, and its value will be respected. 12:24:29 # 12:24:29 # See issue #651 [1] for details. 12:24:29 # 12:24:29 # [1] 12:24:29 release_this_conn = release_conn 12:24:29 12:24:29 http_tunnel_required = connection_requires_http_tunnel( 12:24:29 self.proxy, self.proxy_config, destination_scheme 12:24:29 ) 12:24:29 12:24:29 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 12:24:29 # have to copy the headers dict so we can safely change it without those 12:24:29 # changes being reflected in anyone else's copy. 12:24:29 if not http_tunnel_required: 12:24:29 headers = headers.copy() # type: ignore[attr-defined] 12:24:29 headers.update(self.proxy_headers) # type: ignore[union-attr] 12:24:29 12:24:29 # Must keep the exception bound to a separate variable or else Python 3 12:24:29 # complains about UnboundLocalError. 12:24:29 err = None 12:24:29 12:24:29 # Keep track of whether we cleanly exited the except block. This 12:24:29 # ensures we do proper cleanup in finally. 12:24:29 clean_exit = False 12:24:29 12:24:29 # Rewind body position, if needed. Record current position 12:24:29 # for future rewinds in the event of a redirect/retry. 12:24:29 body_pos = set_file_position(body, body_pos) 12:24:29 12:24:29 try: 12:24:29 # Request a connection from the queue. 12:24:29 timeout_obj = self._get_timeout(timeout) 12:24:29 conn = self._get_conn(timeout=pool_timeout) 12:24:29 12:24:29 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 12:24:29 12:24:29 # Is this a closed/new connection that requires CONNECT tunnelling? 12:24:29 if self.proxy is not None and http_tunnel_required and conn.is_closed: 12:24:29 try: 12:24:29 self._prepare_proxy(conn) 12:24:29 except (BaseSSLError, OSError, SocketTimeout) as e: 12:24:29 self._raise_timeout( 12:24:29 err=e, url=self.proxy.url, timeout_value=conn.timeout 12:24:29 ) 12:24:29 raise 12:24:29 12:24:29 # If we're going to release the connection in ``finally:``, then 12:24:29 # the response doesn't need to know about the connection. Otherwise 12:24:29 # it will also try to release it and we'll have a double-release 12:24:29 # mess. 12:24:29 response_conn = conn if not release_conn else None 12:24:29 12:24:29 # Make the request on the HTTPConnection object 12:24:29 > response = self._make_request( 12:24:29 conn, 12:24:29 method, 12:24:29 url, 12:24:29 timeout=timeout_obj, 12:24:29 body=body, 12:24:29 headers=headers, 12:24:29 chunked=chunked, 12:24:29 retries=retries, 12:24:29 response_conn=response_conn, 12:24:29 preload_content=preload_content, 12:24:29 decode_content=decode_content, 12:24:29 **response_kw, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 12:24:29 conn.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 12:24:29 self.endheaders() 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 12:24:29 self._send_output(message_body, encode_chunked=encode_chunked) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 12:24:29 self.send(msg) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 12:24:29 self.connect() 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 12:24:29 self.sock = self._new_conn() 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 except socket.gaierror as e: 12:24:29 raise NameResolutionError(self.host, self, e) from e 12:24:29 except SocketTimeout as e: 12:24:29 raise ConnectTimeoutError( 12:24:29 self, 12:24:29 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 12:24:29 ) from e 12:24:29 12:24:29 except OSError as e: 12:24:29 > raise NewConnectionError( 12:24:29 self, f"Failed to establish a new connection: {e}" 12:24:29 ) from e 12:24:29 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 > resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 12:24:29 retries = retries.increment( 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/roadm-connections=SRG1-PP7-TXRX-DEG1-TTP-TXRX-713:720?content=nonconfig' 12:24:29 response = None 12:24:29 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 12:24:29 _pool = 12:24:29 _stacktrace = 12:24:29 12:24:29 def increment( 12:24:29 self, 12:24:29 method: str | None = None, 12:24:29 url: str | None = None, 12:24:29 response: BaseHTTPResponse | None = None, 12:24:29 error: Exception | None = None, 12:24:29 _pool: ConnectionPool | None = None, 12:24:29 _stacktrace: TracebackType | None = None, 12:24:29 ) -> Self: 12:24:29 """Return a new Retry object with incremented retry counters. 12:24:29 12:24:29 :param response: A response object, or None, if the server did not 12:24:29 return a response. 12:24:29 :type response: :class:`~urllib3.response.BaseHTTPResponse` 12:24:29 :param Exception error: An error encountered during the request, or 12:24:29 None if the response was received successfully. 12:24:29 12:24:29 :return: A new ``Retry`` object. 12:24:29 """ 12:24:29 if self.total is False and error: 12:24:29 # Disabled, indicate to re-raise the error. 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 12:24:29 total = self.total 12:24:29 if total is not None: 12:24:29 total -= 1 12:24:29 12:24:29 connect = self.connect 12:24:29 read = self.read 12:24:29 redirect = self.redirect 12:24:29 status_count = self.status 12:24:29 other = self.other 12:24:29 cause = "unknown" 12:24:29 status = None 12:24:29 redirect_location = None 12:24:29 12:24:29 if error and self._is_connection_error(error): 12:24:29 # Connect retry? 12:24:29 if connect is False: 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif connect is not None: 12:24:29 connect -= 1 12:24:29 12:24:29 elif error and self._is_read_error(error): 12:24:29 # Read retry? 12:24:29 if read is False or method is None or not self._is_method_retryable(method): 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif read is not None: 12:24:29 read -= 1 12:24:29 12:24:29 elif error: 12:24:29 # Other retry? 12:24:29 if other is not None: 12:24:29 other -= 1 12:24:29 12:24:29 elif response and response.get_redirect_location(): 12:24:29 # Redirect retry? 12:24:29 if redirect is not None: 12:24:29 redirect -= 1 12:24:29 cause = "too many redirects" 12:24:29 response_redirect_location = response.get_redirect_location() 12:24:29 if response_redirect_location: 12:24:29 redirect_location = response_redirect_location 12:24:29 status = response.status 12:24:29 12:24:29 else: 12:24:29 # Incrementing because of a server error like a 500 in 12:24:29 # status_forcelist and the given method is in the allowed_methods 12:24:29 cause = ResponseError.GENERIC_ERROR 12:24:29 if response and response.status: 12:24:29 if status_count is not None: 12:24:29 status_count -= 1 12:24:29 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 12:24:29 status = response.status 12:24:29 12:24:29 history = self.history + ( 12:24:29 RequestHistory(method, url, error, status, redirect_location), 12:24:29 ) 12:24:29 12:24:29 new_retry = self.new( 12:24:29 total=total, 12:24:29 connect=connect, 12:24:29 read=read, 12:24:29 redirect=redirect, 12:24:29 status=status_count, 12:24:29 other=other, 12:24:29 history=history, 12:24:29 ) 12:24:29 12:24:29 if new_retry.is_exhausted(): 12:24:29 reason = error or ResponseError(cause) 12:24:29 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 12:24:29 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/roadm-connections=SRG1-PP7-TXRX-DEG1-TTP-TXRX-713:720?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 12:24:29 12:24:29 During handling of the above exception, another exception occurred: 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_17_service_path_delete_rdm_check(self): 12:24:29 > response = test_utils.check_node_attribute_request( 12:24:29 "ROADMA01", "roadm-connections", "SRG1-PP7-TXRX-DEG1-TTP-TXRX-713:720") 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:268: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 transportpce_tests/common/test_utils.py:401: in check_node_attribute_request 12:24:29 response = get_request(url[RESTCONF_VERSION].format('{}', node, attribute, attribute_value)) 12:24:29 transportpce_tests/common/test_utils.py:116: in get_request 12:24:29 return requests.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 12:24:29 return session.request(method=method, url=url, **kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 12:24:29 resp = self.send(prep, **send_kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 12:24:29 r = adapter.send(request, **kwargs) 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 except (ProtocolError, OSError) as err: 12:24:29 raise ConnectionError(err, request=request) 12:24:29 12:24:29 except MaxRetryError as e: 12:24:29 if isinstance(e.reason, ConnectTimeoutError): 12:24:29 # TODO: Remove this in 3.0.0: see #2811 12:24:29 if not isinstance(e.reason, NewConnectionError): 12:24:29 raise ConnectTimeout(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, ResponseError): 12:24:29 raise RetryError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _ProxyError): 12:24:29 raise ProxyError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _SSLError): 12:24:29 # This branch is for urllib3 v1.22 and later. 12:24:29 raise SSLError(e, request=request) 12:24:29 12:24:29 > raise ConnectionError(e, request=request) 12:24:29 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/roadm-connections=SRG1-PP7-TXRX-DEG1-TTP-TXRX-713:720?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_17_service_path_delete_rdm_check 12:24:29 ______ TransportPCERendererTesting.test_18_service_path_delete_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 > sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 12:24:29 raise err 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 address = ('localhost', 8182), timeout = 10, source_address = None 12:24:29 socket_options = [(6, 1, 1)] 12:24:29 12:24:29 def create_connection( 12:24:29 address: tuple[str, int], 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 source_address: tuple[str, int] | None = None, 12:24:29 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 12:24:29 ) -> socket.socket: 12:24:29 """Connect to *address* and return the socket object. 12:24:29 12:24:29 Convenience function. Connect to *address* (a 2-tuple ``(host, 12:24:29 port)``) and return the socket object. Passing the optional 12:24:29 *timeout* parameter will set the timeout on the socket instance 12:24:29 before attempting to connect. If no *timeout* is supplied, the 12:24:29 global default timeout setting returned by :func:`socket.getdefaulttimeout` 12:24:29 is used. If *source_address* is set it must be a tuple of (host, port) 12:24:29 for the socket to bind as a source address before making the connection. 12:24:29 An host of '' or port 0 tells the OS to use the default. 12:24:29 """ 12:24:29 12:24:29 host, port = address 12:24:29 if host.startswith("["): 12:24:29 host = host.strip("[]") 12:24:29 err = None 12:24:29 12:24:29 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 12:24:29 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 12:24:29 # The original create_connection function always returns all records. 12:24:29 family = allowed_gai_family() 12:24:29 12:24:29 try: 12:24:29 host.encode("idna") 12:24:29 except UnicodeError: 12:24:29 raise LocationParseError(f"'{host}', label empty or too long") from None 12:24:29 12:24:29 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 12:24:29 af, socktype, proto, canonname, sa = res 12:24:29 sock = None 12:24:29 try: 12:24:29 sock = socket.socket(af, socktype, proto) 12:24:29 12:24:29 # If provided, set socket level options before connecting. 12:24:29 _set_socket_options(sock, socket_options) 12:24:29 12:24:29 if timeout is not _DEFAULT_TIMEOUT: 12:24:29 sock.settimeout(timeout) 12:24:29 if source_address: 12:24:29 sock.bind(source_address) 12:24:29 > sock.connect(sa) 12:24:29 E ConnectionRefusedError: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-713:720?content=nonconfig' 12:24:29 body = None 12:24:29 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 12:24:29 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 redirect = False, assert_same_host = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 12:24:29 release_conn = False, chunked = False, body_pos = None, preload_content = False 12:24:29 decode_content = False, response_kw = {} 12:24:29 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topolog.../org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-713:720', query='content=nonconfig', fragment=None) 12:24:29 destination_scheme = None, conn = None, release_this_conn = True 12:24:29 http_tunnel_required = False, err = None, clean_exit = False 12:24:29 12:24:29 def urlopen( # type: ignore[override] 12:24:29 self, 12:24:29 method: str, 12:24:29 url: str, 12:24:29 body: _TYPE_BODY | None = None, 12:24:29 headers: typing.Mapping[str, str] | None = None, 12:24:29 retries: Retry | bool | int | None = None, 12:24:29 redirect: bool = True, 12:24:29 assert_same_host: bool = True, 12:24:29 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 12:24:29 pool_timeout: int | None = None, 12:24:29 release_conn: bool | None = None, 12:24:29 chunked: bool = False, 12:24:29 body_pos: _TYPE_BODY_POSITION | None = None, 12:24:29 preload_content: bool = True, 12:24:29 decode_content: bool = True, 12:24:29 **response_kw: typing.Any, 12:24:29 ) -> BaseHTTPResponse: 12:24:29 """ 12:24:29 Get a connection from the pool and perform an HTTP request. This is the 12:24:29 lowest level call for making a request, so you'll need to specify all 12:24:29 the raw details. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 More commonly, it's appropriate to use a convenience method 12:24:29 such as :meth:`request`. 12:24:29 12:24:29 .. note:: 12:24:29 12:24:29 `release_conn` will only behave as expected if 12:24:29 `preload_content=False` because we want to make 12:24:29 `preload_content=False` the default behaviour someday soon without 12:24:29 breaking backwards compatibility. 12:24:29 12:24:29 :param method: 12:24:29 HTTP request method (such as GET, POST, PUT, etc.) 12:24:29 12:24:29 :param url: 12:24:29 The URL to perform the request on. 12:24:29 12:24:29 :param body: 12:24:29 Data to send in the request body, either :class:`str`, :class:`bytes`, 12:24:29 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 12:24:29 12:24:29 :param headers: 12:24:29 Dictionary of custom headers to send, such as User-Agent, 12:24:29 If-None-Match, etc. If None, pool headers are used. If provided, 12:24:29 these headers completely replace any pool-specific headers. 12:24:29 12:24:29 :param retries: 12:24:29 Configure the number of retries to allow before raising a 12:24:29 :class:`~urllib3.exceptions.MaxRetryError` exception. 12:24:29 12:24:29 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 12:24:29 :class:`~urllib3.util.retry.Retry` object for fine-grained control 12:24:29 over different types of retries. 12:24:29 Pass an integer number to retry connection errors that many times, 12:24:29 but no other types of errors. Pass zero to never retry. 12:24:29 12:24:29 If ``False``, then retries are disabled and any exception is raised 12:24:29 immediately. Also, instead of raising a MaxRetryError on redirects, 12:24:29 the redirect response will be returned. 12:24:29 12:24:29 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 12:24:29 12:24:29 :param redirect: 12:24:29 If True, automatically handle redirects (status codes 301, 302, 12:24:29 303, 307, 308). Each redirect counts as a retry. Disabling retries 12:24:29 will disable redirect, too. 12:24:29 12:24:29 :param assert_same_host: 12:24:29 If ``True``, will make sure that the host of the pool requests is 12:24:29 consistent else will raise HostChangedError. When ``False``, you can 12:24:29 use the pool on an HTTP proxy and request foreign hosts. 12:24:29 12:24:29 :param timeout: 12:24:29 If specified, overrides the default timeout for this one 12:24:29 request. It may be a float (in seconds) or an instance of 12:24:29 :class:`urllib3.util.Timeout`. 12:24:29 12:24:29 :param pool_timeout: 12:24:29 If set and the pool is set to block=True, then this method will 12:24:29 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 12:24:29 connection is available within the time period. 12:24:29 12:24:29 :param bool preload_content: 12:24:29 If True, the response's body will be preloaded into memory. 12:24:29 12:24:29 :param bool decode_content: 12:24:29 If True, will attempt to decode the body based on the 12:24:29 'content-encoding' header. 12:24:29 12:24:29 :param release_conn: 12:24:29 If False, then the urlopen call will not release the connection 12:24:29 back into the pool once a response is received (but will release if 12:24:29 you read the entire contents of the response such as when 12:24:29 `preload_content=True`). This is useful if you're not preloading 12:24:29 the response's content immediately. You will need to call 12:24:29 ``r.release_conn()`` on the response ``r`` to return the connection 12:24:29 back into the pool. If None, it takes the value of ``preload_content`` 12:24:29 which defaults to ``True``. 12:24:29 12:24:29 :param bool chunked: 12:24:29 If True, urllib3 will send the body using chunked transfer 12:24:29 encoding. Otherwise, urllib3 will send the body using the standard 12:24:29 content-length form. Defaults to False. 12:24:29 12:24:29 :param int body_pos: 12:24:29 Position to seek to in file-like body in the event of a retry or 12:24:29 redirect. Typically this won't need to be set because urllib3 will 12:24:29 auto-populate the value when needed. 12:24:29 """ 12:24:29 parsed_url = parse_url(url) 12:24:29 destination_scheme = parsed_url.scheme 12:24:29 12:24:29 if headers is None: 12:24:29 headers = self.headers 12:24:29 12:24:29 if not isinstance(retries, Retry): 12:24:29 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 12:24:29 12:24:29 if release_conn is None: 12:24:29 release_conn = preload_content 12:24:29 12:24:29 # Check host 12:24:29 if assert_same_host and not self.is_same_host(url): 12:24:29 raise HostChangedError(self, url, retries) 12:24:29 12:24:29 # Ensure that the URL we're connecting to is properly encoded 12:24:29 if url.startswith("/"): 12:24:29 url = to_str(_encode_target(url)) 12:24:29 else: 12:24:29 url = to_str(parsed_url.url) 12:24:29 12:24:29 conn = None 12:24:29 12:24:29 # Track whether `conn` needs to be released before 12:24:29 # returning/raising/recursing. Update this variable if necessary, and 12:24:29 # leave `release_conn` constant throughout the function. That way, if 12:24:29 # the function recurses, the original value of `release_conn` will be 12:24:29 # passed down into the recursive call, and its value will be respected. 12:24:29 # 12:24:29 # See issue #651 [1] for details. 12:24:29 # 12:24:29 # [1] 12:24:29 release_this_conn = release_conn 12:24:29 12:24:29 http_tunnel_required = connection_requires_http_tunnel( 12:24:29 self.proxy, self.proxy_config, destination_scheme 12:24:29 ) 12:24:29 12:24:29 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 12:24:29 # have to copy the headers dict so we can safely change it without those 12:24:29 # changes being reflected in anyone else's copy. 12:24:29 if not http_tunnel_required: 12:24:29 headers = headers.copy() # type: ignore[attr-defined] 12:24:29 headers.update(self.proxy_headers) # type: ignore[union-attr] 12:24:29 12:24:29 # Must keep the exception bound to a separate variable or else Python 3 12:24:29 # complains about UnboundLocalError. 12:24:29 err = None 12:24:29 12:24:29 # Keep track of whether we cleanly exited the except block. This 12:24:29 # ensures we do proper cleanup in finally. 12:24:29 clean_exit = False 12:24:29 12:24:29 # Rewind body position, if needed. Record current position 12:24:29 # for future rewinds in the event of a redirect/retry. 12:24:29 body_pos = set_file_position(body, body_pos) 12:24:29 12:24:29 try: 12:24:29 # Request a connection from the queue. 12:24:29 timeout_obj = self._get_timeout(timeout) 12:24:29 conn = self._get_conn(timeout=pool_timeout) 12:24:29 12:24:29 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 12:24:29 12:24:29 # Is this a closed/new connection that requires CONNECT tunnelling? 12:24:29 if self.proxy is not None and http_tunnel_required and conn.is_closed: 12:24:29 try: 12:24:29 self._prepare_proxy(conn) 12:24:29 except (BaseSSLError, OSError, SocketTimeout) as e: 12:24:29 self._raise_timeout( 12:24:29 err=e, url=self.proxy.url, timeout_value=conn.timeout 12:24:29 ) 12:24:29 raise 12:24:29 12:24:29 # If we're going to release the connection in ``finally:``, then 12:24:29 # the response doesn't need to know about the connection. Otherwise 12:24:29 # it will also try to release it and we'll have a double-release 12:24:29 # mess. 12:24:29 response_conn = conn if not release_conn else None 12:24:29 12:24:29 # Make the request on the HTTPConnection object 12:24:29 > response = self._make_request( 12:24:29 conn, 12:24:29 method, 12:24:29 url, 12:24:29 timeout=timeout_obj, 12:24:29 body=body, 12:24:29 headers=headers, 12:24:29 chunked=chunked, 12:24:29 retries=retries, 12:24:29 response_conn=response_conn, 12:24:29 preload_content=preload_content, 12:24:29 decode_content=decode_content, 12:24:29 **response_kw, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 12:24:29 conn.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 12:24:29 self.endheaders() 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 12:24:29 self._send_output(message_body, encode_chunked=encode_chunked) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 12:24:29 self.send(msg) 12:24:29 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 12:24:29 self.connect() 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 12:24:29 self.sock = self._new_conn() 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def _new_conn(self) -> socket.socket: 12:24:29 """Establish a socket connection and set nodelay settings on it. 12:24:29 12:24:29 :return: New socket connection. 12:24:29 """ 12:24:29 try: 12:24:29 sock = connection.create_connection( 12:24:29 (self._dns_host, self.port), 12:24:29 self.timeout, 12:24:29 source_address=self.source_address, 12:24:29 socket_options=self.socket_options, 12:24:29 ) 12:24:29 except socket.gaierror as e: 12:24:29 raise NameResolutionError(self.host, self, e) from e 12:24:29 except SocketTimeout as e: 12:24:29 raise ConnectTimeoutError( 12:24:29 self, 12:24:29 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 12:24:29 ) from e 12:24:29 12:24:29 except OSError as e: 12:24:29 > raise NewConnectionError( 12:24:29 self, f"Failed to establish a new connection: {e}" 12:24:29 ) from e 12:24:29 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 12:24:29 12:24:29 The above exception was the direct cause of the following exception: 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 > resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 12:24:29 retries = retries.increment( 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 12:24:29 method = 'GET' 12:24:29 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-713:720?content=nonconfig' 12:24:29 response = None 12:24:29 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 12:24:29 _pool = 12:24:29 _stacktrace = 12:24:29 12:24:29 def increment( 12:24:29 self, 12:24:29 method: str | None = None, 12:24:29 url: str | None = None, 12:24:29 response: BaseHTTPResponse | None = None, 12:24:29 error: Exception | None = None, 12:24:29 _pool: ConnectionPool | None = None, 12:24:29 _stacktrace: TracebackType | None = None, 12:24:29 ) -> Self: 12:24:29 """Return a new Retry object with incremented retry counters. 12:24:29 12:24:29 :param response: A response object, or None, if the server did not 12:24:29 return a response. 12:24:29 :type response: :class:`~urllib3.response.BaseHTTPResponse` 12:24:29 :param Exception error: An error encountered during the request, or 12:24:29 None if the response was received successfully. 12:24:29 12:24:29 :return: A new ``Retry`` object. 12:24:29 """ 12:24:29 if self.total is False and error: 12:24:29 # Disabled, indicate to re-raise the error. 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 12:24:29 total = self.total 12:24:29 if total is not None: 12:24:29 total -= 1 12:24:29 12:24:29 connect = self.connect 12:24:29 read = self.read 12:24:29 redirect = self.redirect 12:24:29 status_count = self.status 12:24:29 other = self.other 12:24:29 cause = "unknown" 12:24:29 status = None 12:24:29 redirect_location = None 12:24:29 12:24:29 if error and self._is_connection_error(error): 12:24:29 # Connect retry? 12:24:29 if connect is False: 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif connect is not None: 12:24:29 connect -= 1 12:24:29 12:24:29 elif error and self._is_read_error(error): 12:24:29 # Read retry? 12:24:29 if read is False or method is None or not self._is_method_retryable(method): 12:24:29 raise reraise(type(error), error, _stacktrace) 12:24:29 elif read is not None: 12:24:29 read -= 1 12:24:29 12:24:29 elif error: 12:24:29 # Other retry? 12:24:29 if other is not None: 12:24:29 other -= 1 12:24:29 12:24:29 elif response and response.get_redirect_location(): 12:24:29 # Redirect retry? 12:24:29 if redirect is not None: 12:24:29 redirect -= 1 12:24:29 cause = "too many redirects" 12:24:29 response_redirect_location = response.get_redirect_location() 12:24:29 if response_redirect_location: 12:24:29 redirect_location = response_redirect_location 12:24:29 status = response.status 12:24:29 12:24:29 else: 12:24:29 # Incrementing because of a server error like a 500 in 12:24:29 # status_forcelist and the given method is in the allowed_methods 12:24:29 cause = ResponseError.GENERIC_ERROR 12:24:29 if response and response.status: 12:24:29 if status_count is not None: 12:24:29 status_count -= 1 12:24:29 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 12:24:29 status = response.status 12:24:29 12:24:29 history = self.history + ( 12:24:29 RequestHistory(method, url, error, status, redirect_location), 12:24:29 ) 12:24:29 12:24:29 new_retry = self.new( 12:24:29 total=total, 12:24:29 connect=connect, 12:24:29 read=read, 12:24:29 redirect=redirect, 12:24:29 status=status_count, 12:24:29 other=other, 12:24:29 history=history, 12:24:29 ) 12:24:29 12:24:29 if new_retry.is_exhausted(): 12:24:29 reason = error or ResponseError(cause) 12:24:29 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 12:24:29 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-713:720?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 12:24:29 12:24:29 During handling of the above exception, another exception occurred: 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_18_service_path_delete_xpdr_check(self): 12:24:29 > response = test_utils.check_node_attribute_request("XPDRA01", "interface", "XPDR1-NETWORK1-713:720") 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:273: 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 transportpce_tests/common/test_utils.py:401: in check_node_attribute_request 12:24:29 response = get_request(url[RESTCONF_VERSION].format('{}', node, attribute, attribute_value)) 12:24:29 transportpce_tests/common/test_utils.py:116: in get_request 12:24:29 return requests.request( 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 12:24:29 return session.request(method=method, url=url, **kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 12:24:29 resp = self.send(prep, **send_kwargs) 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 12:24:29 r = adapter.send(request, **kwargs) 12:24:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:24:29 12:24:29 self = 12:24:29 request = , stream = False 12:24:29 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 12:24:29 proxies = OrderedDict() 12:24:29 12:24:29 def send( 12:24:29 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 12:24:29 ): 12:24:29 """Sends PreparedRequest object. Returns Response object. 12:24:29 12:24:29 :param request: The :class:`PreparedRequest ` being sent. 12:24:29 :param stream: (optional) Whether to stream the request content. 12:24:29 :param timeout: (optional) How long to wait for the server to send 12:24:29 data before giving up, as a float, or a :ref:`(connect timeout, 12:24:29 read timeout) ` tuple. 12:24:29 :type timeout: float or tuple or urllib3 Timeout object 12:24:29 :param verify: (optional) Either a boolean, in which case it controls whether 12:24:29 we verify the server's TLS certificate, or a string, in which case it 12:24:29 must be a path to a CA bundle to use 12:24:29 :param cert: (optional) Any user-provided SSL certificate to be trusted. 12:24:29 :param proxies: (optional) The proxies dictionary to apply to the request. 12:24:29 :rtype: requests.Response 12:24:29 """ 12:24:29 12:24:29 try: 12:24:29 conn = self.get_connection_with_tls_context( 12:24:29 request, verify, proxies=proxies, cert=cert 12:24:29 ) 12:24:29 except LocationValueError as e: 12:24:29 raise InvalidURL(e, request=request) 12:24:29 12:24:29 self.cert_verify(conn, request.url, verify, cert) 12:24:29 url = self.request_url(request, proxies) 12:24:29 self.add_headers( 12:24:29 request, 12:24:29 stream=stream, 12:24:29 timeout=timeout, 12:24:29 verify=verify, 12:24:29 cert=cert, 12:24:29 proxies=proxies, 12:24:29 ) 12:24:29 12:24:29 chunked = not (request.body is None or "Content-Length" in request.headers) 12:24:29 12:24:29 if isinstance(timeout, tuple): 12:24:29 try: 12:24:29 connect, read = timeout 12:24:29 timeout = TimeoutSauce(connect=connect, read=read) 12:24:29 except ValueError: 12:24:29 raise ValueError( 12:24:29 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 12:24:29 f"or a single float to set both timeouts to the same value." 12:24:29 ) 12:24:29 elif isinstance(timeout, TimeoutSauce): 12:24:29 pass 12:24:29 else: 12:24:29 timeout = TimeoutSauce(connect=timeout, read=timeout) 12:24:29 12:24:29 try: 12:24:29 resp = conn.urlopen( 12:24:29 method=request.method, 12:24:29 url=url, 12:24:29 body=request.body, 12:24:29 headers=request.headers, 12:24:29 redirect=False, 12:24:29 assert_same_host=False, 12:24:29 preload_content=False, 12:24:29 decode_content=False, 12:24:29 retries=self.max_retries, 12:24:29 timeout=timeout, 12:24:29 chunked=chunked, 12:24:29 ) 12:24:29 12:24:29 except (ProtocolError, OSError) as err: 12:24:29 raise ConnectionError(err, request=request) 12:24:29 12:24:29 except MaxRetryError as e: 12:24:29 if isinstance(e.reason, ConnectTimeoutError): 12:24:29 # TODO: Remove this in 3.0.0: see #2811 12:24:29 if not isinstance(e.reason, NewConnectionError): 12:24:29 raise ConnectTimeout(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, ResponseError): 12:24:29 raise RetryError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _ProxyError): 12:24:29 raise ProxyError(e, request=request) 12:24:29 12:24:29 if isinstance(e.reason, _SSLError): 12:24:29 # This branch is for urllib3 v1.22 and later. 12:24:29 raise SSLError(e, request=request) 12:24:29 12:24:29 > raise ConnectionError(e, request=request) 12:24:29 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-713:720?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 12:24:29 12:24:29 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_18_service_path_delete_xpdr_check 12:24:29 ______ TransportPCERendererTesting.test_19_service_path_delete_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_19_service_path_delete_xpdr_check(self): 12:24:29 response = test_utils.check_node_attribute_request("XPDRA01", "interface", "XPDR1-NETWORK1-OTU") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.conflict) 12:24:29 E AssertionError: 503 != 409 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:278: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_19_service_path_delete_xpdr_check 12:24:29 ______ TransportPCERendererTesting.test_20_service_path_delete_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_20_service_path_delete_xpdr_check(self): 12:24:29 response = test_utils.check_node_attribute_request("XPDRA01", "interface", "XPDR1-NETWORK1-ODU") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.conflict) 12:24:29 E AssertionError: 503 != 409 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:282: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_20_service_path_delete_xpdr_check 12:24:29 ______ TransportPCERendererTesting.test_21_service_path_delete_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_21_service_path_delete_xpdr_check(self): 12:24:29 response = test_utils.check_node_attribute_request("XPDRA01", "interface", "XPDR1-CLIENT1-ETHERNET") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.conflict) 12:24:29 E AssertionError: 503 != 409 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:286: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_21_service_path_delete_xpdr_check 12:24:29 ______ TransportPCERendererTesting.test_22_service_path_delete_xpdr_check ______ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_22_service_path_delete_xpdr_check(self): 12:24:29 response = test_utils.check_node_attribute_request("XPDRA01", "circuit-packs", "1%2F0%2F1-PLUG-NET") 12:24:29 > self.assertEqual(response['status_code'], requests.codes.ok) 12:24:29 E AssertionError: 400 != 200 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:290: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_22_service_path_delete_xpdr_check 12:24:29 _________ TransportPCERendererTesting.test_23_rdm_device_disconnected __________ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_23_rdm_device_disconnected(self): 12:24:29 response = test_utils.unmount_device("ROADMA01") 12:24:29 > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) 12:24:29 E AssertionError: 409 not found in (200, 204) 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:295: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_23_rdm_device_disconnected 12:24:29 Searching for pattern 'onDeviceDisConnected:\ ROADMA01' in karaf.log... Pattern not found after 180 seconds! Node ROADMA01 still not deleted from tpce topology... 12:24:29 _________ TransportPCERendererTesting.test_24_xpdr_device_disconnected _________ 12:24:29 12:24:29 self = 12:24:29 12:24:29 def test_24_xpdr_device_disconnected(self): 12:24:29 response = test_utils.unmount_device("XPDRA01") 12:24:29 > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) 12:24:29 E AssertionError: 409 not found in (200, 204) 12:24:29 12:24:29 transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py:299: AssertionError 12:24:29 ----------------------------- Captured stdout call ----------------------------- 12:24:29 execution of test_24_xpdr_device_disconnected 12:24:29 Searching for pattern 'onDeviceDisConnected:\ XPDRA01' in karaf.log... Pattern not found after 180 seconds! Node XPDRA01 still not deleted from tpce topology... 12:24:29 --------------------------- Captured stdout teardown --------------------------- 12:24:29 all processes killed 12:24:29 =========================== short test summary info ============================ 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_03_rdm_portmapping 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_04_xpdr_portmapping 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_05_service_path_create 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_06_service_path_create_rdm_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_07_service_path_create_rdm_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_08_service_path_create_rdm_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_09_service_path_create_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_10_service_path_create_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_11_service_path_create_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_12_service_path_create_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_13_service_path_create_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_14_service_path_delete 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_15_service_path_delete_rdm_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_16_service_path_delete_rdm_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_17_service_path_delete_rdm_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_18_service_path_delete_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_19_service_path_delete_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_20_service_path_delete_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_21_service_path_delete_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_22_service_path_delete_xpdr_check 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_23_rdm_device_disconnected 12:24:29 FAILED transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py::TransportPCERendererTesting::test_24_xpdr_device_disconnected 12:24:29 22 failed, 2 passed in 807.76s (0:13:27) 12:24:29 tests_network: FAIL ✖ in 4 minutes 13.82 seconds 12:24:29 tests121: exit 1 (2154.53 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 pid=35474 12:24:30 ....$ ssh-agent -k 12:24:38 unset SSH_AUTH_SOCK; 12:24:38 unset SSH_AGENT_PID; 12:24:38 echo Agent pid 11833 killed; 12:24:38 [ssh-agent] Stopped. 12:24:38 Build was aborted 12:24:38 Aborted by new patch set. 12:24:38 [PostBuildScript] - [INFO] Executing post build scripts. 12:24:38 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14810606154858990550.sh 12:24:38 ---> sysstat.sh 12:24:39 .[transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4251529597922605433.sh 12:24:39 ---> package-listing.sh 12:24:39 ++ facter osfamily 12:24:39 ++ tr '[:upper:]' '[:lower:]' 12:24:39 + OS_FAMILY=debian 12:24:39 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 12:24:39 + START_PACKAGES=/tmp/packages_start.txt 12:24:39 + END_PACKAGES=/tmp/packages_end.txt 12:24:39 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:24:39 + PACKAGES=/tmp/packages_start.txt 12:24:39 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 12:24:39 + PACKAGES=/tmp/packages_end.txt 12:24:39 + case "${OS_FAMILY}" in 12:24:39 + dpkg -l 12:24:39 + grep '^ii' 12:24:39 + '[' -f /tmp/packages_start.txt ']' 12:24:39 + '[' -f /tmp/packages_end.txt ']' 12:24:39 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:24:39 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 12:24:39 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 12:24:39 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 12:24:39 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8817263748972251194.sh 12:24:39 ---> capture-instance-metadata.sh 12:24:39 Setup pyenv: 12:24:39 system 12:24:39 3.8.13 12:24:39 3.9.13 12:24:39 3.10.13 12:24:39 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:24:39 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nxg5 from file:/tmp/.os_lf_venv 12:24:40 lf-activate-venv(): INFO: Installing: lftools 12:24:41 [100%] 12:24:41 22 passed in 98.68s (0:01:38) 12:24:41 pytest -q transportpce_tests/2.2.1/test09_olm.py 12:24:41 tests121: FAIL ✖ in 36 minutes 0.94 seconds 12:24:41 tests221: exit -15 (857.21 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=44223 12:24:41 + tox_status=143 12:24:41 + echo '---> Completed tox runs' 12:24:41 ---> Completed tox runs 12:24:41 + for i in .tox/*/log 12:24:41 ++ echo .tox/build_karaf_tests121/log 12:24:41 ++ awk -F/ '{print $2}' 12:24:41 + tox_env=build_karaf_tests121 12:24:41 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 12:24:52 lf-activate-venv(): INFO: Adding /tmp/venv-nxg5/bin to PATH 12:24:52 INFO: Running in OpenStack, capturing instance metadata 12:24:52 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12900792305135516584.sh 12:24:52 provisioning config files... 12:24:53 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #2099 12:24:53 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config3668440544615191896tmp 12:24:53 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 12:24:53 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 12:24:53 provisioning config files... 12:24:53 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 12:24:53 [EnvInject] - Injecting environment variables from a build step. 12:24:53 [EnvInject] - Injecting as environment variables the properties content 12:24:53 SERVER_ID=logs 12:24:53 12:24:53 [EnvInject] - Variables injected successfully. 12:24:53 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9396065601331020329.sh 12:24:53 ---> create-netrc.sh 12:24:53 WARN: Log server credential not found. 12:24:53 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7983854219034645389.sh 12:24:53 ---> python-tools-install.sh 12:24:53 Setup pyenv: 12:24:53 system 12:24:53 3.8.13 12:24:53 3.9.13 12:24:53 3.10.13 12:24:53 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:24:54 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nxg5 from file:/tmp/.os_lf_venv 12:24:55 lf-activate-venv(): INFO: Installing: lftools 12:25:04 lf-activate-venv(): INFO: Adding /tmp/venv-nxg5/bin to PATH 12:25:04 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9341474691555566677.sh 12:25:04 ---> sudo-logs.sh 12:25:04 Archiving 'sudo' log.. 12:25:05 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8125646698518039242.sh 12:25:05 ---> job-cost.sh 12:25:05 Setup pyenv: 12:25:05 system 12:25:05 3.8.13 12:25:05 3.9.13 12:25:05 3.10.13 12:25:05 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:25:05 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nxg5 from file:/tmp/.os_lf_venv 12:25:06 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 12:25:10 lf-activate-venv(): INFO: Adding /tmp/venv-nxg5/bin to PATH 12:25:10 INFO: No Stack... 12:25:11 INFO: Retrieving Pricing Info for: v3-standard-4 12:25:11 INFO: Archiving Costs 12:25:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins867025578066650744.sh 12:25:11 ---> logs-deploy.sh 12:25:11 Setup pyenv: 12:25:11 system 12:25:11 3.8.13 12:25:11 3.9.13 12:25:11 3.10.13 12:25:11 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:25:11 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nxg5 from file:/tmp/.os_lf_venv 12:25:12 lf-activate-venv(): INFO: Installing: lftools 12:25:21 lf-activate-venv(): INFO: Adding /tmp/venv-nxg5/bin to PATH 12:25:21 WARNING: Nexus logging server not set 12:25:21 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/2099/ 12:25:21 INFO: archiving logs to S3 12:25:24 ---> uname -a: 12:25:24 Linux prd-ubuntu2004-docker-4c-16g-788 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 12:25:24 12:25:24 12:25:24 ---> lscpu: 12:25:24 Architecture: x86_64 12:25:24 CPU op-mode(s): 32-bit, 64-bit 12:25:24 Byte Order: Little Endian 12:25:24 Address sizes: 40 bits physical, 48 bits virtual 12:25:24 CPU(s): 4 12:25:24 On-line CPU(s) list: 0-3 12:25:24 Thread(s) per core: 1 12:25:24 Core(s) per socket: 1 12:25:24 Socket(s): 4 12:25:24 NUMA node(s): 1 12:25:24 Vendor ID: AuthenticAMD 12:25:24 CPU family: 23 12:25:24 Model: 49 12:25:24 Model name: AMD EPYC-Rome Processor 12:25:24 Stepping: 0 12:25:24 CPU MHz: 2799.998 12:25:24 BogoMIPS: 5599.99 12:25:24 Virtualization: AMD-V 12:25:24 Hypervisor vendor: KVM 12:25:24 Virtualization type: full 12:25:24 L1d cache: 128 KiB 12:25:24 L1i cache: 128 KiB 12:25:24 L2 cache: 2 MiB 12:25:24 L3 cache: 64 MiB 12:25:24 NUMA node0 CPU(s): 0-3 12:25:24 Vulnerability Gather data sampling: Not affected 12:25:24 Vulnerability Itlb multihit: Not affected 12:25:24 Vulnerability L1tf: Not affected 12:25:24 Vulnerability Mds: Not affected 12:25:24 Vulnerability Meltdown: Not affected 12:25:24 Vulnerability Mmio stale data: Not affected 12:25:24 Vulnerability Retbleed: Vulnerable 12:25:24 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 12:25:24 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 12:25:24 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 12:25:24 Vulnerability Srbds: Not affected 12:25:24 Vulnerability Tsx async abort: Not affected 12:25:24 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 clzero xsaveerptr wbnoinvd arat npt nrip_save umip rdpid arch_capabilities 12:25:24 12:25:24 12:25:24 ---> nproc: 12:25:24 4 12:25:24 12:25:24 12:25:24 ---> df -h: 12:25:24 Filesystem Size Used Avail Use% Mounted on 12:25:24 udev 7.8G 0 7.8G 0% /dev 12:25:24 tmpfs 1.6G 1.1M 1.6G 1% /run 12:25:24 /dev/vda1 78G 16G 62G 21% / 12:25:24 tmpfs 7.9G 0 7.9G 0% /dev/shm 12:25:24 tmpfs 5.0M 0 5.0M 0% /run/lock 12:25:24 tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup 12:25:24 /dev/loop1 68M 68M 0 100% /snap/lxd/22753 12:25:24 /dev/loop0 62M 62M 0 100% /snap/core20/1405 12:25:24 /dev/vda15 105M 6.1M 99M 6% /boot/efi 12:25:24 tmpfs 1.6G 0 1.6G 0% /run/user/1001 12:25:24 /dev/loop3 39M 39M 0 100% /snap/snapd/21759 12:25:24 /dev/loop4 64M 64M 0 100% /snap/core20/2434 12:25:24 /dev/loop5 92M 92M 0 100% /snap/lxd/29619 12:25:24 12:25:24 12:25:24 ---> free -m: 12:25:24 total used free shared buff/cache available 12:25:24 Mem: 15997 3780 4457 1 7759 11877 12:25:24 Swap: 1023 0 1023 12:25:24 12:25:24 12:25:24 ---> ip addr: 12:25:24 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 12:25:24 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 12:25:24 inet 127.0.0.1/8 scope host lo 12:25:24 valid_lft forever preferred_lft forever 12:25:24 inet6 ::1/128 scope host 12:25:24 valid_lft forever preferred_lft forever 12:25:24 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 12:25:24 link/ether fa:16:3e:50:54:9e brd ff:ff:ff:ff:ff:ff 12:25:24 inet 10.30.170.15/23 brd 10.30.171.255 scope global dynamic ens3 12:25:24 valid_lft 83621sec preferred_lft 83621sec 12:25:24 inet6 fe80::f816:3eff:fe50:549e/64 scope link 12:25:24 valid_lft forever preferred_lft forever 12:25:24 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 12:25:24 link/ether 02:42:c8:9f:24:cb brd ff:ff:ff:ff:ff:ff 12:25:24 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 12:25:24 valid_lft forever preferred_lft forever 12:25:24 12:25:24 12:25:24 ---> sar -b -r -n DEV: 12:25:24 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-788) 10/24/24 _x86_64_ (4 CPU) 12:25:24 12:25:24 11:39:06 LINUX RESTART (4 CPU) 12:25:24 12:25:24 11:40:02 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 12:25:24 11:41:01 141.36 49.24 92.12 0.00 1449.41 11271.86 0.00 12:25:24 11:42:01 230.34 41.05 189.29 0.00 2732.16 41343.29 0.00 12:25:24 11:43:01 84.01 1.60 82.41 0.00 89.44 35439.39 0.00 12:25:24 11:44:01 153.72 3.17 150.56 0.00 119.05 114417.46 0.00 12:25:24 11:45:01 177.09 12.23 164.86 0.00 4611.76 100167.84 0.00 12:25:24 11:46:01 133.94 2.37 131.57 0.00 260.18 11296.23 0.00 12:25:24 11:47:01 75.30 2.73 72.56 0.00 186.17 1589.87 0.00 12:25:24 11:48:01 71.47 0.15 71.32 0.00 12.26 1316.45 0.00 12:25:24 11:49:01 81.94 2.53 79.40 0.00 459.12 2278.55 0.00 12:25:24 11:50:01 55.32 0.07 55.26 0.00 2.40 8132.91 0.00 12:25:24 11:51:01 2.27 0.00 2.27 0.00 0.00 28.80 0.00 12:25:24 11:52:01 44.68 0.37 44.31 0.00 20.93 928.51 0.00 12:25:24 11:53:01 42.51 0.00 42.51 0.00 0.00 747.88 0.00 12:25:24 11:54:02 45.93 0.00 45.93 0.00 0.00 919.71 0.00 12:25:24 11:55:01 3.25 0.92 2.34 0.00 20.06 42.70 0.00 12:25:24 11:56:01 2.77 0.00 2.77 0.00 0.00 55.19 0.00 12:25:24 11:57:01 1.67 0.00 1.67 0.00 0.00 23.86 0.00 12:25:24 11:58:01 2.70 0.00 2.70 0.00 0.00 36.39 0.00 12:25:24 11:59:01 24.38 0.00 24.38 0.00 0.00 485.44 0.00 12:25:24 12:00:01 98.68 0.00 98.68 0.00 0.00 1575.20 0.00 12:25:24 12:01:01 49.43 0.00 49.43 0.00 0.00 736.68 0.00 12:25:24 12:02:01 4.70 0.00 4.70 0.00 0.00 79.45 0.00 12:25:24 12:03:01 2.80 0.00 2.80 0.00 0.00 55.99 0.00 12:25:24 12:04:01 94.97 0.07 94.90 0.00 0.53 5168.61 0.00 12:25:24 12:05:01 65.27 0.00 65.27 0.00 0.00 6031.66 0.00 12:25:24 12:06:01 2.52 0.00 2.52 0.00 0.00 45.72 0.00 12:25:24 12:07:01 23.36 0.00 23.36 0.00 0.00 373.67 0.00 12:25:24 12:08:01 44.19 0.00 44.19 0.00 0.00 643.76 0.00 12:25:24 12:09:01 2.52 0.00 2.52 0.00 0.00 52.66 0.00 12:25:24 12:10:01 66.17 0.00 66.17 0.00 0.00 1277.65 0.00 12:25:24 12:11:01 62.41 0.02 62.39 0.00 0.13 5438.43 0.00 12:25:24 12:12:01 77.19 0.03 77.15 0.00 0.40 1302.45 0.00 12:25:24 12:13:01 2.23 0.00 2.23 0.00 0.00 46.39 0.00 12:25:24 12:14:01 2.37 0.00 2.37 0.00 0.00 30.66 0.00 12:25:24 12:15:01 11.91 0.03 11.88 0.00 0.27 339.35 0.00 12:25:24 12:16:01 81.25 0.00 81.25 0.00 0.00 1174.47 0.00 12:25:24 12:17:01 48.04 0.05 47.99 0.00 1.07 695.48 0.00 12:25:24 12:18:01 4.43 0.05 4.38 0.00 1.87 78.39 0.00 12:25:24 12:19:01 60.20 0.00 60.20 0.00 0.00 900.77 0.00 12:25:24 12:20:01 65.97 0.02 65.96 0.00 0.13 959.44 0.00 12:25:24 12:21:01 15.70 0.02 15.68 0.00 0.13 250.40 0.00 12:25:24 12:22:01 118.95 0.02 118.93 0.00 0.13 1734.11 0.00 12:25:24 12:23:01 3.05 0.00 3.05 0.00 0.00 57.46 0.00 12:25:24 12:24:01 72.07 0.00 72.07 0.00 0.00 1048.23 0.00 12:25:24 12:25:01 30.31 5.10 25.21 0.00 256.71 730.69 0.00 12:25:24 Average: 55.22 2.69 52.53 0.00 226.84 8031.85 0.00 12:25:24 12:25:24 11:40:02 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 12:25:24 11:41:01 13066620 15332424 631104 3.85 81732 2367096 1461676 8.39 924032 2083880 213896 12:25:24 11:42:01 10472428 14303032 1654360 10.10 137924 3758864 2383968 13.68 2135592 3342184 602384 12:25:24 11:43:01 8765448 14253632 1702192 10.39 163620 5314252 2733888 15.69 2514392 4591412 1198040 12:25:24 11:44:01 6249276 13926920 2027860 12.38 195900 7380608 2981284 17.10 3539332 5988556 714736 12:25:24 11:45:01 2736988 12174596 3770004 23.01 222260 9044928 5372396 30.82 5860540 7092204 241432 12:25:24 11:46:01 288804 9754740 6185172 37.76 231692 9062108 8007368 45.94 8450076 6936188 960 12:25:24 11:47:01 220548 8665124 7274564 44.41 226112 8063580 8266092 47.42 9377756 6086608 928 12:25:24 11:48:01 990216 9396504 6543152 39.94 228956 8022904 7537320 43.24 8652596 6047540 568 12:25:24 11:49:01 167472 7694720 8244224 50.33 237920 7146780 9699552 55.65 10315624 5210992 220964 12:25:24 11:50:01 175052 7314124 8624564 52.65 239648 6763860 9800312 56.23 10670660 4854076 188 12:25:24 11:51:01 174344 7313452 8625232 52.65 239676 6763868 9800312 56.23 10671540 4854044 120 12:25:24 11:52:01 3019172 10160152 5780120 35.28 240432 6764928 7218676 41.42 7845424 4845192 492 12:25:24 11:53:01 4233076 11376280 4564080 27.86 242028 6765528 5497652 31.54 6644736 4837460 416 12:25:24 11:54:02 2247652 9392408 6547120 39.97 242848 6766256 7472720 42.87 8637760 4822896 324 12:25:24 11:55:01 2228368 9373940 6565512 40.08 242916 6766948 7523584 43.16 8657048 4820920 316 12:25:24 11:56:01 2219792 9365688 6573732 40.13 242944 6767240 7523584 43.16 8666128 4821188 128 12:25:24 11:57:01 2126840 9272792 6666712 40.70 242964 6767264 7523584 43.16 8758936 4821172 148 12:25:24 11:58:01 2127040 9273008 6666476 40.70 242976 6767268 7523584 43.16 8758564 4821176 52 12:25:24 11:59:01 5713996 12860504 3080056 18.80 243336 6767448 4025808 23.10 5194100 4812940 888 12:25:24 12:00:01 3474440 10624480 5315552 32.45 245988 6768228 6555112 37.61 7433068 4802684 744 12:25:24 12:01:01 1184044 8336772 7601760 46.40 247908 6768924 8883336 50.97 9716676 4802832 232 12:25:24 12:02:01 1158404 8311356 7627124 46.56 247928 6769128 8883336 50.97 9742468 4802968 112 12:25:24 12:03:01 1124988 8278488 7659968 46.76 247948 6769640 8915380 51.15 9774760 4803480 196 12:25:24 12:04:01 2823480 10217444 5721528 34.93 255540 6995696 6739436 38.67 7907828 4970728 143800 12:25:24 12:05:01 2884772 10280136 5658892 34.54 256576 6996052 6744232 38.69 7868500 4949216 284 12:25:24 12:06:01 2862340 10257856 5681116 34.68 256580 6996208 6744232 38.69 7890652 4949328 236 12:25:24 12:07:01 3745220 11140908 4798052 29.29 256744 6996260 6436848 36.93 7022720 4937812 764 12:25:24 12:08:01 2024456 9421548 6517372 39.79 257900 6996512 7402204 42.47 8737220 4937928 56 12:25:24 12:09:01 1989668 9387060 6551932 40.00 257940 6996764 7418228 42.56 8770696 4938176 184 12:25:24 12:10:01 2729548 10128524 5810448 35.47 259272 6996976 6667924 38.26 8034384 4938216 336 12:25:24 12:11:01 4134424 11666416 4272260 26.08 263956 7117172 5657472 32.46 6510460 5055804 2056 12:25:24 12:12:01 1706572 9240388 6698024 40.89 264724 7118180 8109504 46.53 8931616 5054824 560 12:25:24 12:13:01 2798176 10331964 5606456 34.22 264736 7118108 6769556 38.84 7844148 5054752 132 12:25:24 12:14:01 2796696 10330492 5607928 34.23 264740 7118108 6769556 38.84 7845676 5054752 84 12:25:24 12:15:01 5508008 13042068 2897396 17.69 264796 7118312 3958800 22.71 5148984 5049580 296 12:25:24 12:16:01 4602784 12138496 3801036 23.20 265668 7119004 5034568 28.88 6058936 5041608 724 12:25:24 12:17:01 2209600 9746236 6192668 37.80 266368 7119204 7365076 42.26 8441740 5041808 444 12:25:24 12:18:01 5771096 13307780 2631620 16.06 266376 7119240 3992552 22.91 4895844 5040728 368 12:25:24 12:19:01 5699428 13237484 2702036 16.49 267456 7119572 3998840 22.94 4967632 5040964 248 12:25:24 12:20:01 4247100 11786596 4153000 25.35 268312 7120132 5176012 29.70 6413744 5041524 324 12:25:24 12:21:01 5358984 12898472 3041124 18.56 268340 7120104 4087064 23.45 5305832 5040680 372 12:25:24 12:22:01 4240180 11781388 4158264 25.38 269180 7120940 5179096 29.71 6419844 5041488 416 12:25:24 12:23:01 4140656 11681992 4257668 25.99 269184 7121064 5243636 30.08 6519040 5041612 32 12:25:24 12:24:01 3294648 10836980 5102540 31.15 269820 7121408 6105472 35.03 7361188 5041912 384 12:25:24 12:25:01 6482036 14047828 1894192 11.56 270364 7144140 2807512 16.11 4171004 5060276 18084 12:25:24 Average: 3471442 10748071 5193026 31.70 243116 6904151 6311074 36.21 7244655 5005029 74854 12:25:24 12:25:24 11:40:02 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 12:25:24 11:41:01 ens3 74.72 58.37 654.56 9.48 0.00 0.00 0.00 0.00 12:25:24 11:41:01 lo 0.88 0.88 0.09 0.09 0.00 0.00 0.00 0.00 12:25:24 11:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:42:01 ens3 520.09 409.41 7704.86 42.23 0.00 0.00 0.00 0.00 12:25:24 11:42:01 lo 6.06 6.06 0.61 0.61 0.00 0.00 0.00 0.00 12:25:24 11:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:43:01 ens3 358.83 276.46 5640.31 27.20 0.00 0.00 0.00 0.00 12:25:24 11:43:01 lo 0.87 0.87 0.09 0.09 0.00 0.00 0.00 0.00 12:25:24 11:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:44:01 ens3 73.37 41.68 1777.73 6.06 0.00 0.00 0.00 0.00 12:25:24 11:44:01 lo 0.87 0.87 0.08 0.08 0.00 0.00 0.00 0.00 12:25:24 11:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:45:01 ens3 256.57 165.17 2772.26 11.18 0.00 0.00 0.00 0.00 12:25:24 11:45:01 lo 3.40 3.40 0.37 0.37 0.00 0.00 0.00 0.00 12:25:24 11:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:46:01 ens3 2.42 2.38 1.00 0.54 0.00 0.00 0.00 0.00 12:25:24 11:46:01 lo 6.65 6.65 13.89 13.89 0.00 0.00 0.00 0.00 12:25:24 11:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:47:01 ens3 1.23 1.12 0.30 0.22 0.00 0.00 0.00 0.00 12:25:24 11:47:01 lo 51.86 51.86 39.96 39.96 0.00 0.00 0.00 0.00 12:25:24 11:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:48:01 ens3 1.37 1.23 0.24 0.24 0.00 0.00 0.00 0.00 12:25:24 11:48:01 lo 36.89 36.89 17.78 17.78 0.00 0.00 0.00 0.00 12:25:24 11:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:49:01 ens3 1.75 1.92 0.78 0.69 0.00 0.00 0.00 0.00 12:25:24 11:49:01 lo 3.32 3.32 1.02 1.02 0.00 0.00 0.00 0.00 12:25:24 11:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:50:01 ens3 0.43 0.23 0.15 0.08 0.00 0.00 0.00 0.00 12:25:24 11:50:01 lo 7.30 7.30 8.23 8.23 0.00 0.00 0.00 0.00 12:25:24 11:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:51:01 ens3 0.18 0.05 0.01 0.01 0.00 0.00 0.00 0.00 12:25:24 11:51:01 lo 0.15 0.15 0.01 0.01 0.00 0.00 0.00 0.00 12:25:24 11:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:52:01 ens3 0.65 0.57 0.07 0.07 0.00 0.00 0.00 0.00 12:25:24 11:52:01 lo 3.82 3.82 0.39 0.39 0.00 0.00 0.00 0.00 12:25:24 11:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:53:01 ens3 1.43 1.32 0.29 0.27 0.00 0.00 0.00 0.00 12:25:24 11:53:01 lo 31.54 31.54 24.97 24.97 0.00 0.00 0.00 0.00 12:25:24 11:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:54:02 ens3 0.55 0.43 0.06 0.06 0.00 0.00 0.00 0.00 12:25:24 11:54:02 lo 21.15 21.15 10.13 10.13 0.00 0.00 0.00 0.00 12:25:24 11:54:02 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:55:01 ens3 0.42 0.27 0.12 0.10 0.00 0.00 0.00 0.00 12:25:24 11:55:01 lo 14.69 14.69 5.70 5.70 0.00 0.00 0.00 0.00 12:25:24 11:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:56:01 ens3 0.50 0.33 0.07 0.05 0.00 0.00 0.00 0.00 12:25:24 11:56:01 lo 19.00 19.00 5.76 5.76 0.00 0.00 0.00 0.00 12:25:24 11:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:57:01 ens3 0.60 0.22 0.08 0.04 0.00 0.00 0.00 0.00 12:25:24 11:57:01 lo 9.90 9.90 2.93 2.93 0.00 0.00 0.00 0.00 12:25:24 11:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:58:01 ens3 0.77 0.43 0.32 0.24 0.00 0.00 0.00 0.00 12:25:24 11:58:01 lo 0.20 0.20 0.01 0.01 0.00 0.00 0.00 0.00 12:25:24 11:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 11:59:01 ens3 0.42 0.27 0.10 0.04 0.00 0.00 0.00 0.00 12:25:24 11:59:01 lo 2.85 2.85 0.30 0.30 0.00 0.00 0.00 0.00 12:25:24 11:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:00:01 ens3 1.22 1.28 0.23 0.22 0.00 0.00 0.00 0.00 12:25:24 12:00:01 lo 16.38 16.38 7.04 7.04 0.00 0.00 0.00 0.00 12:25:24 12:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:01:01 ens3 0.77 0.90 0.13 0.13 0.00 0.00 0.00 0.00 12:25:24 12:01:01 lo 30.08 30.08 11.64 11.64 0.00 0.00 0.00 0.00 12:25:24 12:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:02:01 ens3 1.03 1.40 0.21 0.22 0.00 0.00 0.00 0.00 12:25:24 12:02:01 lo 10.18 10.18 7.85 7.85 0.00 0.00 0.00 0.00 12:25:24 12:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:03:01 ens3 0.78 0.93 0.19 0.14 0.00 0.00 0.00 0.00 12:25:24 12:03:01 lo 29.41 29.41 11.45 11.45 0.00 0.00 0.00 0.00 12:25:24 12:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:04:01 ens3 2.97 3.35 1.20 1.06 0.00 0.00 0.00 0.00 12:25:24 12:04:01 lo 19.06 19.06 20.99 20.99 0.00 0.00 0.00 0.00 12:25:24 12:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:05:01 ens3 1.68 1.83 0.64 0.39 0.00 0.00 0.00 0.00 12:25:24 12:05:01 lo 14.38 14.38 7.01 7.01 0.00 0.00 0.00 0.00 12:25:24 12:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:06:01 ens3 1.27 1.63 0.29 0.25 0.00 0.00 0.00 0.00 12:25:24 12:06:01 lo 29.47 29.47 9.34 9.34 0.00 0.00 0.00 0.00 12:25:24 12:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:07:01 ens3 1.08 1.47 0.22 0.23 0.00 0.00 0.00 0.00 12:25:24 12:07:01 lo 16.76 16.76 4.94 4.94 0.00 0.00 0.00 0.00 12:25:24 12:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:08:01 ens3 1.17 1.42 0.21 0.22 0.00 0.00 0.00 0.00 12:25:24 12:08:01 lo 25.38 25.38 15.95 15.95 0.00 0.00 0.00 0.00 12:25:24 12:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:09:01 ens3 1.85 1.43 0.31 0.23 0.00 0.00 0.00 0.00 12:25:24 12:09:01 lo 41.79 41.79 13.68 13.68 0.00 0.00 0.00 0.00 12:25:24 12:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:10:01 ens3 2.10 1.55 1.02 0.80 0.00 0.00 0.00 0.00 12:25:24 12:10:01 lo 27.13 27.13 11.56 11.56 0.00 0.00 0.00 0.00 12:25:24 12:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:11:01 ens3 3.73 4.43 1.71 1.54 0.00 0.00 0.00 0.00 12:25:24 12:11:01 lo 16.63 16.63 5.80 5.80 0.00 0.00 0.00 0.00 12:25:24 12:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:12:01 ens3 1.60 1.45 0.29 0.26 0.00 0.00 0.00 0.00 12:25:24 12:12:01 lo 22.36 22.36 16.42 16.42 0.00 0.00 0.00 0.00 12:25:24 12:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:13:01 ens3 0.28 0.12 0.07 0.01 0.00 0.00 0.00 0.00 12:25:24 12:13:01 lo 0.23 0.23 0.02 0.02 0.00 0.00 0.00 0.00 12:25:24 12:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:14:01 ens3 0.22 0.10 0.01 0.01 0.00 0.00 0.00 0.00 12:25:24 12:14:01 lo 0.58 0.58 0.06 0.06 0.00 0.00 0.00 0.00 12:25:24 12:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:15:01 ens3 6.13 5.38 1.39 3.40 0.00 0.00 0.00 0.00 12:25:24 12:15:01 lo 3.77 3.77 1.72 1.72 0.00 0.00 0.00 0.00 12:25:24 12:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:16:01 ens3 0.70 0.78 0.10 0.10 0.00 0.00 0.00 0.00 12:25:24 12:16:01 lo 13.13 13.13 4.64 4.64 0.00 0.00 0.00 0.00 12:25:24 12:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:17:01 ens3 1.12 1.27 0.19 0.20 0.00 0.00 0.00 0.00 12:25:24 12:17:01 lo 15.40 15.40 6.92 6.92 0.00 0.00 0.00 0.00 12:25:24 12:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:18:01 ens3 1.62 2.13 0.33 0.34 0.00 0.00 0.00 0.00 12:25:24 12:18:01 lo 17.63 17.63 7.50 7.50 0.00 0.00 0.00 0.00 12:25:24 12:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:19:01 ens3 1.15 1.45 0.22 0.23 0.00 0.00 0.00 0.00 12:25:24 12:19:01 lo 6.58 6.58 6.46 6.46 0.00 0.00 0.00 0.00 12:25:24 12:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:20:01 ens3 0.62 0.58 0.15 0.13 0.00 0.00 0.00 0.00 12:25:24 12:20:01 lo 8.75 8.75 3.11 3.11 0.00 0.00 0.00 0.00 12:25:24 12:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:21:01 ens3 0.55 0.68 0.10 0.11 0.00 0.00 0.00 0.00 12:25:24 12:21:01 lo 3.52 3.52 0.59 0.59 0.00 0.00 0.00 0.00 12:25:24 12:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:22:01 ens3 0.80 0.80 0.11 0.11 0.00 0.00 0.00 0.00 12:25:24 12:22:01 lo 30.64 30.64 14.71 14.71 0.00 0.00 0.00 0.00 12:25:24 12:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:23:01 ens3 1.12 1.42 0.27 0.22 0.00 0.00 0.00 0.00 12:25:24 12:23:01 lo 20.31 20.31 8.53 8.53 0.00 0.00 0.00 0.00 12:25:24 12:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:24:01 ens3 0.65 0.70 0.09 0.10 0.00 0.00 0.00 0.00 12:25:24 12:24:01 lo 12.50 12.50 14.91 14.91 0.00 0.00 0.00 0.00 12:25:24 12:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:25:01 ens3 20.36 19.69 11.15 10.87 0.00 0.00 0.00 0.00 12:25:24 12:25:01 lo 11.63 11.63 5.47 5.47 0.00 0.00 0.00 0.00 12:25:24 12:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 Average: ens3 30.06 22.66 412.86 2.67 0.00 0.00 0.00 0.00 12:25:24 Average: lo 14.78 14.78 7.80 7.80 0.00 0.00 0.00 0.00 12:25:24 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12:25:24 12:25:24 12:25:24 ---> sar -P ALL: 12:25:24 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-788) 10/24/24 _x86_64_ (4 CPU) 12:25:24 12:25:24 11:39:06 LINUX RESTART (4 CPU) 12:25:24 12:25:24 11:40:02 CPU %user %nice %system %iowait %steal %idle 12:25:24 11:41:01 all 20.77 7.15 7.03 3.12 0.10 61.82 12:25:24 11:41:01 0 8.21 7.99 7.42 1.28 0.10 74.99 12:25:24 11:41:01 1 24.53 5.45 6.14 3.73 0.09 60.06 12:25:24 11:41:01 2 32.69 7.89 7.68 5.50 0.12 46.12 12:25:24 11:41:01 3 17.83 7.26 6.87 2.00 0.10 65.94 12:25:24 11:42:01 all 77.94 0.00 4.48 10.46 0.16 6.95 12:25:24 11:42:01 0 76.15 0.00 4.90 12.65 0.15 6.16 12:25:24 11:42:01 1 79.11 0.00 4.45 9.89 0.18 6.37 12:25:24 11:42:01 2 79.38 0.00 4.19 11.73 0.17 4.53 12:25:24 11:42:01 3 77.14 0.00 4.39 7.59 0.13 10.75 12:25:24 11:43:01 all 58.59 0.00 2.93 1.73 0.11 36.63 12:25:24 11:43:01 0 51.23 0.00 2.94 2.57 0.10 43.17 12:25:24 11:43:01 1 59.48 0.00 1.92 0.45 0.12 38.03 12:25:24 11:43:01 2 67.27 0.00 3.40 1.57 0.12 27.64 12:25:24 11:43:01 3 56.38 0.00 3.46 2.34 0.12 37.69 12:25:24 11:44:01 all 64.39 0.00 3.28 20.45 0.11 11.77 12:25:24 11:44:01 0 61.75 0.00 3.16 16.83 0.12 18.15 12:25:24 11:44:01 1 67.65 0.00 2.68 26.25 0.12 3.30 12:25:24 11:44:01 2 60.45 0.00 3.40 21.03 0.10 15.02 12:25:24 11:44:01 3 67.69 0.00 3.89 17.69 0.10 10.63 12:25:24 11:45:01 all 72.01 0.00 3.92 13.51 0.13 10.43 12:25:24 11:45:01 0 73.27 0.00 3.65 3.96 0.13 18.98 12:25:24 11:45:01 1 76.30 0.00 4.41 18.11 0.13 1.04 12:25:24 11:45:01 2 67.83 0.00 3.57 25.96 0.12 2.53 12:25:24 11:45:01 3 70.63 0.00 4.06 6.07 0.13 19.10 12:25:24 11:46:01 all 69.86 0.00 2.60 0.31 0.13 27.09 12:25:24 11:46:01 0 73.15 0.00 2.58 0.02 0.13 24.12 12:25:24 11:46:01 1 69.96 0.00 2.62 0.63 0.13 26.66 12:25:24 11:46:01 2 67.26 0.00 2.43 0.25 0.13 29.92 12:25:24 11:46:01 3 69.06 0.00 2.77 0.34 0.13 27.70 12:25:24 11:47:01 all 46.86 0.00 1.63 1.23 0.11 50.17 12:25:24 11:47:01 0 44.87 0.00 1.86 0.12 0.10 53.06 12:25:24 11:47:01 1 46.88 0.00 1.45 3.61 0.12 47.94 12:25:24 11:47:01 2 47.95 0.00 1.54 0.50 0.10 49.91 12:25:24 11:47:01 3 47.73 0.00 1.65 0.69 0.13 49.80 12:25:24 11:48:01 all 26.23 0.00 1.24 0.44 0.10 71.99 12:25:24 11:48:01 0 27.21 0.00 1.16 0.13 0.10 71.40 12:25:24 11:48:01 1 26.81 0.00 1.28 1.00 0.12 70.80 12:25:24 11:48:01 2 24.34 0.00 1.30 0.20 0.08 74.07 12:25:24 11:48:01 3 26.56 0.00 1.22 0.42 0.10 71.70 12:25:24 11:49:01 all 50.63 0.00 2.08 1.38 0.12 45.80 12:25:24 11:49:01 0 58.69 0.00 2.72 0.90 0.12 37.57 12:25:24 11:49:01 1 50.13 0.00 2.28 3.75 0.10 43.74 12:25:24 11:49:01 2 50.08 0.00 1.49 0.37 0.13 47.93 12:25:24 11:49:01 3 43.61 0.00 1.82 0.50 0.12 53.95 12:25:24 11:50:01 all 8.00 0.00 0.64 0.65 0.07 90.63 12:25:24 11:50:01 0 8.32 0.00 0.70 1.82 0.07 89.09 12:25:24 11:50:01 1 10.15 0.00 0.63 0.63 0.08 88.50 12:25:24 11:50:01 2 6.35 0.00 0.73 0.08 0.08 92.75 12:25:24 11:50:01 3 7.20 0.00 0.48 0.08 0.07 92.17 12:25:24 11:51:01 all 1.00 0.00 0.39 0.01 0.06 98.54 12:25:24 11:51:01 0 0.74 0.00 0.40 0.00 0.07 98.79 12:25:24 11:51:01 1 0.95 0.00 0.44 0.03 0.05 98.53 12:25:24 11:51:01 2 1.29 0.00 0.42 0.00 0.07 98.23 12:25:24 11:51:01 3 1.02 0.00 0.32 0.00 0.07 98.59 12:25:24 12:25:24 11:51:01 CPU %user %nice %system %iowait %steal %idle 12:25:24 11:52:01 all 62.47 0.00 2.19 0.09 0.11 35.13 12:25:24 11:52:01 0 63.72 0.00 1.88 0.05 0.10 34.25 12:25:24 11:52:01 1 58.12 0.00 2.20 0.17 0.10 39.42 12:25:24 11:52:01 2 62.48 0.00 1.91 0.03 0.12 35.46 12:25:24 11:52:01 3 65.58 0.00 2.80 0.12 0.12 31.39 12:25:24 11:53:01 all 21.75 0.00 0.86 0.28 0.08 77.03 12:25:24 11:53:01 0 21.79 0.00 0.86 0.23 0.08 77.04 12:25:24 11:53:01 1 21.95 0.00 0.97 0.74 0.08 76.26 12:25:24 11:53:01 2 21.85 0.00 0.63 0.00 0.07 77.45 12:25:24 11:53:01 3 21.41 0.00 1.00 0.13 0.08 77.38 12:25:24 11:54:02 all 34.94 0.00 1.01 0.41 0.10 63.55 12:25:24 11:54:02 0 34.79 0.00 1.00 0.30 0.10 63.81 12:25:24 11:54:02 1 34.99 0.00 0.84 0.92 0.10 63.14 12:25:24 11:54:02 2 33.53 0.00 1.09 0.05 0.10 65.23 12:25:24 11:54:02 3 36.44 0.00 1.09 0.35 0.10 62.01 12:25:24 11:55:01 all 2.94 0.00 0.29 0.04 0.06 96.68 12:25:24 11:55:01 0 3.00 0.00 0.27 0.09 0.05 96.59 12:25:24 11:55:01 1 3.00 0.00 0.36 0.00 0.07 96.58 12:25:24 11:55:01 2 3.21 0.00 0.25 0.00 0.07 96.47 12:25:24 11:55:01 3 2.54 0.00 0.27 0.07 0.05 97.06 12:25:24 11:56:01 all 2.84 0.00 0.29 0.01 0.05 96.81 12:25:24 11:56:01 0 2.60 0.00 0.41 0.00 0.07 96.92 12:25:24 11:56:01 1 3.14 0.00 0.30 0.02 0.05 96.49 12:25:24 11:56:01 2 2.57 0.00 0.25 0.00 0.05 97.13 12:25:24 11:56:01 3 3.05 0.00 0.18 0.02 0.05 96.70 12:25:24 11:57:01 all 2.68 0.00 0.24 0.01 0.07 97.00 12:25:24 11:57:01 0 2.71 0.00 0.27 0.00 0.08 96.93 12:25:24 11:57:01 1 2.38 0.00 0.34 0.02 0.07 97.20 12:25:24 11:57:01 2 2.67 0.00 0.17 0.00 0.07 97.09 12:25:24 11:57:01 3 2.96 0.00 0.20 0.02 0.05 96.78 12:25:24 11:58:01 all 0.48 0.00 0.20 0.01 0.06 99.26 12:25:24 11:58:01 0 0.47 0.00 0.20 0.00 0.05 99.28 12:25:24 11:58:01 1 0.81 0.00 0.20 0.02 0.07 98.91 12:25:24 11:58:01 2 0.35 0.00 0.19 0.00 0.05 99.41 12:25:24 11:58:01 3 0.29 0.00 0.20 0.02 0.07 99.43 12:25:24 11:59:01 all 29.03 0.00 1.21 0.07 0.09 69.60 12:25:24 11:59:01 0 30.70 0.00 1.35 0.00 0.08 67.87 12:25:24 11:59:01 1 27.40 0.00 1.12 0.07 0.08 71.32 12:25:24 11:59:01 2 29.56 0.00 1.29 0.17 0.10 68.88 12:25:24 11:59:01 3 28.44 0.00 1.09 0.05 0.10 70.31 12:25:24 12:00:01 all 66.07 0.00 1.93 0.31 0.13 31.56 12:25:24 12:00:01 0 68.36 0.00 2.13 0.15 0.13 29.23 12:25:24 12:00:01 1 69.13 0.00 2.21 0.22 0.13 28.31 12:25:24 12:00:01 2 60.68 0.00 1.63 0.22 0.12 37.35 12:25:24 12:00:01 3 66.14 0.00 1.74 0.67 0.12 31.33 12:25:24 12:01:01 all 29.33 0.00 1.00 0.36 0.10 69.21 12:25:24 12:01:01 0 30.29 0.00 1.07 0.76 0.12 67.77 12:25:24 12:01:01 1 29.58 0.00 1.11 0.25 0.08 68.97 12:25:24 12:01:01 2 28.27 0.00 0.78 0.03 0.10 70.82 12:25:24 12:01:01 3 29.20 0.00 1.03 0.40 0.10 69.27 12:25:24 12:02:01 all 2.17 0.00 0.26 0.02 0.06 97.50 12:25:24 12:02:01 0 2.75 0.00 0.28 0.03 0.05 96.88 12:25:24 12:02:01 1 1.70 0.00 0.15 0.03 0.05 98.07 12:25:24 12:02:01 2 2.33 0.00 0.25 0.00 0.07 97.36 12:25:24 12:02:01 3 1.89 0.00 0.34 0.00 0.07 97.71 12:25:24 12:25:24 12:02:01 CPU %user %nice %system %iowait %steal %idle 12:25:24 12:03:01 all 4.29 0.00 0.33 0.01 0.06 95.31 12:25:24 12:03:01 0 4.40 0.00 0.34 0.02 0.07 95.17 12:25:24 12:03:01 1 4.43 0.00 0.30 0.03 0.07 95.16 12:25:24 12:03:01 2 3.78 0.00 0.37 0.00 0.05 95.81 12:25:24 12:03:01 3 4.54 0.00 0.30 0.00 0.05 95.11 12:25:24 12:04:01 all 42.54 0.00 1.61 6.88 0.12 48.85 12:25:24 12:04:01 0 38.62 0.00 1.33 9.12 0.13 50.80 12:25:24 12:04:01 1 44.77 0.00 1.37 0.45 0.12 53.28 12:25:24 12:04:01 2 40.10 0.00 1.69 10.57 0.08 47.56 12:25:24 12:04:01 3 46.66 0.00 2.05 7.38 0.15 43.76 12:25:24 12:05:01 all 31.73 0.00 1.20 0.93 0.10 66.05 12:25:24 12:05:01 0 32.84 0.00 1.35 0.27 0.08 65.45 12:25:24 12:05:01 1 31.46 0.00 1.09 0.02 0.10 67.33 12:25:24 12:05:01 2 33.90 0.00 1.10 2.14 0.12 62.75 12:25:24 12:05:01 3 28.71 0.00 1.24 1.29 0.08 68.68 12:25:24 12:06:01 all 4.73 0.00 0.43 0.01 0.07 94.76 12:25:24 12:06:01 0 4.81 0.00 0.33 0.00 0.07 94.79 12:25:24 12:06:01 1 4.33 0.00 0.49 0.02 0.07 95.10 12:25:24 12:06:01 2 5.57 0.00 0.46 0.00 0.07 93.90 12:25:24 12:06:01 3 4.21 0.00 0.43 0.02 0.07 95.27 12:25:24 12:07:01 all 19.67 0.00 0.94 0.04 0.08 79.26 12:25:24 12:07:01 0 19.87 0.00 0.92 0.00 0.08 79.13 12:25:24 12:07:01 1 20.53 0.00 1.19 0.05 0.10 78.12 12:25:24 12:07:01 2 18.33 0.00 0.87 0.02 0.08 80.70 12:25:24 12:07:01 3 19.96 0.00 0.79 0.08 0.07 79.10 12:25:24 12:08:01 all 25.31 0.00 0.85 0.25 0.08 73.51 12:25:24 12:08:01 0 26.29 0.00 0.85 0.18 0.07 72.60 12:25:24 12:08:01 1 25.66 0.00 0.83 0.28 0.07 73.16 12:25:24 12:08:01 2 24.04 0.00 0.75 0.07 0.08 75.06 12:25:24 12:08:01 3 25.25 0.00 0.95 0.49 0.10 73.21 12:25:24 12:09:01 all 4.92 0.00 0.47 0.01 0.07 94.54 12:25:24 12:09:01 0 4.97 0.00 0.54 0.03 0.07 94.39 12:25:24 12:09:01 1 5.21 0.00 0.42 0.00 0.07 94.31 12:25:24 12:09:01 2 4.82 0.00 0.52 0.00 0.07 94.59 12:25:24 12:09:01 3 4.69 0.00 0.39 0.00 0.07 94.86 12:25:24 12:10:01 all 34.09 0.00 1.23 0.35 0.10 64.23 12:25:24 12:10:01 0 32.87 0.00 1.06 0.50 0.10 65.46 12:25:24 12:10:01 1 34.73 0.00 1.22 0.02 0.10 63.93 12:25:24 12:10:01 2 34.07 0.00 1.38 0.86 0.12 63.58 12:25:24 12:10:01 3 34.69 0.00 1.25 0.02 0.10 63.94 12:25:24 12:11:01 all 58.31 0.00 2.34 0.19 0.10 39.05 12:25:24 12:11:01 0 63.47 0.00 2.61 0.05 0.10 33.77 12:25:24 12:11:01 1 60.25 0.00 2.62 0.07 0.12 36.95 12:25:24 12:11:01 2 55.41 0.00 1.92 0.35 0.08 42.24 12:25:24 12:11:01 3 54.08 0.00 2.22 0.30 0.12 43.27 12:25:24 12:12:01 all 52.98 0.00 1.67 0.02 0.10 45.23 12:25:24 12:12:01 0 52.59 0.00 1.64 0.02 0.10 45.66 12:25:24 12:12:01 1 52.76 0.00 1.69 0.02 0.10 45.44 12:25:24 12:12:01 2 53.47 0.00 1.86 0.02 0.10 44.56 12:25:24 12:12:01 3 53.11 0.00 1.49 0.02 0.10 45.28 12:25:24 12:13:01 all 1.19 0.00 0.41 0.01 0.07 98.32 12:25:24 12:13:01 0 1.01 0.00 0.30 0.00 0.07 98.63 12:25:24 12:13:01 1 1.31 0.00 0.59 0.00 0.08 98.02 12:25:24 12:13:01 2 1.07 0.00 0.30 0.03 0.07 98.52 12:25:24 12:13:01 3 1.37 0.00 0.44 0.00 0.07 98.12 12:25:24 12:25:24 12:13:01 CPU %user %nice %system %iowait %steal %idle 12:25:24 12:14:01 all 1.16 0.00 0.37 0.01 0.06 98.39 12:25:24 12:14:01 0 1.14 0.00 0.49 0.00 0.07 98.31 12:25:24 12:14:01 1 1.01 0.00 0.45 0.02 0.07 98.46 12:25:24 12:14:01 2 0.82 0.00 0.25 0.02 0.05 98.86 12:25:24 12:14:01 3 1.69 0.00 0.30 0.00 0.07 97.94 12:25:24 12:15:01 all 9.14 0.00 0.71 0.03 0.07 90.04 12:25:24 12:15:01 0 12.59 0.00 0.87 0.03 0.07 86.44 12:25:24 12:15:01 1 7.12 0.00 0.74 0.05 0.07 92.03 12:25:24 12:15:01 2 8.55 0.00 0.58 0.05 0.07 90.75 12:25:24 12:15:01 3 8.29 0.00 0.67 0.00 0.08 90.95 12:25:24 12:16:01 all 53.68 0.00 1.66 0.26 0.11 44.29 12:25:24 12:16:01 0 53.69 0.00 1.46 0.35 0.10 44.40 12:25:24 12:16:01 1 51.65 0.00 1.70 0.03 0.12 46.50 12:25:24 12:16:01 2 56.67 0.00 1.56 0.62 0.12 41.02 12:25:24 12:16:01 3 52.70 0.00 1.93 0.02 0.12 45.23 12:25:24 12:17:01 all 26.69 0.00 0.99 0.26 0.09 71.97 12:25:24 12:17:01 0 23.97 0.00 0.93 0.39 0.08 74.63 12:25:24 12:17:01 1 27.68 0.00 1.29 0.00 0.10 70.92 12:25:24 12:17:01 2 26.82 0.00 0.67 0.62 0.08 71.81 12:25:24 12:17:01 3 28.29 0.00 1.06 0.03 0.08 70.53 12:25:24 12:18:01 all 4.32 0.00 0.49 0.02 0.07 95.11 12:25:24 12:18:01 0 3.82 0.00 0.60 0.00 0.07 95.51 12:25:24 12:18:01 1 4.17 0.00 0.42 0.00 0.07 95.34 12:25:24 12:18:01 2 5.06 0.00 0.52 0.03 0.07 94.31 12:25:24 12:18:01 3 4.23 0.00 0.40 0.03 0.07 95.26 12:25:24 12:19:01 all 31.31 0.00 1.00 0.12 0.09 67.48 12:25:24 12:19:01 0 32.12 0.00 0.94 0.03 0.10 66.81 12:25:24 12:19:01 1 32.81 0.00 0.98 0.08 0.08 66.04 12:25:24 12:19:01 2 31.34 0.00 0.92 0.30 0.08 67.35 12:25:24 12:19:01 3 28.96 0.00 1.18 0.07 0.08 69.71 12:25:24 12:20:01 all 29.46 0.00 1.06 0.28 0.08 69.13 12:25:24 12:20:01 0 29.48 0.00 0.89 0.02 0.08 69.53 12:25:24 12:20:01 1 27.23 0.00 1.39 0.53 0.08 70.77 12:25:24 12:20:01 2 29.73 0.00 1.07 0.54 0.08 68.58 12:25:24 12:20:01 3 31.39 0.00 0.88 0.02 0.08 67.63 12:25:24 12:21:01 all 8.71 0.00 0.77 0.02 0.05 90.44 12:25:24 12:21:01 0 9.09 0.00 1.10 0.05 0.07 89.69 12:25:24 12:21:01 1 8.69 0.00 0.69 0.02 0.05 90.56 12:25:24 12:21:01 2 8.75 0.00 0.57 0.02 0.05 90.61 12:25:24 12:21:01 3 8.31 0.00 0.74 0.00 0.05 90.90 12:25:24 12:22:01 all 61.05 0.00 1.92 0.49 0.13 36.41 12:25:24 12:22:01 0 63.13 0.00 1.82 0.37 0.12 34.57 12:25:24 12:22:01 1 61.85 0.00 1.67 0.72 0.12 35.64 12:25:24 12:22:01 2 57.50 0.00 1.89 0.82 0.15 39.64 12:25:24 12:22:01 3 61.72 0.00 2.31 0.05 0.13 35.79 12:25:24 12:23:01 all 6.14 0.00 0.42 0.01 0.07 93.36 12:25:24 12:23:01 0 6.41 0.00 0.42 0.02 0.07 93.09 12:25:24 12:23:01 1 5.99 0.00 0.32 0.02 0.07 93.61 12:25:24 12:23:01 2 6.60 0.00 0.50 0.00 0.07 92.83 12:25:24 12:23:01 3 5.58 0.00 0.45 0.00 0.07 93.90 12:25:24 12:24:01 all 39.69 0.00 1.21 0.25 0.11 58.75 12:25:24 12:24:01 0 40.61 0.00 1.16 0.32 0.10 57.82 12:25:24 12:24:01 1 39.53 0.00 1.29 0.42 0.12 58.64 12:25:24 12:24:01 2 40.01 0.00 1.19 0.00 0.10 58.69 12:25:24 12:24:01 3 38.59 0.00 1.19 0.25 0.12 59.85 12:25:24 12:25:24 12:24:01 CPU %user %nice %system %iowait %steal %idle 12:25:24 12:25:01 all 31.90 0.00 1.37 0.12 0.10 66.50 12:25:24 12:25:01 0 31.67 0.00 1.43 0.07 0.10 66.74 12:25:24 12:25:01 1 31.29 0.00 1.37 0.13 0.12 67.09 12:25:24 12:25:01 2 31.35 0.00 1.31 0.08 0.10 67.15 12:25:24 12:25:01 3 33.31 0.00 1.36 0.20 0.10 65.03 12:25:24 Average: all 29.66 0.16 1.40 1.45 0.09 67.24 12:25:24 Average: 0 29.68 0.18 1.44 1.19 0.09 67.43 12:25:24 Average: 1 29.99 0.12 1.38 1.63 0.09 66.78 12:25:24 Average: 2 29.55 0.17 1.35 1.88 0.09 66.95 12:25:24 Average: 3 29.41 0.16 1.44 1.11 0.09 67.80 12:25:24 12:25:24 12:25:24