08:13:06 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/113983 08:13:06 Running as SYSTEM 08:13:06 [EnvInject] - Loading node environment variables. 08:13:06 Building remotely on prd-ubuntu2004-docker-4c-16g-1097 (ubuntu2004-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 08:13:07 [ssh-agent] Looking for ssh-agent implementation... 08:13:07 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 08:13:07 $ ssh-agent 08:13:07 SSH_AUTH_SOCK=/tmp/ssh-oWUslI48unlH/agent.12542 08:13:07 SSH_AGENT_PID=12544 08:13:07 [ssh-agent] Started. 08:13:07 Running ssh-add (command line suppressed) 08:13:07 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_15155876174392063073.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_15155876174392063073.key) 08:13:07 [ssh-agent] Using credentials jenkins (jenkins-ssh) 08:13:07 The recommended git tool is: NONE 08:13:09 using credential jenkins-ssh 08:13:09 Wiping out workspace first. 08:13:09 Cloning the remote Git repository 08:13:09 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 08:13:09 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 08:13:09 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 08:13:09 > git --version # timeout=10 08:13:09 > git --version # 'git version 2.25.1' 08:13:09 using GIT_SSH to set credentials jenkins-ssh 08:13:09 Verifying host key using known hosts file 08:13:09 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. 08:13:09 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 08:13:12 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 08:13:12 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 08:13:13 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 08:13:13 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 08:13:13 using GIT_SSH to set credentials jenkins-ssh 08:13:13 Verifying host key using known hosts file 08:13:13 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. 08:13:13 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/83/113983/7 # timeout=10 08:13:13 > git rev-parse c9aa0e9475362e53d43728331651db9bfb22ac9d^{commit} # timeout=10 08:13:13 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 08:13:13 Checking out Revision c9aa0e9475362e53d43728331651db9bfb22ac9d (refs/changes/83/113983/7) 08:13:13 > git config core.sparsecheckout # timeout=10 08:13:13 > git checkout -f c9aa0e9475362e53d43728331651db9bfb22ac9d # timeout=10 08:13:13 Commit message: "Implement client create service frequency choice" 08:13:13 > git rev-parse FETCH_HEAD^{commit} # timeout=10 08:13:13 > git rev-list --no-walk 8411f644e2aaee865925224065684e5873437c0e # timeout=10 08:13:13 > git remote # timeout=10 08:13:13 > git submodule init # timeout=10 08:13:13 > git submodule sync # timeout=10 08:13:14 > git config --get remote.origin.url # timeout=10 08:13:14 > git submodule init # timeout=10 08:13:14 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 08:13:14 ERROR: No submodules found. 08:13:17 provisioning config files... 08:13:17 copy managed file [npmrc] to file:/home/jenkins/.npmrc 08:13:17 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 08:13:17 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins825330231167405615.sh 08:13:17 ---> python-tools-install.sh 08:13:17 Setup pyenv: 08:13:17 * system (set by /opt/pyenv/version) 08:13:17 * 3.8.13 (set by /opt/pyenv/version) 08:13:17 * 3.9.13 (set by /opt/pyenv/version) 08:13:17 * 3.10.13 (set by /opt/pyenv/version) 08:13:17 * 3.11.7 (set by /opt/pyenv/version) 08:13:22 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-8LKZ 08:13:22 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 08:13:25 lf-activate-venv(): INFO: Installing: lftools 08:14:13 lf-activate-venv(): INFO: Adding /tmp/venv-8LKZ/bin to PATH 08:14:13 Generating Requirements File 08:14:39 Python 3.11.7 08:14:39 pip 24.2 from /tmp/venv-8LKZ/lib/python3.11/site-packages/pip (python 3.11) 08:14:40 appdirs==1.4.4 08:14:40 argcomplete==3.5.1 08:14:40 aspy.yaml==1.3.0 08:14:40 attrs==24.2.0 08:14:40 autopage==0.5.2 08:14:40 beautifulsoup4==4.12.3 08:14:40 boto3==1.35.48 08:14:40 botocore==1.35.48 08:14:40 bs4==0.0.2 08:14:40 cachetools==5.5.0 08:14:40 certifi==2024.8.30 08:14:40 cffi==1.17.1 08:14:40 cfgv==3.4.0 08:14:40 chardet==5.2.0 08:14:40 charset-normalizer==3.4.0 08:14:40 click==8.1.7 08:14:40 cliff==4.7.0 08:14:40 cmd2==2.5.0 08:14:40 cryptography==3.3.2 08:14:40 debtcollector==3.0.0 08:14:40 decorator==5.1.1 08:14:40 defusedxml==0.7.1 08:14:40 Deprecated==1.2.14 08:14:40 distlib==0.3.9 08:14:40 dnspython==2.7.0 08:14:40 docker==4.2.2 08:14:40 dogpile.cache==1.3.3 08:14:40 durationpy==0.9 08:14:40 email_validator==2.2.0 08:14:40 filelock==3.16.1 08:14:40 future==1.0.0 08:14:40 gitdb==4.0.11 08:14:40 GitPython==3.1.43 08:14:40 google-auth==2.35.0 08:14:40 httplib2==0.22.0 08:14:40 identify==2.6.1 08:14:40 idna==3.10 08:14:40 importlib-resources==1.5.0 08:14:40 iso8601==2.1.0 08:14:40 Jinja2==3.1.4 08:14:40 jmespath==1.0.1 08:14:40 jsonpatch==1.33 08:14:40 jsonpointer==3.0.0 08:14:40 jsonschema==4.23.0 08:14:40 jsonschema-specifications==2024.10.1 08:14:40 keystoneauth1==5.8.0 08:14:40 kubernetes==31.0.0 08:14:40 lftools==0.37.10 08:14:40 lxml==5.3.0 08:14:40 MarkupSafe==3.0.2 08:14:40 msgpack==1.1.0 08:14:40 multi_key_dict==2.0.3 08:14:40 munch==4.0.0 08:14:40 netaddr==1.3.0 08:14:40 netifaces==0.11.0 08:14:40 niet==1.4.2 08:14:40 nodeenv==1.9.1 08:14:40 oauth2client==4.1.3 08:14:40 oauthlib==3.2.2 08:14:40 openstacksdk==4.1.0 08:14:40 os-client-config==2.1.0 08:14:40 os-service-types==1.7.0 08:14:40 osc-lib==3.1.0 08:14:40 oslo.config==9.6.0 08:14:40 oslo.context==5.6.0 08:14:40 oslo.i18n==6.4.0 08:14:40 oslo.log==6.1.2 08:14:40 oslo.serialization==5.5.0 08:14:40 oslo.utils==7.3.0 08:14:40 packaging==24.1 08:14:40 pbr==6.1.0 08:14:40 platformdirs==4.3.6 08:14:40 prettytable==3.11.0 08:14:40 pyasn1==0.6.1 08:14:40 pyasn1_modules==0.4.1 08:14:40 pycparser==2.22 08:14:40 pygerrit2==2.0.15 08:14:40 PyGithub==2.4.0 08:14:40 PyJWT==2.9.0 08:14:40 PyNaCl==1.5.0 08:14:40 pyparsing==2.4.7 08:14:40 pyperclip==1.9.0 08:14:40 pyrsistent==0.20.0 08:14:40 python-cinderclient==9.6.0 08:14:40 python-dateutil==2.9.0.post0 08:14:40 python-heatclient==4.0.0 08:14:40 python-jenkins==1.8.2 08:14:40 python-keystoneclient==5.5.0 08:14:40 python-magnumclient==4.7.0 08:14:40 python-openstackclient==7.2.0 08:14:40 python-swiftclient==4.6.0 08:14:40 PyYAML==6.0.2 08:14:40 referencing==0.35.1 08:14:40 requests==2.32.3 08:14:40 requests-oauthlib==2.0.0 08:14:40 requestsexceptions==1.4.0 08:14:40 rfc3986==2.0.0 08:14:40 rpds-py==0.20.0 08:14:40 rsa==4.9 08:14:40 ruamel.yaml==0.18.6 08:14:40 ruamel.yaml.clib==0.2.12 08:14:40 s3transfer==0.10.3 08:14:40 simplejson==3.19.3 08:14:40 six==1.16.0 08:14:40 smmap==5.0.1 08:14:40 soupsieve==2.6 08:14:40 stevedore==5.3.0 08:14:40 tabulate==0.9.0 08:14:40 toml==0.10.2 08:14:40 tomlkit==0.13.2 08:14:40 tqdm==4.66.5 08:14:40 typing_extensions==4.12.2 08:14:40 tzdata==2024.2 08:14:40 urllib3==1.26.20 08:14:40 virtualenv==20.27.0 08:14:40 wcwidth==0.2.13 08:14:40 websocket-client==1.8.0 08:14:40 wrapt==1.16.0 08:14:40 xdg==6.0.0 08:14:40 xmltodict==0.14.2 08:14:40 yq==3.4.3 08:14:40 [EnvInject] - Injecting environment variables from a build step. 08:14:40 [EnvInject] - Injecting as environment variables the properties content 08:14:40 PYTHON=python3 08:14:40 08:14:40 [EnvInject] - Variables injected successfully. 08:14:40 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins17861135734490819888.sh 08:14:40 ---> tox-install.sh 08:14:40 + source /home/jenkins/lf-env.sh 08:14:40 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 08:14:40 ++ mktemp -d /tmp/venv-XXXX 08:14:40 + lf_venv=/tmp/venv-gAIL 08:14:40 + local venv_file=/tmp/.os_lf_venv 08:14:40 + local python=python3 08:14:40 + local options 08:14:40 + local set_path=true 08:14:40 + local install_args= 08:14:40 ++ 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 08:14:40 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 08:14:40 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 08:14:40 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 08:14:40 + true 08:14:40 + case $1 in 08:14:40 + venv_file=/tmp/.toxenv 08:14:40 + shift 2 08:14:40 + true 08:14:40 + case $1 in 08:14:40 + shift 08:14:40 + break 08:14:40 + case $python in 08:14:40 + local pkg_list= 08:14:40 + [[ -d /opt/pyenv ]] 08:14:40 + echo 'Setup pyenv:' 08:14:40 Setup pyenv: 08:14:40 + export PYENV_ROOT=/opt/pyenv 08:14:40 + PYENV_ROOT=/opt/pyenv 08:14:40 + 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 08:14:40 + 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 08:14:40 + pyenv versions 08:14:40 system 08:14:40 3.8.13 08:14:40 3.9.13 08:14:40 3.10.13 08:14:40 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 08:14:40 + command -v pyenv 08:14:40 ++ pyenv init - --no-rehash 08:14:40 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 08:14:40 for i in ${!paths[@]}; do 08:14:40 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 08:14:40 fi; done; 08:14:40 echo "${paths[*]}"'\'')" 08:14:40 export PATH="/opt/pyenv/shims:${PATH}" 08:14:40 export PYENV_SHELL=bash 08:14:40 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 08:14:40 pyenv() { 08:14:40 local command 08:14:40 command="${1:-}" 08:14:40 if [ "$#" -gt 0 ]; then 08:14:40 shift 08:14:40 fi 08:14:40 08:14:40 case "$command" in 08:14:40 rehash|shell) 08:14:40 eval "$(pyenv "sh-$command" "$@")" 08:14:40 ;; 08:14:40 *) 08:14:40 command pyenv "$command" "$@" 08:14:40 ;; 08:14:40 esac 08:14:40 }' 08:14:40 +++ bash --norc -ec 'IFS=:; paths=($PATH); 08:14:40 for i in ${!paths[@]}; do 08:14:40 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 08:14:40 fi; done; 08:14:40 echo "${paths[*]}"' 08:14:40 ++ 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 08:14:40 ++ 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 08:14:40 ++ 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 08:14:40 ++ export PYENV_SHELL=bash 08:14:40 ++ PYENV_SHELL=bash 08:14:40 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 08:14:40 +++ complete -F _pyenv pyenv 08:14:40 ++ lf-pyver python3 08:14:40 ++ local py_version_xy=python3 08:14:40 ++ local py_version_xyz= 08:14:40 ++ pyenv versions 08:14:40 ++ local command 08:14:40 ++ command=versions 08:14:40 ++ '[' 1 -gt 0 ']' 08:14:40 ++ shift 08:14:40 ++ case "$command" in 08:14:40 ++ command pyenv versions 08:14:40 ++ pyenv versions 08:14:40 ++ awk '{ print $1 }' 08:14:40 ++ grep -E '^[0-9.]*[0-9]$' 08:14:40 ++ sed 's/^[ *]* //' 08:14:40 ++ [[ ! -s /tmp/.pyenv_versions ]] 08:14:40 +++ grep '^3' /tmp/.pyenv_versions 08:14:40 +++ sort -V 08:14:40 +++ tail -n 1 08:14:40 ++ py_version_xyz=3.11.7 08:14:40 ++ [[ -z 3.11.7 ]] 08:14:40 ++ echo 3.11.7 08:14:40 ++ return 0 08:14:40 + pyenv local 3.11.7 08:14:40 + local command 08:14:40 + command=local 08:14:40 + '[' 2 -gt 0 ']' 08:14:40 + shift 08:14:40 + case "$command" in 08:14:40 + command pyenv local 3.11.7 08:14:40 + pyenv local 3.11.7 08:14:40 + for arg in "$@" 08:14:40 + case $arg in 08:14:40 + pkg_list+='tox ' 08:14:40 + for arg in "$@" 08:14:40 + case $arg in 08:14:40 + pkg_list+='virtualenv ' 08:14:40 + for arg in "$@" 08:14:40 + case $arg in 08:14:40 + pkg_list+='urllib3~=1.26.15 ' 08:14:40 + [[ -f /tmp/.toxenv ]] 08:14:40 + [[ ! -f /tmp/.toxenv ]] 08:14:40 + [[ -n '' ]] 08:14:40 + python3 -m venv /tmp/venv-gAIL 08:14:44 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-gAIL' 08:14:44 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-gAIL 08:14:44 + echo /tmp/venv-gAIL 08:14:44 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 08:14:44 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 08:14:44 + /tmp/venv-gAIL/bin/python3 -m pip install --upgrade --quiet pip virtualenv 08:14:47 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 08:14:47 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 08:14:47 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 08:14:47 + /tmp/venv-gAIL/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 08:14:49 + type python3 08:14:49 + true 08:14:49 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-gAIL/bin to PATH' 08:14:49 lf-activate-venv(): INFO: Adding /tmp/venv-gAIL/bin to PATH 08:14:49 + PATH=/tmp/venv-gAIL/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 08:14:49 + return 0 08:14:49 + python3 --version 08:14:49 Python 3.11.7 08:14:49 + python3 -m pip --version 08:14:50 pip 24.2 from /tmp/venv-gAIL/lib/python3.11/site-packages/pip (python 3.11) 08:14:50 + python3 -m pip freeze 08:14:50 cachetools==5.5.0 08:14:50 chardet==5.2.0 08:14:50 colorama==0.4.6 08:14:50 distlib==0.3.9 08:14:50 filelock==3.16.1 08:14:50 packaging==24.1 08:14:50 platformdirs==4.3.6 08:14:50 pluggy==1.5.0 08:14:50 pyproject-api==1.8.0 08:14:50 tox==4.23.2 08:14:50 urllib3==1.26.20 08:14:50 virtualenv==20.27.0 08:14:50 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins11274362264949439457.sh 08:14:50 [EnvInject] - Injecting environment variables from a build step. 08:14:50 [EnvInject] - Injecting as environment variables the properties content 08:14:50 PARALLEL=True 08:14:50 08:14:50 [EnvInject] - Variables injected successfully. 08:14:50 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins2353715827991893400.sh 08:14:50 ---> tox-run.sh 08:14:50 + 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 08:14:50 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 08:14:50 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 08:14:50 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 08:14:50 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 08:14:50 + source /home/jenkins/lf-env.sh 08:14:50 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 08:14:50 ++ mktemp -d /tmp/venv-XXXX 08:14:50 + lf_venv=/tmp/venv-auvX 08:14:50 + local venv_file=/tmp/.os_lf_venv 08:14:50 + local python=python3 08:14:50 + local options 08:14:50 + local set_path=true 08:14:50 + local install_args= 08:14:50 ++ 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 08:14:50 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 08:14:50 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 08:14:50 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 08:14:50 + true 08:14:50 + case $1 in 08:14:50 + venv_file=/tmp/.toxenv 08:14:50 + shift 2 08:14:50 + true 08:14:50 + case $1 in 08:14:50 + shift 08:14:50 + break 08:14:50 + case $python in 08:14:50 + local pkg_list= 08:14:50 + [[ -d /opt/pyenv ]] 08:14:50 + echo 'Setup pyenv:' 08:14:50 Setup pyenv: 08:14:50 + export PYENV_ROOT=/opt/pyenv 08:14:50 + PYENV_ROOT=/opt/pyenv 08:14:50 + 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 08:14:50 + 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 08:14:50 + pyenv versions 08:14:50 system 08:14:50 3.8.13 08:14:50 3.9.13 08:14:50 3.10.13 08:14:50 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 08:14:50 + command -v pyenv 08:14:50 ++ pyenv init - --no-rehash 08:14:50 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 08:14:50 for i in ${!paths[@]}; do 08:14:50 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 08:14:50 fi; done; 08:14:50 echo "${paths[*]}"'\'')" 08:14:50 export PATH="/opt/pyenv/shims:${PATH}" 08:14:50 export PYENV_SHELL=bash 08:14:50 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 08:14:50 pyenv() { 08:14:50 local command 08:14:50 command="${1:-}" 08:14:50 if [ "$#" -gt 0 ]; then 08:14:50 shift 08:14:50 fi 08:14:50 08:14:50 case "$command" in 08:14:50 rehash|shell) 08:14:50 eval "$(pyenv "sh-$command" "$@")" 08:14:50 ;; 08:14:50 *) 08:14:50 command pyenv "$command" "$@" 08:14:50 ;; 08:14:50 esac 08:14:50 }' 08:14:50 +++ bash --norc -ec 'IFS=:; paths=($PATH); 08:14:50 for i in ${!paths[@]}; do 08:14:50 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 08:14:50 fi; done; 08:14:50 echo "${paths[*]}"' 08:14:50 ++ 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 08:14:50 ++ 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 08:14:50 ++ 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 08:14:50 ++ export PYENV_SHELL=bash 08:14:50 ++ PYENV_SHELL=bash 08:14:50 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 08:14:50 +++ complete -F _pyenv pyenv 08:14:50 ++ lf-pyver python3 08:14:50 ++ local py_version_xy=python3 08:14:50 ++ local py_version_xyz= 08:14:50 ++ pyenv versions 08:14:50 ++ local command 08:14:50 ++ command=versions 08:14:50 ++ '[' 1 -gt 0 ']' 08:14:50 ++ shift 08:14:50 ++ case "$command" in 08:14:50 ++ command pyenv versions 08:14:50 ++ pyenv versions 08:14:50 ++ awk '{ print $1 }' 08:14:50 ++ grep -E '^[0-9.]*[0-9]$' 08:14:50 ++ sed 's/^[ *]* //' 08:14:50 ++ [[ ! -s /tmp/.pyenv_versions ]] 08:14:50 +++ grep '^3' /tmp/.pyenv_versions 08:14:50 +++ sort -V 08:14:50 +++ tail -n 1 08:14:50 ++ py_version_xyz=3.11.7 08:14:50 ++ [[ -z 3.11.7 ]] 08:14:50 ++ echo 3.11.7 08:14:50 ++ return 0 08:14:50 + pyenv local 3.11.7 08:14:50 + local command 08:14:50 + command=local 08:14:50 + '[' 2 -gt 0 ']' 08:14:50 + shift 08:14:50 + case "$command" in 08:14:50 + command pyenv local 3.11.7 08:14:50 + pyenv local 3.11.7 08:14:50 + for arg in "$@" 08:14:50 + case $arg in 08:14:50 + pkg_list+='tox ' 08:14:50 + for arg in "$@" 08:14:50 + case $arg in 08:14:50 + pkg_list+='virtualenv ' 08:14:50 + for arg in "$@" 08:14:50 + case $arg in 08:14:50 + pkg_list+='urllib3~=1.26.15 ' 08:14:50 + [[ -f /tmp/.toxenv ]] 08:14:50 ++ cat /tmp/.toxenv 08:14:50 + lf_venv=/tmp/venv-gAIL 08:14:50 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-gAIL from' file:/tmp/.toxenv 08:14:50 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-gAIL from file:/tmp/.toxenv 08:14:50 + /tmp/venv-gAIL/bin/python3 -m pip install --upgrade --quiet pip virtualenv 08:14:51 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 08:14:51 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 08:14:51 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 08:14:51 + /tmp/venv-gAIL/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 08:14:52 + type python3 08:14:52 + true 08:14:52 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-gAIL/bin to PATH' 08:14:52 lf-activate-venv(): INFO: Adding /tmp/venv-gAIL/bin to PATH 08:14:52 + PATH=/tmp/venv-gAIL/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 08:14:52 + return 0 08:14:52 + [[ -d /opt/pyenv ]] 08:14:52 + echo '---> Setting up pyenv' 08:14:52 ---> Setting up pyenv 08:14:52 + export PYENV_ROOT=/opt/pyenv 08:14:52 + PYENV_ROOT=/opt/pyenv 08:14:52 + export PATH=/opt/pyenv/bin:/tmp/venv-gAIL/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 08:14:52 + PATH=/opt/pyenv/bin:/tmp/venv-gAIL/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 08:14:52 ++ pwd 08:14:52 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 08:14:52 + export PYTHONPATH 08:14:52 + export TOX_TESTENV_PASSENV=PYTHONPATH 08:14:52 + TOX_TESTENV_PASSENV=PYTHONPATH 08:14:52 + tox --version 08:14:52 4.23.2 from /tmp/venv-gAIL/lib/python3.11/site-packages/tox/__init__.py 08:14:52 + PARALLEL=True 08:14:52 + TOX_OPTIONS_LIST= 08:14:52 + [[ -n '' ]] 08:14:52 + case ${PARALLEL,,} in 08:14:52 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 08:14:52 + tox --parallel auto --parallel-live 08:14:52 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 08:14:54 docs: install_deps> python -I -m pip install -r docs/requirements.txt 08:14:54 checkbashisms: freeze> python -m pip freeze --all 08:14:54 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 08:14:54 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 08:14:54 checkbashisms: pip==24.2,setuptools==75.2.0,wheel==0.44.0 08:14:54 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 08:14:55 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)' 08:14:55 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 08:14:55 script ./reflectwarn.sh does not appear to have a #! interpreter line; 08:14:55 you may get strange results 08:14:56 checkbashisms: OK ✔ in 2.81 seconds 08:14:56 pre-commit: install_deps> python -I -m pip install pre-commit 08:15:22 pre-commit: freeze> python -m pip freeze --all 08:15:23 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 08:15:23 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 08:15:23 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)' 08:15:23 /usr/bin/cpan 08:15:23 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 08:15:23 [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. 08:15:23 [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. 08:15:23 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 08:15:23 [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. 08:15:23 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 08:15:23 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 08:15:24 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 08:15:24 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 08:15:24 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 08:15:25 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 08:15:25 [INFO] Once installed this environment will be reused. 08:15:25 [INFO] This may take a few minutes... 08:15:25 buildcontroller: freeze> python -m pip freeze --all 08:15:26 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 08:15:26 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 08:15:26 + update-java-alternatives -l 08:15:26 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 08:15:26 java-1.12.0-openjdk-amd64 1211 /usr/lib/jvm/java-1.12.0-openjdk-amd64 08:15:26 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 08:15:26 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 08:15:26 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64 08:15:26 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 08:15:30 + java -version 08:15:30 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 08:15:30 + JAVA_VER=21 08:15:30 + echo 21 08:15:30 21 08:15:30 + javac -version 08:15:30 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 08:15:30 21 08:15:30 + JAVAC_VER=21 08:15:30 + echo 21 08:15:30 ok, java is 21 or newer 08:15:30 + [ 21 -ge 21 ] 08:15:30 + [ 21 -ge 21 ] 08:15:30 + echo ok, java is 21 or newer 08:15:30 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz -P /tmp 08:15:30 2024-10-25 08:15:30 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] 08:15:30 + sudo mkdir -p /opt 08:15:30 + sudo tar xf /tmp/apache-maven-3.9.8-bin.tar.gz -C /opt 08:15:30 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 08:15:30 [INFO] Once installed this environment will be reused. 08:15:30 [INFO] This may take a few minutes... 08:15:30 + sudo ln -s /opt/apache-maven-3.9.8 /opt/maven 08:15:30 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 08:15:30 + mvn --version 08:15:31 Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) 08:15:31 Maven home: /opt/maven 08:15:31 Java version: 21.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 08:15:31 Default locale: en, platform encoding: UTF-8 08:15:31 OS name: "linux", version: "5.4.0-190-generic", arch: "amd64", family: "unix" 08:15:31 NOTE: Picked up JDK_JAVA_OPTIONS: 08:15:31 --add-opens=java.base/java.io=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.lang=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.net=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.nio=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.util=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:15:31 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:15:31 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:15:31 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:15:31 -Xlog:disable 08:15:36 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 08:15:36 [INFO] Once installed this environment will be reused. 08:15:36 [INFO] This may take a few minutes... 08:15:39 [INFO] Installing environment for https://github.com/perltidy/perltidy. 08:15:39 [INFO] Once installed this environment will be reused. 08:15:39 [INFO] This may take a few minutes... 08:15:40 docs-linkcheck: freeze> python -m pip freeze --all 08:15:40 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 08:15:40 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 08:15:44 docs-linkcheck: OK ✔ in 51.36 seconds 08:15:44 docs: freeze> python -m pip freeze --all 08:15:44 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 08:15:44 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 08:15:44 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 08:15:48 docs: OK ✔ in 53.97 seconds 08:15:48 pylint: freeze> python -m pip freeze --all 08:15:48 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 08:15:48 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}$' '{}' + 08:15:50 trim trailing whitespace.................................................Passed 08:15:51 Tabs remover.............................................................Passed 08:15:51 autopep8.................................................................Passed 08:15:55 perltidy.................................................................Passed 08:15:56 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 08:15:57 [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. 08:15:57 [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. 08:15:57 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 08:15:57 [INFO] Once installed this environment will be reused. 08:15:57 [INFO] This may take a few minutes... 08:16:10 08:16:10 ------------------------------------ 08:16:10 Your code has been rated at 10.00/10 08:16:10 08:16:12 gitlint..................................................................Passed 08:17:06 pylint: OK ✔ in 27.82 seconds 08:17:06 pre-commit: OK ✔ in 1 minute 16.94 seconds 08:17:06 buildcontroller: OK ✔ in 2 minutes 12.15 seconds 08:17:06 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 08:17:06 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 08:17:06 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 08:17:06 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 08:17:25 build_karaf_tests221: freeze> python -m pip freeze --all 08:17:25 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 08:17:25 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 08:17:25 NOTE: Picked up JDK_JAVA_OPTIONS: 08:17:25 --add-opens=java.base/java.io=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.lang=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.net=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.nio=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.util=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:17:25 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:17:25 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:17:25 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:17:25 -Xlog:disable 08:17:26 sims: freeze> python -m pip freeze --all 08:17:26 build_karaf_tests121: freeze> python -m pip freeze --all 08:17:26 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 08:17:26 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 08:17:26 Using lighynode version 20.1.0.2 08:17:26 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 08:17:26 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 08:17:26 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 08:17:26 NOTE: Picked up JDK_JAVA_OPTIONS: 08:17:26 --add-opens=java.base/java.io=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.lang=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.net=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.nio=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.util=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:17:26 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:17:26 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:17:26 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:17:26 -Xlog:disable 08:17:31 sims: OK ✔ in 25.54 seconds 08:17:31 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 08:17:52 build_karaf_tests71: freeze> python -m pip freeze --all 08:17:52 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 08:17:52 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 08:17:52 NOTE: Picked up JDK_JAVA_OPTIONS: 08:17:52 --add-opens=java.base/java.io=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.lang=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.net=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.nio=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.util=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:17:52 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:17:52 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:17:52 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:17:52 -Xlog:disable 08:18:13 build_karaf_tests221: OK ✔ in 1 minute 8.23 seconds 08:18:13 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 08:18:15 build_karaf_tests121: OK ✔ in 1 minute 10.62 seconds 08:18:15 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 08:18:20 build_karaf_tests_hybrid: freeze> python -m pip freeze --all 08:18:20 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 08:18:20 build_karaf_tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 08:18:20 NOTE: Picked up JDK_JAVA_OPTIONS: 08:18:20 --add-opens=java.base/java.io=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.lang=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.net=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.nio=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.util=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:18:20 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:18:20 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:18:20 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:18:20 -Xlog:disable 08:18:21 tests_tapi: freeze> python -m pip freeze --all 08:18:22 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 08:18:22 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 08:18:22 using environment variables from ./karaf221.env 08:18:22 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 08:18:56 build_karaf_tests71: OK ✔ in 1 minute 6.7 seconds 08:18:56 testsPCE: freeze> python -m pip freeze --all 08:18:57 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 08:18:57 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 08:18:57 pytest -q transportpce_tests/pce/test01_pce.py 08:19:46 .................................................. [100%] 08:20:50 20 passed in 113.43s (0:01:53) 08:20:50 pytest -q transportpce_tests/pce/test02_pce_400G.py 08:21:05 ................ [100%] 08:21:30 9 passed in 39.28s 08:21:30 pytest -q transportpce_tests/pce/test03_gnpy.py 08:21:46 ......... [100%] 08:22:07 8 passed in 37.23s 08:22:07 pytest -q transportpce_tests/pce/test04_pce_bug_fix.py 08:22:09 ............ [100%] 08:22:43 3 passed in 35.65s 08:22:44 build_karaf_tests_hybrid: OK ✔ in 54.25 seconds 08:22:44 testsPCE: OK ✔ in 5 minutes 38.65 seconds 08:22:44 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 08:22:50 tests121: freeze> python -m pip freeze --all 08:22:51 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 08:22:51 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 08:22:51 using environment variables from ./karaf121.env 08:22:51 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 08:25:10 ... [100%] 08:25:14 50 passed in 412.29s (0:06:52) 08:25:14 pytest -q transportpce_tests/tapi/test02_full_topology.py 08:26:18 .......FF.FFF....F.................. [100%] 08:29:46 =================================== FAILURES =================================== 08:29:46 _____________ TransportPCEtesting.test_12_check_openroadm_topology _____________ 08:29:46 08:29:46 self = 08:29:46 08:29:46 def test_12_check_openroadm_topology(self): 08:29:46 response = test_utils.get_ietf_network_request('openroadm-topology', 'config') 08:29:46 self.assertEqual(response['status_code'], requests.codes.ok) 08:29:46 > self.assertEqual(len(response['network'][0]['node']), 13, 'There should be 13 openroadm nodes') 08:29:46 E AssertionError: 14 != 13 : There should be 13 openroadm nodes 08:29:46 08:29:46 transportpce_tests/tapi/test02_full_topology.py:272: AssertionError 08:29:46 =========================== short test summary info ============================ 08:29:46 FAILED transportpce_tests/tapi/test02_full_topology.py::TransportPCEtesting::test_12_check_openroadm_topology 08:29:46 1 failed, 29 passed in 271.77s (0:04:31) 08:29:46 tests_tapi: exit 1 (684.58 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=31337 08:29:46 tests_tapi: FAIL ✖ in 11 minutes 30.8 seconds 08:29:46 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 08:29:51 .Ftests71: freeze> python -m pip freeze --all 08:29:53 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 08:29:53 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 08:29:53 using environment variables from ./karaf71.env 08:29:53 pytest -q transportpce_tests/7.1/test01_portmapping.py 08:29:53 FFFFFFFFFFFFF [100%] 08:30:10 =================================== FAILURES =================================== 08:30:10 _________ TransportPCEPortMappingTesting.test_02_rdm_device_connected __________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_02_rdm_device_connected(self): 08:30:10 response = test_utils.check_device_connection("ROADMA01") 08:30:10 > self.assertEqual(response['status_code'], requests.codes.ok) 08:30:10 E AssertionError: 409 != 200 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:54: AssertionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_02_rdm_device_connected 08:30:10 _________ TransportPCEPortMappingTesting.test_03_rdm_portmapping_info __________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_03_rdm_portmapping_info(self): 08:30:10 response = test_utils.get_portmapping_node_attr("ROADMA01", "node-info", None) 08:30:10 > self.assertEqual(response['status_code'], requests.codes.ok) 08:30:10 E AssertionError: 409 != 200 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:60: AssertionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_03_rdm_portmapping_info 08:30:10 _____ TransportPCEPortMappingTesting.test_04_rdm_portmapping_DEG1_TTP_TXRX _____ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_04_rdm_portmapping_DEG1_TTP_TXRX(self): 08:30:10 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "DEG1-TTP-TXRX") 08:30:10 > self.assertEqual(response['status_code'], requests.codes.ok) 08:30:10 E AssertionError: 409 != 200 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:73: AssertionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_04_rdm_portmapping_DEG1_TTP_TXRX 08:30:10 _____ TransportPCEPortMappingTesting.test_05_rdm_portmapping_SRG1_PP7_TXRX _____ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_05_rdm_portmapping_SRG1_PP7_TXRX(self): 08:30:10 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "SRG1-PP7-TXRX") 08:30:10 > self.assertEqual(response['status_code'], requests.codes.ok) 08:30:10 E AssertionError: 409 != 200 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:82: AssertionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_05_rdm_portmapping_SRG1_PP7_TXRX 08:30:10 _____ TransportPCEPortMappingTesting.test_06_rdm_portmapping_SRG3_PP1_TXRX _____ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_06_rdm_portmapping_SRG3_PP1_TXRX(self): 08:30:10 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "SRG3-PP1-TXRX") 08:30:10 > self.assertEqual(response['status_code'], requests.codes.ok) 08:30:10 E AssertionError: 409 != 200 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:91: AssertionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_06_rdm_portmapping_SRG3_PP1_TXRX 08:30:10 _________ TransportPCEPortMappingTesting.test_08_xpdr_device_connected _________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01', query='content=nonconfig', fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 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?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_08_xpdr_device_connected(self): 08:30:10 > response = test_utils.check_device_connection("XPDRA01") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:103: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:369: in check_device_connection 08:30:10 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 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?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_08_xpdr_device_connected 08:30:10 _________ TransportPCEPortMappingTesting.test_09_xpdr_portmapping_info _________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info', query=None, fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_09_xpdr_portmapping_info(self): 08:30:10 > response = test_utils.get_portmapping_node_attr("XPDRA01", "node-info", None) 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:109: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:10 response = get_request(target_url) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_09_xpdr_portmapping_info 08:30:10 _______ TransportPCEPortMappingTesting.test_10_xpdr_portmapping_NETWORK1 _______ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1', query=None, fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_10_xpdr_portmapping_NETWORK1(self): 08:30:10 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-NETWORK1") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:122: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:10 response = get_request(target_url) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_10_xpdr_portmapping_NETWORK1 08:30:10 _______ TransportPCEPortMappingTesting.test_11_xpdr_portmapping_NETWORK2 _______ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2', query=None, fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_11_xpdr_portmapping_NETWORK2(self): 08:30:10 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-NETWORK2") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:133: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:10 response = get_request(target_url) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_11_xpdr_portmapping_NETWORK2 08:30:10 _______ TransportPCEPortMappingTesting.test_12_xpdr_portmapping_CLIENT1 ________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1', query=None, fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_12_xpdr_portmapping_CLIENT1(self): 08:30:10 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT1") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:144: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:10 response = get_request(target_url) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_12_xpdr_portmapping_CLIENT1 08:30:10 _______ TransportPCEPortMappingTesting.test_13_xpdr_portmapping_CLIENT2 ________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2', query=None, fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_13_xpdr_portmapping_CLIENT2(self): 08:30:10 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT2") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:156: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:10 response = get_request(target_url) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_13_xpdr_portmapping_CLIENT2 08:30:10 _______ TransportPCEPortMappingTesting.test_14_xpdr_portmapping_CLIENT3 ________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3', query=None, fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_14_xpdr_portmapping_CLIENT3(self): 08:30:10 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT3") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:168: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:10 response = get_request(target_url) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_14_xpdr_portmapping_CLIENT3 08:30:10 _______ TransportPCEPortMappingTesting.test_15_xpdr_portmapping_CLIENT4 ________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4', query=None, fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_15_xpdr_portmapping_CLIENT4(self): 08:30:10 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT4") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:180: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:10 response = get_request(target_url) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_15_xpdr_portmapping_CLIENT4 08:30:10 _______ TransportPCEPortMappingTesting.test_16_xpdr_device_disconnection _______ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'DELETE' 08:30:10 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 08:30:10 body = None 08:30:10 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '0', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01', query=None, fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'DELETE' 08:30:10 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 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 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_16_xpdr_device_disconnection(self): 08:30:10 > response = test_utils.unmount_device("XPDRA01") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:191: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:358: in unmount_device 08:30:10 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 08:30:10 transportpce_tests/common/test_utils.py:133: in delete_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 except (ProtocolError, OSError) as err: 08:30:10 raise ConnectionError(err, request=request) 08:30:10 08:30:10 except MaxRetryError as e: 08:30:10 if isinstance(e.reason, ConnectTimeoutError): 08:30:10 # TODO: Remove this in 3.0.0: see #2811 08:30:10 if not isinstance(e.reason, NewConnectionError): 08:30:10 raise ConnectTimeout(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, ResponseError): 08:30:10 raise RetryError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _ProxyError): 08:30:10 raise ProxyError(e, request=request) 08:30:10 08:30:10 if isinstance(e.reason, _SSLError): 08:30:10 # This branch is for urllib3 v1.22 and later. 08:30:10 raise SSLError(e, request=request) 08:30:10 08:30:10 > raise ConnectionError(e, request=request) 08:30:10 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 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:10 ----------------------------- Captured stdout call ----------------------------- 08:30:10 execution of test_16_xpdr_device_disconnection 08:30:10 _______ TransportPCEPortMappingTesting.test_17_xpdr_device_disconnected ________ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 > sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:10 raise err 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:10 socket_options = [(6, 1, 1)] 08:30:10 08:30:10 def create_connection( 08:30:10 address: tuple[str, int], 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 source_address: tuple[str, int] | None = None, 08:30:10 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:10 ) -> socket.socket: 08:30:10 """Connect to *address* and return the socket object. 08:30:10 08:30:10 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:10 port)``) and return the socket object. Passing the optional 08:30:10 *timeout* parameter will set the timeout on the socket instance 08:30:10 before attempting to connect. If no *timeout* is supplied, the 08:30:10 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:10 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:10 for the socket to bind as a source address before making the connection. 08:30:10 An host of '' or port 0 tells the OS to use the default. 08:30:10 """ 08:30:10 08:30:10 host, port = address 08:30:10 if host.startswith("["): 08:30:10 host = host.strip("[]") 08:30:10 err = None 08:30:10 08:30:10 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:10 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:10 # The original create_connection function always returns all records. 08:30:10 family = allowed_gai_family() 08:30:10 08:30:10 try: 08:30:10 host.encode("idna") 08:30:10 except UnicodeError: 08:30:10 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:10 08:30:10 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:10 af, socktype, proto, canonname, sa = res 08:30:10 sock = None 08:30:10 try: 08:30:10 sock = socket.socket(af, socktype, proto) 08:30:10 08:30:10 # If provided, set socket level options before connecting. 08:30:10 _set_socket_options(sock, socket_options) 08:30:10 08:30:10 if timeout is not _DEFAULT_TIMEOUT: 08:30:10 sock.settimeout(timeout) 08:30:10 if source_address: 08:30:10 sock.bind(source_address) 08:30:10 > sock.connect(sa) 08:30:10 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 08:30:10 body = None 08:30:10 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='} 08:30:10 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 redirect = False, assert_same_host = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:10 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:10 decode_content = False, response_kw = {} 08:30:10 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01', query='content=nonconfig', fragment=None) 08:30:10 destination_scheme = None, conn = None, release_this_conn = True 08:30:10 http_tunnel_required = False, err = None, clean_exit = False 08:30:10 08:30:10 def urlopen( # type: ignore[override] 08:30:10 self, 08:30:10 method: str, 08:30:10 url: str, 08:30:10 body: _TYPE_BODY | None = None, 08:30:10 headers: typing.Mapping[str, str] | None = None, 08:30:10 retries: Retry | bool | int | None = None, 08:30:10 redirect: bool = True, 08:30:10 assert_same_host: bool = True, 08:30:10 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:10 pool_timeout: int | None = None, 08:30:10 release_conn: bool | None = None, 08:30:10 chunked: bool = False, 08:30:10 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:10 preload_content: bool = True, 08:30:10 decode_content: bool = True, 08:30:10 **response_kw: typing.Any, 08:30:10 ) -> BaseHTTPResponse: 08:30:10 """ 08:30:10 Get a connection from the pool and perform an HTTP request. This is the 08:30:10 lowest level call for making a request, so you'll need to specify all 08:30:10 the raw details. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 More commonly, it's appropriate to use a convenience method 08:30:10 such as :meth:`request`. 08:30:10 08:30:10 .. note:: 08:30:10 08:30:10 `release_conn` will only behave as expected if 08:30:10 `preload_content=False` because we want to make 08:30:10 `preload_content=False` the default behaviour someday soon without 08:30:10 breaking backwards compatibility. 08:30:10 08:30:10 :param method: 08:30:10 HTTP request method (such as GET, POST, PUT, etc.) 08:30:10 08:30:10 :param url: 08:30:10 The URL to perform the request on. 08:30:10 08:30:10 :param body: 08:30:10 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:10 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:10 08:30:10 :param headers: 08:30:10 Dictionary of custom headers to send, such as User-Agent, 08:30:10 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:10 these headers completely replace any pool-specific headers. 08:30:10 08:30:10 :param retries: 08:30:10 Configure the number of retries to allow before raising a 08:30:10 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:10 08:30:10 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:10 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:10 over different types of retries. 08:30:10 Pass an integer number to retry connection errors that many times, 08:30:10 but no other types of errors. Pass zero to never retry. 08:30:10 08:30:10 If ``False``, then retries are disabled and any exception is raised 08:30:10 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:10 the redirect response will be returned. 08:30:10 08:30:10 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:10 08:30:10 :param redirect: 08:30:10 If True, automatically handle redirects (status codes 301, 302, 08:30:10 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:10 will disable redirect, too. 08:30:10 08:30:10 :param assert_same_host: 08:30:10 If ``True``, will make sure that the host of the pool requests is 08:30:10 consistent else will raise HostChangedError. When ``False``, you can 08:30:10 use the pool on an HTTP proxy and request foreign hosts. 08:30:10 08:30:10 :param timeout: 08:30:10 If specified, overrides the default timeout for this one 08:30:10 request. It may be a float (in seconds) or an instance of 08:30:10 :class:`urllib3.util.Timeout`. 08:30:10 08:30:10 :param pool_timeout: 08:30:10 If set and the pool is set to block=True, then this method will 08:30:10 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:10 connection is available within the time period. 08:30:10 08:30:10 :param bool preload_content: 08:30:10 If True, the response's body will be preloaded into memory. 08:30:10 08:30:10 :param bool decode_content: 08:30:10 If True, will attempt to decode the body based on the 08:30:10 'content-encoding' header. 08:30:10 08:30:10 :param release_conn: 08:30:10 If False, then the urlopen call will not release the connection 08:30:10 back into the pool once a response is received (but will release if 08:30:10 you read the entire contents of the response such as when 08:30:10 `preload_content=True`). This is useful if you're not preloading 08:30:10 the response's content immediately. You will need to call 08:30:10 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:10 back into the pool. If None, it takes the value of ``preload_content`` 08:30:10 which defaults to ``True``. 08:30:10 08:30:10 :param bool chunked: 08:30:10 If True, urllib3 will send the body using chunked transfer 08:30:10 encoding. Otherwise, urllib3 will send the body using the standard 08:30:10 content-length form. Defaults to False. 08:30:10 08:30:10 :param int body_pos: 08:30:10 Position to seek to in file-like body in the event of a retry or 08:30:10 redirect. Typically this won't need to be set because urllib3 will 08:30:10 auto-populate the value when needed. 08:30:10 """ 08:30:10 parsed_url = parse_url(url) 08:30:10 destination_scheme = parsed_url.scheme 08:30:10 08:30:10 if headers is None: 08:30:10 headers = self.headers 08:30:10 08:30:10 if not isinstance(retries, Retry): 08:30:10 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:10 08:30:10 if release_conn is None: 08:30:10 release_conn = preload_content 08:30:10 08:30:10 # Check host 08:30:10 if assert_same_host and not self.is_same_host(url): 08:30:10 raise HostChangedError(self, url, retries) 08:30:10 08:30:10 # Ensure that the URL we're connecting to is properly encoded 08:30:10 if url.startswith("/"): 08:30:10 url = to_str(_encode_target(url)) 08:30:10 else: 08:30:10 url = to_str(parsed_url.url) 08:30:10 08:30:10 conn = None 08:30:10 08:30:10 # Track whether `conn` needs to be released before 08:30:10 # returning/raising/recursing. Update this variable if necessary, and 08:30:10 # leave `release_conn` constant throughout the function. That way, if 08:30:10 # the function recurses, the original value of `release_conn` will be 08:30:10 # passed down into the recursive call, and its value will be respected. 08:30:10 # 08:30:10 # See issue #651 [1] for details. 08:30:10 # 08:30:10 # [1] 08:30:10 release_this_conn = release_conn 08:30:10 08:30:10 http_tunnel_required = connection_requires_http_tunnel( 08:30:10 self.proxy, self.proxy_config, destination_scheme 08:30:10 ) 08:30:10 08:30:10 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:10 # have to copy the headers dict so we can safely change it without those 08:30:10 # changes being reflected in anyone else's copy. 08:30:10 if not http_tunnel_required: 08:30:10 headers = headers.copy() # type: ignore[attr-defined] 08:30:10 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:10 08:30:10 # Must keep the exception bound to a separate variable or else Python 3 08:30:10 # complains about UnboundLocalError. 08:30:10 err = None 08:30:10 08:30:10 # Keep track of whether we cleanly exited the except block. This 08:30:10 # ensures we do proper cleanup in finally. 08:30:10 clean_exit = False 08:30:10 08:30:10 # Rewind body position, if needed. Record current position 08:30:10 # for future rewinds in the event of a redirect/retry. 08:30:10 body_pos = set_file_position(body, body_pos) 08:30:10 08:30:10 try: 08:30:10 # Request a connection from the queue. 08:30:10 timeout_obj = self._get_timeout(timeout) 08:30:10 conn = self._get_conn(timeout=pool_timeout) 08:30:10 08:30:10 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:10 08:30:10 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:10 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:10 try: 08:30:10 self._prepare_proxy(conn) 08:30:10 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:10 self._raise_timeout( 08:30:10 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:10 ) 08:30:10 raise 08:30:10 08:30:10 # If we're going to release the connection in ``finally:``, then 08:30:10 # the response doesn't need to know about the connection. Otherwise 08:30:10 # it will also try to release it and we'll have a double-release 08:30:10 # mess. 08:30:10 response_conn = conn if not release_conn else None 08:30:10 08:30:10 # Make the request on the HTTPConnection object 08:30:10 > response = self._make_request( 08:30:10 conn, 08:30:10 method, 08:30:10 url, 08:30:10 timeout=timeout_obj, 08:30:10 body=body, 08:30:10 headers=headers, 08:30:10 chunked=chunked, 08:30:10 retries=retries, 08:30:10 response_conn=response_conn, 08:30:10 preload_content=preload_content, 08:30:10 decode_content=decode_content, 08:30:10 **response_kw, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:10 conn.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:10 self.endheaders() 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:10 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:10 self.send(msg) 08:30:10 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:10 self.connect() 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:10 self.sock = self._new_conn() 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 08:30:10 def _new_conn(self) -> socket.socket: 08:30:10 """Establish a socket connection and set nodelay settings on it. 08:30:10 08:30:10 :return: New socket connection. 08:30:10 """ 08:30:10 try: 08:30:10 sock = connection.create_connection( 08:30:10 (self._dns_host, self.port), 08:30:10 self.timeout, 08:30:10 source_address=self.source_address, 08:30:10 socket_options=self.socket_options, 08:30:10 ) 08:30:10 except socket.gaierror as e: 08:30:10 raise NameResolutionError(self.host, self, e) from e 08:30:10 except SocketTimeout as e: 08:30:10 raise ConnectTimeoutError( 08:30:10 self, 08:30:10 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:10 ) from e 08:30:10 08:30:10 except OSError as e: 08:30:10 > raise NewConnectionError( 08:30:10 self, f"Failed to establish a new connection: {e}" 08:30:10 ) from e 08:30:10 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:10 08:30:10 The above exception was the direct cause of the following exception: 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:10 if isinstance(timeout, tuple): 08:30:10 try: 08:30:10 connect, read = timeout 08:30:10 timeout = TimeoutSauce(connect=connect, read=read) 08:30:10 except ValueError: 08:30:10 raise ValueError( 08:30:10 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:10 f"or a single float to set both timeouts to the same value." 08:30:10 ) 08:30:10 elif isinstance(timeout, TimeoutSauce): 08:30:10 pass 08:30:10 else: 08:30:10 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:10 08:30:10 try: 08:30:10 > resp = conn.urlopen( 08:30:10 method=request.method, 08:30:10 url=url, 08:30:10 body=request.body, 08:30:10 headers=request.headers, 08:30:10 redirect=False, 08:30:10 assert_same_host=False, 08:30:10 preload_content=False, 08:30:10 decode_content=False, 08:30:10 retries=self.max_retries, 08:30:10 timeout=timeout, 08:30:10 chunked=chunked, 08:30:10 ) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:10 retries = retries.increment( 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:10 method = 'GET' 08:30:10 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 08:30:10 response = None 08:30:10 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:10 _pool = 08:30:10 _stacktrace = 08:30:10 08:30:10 def increment( 08:30:10 self, 08:30:10 method: str | None = None, 08:30:10 url: str | None = None, 08:30:10 response: BaseHTTPResponse | None = None, 08:30:10 error: Exception | None = None, 08:30:10 _pool: ConnectionPool | None = None, 08:30:10 _stacktrace: TracebackType | None = None, 08:30:10 ) -> Self: 08:30:10 """Return a new Retry object with incremented retry counters. 08:30:10 08:30:10 :param response: A response object, or None, if the server did not 08:30:10 return a response. 08:30:10 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:10 :param Exception error: An error encountered during the request, or 08:30:10 None if the response was received successfully. 08:30:10 08:30:10 :return: A new ``Retry`` object. 08:30:10 """ 08:30:10 if self.total is False and error: 08:30:10 # Disabled, indicate to re-raise the error. 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 08:30:10 total = self.total 08:30:10 if total is not None: 08:30:10 total -= 1 08:30:10 08:30:10 connect = self.connect 08:30:10 read = self.read 08:30:10 redirect = self.redirect 08:30:10 status_count = self.status 08:30:10 other = self.other 08:30:10 cause = "unknown" 08:30:10 status = None 08:30:10 redirect_location = None 08:30:10 08:30:10 if error and self._is_connection_error(error): 08:30:10 # Connect retry? 08:30:10 if connect is False: 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif connect is not None: 08:30:10 connect -= 1 08:30:10 08:30:10 elif error and self._is_read_error(error): 08:30:10 # Read retry? 08:30:10 if read is False or method is None or not self._is_method_retryable(method): 08:30:10 raise reraise(type(error), error, _stacktrace) 08:30:10 elif read is not None: 08:30:10 read -= 1 08:30:10 08:30:10 elif error: 08:30:10 # Other retry? 08:30:10 if other is not None: 08:30:10 other -= 1 08:30:10 08:30:10 elif response and response.get_redirect_location(): 08:30:10 # Redirect retry? 08:30:10 if redirect is not None: 08:30:10 redirect -= 1 08:30:10 cause = "too many redirects" 08:30:10 response_redirect_location = response.get_redirect_location() 08:30:10 if response_redirect_location: 08:30:10 redirect_location = response_redirect_location 08:30:10 status = response.status 08:30:10 08:30:10 else: 08:30:10 # Incrementing because of a server error like a 500 in 08:30:10 # status_forcelist and the given method is in the allowed_methods 08:30:10 cause = ResponseError.GENERIC_ERROR 08:30:10 if response and response.status: 08:30:10 if status_count is not None: 08:30:10 status_count -= 1 08:30:10 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:10 status = response.status 08:30:10 08:30:10 history = self.history + ( 08:30:10 RequestHistory(method, url, error, status, redirect_location), 08:30:10 ) 08:30:10 08:30:10 new_retry = self.new( 08:30:10 total=total, 08:30:10 connect=connect, 08:30:10 read=read, 08:30:10 redirect=redirect, 08:30:10 status=status_count, 08:30:10 other=other, 08:30:10 history=history, 08:30:10 ) 08:30:10 08:30:10 if new_retry.is_exhausted(): 08:30:10 reason = error or ResponseError(cause) 08:30:10 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:10 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?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:10 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:10 08:30:10 During handling of the above exception, another exception occurred: 08:30:10 08:30:10 self = 08:30:10 08:30:10 def test_17_xpdr_device_disconnected(self): 08:30:10 > response = test_utils.check_device_connection("XPDRA01") 08:30:10 08:30:10 transportpce_tests/1.2.1/test01_portmapping.py:195: 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 transportpce_tests/common/test_utils.py:369: in check_device_connection 08:30:10 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 08:30:10 transportpce_tests/common/test_utils.py:116: in get_request 08:30:10 return requests.request( 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:10 return session.request(method=method, url=url, **kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:10 resp = self.send(prep, **send_kwargs) 08:30:10 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:10 r = adapter.send(request, **kwargs) 08:30:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:10 08:30:10 self = 08:30:10 request = , stream = False 08:30:10 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:10 proxies = OrderedDict() 08:30:10 08:30:10 def send( 08:30:10 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:10 ): 08:30:10 """Sends PreparedRequest object. Returns Response object. 08:30:10 08:30:10 :param request: The :class:`PreparedRequest ` being sent. 08:30:10 :param stream: (optional) Whether to stream the request content. 08:30:10 :param timeout: (optional) How long to wait for the server to send 08:30:10 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:10 read timeout) ` tuple. 08:30:10 :type timeout: float or tuple or urllib3 Timeout object 08:30:10 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:10 we verify the server's TLS certificate, or a string, in which case it 08:30:10 must be a path to a CA bundle to use 08:30:10 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:10 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:10 :rtype: requests.Response 08:30:10 """ 08:30:10 08:30:10 try: 08:30:10 conn = self.get_connection_with_tls_context( 08:30:10 request, verify, proxies=proxies, cert=cert 08:30:10 ) 08:30:10 except LocationValueError as e: 08:30:10 raise InvalidURL(e, request=request) 08:30:10 08:30:10 self.cert_verify(conn, request.url, verify, cert) 08:30:10 url = self.request_url(request, proxies) 08:30:10 self.add_headers( 08:30:10 request, 08:30:10 stream=stream, 08:30:10 timeout=timeout, 08:30:10 verify=verify, 08:30:10 cert=cert, 08:30:10 proxies=proxies, 08:30:10 ) 08:30:10 08:30:10 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:10 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 except (ProtocolError, OSError) as err: 08:30:11 raise ConnectionError(err, request=request) 08:30:11 08:30:11 except MaxRetryError as e: 08:30:11 if isinstance(e.reason, ConnectTimeoutError): 08:30:11 # TODO: Remove this in 3.0.0: see #2811 08:30:11 if not isinstance(e.reason, NewConnectionError): 08:30:11 raise ConnectTimeout(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, ResponseError): 08:30:11 raise RetryError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _ProxyError): 08:30:11 raise ProxyError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _SSLError): 08:30:11 # This branch is for urllib3 v1.22 and later. 08:30:11 raise SSLError(e, request=request) 08:30:11 08:30:11 > raise ConnectionError(e, request=request) 08:30:11 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?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:11 ----------------------------- Captured stdout call ----------------------------- 08:30:11 execution of test_17_xpdr_device_disconnected 08:30:11 _______ TransportPCEPortMappingTesting.test_18_xpdr_device_not_connected _______ 08:30:11 08:30:11 self = 08:30:11 08:30:11 def _new_conn(self) -> socket.socket: 08:30:11 """Establish a socket connection and set nodelay settings on it. 08:30:11 08:30:11 :return: New socket connection. 08:30:11 """ 08:30:11 try: 08:30:11 > sock = connection.create_connection( 08:30:11 (self._dns_host, self.port), 08:30:11 self.timeout, 08:30:11 source_address=self.source_address, 08:30:11 socket_options=self.socket_options, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:11 raise err 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:11 socket_options = [(6, 1, 1)] 08:30:11 08:30:11 def create_connection( 08:30:11 address: tuple[str, int], 08:30:11 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:11 source_address: tuple[str, int] | None = None, 08:30:11 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:11 ) -> socket.socket: 08:30:11 """Connect to *address* and return the socket object. 08:30:11 08:30:11 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:11 port)``) and return the socket object. Passing the optional 08:30:11 *timeout* parameter will set the timeout on the socket instance 08:30:11 before attempting to connect. If no *timeout* is supplied, the 08:30:11 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:11 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:11 for the socket to bind as a source address before making the connection. 08:30:11 An host of '' or port 0 tells the OS to use the default. 08:30:11 """ 08:30:11 08:30:11 host, port = address 08:30:11 if host.startswith("["): 08:30:11 host = host.strip("[]") 08:30:11 err = None 08:30:11 08:30:11 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:11 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:11 # The original create_connection function always returns all records. 08:30:11 family = allowed_gai_family() 08:30:11 08:30:11 try: 08:30:11 host.encode("idna") 08:30:11 except UnicodeError: 08:30:11 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:11 08:30:11 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:11 af, socktype, proto, canonname, sa = res 08:30:11 sock = None 08:30:11 try: 08:30:11 sock = socket.socket(af, socktype, proto) 08:30:11 08:30:11 # If provided, set socket level options before connecting. 08:30:11 _set_socket_options(sock, socket_options) 08:30:11 08:30:11 if timeout is not _DEFAULT_TIMEOUT: 08:30:11 sock.settimeout(timeout) 08:30:11 if source_address: 08:30:11 sock.bind(source_address) 08:30:11 > sock.connect(sa) 08:30:11 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:11 08:30:11 The above exception was the direct cause of the following exception: 08:30:11 08:30:11 self = 08:30:11 method = 'GET' 08:30:11 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:30:11 body = None 08:30:11 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='} 08:30:11 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:11 redirect = False, assert_same_host = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:11 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:11 decode_content = False, response_kw = {} 08:30:11 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info', query=None, fragment=None) 08:30:11 destination_scheme = None, conn = None, release_this_conn = True 08:30:11 http_tunnel_required = False, err = None, clean_exit = False 08:30:11 08:30:11 def urlopen( # type: ignore[override] 08:30:11 self, 08:30:11 method: str, 08:30:11 url: str, 08:30:11 body: _TYPE_BODY | None = None, 08:30:11 headers: typing.Mapping[str, str] | None = None, 08:30:11 retries: Retry | bool | int | None = None, 08:30:11 redirect: bool = True, 08:30:11 assert_same_host: bool = True, 08:30:11 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:11 pool_timeout: int | None = None, 08:30:11 release_conn: bool | None = None, 08:30:11 chunked: bool = False, 08:30:11 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:11 preload_content: bool = True, 08:30:11 decode_content: bool = True, 08:30:11 **response_kw: typing.Any, 08:30:11 ) -> BaseHTTPResponse: 08:30:11 """ 08:30:11 Get a connection from the pool and perform an HTTP request. This is the 08:30:11 lowest level call for making a request, so you'll need to specify all 08:30:11 the raw details. 08:30:11 08:30:11 .. note:: 08:30:11 08:30:11 More commonly, it's appropriate to use a convenience method 08:30:11 such as :meth:`request`. 08:30:11 08:30:11 .. note:: 08:30:11 08:30:11 `release_conn` will only behave as expected if 08:30:11 `preload_content=False` because we want to make 08:30:11 `preload_content=False` the default behaviour someday soon without 08:30:11 breaking backwards compatibility. 08:30:11 08:30:11 :param method: 08:30:11 HTTP request method (such as GET, POST, PUT, etc.) 08:30:11 08:30:11 :param url: 08:30:11 The URL to perform the request on. 08:30:11 08:30:11 :param body: 08:30:11 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:11 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:11 08:30:11 :param headers: 08:30:11 Dictionary of custom headers to send, such as User-Agent, 08:30:11 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:11 these headers completely replace any pool-specific headers. 08:30:11 08:30:11 :param retries: 08:30:11 Configure the number of retries to allow before raising a 08:30:11 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:11 08:30:11 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:11 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:11 over different types of retries. 08:30:11 Pass an integer number to retry connection errors that many times, 08:30:11 but no other types of errors. Pass zero to never retry. 08:30:11 08:30:11 If ``False``, then retries are disabled and any exception is raised 08:30:11 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:11 the redirect response will be returned. 08:30:11 08:30:11 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:11 08:30:11 :param redirect: 08:30:11 If True, automatically handle redirects (status codes 301, 302, 08:30:11 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:11 will disable redirect, too. 08:30:11 08:30:11 :param assert_same_host: 08:30:11 If ``True``, will make sure that the host of the pool requests is 08:30:11 consistent else will raise HostChangedError. When ``False``, you can 08:30:11 use the pool on an HTTP proxy and request foreign hosts. 08:30:11 08:30:11 :param timeout: 08:30:11 If specified, overrides the default timeout for this one 08:30:11 request. It may be a float (in seconds) or an instance of 08:30:11 :class:`urllib3.util.Timeout`. 08:30:11 08:30:11 :param pool_timeout: 08:30:11 If set and the pool is set to block=True, then this method will 08:30:11 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:11 connection is available within the time period. 08:30:11 08:30:11 :param bool preload_content: 08:30:11 If True, the response's body will be preloaded into memory. 08:30:11 08:30:11 :param bool decode_content: 08:30:11 If True, will attempt to decode the body based on the 08:30:11 'content-encoding' header. 08:30:11 08:30:11 :param release_conn: 08:30:11 If False, then the urlopen call will not release the connection 08:30:11 back into the pool once a response is received (but will release if 08:30:11 you read the entire contents of the response such as when 08:30:11 `preload_content=True`). This is useful if you're not preloading 08:30:11 the response's content immediately. You will need to call 08:30:11 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:11 back into the pool. If None, it takes the value of ``preload_content`` 08:30:11 which defaults to ``True``. 08:30:11 08:30:11 :param bool chunked: 08:30:11 If True, urllib3 will send the body using chunked transfer 08:30:11 encoding. Otherwise, urllib3 will send the body using the standard 08:30:11 content-length form. Defaults to False. 08:30:11 08:30:11 :param int body_pos: 08:30:11 Position to seek to in file-like body in the event of a retry or 08:30:11 redirect. Typically this won't need to be set because urllib3 will 08:30:11 auto-populate the value when needed. 08:30:11 """ 08:30:11 parsed_url = parse_url(url) 08:30:11 destination_scheme = parsed_url.scheme 08:30:11 08:30:11 if headers is None: 08:30:11 headers = self.headers 08:30:11 08:30:11 if not isinstance(retries, Retry): 08:30:11 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:11 08:30:11 if release_conn is None: 08:30:11 release_conn = preload_content 08:30:11 08:30:11 # Check host 08:30:11 if assert_same_host and not self.is_same_host(url): 08:30:11 raise HostChangedError(self, url, retries) 08:30:11 08:30:11 # Ensure that the URL we're connecting to is properly encoded 08:30:11 if url.startswith("/"): 08:30:11 url = to_str(_encode_target(url)) 08:30:11 else: 08:30:11 url = to_str(parsed_url.url) 08:30:11 08:30:11 conn = None 08:30:11 08:30:11 # Track whether `conn` needs to be released before 08:30:11 # returning/raising/recursing. Update this variable if necessary, and 08:30:11 # leave `release_conn` constant throughout the function. That way, if 08:30:11 # the function recurses, the original value of `release_conn` will be 08:30:11 # passed down into the recursive call, and its value will be respected. 08:30:11 # 08:30:11 # See issue #651 [1] for details. 08:30:11 # 08:30:11 # [1] 08:30:11 release_this_conn = release_conn 08:30:11 08:30:11 http_tunnel_required = connection_requires_http_tunnel( 08:30:11 self.proxy, self.proxy_config, destination_scheme 08:30:11 ) 08:30:11 08:30:11 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:11 # have to copy the headers dict so we can safely change it without those 08:30:11 # changes being reflected in anyone else's copy. 08:30:11 if not http_tunnel_required: 08:30:11 headers = headers.copy() # type: ignore[attr-defined] 08:30:11 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:11 08:30:11 # Must keep the exception bound to a separate variable or else Python 3 08:30:11 # complains about UnboundLocalError. 08:30:11 err = None 08:30:11 08:30:11 # Keep track of whether we cleanly exited the except block. This 08:30:11 # ensures we do proper cleanup in finally. 08:30:11 clean_exit = False 08:30:11 08:30:11 # Rewind body position, if needed. Record current position 08:30:11 # for future rewinds in the event of a redirect/retry. 08:30:11 body_pos = set_file_position(body, body_pos) 08:30:11 08:30:11 try: 08:30:11 # Request a connection from the queue. 08:30:11 timeout_obj = self._get_timeout(timeout) 08:30:11 conn = self._get_conn(timeout=pool_timeout) 08:30:11 08:30:11 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:11 08:30:11 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:11 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:11 try: 08:30:11 self._prepare_proxy(conn) 08:30:11 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:11 self._raise_timeout( 08:30:11 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:11 ) 08:30:11 raise 08:30:11 08:30:11 # If we're going to release the connection in ``finally:``, then 08:30:11 # the response doesn't need to know about the connection. Otherwise 08:30:11 # it will also try to release it and we'll have a double-release 08:30:11 # mess. 08:30:11 response_conn = conn if not release_conn else None 08:30:11 08:30:11 # Make the request on the HTTPConnection object 08:30:11 > response = self._make_request( 08:30:11 conn, 08:30:11 method, 08:30:11 url, 08:30:11 timeout=timeout_obj, 08:30:11 body=body, 08:30:11 headers=headers, 08:30:11 chunked=chunked, 08:30:11 retries=retries, 08:30:11 response_conn=response_conn, 08:30:11 preload_content=preload_content, 08:30:11 decode_content=decode_content, 08:30:11 **response_kw, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:11 conn.request( 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:11 self.endheaders() 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:11 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:11 self.send(msg) 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:11 self.connect() 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:11 self.sock = self._new_conn() 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = 08:30:11 08:30:11 def _new_conn(self) -> socket.socket: 08:30:11 """Establish a socket connection and set nodelay settings on it. 08:30:11 08:30:11 :return: New socket connection. 08:30:11 """ 08:30:11 try: 08:30:11 sock = connection.create_connection( 08:30:11 (self._dns_host, self.port), 08:30:11 self.timeout, 08:30:11 source_address=self.source_address, 08:30:11 socket_options=self.socket_options, 08:30:11 ) 08:30:11 except socket.gaierror as e: 08:30:11 raise NameResolutionError(self.host, self, e) from e 08:30:11 except SocketTimeout as e: 08:30:11 raise ConnectTimeoutError( 08:30:11 self, 08:30:11 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:11 ) from e 08:30:11 08:30:11 except OSError as e: 08:30:11 > raise NewConnectionError( 08:30:11 self, f"Failed to establish a new connection: {e}" 08:30:11 ) from e 08:30:11 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:11 08:30:11 The above exception was the direct cause of the following exception: 08:30:11 08:30:11 self = 08:30:11 request = , stream = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:11 proxies = OrderedDict() 08:30:11 08:30:11 def send( 08:30:11 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:11 ): 08:30:11 """Sends PreparedRequest object. Returns Response object. 08:30:11 08:30:11 :param request: The :class:`PreparedRequest ` being sent. 08:30:11 :param stream: (optional) Whether to stream the request content. 08:30:11 :param timeout: (optional) How long to wait for the server to send 08:30:11 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:11 read timeout) ` tuple. 08:30:11 :type timeout: float or tuple or urllib3 Timeout object 08:30:11 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:11 we verify the server's TLS certificate, or a string, in which case it 08:30:11 must be a path to a CA bundle to use 08:30:11 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:11 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:11 :rtype: requests.Response 08:30:11 """ 08:30:11 08:30:11 try: 08:30:11 conn = self.get_connection_with_tls_context( 08:30:11 request, verify, proxies=proxies, cert=cert 08:30:11 ) 08:30:11 except LocationValueError as e: 08:30:11 raise InvalidURL(e, request=request) 08:30:11 08:30:11 self.cert_verify(conn, request.url, verify, cert) 08:30:11 url = self.request_url(request, proxies) 08:30:11 self.add_headers( 08:30:11 request, 08:30:11 stream=stream, 08:30:11 timeout=timeout, 08:30:11 verify=verify, 08:30:11 cert=cert, 08:30:11 proxies=proxies, 08:30:11 ) 08:30:11 08:30:11 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:11 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 > resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:11 retries = retries.increment( 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:11 method = 'GET' 08:30:11 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:30:11 response = None 08:30:11 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:11 _pool = 08:30:11 _stacktrace = 08:30:11 08:30:11 def increment( 08:30:11 self, 08:30:11 method: str | None = None, 08:30:11 url: str | None = None, 08:30:11 response: BaseHTTPResponse | None = None, 08:30:11 error: Exception | None = None, 08:30:11 _pool: ConnectionPool | None = None, 08:30:11 _stacktrace: TracebackType | None = None, 08:30:11 ) -> Self: 08:30:11 """Return a new Retry object with incremented retry counters. 08:30:11 08:30:11 :param response: A response object, or None, if the server did not 08:30:11 return a response. 08:30:11 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:11 :param Exception error: An error encountered during the request, or 08:30:11 None if the response was received successfully. 08:30:11 08:30:11 :return: A new ``Retry`` object. 08:30:11 """ 08:30:11 if self.total is False and error: 08:30:11 # Disabled, indicate to re-raise the error. 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 08:30:11 total = self.total 08:30:11 if total is not None: 08:30:11 total -= 1 08:30:11 08:30:11 connect = self.connect 08:30:11 read = self.read 08:30:11 redirect = self.redirect 08:30:11 status_count = self.status 08:30:11 other = self.other 08:30:11 cause = "unknown" 08:30:11 status = None 08:30:11 redirect_location = None 08:30:11 08:30:11 if error and self._is_connection_error(error): 08:30:11 # Connect retry? 08:30:11 if connect is False: 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 elif connect is not None: 08:30:11 connect -= 1 08:30:11 08:30:11 elif error and self._is_read_error(error): 08:30:11 # Read retry? 08:30:11 if read is False or method is None or not self._is_method_retryable(method): 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 elif read is not None: 08:30:11 read -= 1 08:30:11 08:30:11 elif error: 08:30:11 # Other retry? 08:30:11 if other is not None: 08:30:11 other -= 1 08:30:11 08:30:11 elif response and response.get_redirect_location(): 08:30:11 # Redirect retry? 08:30:11 if redirect is not None: 08:30:11 redirect -= 1 08:30:11 cause = "too many redirects" 08:30:11 response_redirect_location = response.get_redirect_location() 08:30:11 if response_redirect_location: 08:30:11 redirect_location = response_redirect_location 08:30:11 status = response.status 08:30:11 08:30:11 else: 08:30:11 # Incrementing because of a server error like a 500 in 08:30:11 # status_forcelist and the given method is in the allowed_methods 08:30:11 cause = ResponseError.GENERIC_ERROR 08:30:11 if response and response.status: 08:30:11 if status_count is not None: 08:30:11 status_count -= 1 08:30:11 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:11 status = response.status 08:30:11 08:30:11 history = self.history + ( 08:30:11 RequestHistory(method, url, error, status, redirect_location), 08:30:11 ) 08:30:11 08:30:11 new_retry = self.new( 08:30:11 total=total, 08:30:11 connect=connect, 08:30:11 read=read, 08:30:11 redirect=redirect, 08:30:11 status=status_count, 08:30:11 other=other, 08:30:11 history=history, 08:30:11 ) 08:30:11 08:30:11 if new_retry.is_exhausted(): 08:30:11 reason = error or ResponseError(cause) 08:30:11 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:11 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:11 08:30:11 During handling of the above exception, another exception occurred: 08:30:11 08:30:11 self = 08:30:11 08:30:11 def test_18_xpdr_device_not_connected(self): 08:30:11 > response = test_utils.get_portmapping_node_attr("XPDRA01", "node-info", None) 08:30:11 08:30:11 transportpce_tests/1.2.1/test01_portmapping.py:203: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:11 response = get_request(target_url) 08:30:11 transportpce_tests/common/test_utils.py:116: in get_request 08:30:11 return requests.request( 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:11 return session.request(method=method, url=url, **kwargs) 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:11 resp = self.send(prep, **send_kwargs) 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:11 r = adapter.send(request, **kwargs) 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = 08:30:11 request = , stream = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:11 proxies = OrderedDict() 08:30:11 08:30:11 def send( 08:30:11 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:11 ): 08:30:11 """Sends PreparedRequest object. Returns Response object. 08:30:11 08:30:11 :param request: The :class:`PreparedRequest ` being sent. 08:30:11 :param stream: (optional) Whether to stream the request content. 08:30:11 :param timeout: (optional) How long to wait for the server to send 08:30:11 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:11 read timeout) ` tuple. 08:30:11 :type timeout: float or tuple or urllib3 Timeout object 08:30:11 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:11 we verify the server's TLS certificate, or a string, in which case it 08:30:11 must be a path to a CA bundle to use 08:30:11 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:11 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:11 :rtype: requests.Response 08:30:11 """ 08:30:11 08:30:11 try: 08:30:11 conn = self.get_connection_with_tls_context( 08:30:11 request, verify, proxies=proxies, cert=cert 08:30:11 ) 08:30:11 except LocationValueError as e: 08:30:11 raise InvalidURL(e, request=request) 08:30:11 08:30:11 self.cert_verify(conn, request.url, verify, cert) 08:30:11 url = self.request_url(request, proxies) 08:30:11 self.add_headers( 08:30:11 request, 08:30:11 stream=stream, 08:30:11 timeout=timeout, 08:30:11 verify=verify, 08:30:11 cert=cert, 08:30:11 proxies=proxies, 08:30:11 ) 08:30:11 08:30:11 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:11 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 except (ProtocolError, OSError) as err: 08:30:11 raise ConnectionError(err, request=request) 08:30:11 08:30:11 except MaxRetryError as e: 08:30:11 if isinstance(e.reason, ConnectTimeoutError): 08:30:11 # TODO: Remove this in 3.0.0: see #2811 08:30:11 if not isinstance(e.reason, NewConnectionError): 08:30:11 raise ConnectTimeout(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, ResponseError): 08:30:11 raise RetryError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _ProxyError): 08:30:11 raise ProxyError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _SSLError): 08:30:11 # This branch is for urllib3 v1.22 and later. 08:30:11 raise SSLError(e, request=request) 08:30:11 08:30:11 > raise ConnectionError(e, request=request) 08:30:11 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:11 ----------------------------- Captured stdout call ----------------------------- 08:30:11 execution of test_18_xpdr_device_not_connected 08:30:11 _______ TransportPCEPortMappingTesting.test_19_rdm_device_disconnection ________ 08:30:11 08:30:11 self = 08:30:11 08:30:11 def _new_conn(self) -> socket.socket: 08:30:11 """Establish a socket connection and set nodelay settings on it. 08:30:11 08:30:11 :return: New socket connection. 08:30:11 """ 08:30:11 try: 08:30:11 > sock = connection.create_connection( 08:30:11 (self._dns_host, self.port), 08:30:11 self.timeout, 08:30:11 source_address=self.source_address, 08:30:11 socket_options=self.socket_options, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:11 raise err 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:11 socket_options = [(6, 1, 1)] 08:30:11 08:30:11 def create_connection( 08:30:11 address: tuple[str, int], 08:30:11 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:11 source_address: tuple[str, int] | None = None, 08:30:11 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:11 ) -> socket.socket: 08:30:11 """Connect to *address* and return the socket object. 08:30:11 08:30:11 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:11 port)``) and return the socket object. Passing the optional 08:30:11 *timeout* parameter will set the timeout on the socket instance 08:30:11 before attempting to connect. If no *timeout* is supplied, the 08:30:11 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:11 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:11 for the socket to bind as a source address before making the connection. 08:30:11 An host of '' or port 0 tells the OS to use the default. 08:30:11 """ 08:30:11 08:30:11 host, port = address 08:30:11 if host.startswith("["): 08:30:11 host = host.strip("[]") 08:30:11 err = None 08:30:11 08:30:11 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:11 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:11 # The original create_connection function always returns all records. 08:30:11 family = allowed_gai_family() 08:30:11 08:30:11 try: 08:30:11 host.encode("idna") 08:30:11 except UnicodeError: 08:30:11 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:11 08:30:11 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:11 af, socktype, proto, canonname, sa = res 08:30:11 sock = None 08:30:11 try: 08:30:11 sock = socket.socket(af, socktype, proto) 08:30:11 08:30:11 # If provided, set socket level options before connecting. 08:30:11 _set_socket_options(sock, socket_options) 08:30:11 08:30:11 if timeout is not _DEFAULT_TIMEOUT: 08:30:11 sock.settimeout(timeout) 08:30:11 if source_address: 08:30:11 sock.bind(source_address) 08:30:11 > sock.connect(sa) 08:30:11 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:11 08:30:11 The above exception was the direct cause of the following exception: 08:30:11 08:30:11 self = 08:30:11 method = 'DELETE' 08:30:11 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 08:30:11 body = None 08:30:11 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '0', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:30:11 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:11 redirect = False, assert_same_host = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:11 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:11 decode_content = False, response_kw = {} 08:30:11 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01', query=None, fragment=None) 08:30:11 destination_scheme = None, conn = None, release_this_conn = True 08:30:11 http_tunnel_required = False, err = None, clean_exit = False 08:30:11 08:30:11 def urlopen( # type: ignore[override] 08:30:11 self, 08:30:11 method: str, 08:30:11 url: str, 08:30:11 body: _TYPE_BODY | None = None, 08:30:11 headers: typing.Mapping[str, str] | None = None, 08:30:11 retries: Retry | bool | int | None = None, 08:30:11 redirect: bool = True, 08:30:11 assert_same_host: bool = True, 08:30:11 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:11 pool_timeout: int | None = None, 08:30:11 release_conn: bool | None = None, 08:30:11 chunked: bool = False, 08:30:11 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:11 preload_content: bool = True, 08:30:11 decode_content: bool = True, 08:30:11 **response_kw: typing.Any, 08:30:11 ) -> BaseHTTPResponse: 08:30:11 """ 08:30:11 Get a connection from the pool and perform an HTTP request. This is the 08:30:11 lowest level call for making a request, so you'll need to specify all 08:30:11 the raw details. 08:30:11 08:30:11 .. note:: 08:30:11 08:30:11 More commonly, it's appropriate to use a convenience method 08:30:11 such as :meth:`request`. 08:30:11 08:30:11 .. note:: 08:30:11 08:30:11 `release_conn` will only behave as expected if 08:30:11 `preload_content=False` because we want to make 08:30:11 `preload_content=False` the default behaviour someday soon without 08:30:11 breaking backwards compatibility. 08:30:11 08:30:11 :param method: 08:30:11 HTTP request method (such as GET, POST, PUT, etc.) 08:30:11 08:30:11 :param url: 08:30:11 The URL to perform the request on. 08:30:11 08:30:11 :param body: 08:30:11 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:11 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:11 08:30:11 :param headers: 08:30:11 Dictionary of custom headers to send, such as User-Agent, 08:30:11 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:11 these headers completely replace any pool-specific headers. 08:30:11 08:30:11 :param retries: 08:30:11 Configure the number of retries to allow before raising a 08:30:11 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:11 08:30:11 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:11 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:11 over different types of retries. 08:30:11 Pass an integer number to retry connection errors that many times, 08:30:11 but no other types of errors. Pass zero to never retry. 08:30:11 08:30:11 If ``False``, then retries are disabled and any exception is raised 08:30:11 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:11 the redirect response will be returned. 08:30:11 08:30:11 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:11 08:30:11 :param redirect: 08:30:11 If True, automatically handle redirects (status codes 301, 302, 08:30:11 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:11 will disable redirect, too. 08:30:11 08:30:11 :param assert_same_host: 08:30:11 If ``True``, will make sure that the host of the pool requests is 08:30:11 consistent else will raise HostChangedError. When ``False``, you can 08:30:11 use the pool on an HTTP proxy and request foreign hosts. 08:30:11 08:30:11 :param timeout: 08:30:11 If specified, overrides the default timeout for this one 08:30:11 request. It may be a float (in seconds) or an instance of 08:30:11 :class:`urllib3.util.Timeout`. 08:30:11 08:30:11 :param pool_timeout: 08:30:11 If set and the pool is set to block=True, then this method will 08:30:11 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:11 connection is available within the time period. 08:30:11 08:30:11 :param bool preload_content: 08:30:11 If True, the response's body will be preloaded into memory. 08:30:11 08:30:11 :param bool decode_content: 08:30:11 If True, will attempt to decode the body based on the 08:30:11 'content-encoding' header. 08:30:11 08:30:11 :param release_conn: 08:30:11 If False, then the urlopen call will not release the connection 08:30:11 back into the pool once a response is received (but will release if 08:30:11 you read the entire contents of the response such as when 08:30:11 `preload_content=True`). This is useful if you're not preloading 08:30:11 the response's content immediately. You will need to call 08:30:11 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:11 back into the pool. If None, it takes the value of ``preload_content`` 08:30:11 which defaults to ``True``. 08:30:11 08:30:11 :param bool chunked: 08:30:11 If True, urllib3 will send the body using chunked transfer 08:30:11 encoding. Otherwise, urllib3 will send the body using the standard 08:30:11 content-length form. Defaults to False. 08:30:11 08:30:11 :param int body_pos: 08:30:11 Position to seek to in file-like body in the event of a retry or 08:30:11 redirect. Typically this won't need to be set because urllib3 will 08:30:11 auto-populate the value when needed. 08:30:11 """ 08:30:11 parsed_url = parse_url(url) 08:30:11 destination_scheme = parsed_url.scheme 08:30:11 08:30:11 if headers is None: 08:30:11 headers = self.headers 08:30:11 08:30:11 if not isinstance(retries, Retry): 08:30:11 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:11 08:30:11 if release_conn is None: 08:30:11 release_conn = preload_content 08:30:11 08:30:11 # Check host 08:30:11 if assert_same_host and not self.is_same_host(url): 08:30:11 raise HostChangedError(self, url, retries) 08:30:11 08:30:11 # Ensure that the URL we're connecting to is properly encoded 08:30:11 if url.startswith("/"): 08:30:11 url = to_str(_encode_target(url)) 08:30:11 else: 08:30:11 url = to_str(parsed_url.url) 08:30:11 08:30:11 conn = None 08:30:11 08:30:11 # Track whether `conn` needs to be released before 08:30:11 # returning/raising/recursing. Update this variable if necessary, and 08:30:11 # leave `release_conn` constant throughout the function. That way, if 08:30:11 # the function recurses, the original value of `release_conn` will be 08:30:11 # passed down into the recursive call, and its value will be respected. 08:30:11 # 08:30:11 # See issue #651 [1] for details. 08:30:11 # 08:30:11 # [1] 08:30:11 release_this_conn = release_conn 08:30:11 08:30:11 http_tunnel_required = connection_requires_http_tunnel( 08:30:11 self.proxy, self.proxy_config, destination_scheme 08:30:11 ) 08:30:11 08:30:11 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:11 # have to copy the headers dict so we can safely change it without those 08:30:11 # changes being reflected in anyone else's copy. 08:30:11 if not http_tunnel_required: 08:30:11 headers = headers.copy() # type: ignore[attr-defined] 08:30:11 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:11 08:30:11 # Must keep the exception bound to a separate variable or else Python 3 08:30:11 # complains about UnboundLocalError. 08:30:11 err = None 08:30:11 08:30:11 # Keep track of whether we cleanly exited the except block. This 08:30:11 # ensures we do proper cleanup in finally. 08:30:11 clean_exit = False 08:30:11 08:30:11 # Rewind body position, if needed. Record current position 08:30:11 # for future rewinds in the event of a redirect/retry. 08:30:11 body_pos = set_file_position(body, body_pos) 08:30:11 08:30:11 try: 08:30:11 # Request a connection from the queue. 08:30:11 timeout_obj = self._get_timeout(timeout) 08:30:11 conn = self._get_conn(timeout=pool_timeout) 08:30:11 08:30:11 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:11 08:30:11 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:11 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:11 try: 08:30:11 self._prepare_proxy(conn) 08:30:11 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:11 self._raise_timeout( 08:30:11 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:11 ) 08:30:11 raise 08:30:11 08:30:11 # If we're going to release the connection in ``finally:``, then 08:30:11 # the response doesn't need to know about the connection. Otherwise 08:30:11 # it will also try to release it and we'll have a double-release 08:30:11 # mess. 08:30:11 response_conn = conn if not release_conn else None 08:30:11 08:30:11 # Make the request on the HTTPConnection object 08:30:11 > response = self._make_request( 08:30:11 conn, 08:30:11 method, 08:30:11 url, 08:30:11 timeout=timeout_obj, 08:30:11 body=body, 08:30:11 headers=headers, 08:30:11 chunked=chunked, 08:30:11 retries=retries, 08:30:11 response_conn=response_conn, 08:30:11 preload_content=preload_content, 08:30:11 decode_content=decode_content, 08:30:11 **response_kw, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:11 conn.request( 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:11 self.endheaders() 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:11 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:11 self.send(msg) 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:11 self.connect() 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:11 self.sock = self._new_conn() 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = 08:30:11 08:30:11 def _new_conn(self) -> socket.socket: 08:30:11 """Establish a socket connection and set nodelay settings on it. 08:30:11 08:30:11 :return: New socket connection. 08:30:11 """ 08:30:11 try: 08:30:11 sock = connection.create_connection( 08:30:11 (self._dns_host, self.port), 08:30:11 self.timeout, 08:30:11 source_address=self.source_address, 08:30:11 socket_options=self.socket_options, 08:30:11 ) 08:30:11 except socket.gaierror as e: 08:30:11 raise NameResolutionError(self.host, self, e) from e 08:30:11 except SocketTimeout as e: 08:30:11 raise ConnectTimeoutError( 08:30:11 self, 08:30:11 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:11 ) from e 08:30:11 08:30:11 except OSError as e: 08:30:11 > raise NewConnectionError( 08:30:11 self, f"Failed to establish a new connection: {e}" 08:30:11 ) from e 08:30:11 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:11 08:30:11 The above exception was the direct cause of the following exception: 08:30:11 08:30:11 self = 08:30:11 request = , stream = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:11 proxies = OrderedDict() 08:30:11 08:30:11 def send( 08:30:11 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:11 ): 08:30:11 """Sends PreparedRequest object. Returns Response object. 08:30:11 08:30:11 :param request: The :class:`PreparedRequest ` being sent. 08:30:11 :param stream: (optional) Whether to stream the request content. 08:30:11 :param timeout: (optional) How long to wait for the server to send 08:30:11 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:11 read timeout) ` tuple. 08:30:11 :type timeout: float or tuple or urllib3 Timeout object 08:30:11 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:11 we verify the server's TLS certificate, or a string, in which case it 08:30:11 must be a path to a CA bundle to use 08:30:11 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:11 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:11 :rtype: requests.Response 08:30:11 """ 08:30:11 08:30:11 try: 08:30:11 conn = self.get_connection_with_tls_context( 08:30:11 request, verify, proxies=proxies, cert=cert 08:30:11 ) 08:30:11 except LocationValueError as e: 08:30:11 raise InvalidURL(e, request=request) 08:30:11 08:30:11 self.cert_verify(conn, request.url, verify, cert) 08:30:11 url = self.request_url(request, proxies) 08:30:11 self.add_headers( 08:30:11 request, 08:30:11 stream=stream, 08:30:11 timeout=timeout, 08:30:11 verify=verify, 08:30:11 cert=cert, 08:30:11 proxies=proxies, 08:30:11 ) 08:30:11 08:30:11 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:11 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 > resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:11 retries = retries.increment( 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:11 method = 'DELETE' 08:30:11 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 08:30:11 response = None 08:30:11 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:11 _pool = 08:30:11 _stacktrace = 08:30:11 08:30:11 def increment( 08:30:11 self, 08:30:11 method: str | None = None, 08:30:11 url: str | None = None, 08:30:11 response: BaseHTTPResponse | None = None, 08:30:11 error: Exception | None = None, 08:30:11 _pool: ConnectionPool | None = None, 08:30:11 _stacktrace: TracebackType | None = None, 08:30:11 ) -> Self: 08:30:11 """Return a new Retry object with incremented retry counters. 08:30:11 08:30:11 :param response: A response object, or None, if the server did not 08:30:11 return a response. 08:30:11 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:11 :param Exception error: An error encountered during the request, or 08:30:11 None if the response was received successfully. 08:30:11 08:30:11 :return: A new ``Retry`` object. 08:30:11 """ 08:30:11 if self.total is False and error: 08:30:11 # Disabled, indicate to re-raise the error. 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 08:30:11 total = self.total 08:30:11 if total is not None: 08:30:11 total -= 1 08:30:11 08:30:11 connect = self.connect 08:30:11 read = self.read 08:30:11 redirect = self.redirect 08:30:11 status_count = self.status 08:30:11 other = self.other 08:30:11 cause = "unknown" 08:30:11 status = None 08:30:11 redirect_location = None 08:30:11 08:30:11 if error and self._is_connection_error(error): 08:30:11 # Connect retry? 08:30:11 if connect is False: 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 elif connect is not None: 08:30:11 connect -= 1 08:30:11 08:30:11 elif error and self._is_read_error(error): 08:30:11 # Read retry? 08:30:11 if read is False or method is None or not self._is_method_retryable(method): 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 elif read is not None: 08:30:11 read -= 1 08:30:11 08:30:11 elif error: 08:30:11 # Other retry? 08:30:11 if other is not None: 08:30:11 other -= 1 08:30:11 08:30:11 elif response and response.get_redirect_location(): 08:30:11 # Redirect retry? 08:30:11 if redirect is not None: 08:30:11 redirect -= 1 08:30:11 cause = "too many redirects" 08:30:11 response_redirect_location = response.get_redirect_location() 08:30:11 if response_redirect_location: 08:30:11 redirect_location = response_redirect_location 08:30:11 status = response.status 08:30:11 08:30:11 else: 08:30:11 # Incrementing because of a server error like a 500 in 08:30:11 # status_forcelist and the given method is in the allowed_methods 08:30:11 cause = ResponseError.GENERIC_ERROR 08:30:11 if response and response.status: 08:30:11 if status_count is not None: 08:30:11 status_count -= 1 08:30:11 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:11 status = response.status 08:30:11 08:30:11 history = self.history + ( 08:30:11 RequestHistory(method, url, error, status, redirect_location), 08:30:11 ) 08:30:11 08:30:11 new_retry = self.new( 08:30:11 total=total, 08:30:11 connect=connect, 08:30:11 read=read, 08:30:11 redirect=redirect, 08:30:11 status=status_count, 08:30:11 other=other, 08:30:11 history=history, 08:30:11 ) 08:30:11 08:30:11 if new_retry.is_exhausted(): 08:30:11 reason = error or ResponseError(cause) 08:30:11 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:11 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 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:11 08:30:11 During handling of the above exception, another exception occurred: 08:30:11 08:30:11 self = 08:30:11 08:30:11 def test_19_rdm_device_disconnection(self): 08:30:11 > response = test_utils.unmount_device("ROADMA01") 08:30:11 08:30:11 transportpce_tests/1.2.1/test01_portmapping.py:211: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 transportpce_tests/common/test_utils.py:358: in unmount_device 08:30:11 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 08:30:11 transportpce_tests/common/test_utils.py:133: in delete_request 08:30:11 return requests.request( 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:11 return session.request(method=method, url=url, **kwargs) 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:11 resp = self.send(prep, **send_kwargs) 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:11 r = adapter.send(request, **kwargs) 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = 08:30:11 request = , stream = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:11 proxies = OrderedDict() 08:30:11 08:30:11 def send( 08:30:11 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:11 ): 08:30:11 """Sends PreparedRequest object. Returns Response object. 08:30:11 08:30:11 :param request: The :class:`PreparedRequest ` being sent. 08:30:11 :param stream: (optional) Whether to stream the request content. 08:30:11 :param timeout: (optional) How long to wait for the server to send 08:30:11 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:11 read timeout) ` tuple. 08:30:11 :type timeout: float or tuple or urllib3 Timeout object 08:30:11 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:11 we verify the server's TLS certificate, or a string, in which case it 08:30:11 must be a path to a CA bundle to use 08:30:11 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:11 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:11 :rtype: requests.Response 08:30:11 """ 08:30:11 08:30:11 try: 08:30:11 conn = self.get_connection_with_tls_context( 08:30:11 request, verify, proxies=proxies, cert=cert 08:30:11 ) 08:30:11 except LocationValueError as e: 08:30:11 raise InvalidURL(e, request=request) 08:30:11 08:30:11 self.cert_verify(conn, request.url, verify, cert) 08:30:11 url = self.request_url(request, proxies) 08:30:11 self.add_headers( 08:30:11 request, 08:30:11 stream=stream, 08:30:11 timeout=timeout, 08:30:11 verify=verify, 08:30:11 cert=cert, 08:30:11 proxies=proxies, 08:30:11 ) 08:30:11 08:30:11 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:11 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 except (ProtocolError, OSError) as err: 08:30:11 raise ConnectionError(err, request=request) 08:30:11 08:30:11 except MaxRetryError as e: 08:30:11 if isinstance(e.reason, ConnectTimeoutError): 08:30:11 # TODO: Remove this in 3.0.0: see #2811 08:30:11 if not isinstance(e.reason, NewConnectionError): 08:30:11 raise ConnectTimeout(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, ResponseError): 08:30:11 raise RetryError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _ProxyError): 08:30:11 raise ProxyError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _SSLError): 08:30:11 # This branch is for urllib3 v1.22 and later. 08:30:11 raise SSLError(e, request=request) 08:30:11 08:30:11 > raise ConnectionError(e, request=request) 08:30:11 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 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:11 ----------------------------- Captured stdout call ----------------------------- 08:30:11 execution of test_19_rdm_device_disconnection 08:30:11 ________ TransportPCEPortMappingTesting.test_20_rdm_device_disconnected ________ 08:30:11 08:30:11 self = 08:30:11 08:30:11 def _new_conn(self) -> socket.socket: 08:30:11 """Establish a socket connection and set nodelay settings on it. 08:30:11 08:30:11 :return: New socket connection. 08:30:11 """ 08:30:11 try: 08:30:11 > sock = connection.create_connection( 08:30:11 (self._dns_host, self.port), 08:30:11 self.timeout, 08:30:11 source_address=self.source_address, 08:30:11 socket_options=self.socket_options, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:11 raise err 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:11 socket_options = [(6, 1, 1)] 08:30:11 08:30:11 def create_connection( 08:30:11 address: tuple[str, int], 08:30:11 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:11 source_address: tuple[str, int] | None = None, 08:30:11 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:11 ) -> socket.socket: 08:30:11 """Connect to *address* and return the socket object. 08:30:11 08:30:11 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:11 port)``) and return the socket object. Passing the optional 08:30:11 *timeout* parameter will set the timeout on the socket instance 08:30:11 before attempting to connect. If no *timeout* is supplied, the 08:30:11 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:11 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:11 for the socket to bind as a source address before making the connection. 08:30:11 An host of '' or port 0 tells the OS to use the default. 08:30:11 """ 08:30:11 08:30:11 host, port = address 08:30:11 if host.startswith("["): 08:30:11 host = host.strip("[]") 08:30:11 err = None 08:30:11 08:30:11 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:11 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:11 # The original create_connection function always returns all records. 08:30:11 family = allowed_gai_family() 08:30:11 08:30:11 try: 08:30:11 host.encode("idna") 08:30:11 except UnicodeError: 08:30:11 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:11 08:30:11 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:11 af, socktype, proto, canonname, sa = res 08:30:11 sock = None 08:30:11 try: 08:30:11 sock = socket.socket(af, socktype, proto) 08:30:11 08:30:11 # If provided, set socket level options before connecting. 08:30:11 _set_socket_options(sock, socket_options) 08:30:11 08:30:11 if timeout is not _DEFAULT_TIMEOUT: 08:30:11 sock.settimeout(timeout) 08:30:11 if source_address: 08:30:11 sock.bind(source_address) 08:30:11 > sock.connect(sa) 08:30:11 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:11 08:30:11 The above exception was the direct cause of the following exception: 08:30:11 08:30:11 self = 08:30:11 method = 'GET' 08:30:11 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 08:30:11 body = None 08:30:11 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='} 08:30:11 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:11 redirect = False, assert_same_host = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:11 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:11 decode_content = False, response_kw = {} 08:30:11 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01', query='content=nonconfig', fragment=None) 08:30:11 destination_scheme = None, conn = None, release_this_conn = True 08:30:11 http_tunnel_required = False, err = None, clean_exit = False 08:30:11 08:30:11 def urlopen( # type: ignore[override] 08:30:11 self, 08:30:11 method: str, 08:30:11 url: str, 08:30:11 body: _TYPE_BODY | None = None, 08:30:11 headers: typing.Mapping[str, str] | None = None, 08:30:11 retries: Retry | bool | int | None = None, 08:30:11 redirect: bool = True, 08:30:11 assert_same_host: bool = True, 08:30:11 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:11 pool_timeout: int | None = None, 08:30:11 release_conn: bool | None = None, 08:30:11 chunked: bool = False, 08:30:11 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:11 preload_content: bool = True, 08:30:11 decode_content: bool = True, 08:30:11 **response_kw: typing.Any, 08:30:11 ) -> BaseHTTPResponse: 08:30:11 """ 08:30:11 Get a connection from the pool and perform an HTTP request. This is the 08:30:11 lowest level call for making a request, so you'll need to specify all 08:30:11 the raw details. 08:30:11 08:30:11 .. note:: 08:30:11 08:30:11 More commonly, it's appropriate to use a convenience method 08:30:11 such as :meth:`request`. 08:30:11 08:30:11 .. note:: 08:30:11 08:30:11 `release_conn` will only behave as expected if 08:30:11 `preload_content=False` because we want to make 08:30:11 `preload_content=False` the default behaviour someday soon without 08:30:11 breaking backwards compatibility. 08:30:11 08:30:11 :param method: 08:30:11 HTTP request method (such as GET, POST, PUT, etc.) 08:30:11 08:30:11 :param url: 08:30:11 The URL to perform the request on. 08:30:11 08:30:11 :param body: 08:30:11 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:11 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:11 08:30:11 :param headers: 08:30:11 Dictionary of custom headers to send, such as User-Agent, 08:30:11 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:11 these headers completely replace any pool-specific headers. 08:30:11 08:30:11 :param retries: 08:30:11 Configure the number of retries to allow before raising a 08:30:11 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:11 08:30:11 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:11 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:11 over different types of retries. 08:30:11 Pass an integer number to retry connection errors that many times, 08:30:11 but no other types of errors. Pass zero to never retry. 08:30:11 08:30:11 If ``False``, then retries are disabled and any exception is raised 08:30:11 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:11 the redirect response will be returned. 08:30:11 08:30:11 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:11 08:30:11 :param redirect: 08:30:11 If True, automatically handle redirects (status codes 301, 302, 08:30:11 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:11 will disable redirect, too. 08:30:11 08:30:11 :param assert_same_host: 08:30:11 If ``True``, will make sure that the host of the pool requests is 08:30:11 consistent else will raise HostChangedError. When ``False``, you can 08:30:11 use the pool on an HTTP proxy and request foreign hosts. 08:30:11 08:30:11 :param timeout: 08:30:11 If specified, overrides the default timeout for this one 08:30:11 request. It may be a float (in seconds) or an instance of 08:30:11 :class:`urllib3.util.Timeout`. 08:30:11 08:30:11 :param pool_timeout: 08:30:11 If set and the pool is set to block=True, then this method will 08:30:11 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:11 connection is available within the time period. 08:30:11 08:30:11 :param bool preload_content: 08:30:11 If True, the response's body will be preloaded into memory. 08:30:11 08:30:11 :param bool decode_content: 08:30:11 If True, will attempt to decode the body based on the 08:30:11 'content-encoding' header. 08:30:11 08:30:11 :param release_conn: 08:30:11 If False, then the urlopen call will not release the connection 08:30:11 back into the pool once a response is received (but will release if 08:30:11 you read the entire contents of the response such as when 08:30:11 `preload_content=True`). This is useful if you're not preloading 08:30:11 the response's content immediately. You will need to call 08:30:11 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:11 back into the pool. If None, it takes the value of ``preload_content`` 08:30:11 which defaults to ``True``. 08:30:11 08:30:11 :param bool chunked: 08:30:11 If True, urllib3 will send the body using chunked transfer 08:30:11 encoding. Otherwise, urllib3 will send the body using the standard 08:30:11 content-length form. Defaults to False. 08:30:11 08:30:11 :param int body_pos: 08:30:11 Position to seek to in file-like body in the event of a retry or 08:30:11 redirect. Typically this won't need to be set because urllib3 will 08:30:11 auto-populate the value when needed. 08:30:11 """ 08:30:11 parsed_url = parse_url(url) 08:30:11 destination_scheme = parsed_url.scheme 08:30:11 08:30:11 if headers is None: 08:30:11 headers = self.headers 08:30:11 08:30:11 if not isinstance(retries, Retry): 08:30:11 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:11 08:30:11 if release_conn is None: 08:30:11 release_conn = preload_content 08:30:11 08:30:11 # Check host 08:30:11 if assert_same_host and not self.is_same_host(url): 08:30:11 raise HostChangedError(self, url, retries) 08:30:11 08:30:11 # Ensure that the URL we're connecting to is properly encoded 08:30:11 if url.startswith("/"): 08:30:11 url = to_str(_encode_target(url)) 08:30:11 else: 08:30:11 url = to_str(parsed_url.url) 08:30:11 08:30:11 conn = None 08:30:11 08:30:11 # Track whether `conn` needs to be released before 08:30:11 # returning/raising/recursing. Update this variable if necessary, and 08:30:11 # leave `release_conn` constant throughout the function. That way, if 08:30:11 # the function recurses, the original value of `release_conn` will be 08:30:11 # passed down into the recursive call, and its value will be respected. 08:30:11 # 08:30:11 # See issue #651 [1] for details. 08:30:11 # 08:30:11 # [1] 08:30:11 release_this_conn = release_conn 08:30:11 08:30:11 http_tunnel_required = connection_requires_http_tunnel( 08:30:11 self.proxy, self.proxy_config, destination_scheme 08:30:11 ) 08:30:11 08:30:11 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:11 # have to copy the headers dict so we can safely change it without those 08:30:11 # changes being reflected in anyone else's copy. 08:30:11 if not http_tunnel_required: 08:30:11 headers = headers.copy() # type: ignore[attr-defined] 08:30:11 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:11 08:30:11 # Must keep the exception bound to a separate variable or else Python 3 08:30:11 # complains about UnboundLocalError. 08:30:11 err = None 08:30:11 08:30:11 # Keep track of whether we cleanly exited the except block. This 08:30:11 # ensures we do proper cleanup in finally. 08:30:11 clean_exit = False 08:30:11 08:30:11 # Rewind body position, if needed. Record current position 08:30:11 # for future rewinds in the event of a redirect/retry. 08:30:11 body_pos = set_file_position(body, body_pos) 08:30:11 08:30:11 try: 08:30:11 # Request a connection from the queue. 08:30:11 timeout_obj = self._get_timeout(timeout) 08:30:11 conn = self._get_conn(timeout=pool_timeout) 08:30:11 08:30:11 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:11 08:30:11 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:11 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:11 try: 08:30:11 self._prepare_proxy(conn) 08:30:11 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:11 self._raise_timeout( 08:30:11 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:11 ) 08:30:11 raise 08:30:11 08:30:11 # If we're going to release the connection in ``finally:``, then 08:30:11 # the response doesn't need to know about the connection. Otherwise 08:30:11 # it will also try to release it and we'll have a double-release 08:30:11 # mess. 08:30:11 response_conn = conn if not release_conn else None 08:30:11 08:30:11 # Make the request on the HTTPConnection object 08:30:11 > response = self._make_request( 08:30:11 conn, 08:30:11 method, 08:30:11 url, 08:30:11 timeout=timeout_obj, 08:30:11 body=body, 08:30:11 headers=headers, 08:30:11 chunked=chunked, 08:30:11 retries=retries, 08:30:11 response_conn=response_conn, 08:30:11 preload_content=preload_content, 08:30:11 decode_content=decode_content, 08:30:11 **response_kw, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:11 conn.request( 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:11 self.endheaders() 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:11 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:11 self.send(msg) 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:11 self.connect() 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:11 self.sock = self._new_conn() 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = 08:30:11 08:30:11 def _new_conn(self) -> socket.socket: 08:30:11 """Establish a socket connection and set nodelay settings on it. 08:30:11 08:30:11 :return: New socket connection. 08:30:11 """ 08:30:11 try: 08:30:11 sock = connection.create_connection( 08:30:11 (self._dns_host, self.port), 08:30:11 self.timeout, 08:30:11 source_address=self.source_address, 08:30:11 socket_options=self.socket_options, 08:30:11 ) 08:30:11 except socket.gaierror as e: 08:30:11 raise NameResolutionError(self.host, self, e) from e 08:30:11 except SocketTimeout as e: 08:30:11 raise ConnectTimeoutError( 08:30:11 self, 08:30:11 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:11 ) from e 08:30:11 08:30:11 except OSError as e: 08:30:11 > raise NewConnectionError( 08:30:11 self, f"Failed to establish a new connection: {e}" 08:30:11 ) from e 08:30:11 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:11 08:30:11 The above exception was the direct cause of the following exception: 08:30:11 08:30:11 self = 08:30:11 request = , stream = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:11 proxies = OrderedDict() 08:30:11 08:30:11 def send( 08:30:11 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:11 ): 08:30:11 """Sends PreparedRequest object. Returns Response object. 08:30:11 08:30:11 :param request: The :class:`PreparedRequest ` being sent. 08:30:11 :param stream: (optional) Whether to stream the request content. 08:30:11 :param timeout: (optional) How long to wait for the server to send 08:30:11 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:11 read timeout) ` tuple. 08:30:11 :type timeout: float or tuple or urllib3 Timeout object 08:30:11 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:11 we verify the server's TLS certificate, or a string, in which case it 08:30:11 must be a path to a CA bundle to use 08:30:11 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:11 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:11 :rtype: requests.Response 08:30:11 """ 08:30:11 08:30:11 try: 08:30:11 conn = self.get_connection_with_tls_context( 08:30:11 request, verify, proxies=proxies, cert=cert 08:30:11 ) 08:30:11 except LocationValueError as e: 08:30:11 raise InvalidURL(e, request=request) 08:30:11 08:30:11 self.cert_verify(conn, request.url, verify, cert) 08:30:11 url = self.request_url(request, proxies) 08:30:11 self.add_headers( 08:30:11 request, 08:30:11 stream=stream, 08:30:11 timeout=timeout, 08:30:11 verify=verify, 08:30:11 cert=cert, 08:30:11 proxies=proxies, 08:30:11 ) 08:30:11 08:30:11 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:11 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 > resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:11 retries = retries.increment( 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:11 method = 'GET' 08:30:11 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 08:30:11 response = None 08:30:11 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:11 _pool = 08:30:11 _stacktrace = 08:30:11 08:30:11 def increment( 08:30:11 self, 08:30:11 method: str | None = None, 08:30:11 url: str | None = None, 08:30:11 response: BaseHTTPResponse | None = None, 08:30:11 error: Exception | None = None, 08:30:11 _pool: ConnectionPool | None = None, 08:30:11 _stacktrace: TracebackType | None = None, 08:30:11 ) -> Self: 08:30:11 """Return a new Retry object with incremented retry counters. 08:30:11 08:30:11 :param response: A response object, or None, if the server did not 08:30:11 return a response. 08:30:11 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:11 :param Exception error: An error encountered during the request, or 08:30:11 None if the response was received successfully. 08:30:11 08:30:11 :return: A new ``Retry`` object. 08:30:11 """ 08:30:11 if self.total is False and error: 08:30:11 # Disabled, indicate to re-raise the error. 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 08:30:11 total = self.total 08:30:11 if total is not None: 08:30:11 total -= 1 08:30:11 08:30:11 connect = self.connect 08:30:11 read = self.read 08:30:11 redirect = self.redirect 08:30:11 status_count = self.status 08:30:11 other = self.other 08:30:11 cause = "unknown" 08:30:11 status = None 08:30:11 redirect_location = None 08:30:11 08:30:11 if error and self._is_connection_error(error): 08:30:11 # Connect retry? 08:30:11 if connect is False: 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 elif connect is not None: 08:30:11 connect -= 1 08:30:11 08:30:11 elif error and self._is_read_error(error): 08:30:11 # Read retry? 08:30:11 if read is False or method is None or not self._is_method_retryable(method): 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 elif read is not None: 08:30:11 read -= 1 08:30:11 08:30:11 elif error: 08:30:11 # Other retry? 08:30:11 if other is not None: 08:30:11 other -= 1 08:30:11 08:30:11 elif response and response.get_redirect_location(): 08:30:11 # Redirect retry? 08:30:11 if redirect is not None: 08:30:11 redirect -= 1 08:30:11 cause = "too many redirects" 08:30:11 response_redirect_location = response.get_redirect_location() 08:30:11 if response_redirect_location: 08:30:11 redirect_location = response_redirect_location 08:30:11 status = response.status 08:30:11 08:30:11 else: 08:30:11 # Incrementing because of a server error like a 500 in 08:30:11 # status_forcelist and the given method is in the allowed_methods 08:30:11 cause = ResponseError.GENERIC_ERROR 08:30:11 if response and response.status: 08:30:11 if status_count is not None: 08:30:11 status_count -= 1 08:30:11 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:11 status = response.status 08:30:11 08:30:11 history = self.history + ( 08:30:11 RequestHistory(method, url, error, status, redirect_location), 08:30:11 ) 08:30:11 08:30:11 new_retry = self.new( 08:30:11 total=total, 08:30:11 connect=connect, 08:30:11 read=read, 08:30:11 redirect=redirect, 08:30:11 status=status_count, 08:30:11 other=other, 08:30:11 history=history, 08:30:11 ) 08:30:11 08:30:11 if new_retry.is_exhausted(): 08:30:11 reason = error or ResponseError(cause) 08:30:11 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:11 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?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:11 08:30:11 During handling of the above exception, another exception occurred: 08:30:11 08:30:11 self = 08:30:11 08:30:11 def test_20_rdm_device_disconnected(self): 08:30:11 > response = test_utils.check_device_connection("ROADMA01") 08:30:11 08:30:11 transportpce_tests/1.2.1/test01_portmapping.py:215: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 transportpce_tests/common/test_utils.py:369: in check_device_connection 08:30:11 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 08:30:11 transportpce_tests/common/test_utils.py:116: in get_request 08:30:11 return requests.request( 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:11 return session.request(method=method, url=url, **kwargs) 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:11 resp = self.send(prep, **send_kwargs) 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:11 r = adapter.send(request, **kwargs) 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = 08:30:11 request = , stream = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:11 proxies = OrderedDict() 08:30:11 08:30:11 def send( 08:30:11 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:11 ): 08:30:11 """Sends PreparedRequest object. Returns Response object. 08:30:11 08:30:11 :param request: The :class:`PreparedRequest ` being sent. 08:30:11 :param stream: (optional) Whether to stream the request content. 08:30:11 :param timeout: (optional) How long to wait for the server to send 08:30:11 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:11 read timeout) ` tuple. 08:30:11 :type timeout: float or tuple or urllib3 Timeout object 08:30:11 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:11 we verify the server's TLS certificate, or a string, in which case it 08:30:11 must be a path to a CA bundle to use 08:30:11 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:11 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:11 :rtype: requests.Response 08:30:11 """ 08:30:11 08:30:11 try: 08:30:11 conn = self.get_connection_with_tls_context( 08:30:11 request, verify, proxies=proxies, cert=cert 08:30:11 ) 08:30:11 except LocationValueError as e: 08:30:11 raise InvalidURL(e, request=request) 08:30:11 08:30:11 self.cert_verify(conn, request.url, verify, cert) 08:30:11 url = self.request_url(request, proxies) 08:30:11 self.add_headers( 08:30:11 request, 08:30:11 stream=stream, 08:30:11 timeout=timeout, 08:30:11 verify=verify, 08:30:11 cert=cert, 08:30:11 proxies=proxies, 08:30:11 ) 08:30:11 08:30:11 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:11 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 except (ProtocolError, OSError) as err: 08:30:11 raise ConnectionError(err, request=request) 08:30:11 08:30:11 except MaxRetryError as e: 08:30:11 if isinstance(e.reason, ConnectTimeoutError): 08:30:11 # TODO: Remove this in 3.0.0: see #2811 08:30:11 if not isinstance(e.reason, NewConnectionError): 08:30:11 raise ConnectTimeout(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, ResponseError): 08:30:11 raise RetryError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _ProxyError): 08:30:11 raise ProxyError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _SSLError): 08:30:11 # This branch is for urllib3 v1.22 and later. 08:30:11 raise SSLError(e, request=request) 08:30:11 08:30:11 > raise ConnectionError(e, request=request) 08:30:11 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?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:11 ----------------------------- Captured stdout call ----------------------------- 08:30:11 execution of test_20_rdm_device_disconnected 08:30:11 _______ TransportPCEPortMappingTesting.test_21_rdm_device_not_connected ________ 08:30:11 08:30:11 self = 08:30:11 08:30:11 def _new_conn(self) -> socket.socket: 08:30:11 """Establish a socket connection and set nodelay settings on it. 08:30:11 08:30:11 :return: New socket connection. 08:30:11 """ 08:30:11 try: 08:30:11 > sock = connection.create_connection( 08:30:11 (self._dns_host, self.port), 08:30:11 self.timeout, 08:30:11 source_address=self.source_address, 08:30:11 socket_options=self.socket_options, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:30:11 raise err 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 address = ('localhost', 8182), timeout = 10, source_address = None 08:30:11 socket_options = [(6, 1, 1)] 08:30:11 08:30:11 def create_connection( 08:30:11 address: tuple[str, int], 08:30:11 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:11 source_address: tuple[str, int] | None = None, 08:30:11 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:30:11 ) -> socket.socket: 08:30:11 """Connect to *address* and return the socket object. 08:30:11 08:30:11 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:30:11 port)``) and return the socket object. Passing the optional 08:30:11 *timeout* parameter will set the timeout on the socket instance 08:30:11 before attempting to connect. If no *timeout* is supplied, the 08:30:11 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:30:11 is used. If *source_address* is set it must be a tuple of (host, port) 08:30:11 for the socket to bind as a source address before making the connection. 08:30:11 An host of '' or port 0 tells the OS to use the default. 08:30:11 """ 08:30:11 08:30:11 host, port = address 08:30:11 if host.startswith("["): 08:30:11 host = host.strip("[]") 08:30:11 err = None 08:30:11 08:30:11 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:30:11 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:30:11 # The original create_connection function always returns all records. 08:30:11 family = allowed_gai_family() 08:30:11 08:30:11 try: 08:30:11 host.encode("idna") 08:30:11 except UnicodeError: 08:30:11 raise LocationParseError(f"'{host}', label empty or too long") from None 08:30:11 08:30:11 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:30:11 af, socktype, proto, canonname, sa = res 08:30:11 sock = None 08:30:11 try: 08:30:11 sock = socket.socket(af, socktype, proto) 08:30:11 08:30:11 # If provided, set socket level options before connecting. 08:30:11 _set_socket_options(sock, socket_options) 08:30:11 08:30:11 if timeout is not _DEFAULT_TIMEOUT: 08:30:11 sock.settimeout(timeout) 08:30:11 if source_address: 08:30:11 sock.bind(source_address) 08:30:11 > sock.connect(sa) 08:30:11 E ConnectionRefusedError: [Errno 111] Connection refused 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:30:11 08:30:11 The above exception was the direct cause of the following exception: 08:30:11 08:30:11 self = 08:30:11 method = 'GET' 08:30:11 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 08:30:11 body = None 08:30:11 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='} 08:30:11 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:11 redirect = False, assert_same_host = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:30:11 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:30:11 decode_content = False, response_kw = {} 08:30:11 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info', query=None, fragment=None) 08:30:11 destination_scheme = None, conn = None, release_this_conn = True 08:30:11 http_tunnel_required = False, err = None, clean_exit = False 08:30:11 08:30:11 def urlopen( # type: ignore[override] 08:30:11 self, 08:30:11 method: str, 08:30:11 url: str, 08:30:11 body: _TYPE_BODY | None = None, 08:30:11 headers: typing.Mapping[str, str] | None = None, 08:30:11 retries: Retry | bool | int | None = None, 08:30:11 redirect: bool = True, 08:30:11 assert_same_host: bool = True, 08:30:11 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:30:11 pool_timeout: int | None = None, 08:30:11 release_conn: bool | None = None, 08:30:11 chunked: bool = False, 08:30:11 body_pos: _TYPE_BODY_POSITION | None = None, 08:30:11 preload_content: bool = True, 08:30:11 decode_content: bool = True, 08:30:11 **response_kw: typing.Any, 08:30:11 ) -> BaseHTTPResponse: 08:30:11 """ 08:30:11 Get a connection from the pool and perform an HTTP request. This is the 08:30:11 lowest level call for making a request, so you'll need to specify all 08:30:11 the raw details. 08:30:11 08:30:11 .. note:: 08:30:11 08:30:11 More commonly, it's appropriate to use a convenience method 08:30:11 such as :meth:`request`. 08:30:11 08:30:11 .. note:: 08:30:11 08:30:11 `release_conn` will only behave as expected if 08:30:11 `preload_content=False` because we want to make 08:30:11 `preload_content=False` the default behaviour someday soon without 08:30:11 breaking backwards compatibility. 08:30:11 08:30:11 :param method: 08:30:11 HTTP request method (such as GET, POST, PUT, etc.) 08:30:11 08:30:11 :param url: 08:30:11 The URL to perform the request on. 08:30:11 08:30:11 :param body: 08:30:11 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:30:11 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:30:11 08:30:11 :param headers: 08:30:11 Dictionary of custom headers to send, such as User-Agent, 08:30:11 If-None-Match, etc. If None, pool headers are used. If provided, 08:30:11 these headers completely replace any pool-specific headers. 08:30:11 08:30:11 :param retries: 08:30:11 Configure the number of retries to allow before raising a 08:30:11 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:30:11 08:30:11 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:30:11 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:30:11 over different types of retries. 08:30:11 Pass an integer number to retry connection errors that many times, 08:30:11 but no other types of errors. Pass zero to never retry. 08:30:11 08:30:11 If ``False``, then retries are disabled and any exception is raised 08:30:11 immediately. Also, instead of raising a MaxRetryError on redirects, 08:30:11 the redirect response will be returned. 08:30:11 08:30:11 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:30:11 08:30:11 :param redirect: 08:30:11 If True, automatically handle redirects (status codes 301, 302, 08:30:11 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:30:11 will disable redirect, too. 08:30:11 08:30:11 :param assert_same_host: 08:30:11 If ``True``, will make sure that the host of the pool requests is 08:30:11 consistent else will raise HostChangedError. When ``False``, you can 08:30:11 use the pool on an HTTP proxy and request foreign hosts. 08:30:11 08:30:11 :param timeout: 08:30:11 If specified, overrides the default timeout for this one 08:30:11 request. It may be a float (in seconds) or an instance of 08:30:11 :class:`urllib3.util.Timeout`. 08:30:11 08:30:11 :param pool_timeout: 08:30:11 If set and the pool is set to block=True, then this method will 08:30:11 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:30:11 connection is available within the time period. 08:30:11 08:30:11 :param bool preload_content: 08:30:11 If True, the response's body will be preloaded into memory. 08:30:11 08:30:11 :param bool decode_content: 08:30:11 If True, will attempt to decode the body based on the 08:30:11 'content-encoding' header. 08:30:11 08:30:11 :param release_conn: 08:30:11 If False, then the urlopen call will not release the connection 08:30:11 back into the pool once a response is received (but will release if 08:30:11 you read the entire contents of the response such as when 08:30:11 `preload_content=True`). This is useful if you're not preloading 08:30:11 the response's content immediately. You will need to call 08:30:11 ``r.release_conn()`` on the response ``r`` to return the connection 08:30:11 back into the pool. If None, it takes the value of ``preload_content`` 08:30:11 which defaults to ``True``. 08:30:11 08:30:11 :param bool chunked: 08:30:11 If True, urllib3 will send the body using chunked transfer 08:30:11 encoding. Otherwise, urllib3 will send the body using the standard 08:30:11 content-length form. Defaults to False. 08:30:11 08:30:11 :param int body_pos: 08:30:11 Position to seek to in file-like body in the event of a retry or 08:30:11 redirect. Typically this won't need to be set because urllib3 will 08:30:11 auto-populate the value when needed. 08:30:11 """ 08:30:11 parsed_url = parse_url(url) 08:30:11 destination_scheme = parsed_url.scheme 08:30:11 08:30:11 if headers is None: 08:30:11 headers = self.headers 08:30:11 08:30:11 if not isinstance(retries, Retry): 08:30:11 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:30:11 08:30:11 if release_conn is None: 08:30:11 release_conn = preload_content 08:30:11 08:30:11 # Check host 08:30:11 if assert_same_host and not self.is_same_host(url): 08:30:11 raise HostChangedError(self, url, retries) 08:30:11 08:30:11 # Ensure that the URL we're connecting to is properly encoded 08:30:11 if url.startswith("/"): 08:30:11 url = to_str(_encode_target(url)) 08:30:11 else: 08:30:11 url = to_str(parsed_url.url) 08:30:11 08:30:11 conn = None 08:30:11 08:30:11 # Track whether `conn` needs to be released before 08:30:11 # returning/raising/recursing. Update this variable if necessary, and 08:30:11 # leave `release_conn` constant throughout the function. That way, if 08:30:11 # the function recurses, the original value of `release_conn` will be 08:30:11 # passed down into the recursive call, and its value will be respected. 08:30:11 # 08:30:11 # See issue #651 [1] for details. 08:30:11 # 08:30:11 # [1] 08:30:11 release_this_conn = release_conn 08:30:11 08:30:11 http_tunnel_required = connection_requires_http_tunnel( 08:30:11 self.proxy, self.proxy_config, destination_scheme 08:30:11 ) 08:30:11 08:30:11 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:30:11 # have to copy the headers dict so we can safely change it without those 08:30:11 # changes being reflected in anyone else's copy. 08:30:11 if not http_tunnel_required: 08:30:11 headers = headers.copy() # type: ignore[attr-defined] 08:30:11 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:30:11 08:30:11 # Must keep the exception bound to a separate variable or else Python 3 08:30:11 # complains about UnboundLocalError. 08:30:11 err = None 08:30:11 08:30:11 # Keep track of whether we cleanly exited the except block. This 08:30:11 # ensures we do proper cleanup in finally. 08:30:11 clean_exit = False 08:30:11 08:30:11 # Rewind body position, if needed. Record current position 08:30:11 # for future rewinds in the event of a redirect/retry. 08:30:11 body_pos = set_file_position(body, body_pos) 08:30:11 08:30:11 try: 08:30:11 # Request a connection from the queue. 08:30:11 timeout_obj = self._get_timeout(timeout) 08:30:11 conn = self._get_conn(timeout=pool_timeout) 08:30:11 08:30:11 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:30:11 08:30:11 # Is this a closed/new connection that requires CONNECT tunnelling? 08:30:11 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:30:11 try: 08:30:11 self._prepare_proxy(conn) 08:30:11 except (BaseSSLError, OSError, SocketTimeout) as e: 08:30:11 self._raise_timeout( 08:30:11 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:30:11 ) 08:30:11 raise 08:30:11 08:30:11 # If we're going to release the connection in ``finally:``, then 08:30:11 # the response doesn't need to know about the connection. Otherwise 08:30:11 # it will also try to release it and we'll have a double-release 08:30:11 # mess. 08:30:11 response_conn = conn if not release_conn else None 08:30:11 08:30:11 # Make the request on the HTTPConnection object 08:30:11 > response = self._make_request( 08:30:11 conn, 08:30:11 method, 08:30:11 url, 08:30:11 timeout=timeout_obj, 08:30:11 body=body, 08:30:11 headers=headers, 08:30:11 chunked=chunked, 08:30:11 retries=retries, 08:30:11 response_conn=response_conn, 08:30:11 preload_content=preload_content, 08:30:11 decode_content=decode_content, 08:30:11 **response_kw, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:30:11 conn.request( 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:30:11 self.endheaders() 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:30:11 self._send_output(message_body, encode_chunked=encode_chunked) 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:30:11 self.send(msg) 08:30:11 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:30:11 self.connect() 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:30:11 self.sock = self._new_conn() 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = 08:30:11 08:30:11 def _new_conn(self) -> socket.socket: 08:30:11 """Establish a socket connection and set nodelay settings on it. 08:30:11 08:30:11 :return: New socket connection. 08:30:11 """ 08:30:11 try: 08:30:11 sock = connection.create_connection( 08:30:11 (self._dns_host, self.port), 08:30:11 self.timeout, 08:30:11 source_address=self.source_address, 08:30:11 socket_options=self.socket_options, 08:30:11 ) 08:30:11 except socket.gaierror as e: 08:30:11 raise NameResolutionError(self.host, self, e) from e 08:30:11 except SocketTimeout as e: 08:30:11 raise ConnectTimeoutError( 08:30:11 self, 08:30:11 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:30:11 ) from e 08:30:11 08:30:11 except OSError as e: 08:30:11 > raise NewConnectionError( 08:30:11 self, f"Failed to establish a new connection: {e}" 08:30:11 ) from e 08:30:11 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:30:11 08:30:11 The above exception was the direct cause of the following exception: 08:30:11 08:30:11 self = 08:30:11 request = , stream = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:11 proxies = OrderedDict() 08:30:11 08:30:11 def send( 08:30:11 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:11 ): 08:30:11 """Sends PreparedRequest object. Returns Response object. 08:30:11 08:30:11 :param request: The :class:`PreparedRequest ` being sent. 08:30:11 :param stream: (optional) Whether to stream the request content. 08:30:11 :param timeout: (optional) How long to wait for the server to send 08:30:11 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:11 read timeout) ` tuple. 08:30:11 :type timeout: float or tuple or urllib3 Timeout object 08:30:11 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:11 we verify the server's TLS certificate, or a string, in which case it 08:30:11 must be a path to a CA bundle to use 08:30:11 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:11 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:11 :rtype: requests.Response 08:30:11 """ 08:30:11 08:30:11 try: 08:30:11 conn = self.get_connection_with_tls_context( 08:30:11 request, verify, proxies=proxies, cert=cert 08:30:11 ) 08:30:11 except LocationValueError as e: 08:30:11 raise InvalidURL(e, request=request) 08:30:11 08:30:11 self.cert_verify(conn, request.url, verify, cert) 08:30:11 url = self.request_url(request, proxies) 08:30:11 self.add_headers( 08:30:11 request, 08:30:11 stream=stream, 08:30:11 timeout=timeout, 08:30:11 verify=verify, 08:30:11 cert=cert, 08:30:11 proxies=proxies, 08:30:11 ) 08:30:11 08:30:11 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:11 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 > resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:30:11 retries = retries.increment( 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:30:11 method = 'GET' 08:30:11 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 08:30:11 response = None 08:30:11 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:30:11 _pool = 08:30:11 _stacktrace = 08:30:11 08:30:11 def increment( 08:30:11 self, 08:30:11 method: str | None = None, 08:30:11 url: str | None = None, 08:30:11 response: BaseHTTPResponse | None = None, 08:30:11 error: Exception | None = None, 08:30:11 _pool: ConnectionPool | None = None, 08:30:11 _stacktrace: TracebackType | None = None, 08:30:11 ) -> Self: 08:30:11 """Return a new Retry object with incremented retry counters. 08:30:11 08:30:11 :param response: A response object, or None, if the server did not 08:30:11 return a response. 08:30:11 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:30:11 :param Exception error: An error encountered during the request, or 08:30:11 None if the response was received successfully. 08:30:11 08:30:11 :return: A new ``Retry`` object. 08:30:11 """ 08:30:11 if self.total is False and error: 08:30:11 # Disabled, indicate to re-raise the error. 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 08:30:11 total = self.total 08:30:11 if total is not None: 08:30:11 total -= 1 08:30:11 08:30:11 connect = self.connect 08:30:11 read = self.read 08:30:11 redirect = self.redirect 08:30:11 status_count = self.status 08:30:11 other = self.other 08:30:11 cause = "unknown" 08:30:11 status = None 08:30:11 redirect_location = None 08:30:11 08:30:11 if error and self._is_connection_error(error): 08:30:11 # Connect retry? 08:30:11 if connect is False: 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 elif connect is not None: 08:30:11 connect -= 1 08:30:11 08:30:11 elif error and self._is_read_error(error): 08:30:11 # Read retry? 08:30:11 if read is False or method is None or not self._is_method_retryable(method): 08:30:11 raise reraise(type(error), error, _stacktrace) 08:30:11 elif read is not None: 08:30:11 read -= 1 08:30:11 08:30:11 elif error: 08:30:11 # Other retry? 08:30:11 if other is not None: 08:30:11 other -= 1 08:30:11 08:30:11 elif response and response.get_redirect_location(): 08:30:11 # Redirect retry? 08:30:11 if redirect is not None: 08:30:11 redirect -= 1 08:30:11 cause = "too many redirects" 08:30:11 response_redirect_location = response.get_redirect_location() 08:30:11 if response_redirect_location: 08:30:11 redirect_location = response_redirect_location 08:30:11 status = response.status 08:30:11 08:30:11 else: 08:30:11 # Incrementing because of a server error like a 500 in 08:30:11 # status_forcelist and the given method is in the allowed_methods 08:30:11 cause = ResponseError.GENERIC_ERROR 08:30:11 if response and response.status: 08:30:11 if status_count is not None: 08:30:11 status_count -= 1 08:30:11 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:30:11 status = response.status 08:30:11 08:30:11 history = self.history + ( 08:30:11 RequestHistory(method, url, error, status, redirect_location), 08:30:11 ) 08:30:11 08:30:11 new_retry = self.new( 08:30:11 total=total, 08:30:11 connect=connect, 08:30:11 read=read, 08:30:11 redirect=redirect, 08:30:11 status=status_count, 08:30:11 other=other, 08:30:11 history=history, 08:30:11 ) 08:30:11 08:30:11 if new_retry.is_exhausted(): 08:30:11 reason = error or ResponseError(cause) 08:30:11 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:30:11 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:30:11 08:30:11 During handling of the above exception, another exception occurred: 08:30:11 08:30:11 self = 08:30:11 08:30:11 def test_21_rdm_device_not_connected(self): 08:30:11 > response = test_utils.get_portmapping_node_attr("ROADMA01", "node-info", None) 08:30:11 08:30:11 transportpce_tests/1.2.1/test01_portmapping.py:223: 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:30:11 response = get_request(target_url) 08:30:11 transportpce_tests/common/test_utils.py:116: in get_request 08:30:11 return requests.request( 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:30:11 return session.request(method=method, url=url, **kwargs) 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:30:11 resp = self.send(prep, **send_kwargs) 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:30:11 r = adapter.send(request, **kwargs) 08:30:11 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:30:11 08:30:11 self = 08:30:11 request = , stream = False 08:30:11 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:30:11 proxies = OrderedDict() 08:30:11 08:30:11 def send( 08:30:11 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:30:11 ): 08:30:11 """Sends PreparedRequest object. Returns Response object. 08:30:11 08:30:11 :param request: The :class:`PreparedRequest ` being sent. 08:30:11 :param stream: (optional) Whether to stream the request content. 08:30:11 :param timeout: (optional) How long to wait for the server to send 08:30:11 data before giving up, as a float, or a :ref:`(connect timeout, 08:30:11 read timeout) ` tuple. 08:30:11 :type timeout: float or tuple or urllib3 Timeout object 08:30:11 :param verify: (optional) Either a boolean, in which case it controls whether 08:30:11 we verify the server's TLS certificate, or a string, in which case it 08:30:11 must be a path to a CA bundle to use 08:30:11 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:30:11 :param proxies: (optional) The proxies dictionary to apply to the request. 08:30:11 :rtype: requests.Response 08:30:11 """ 08:30:11 08:30:11 try: 08:30:11 conn = self.get_connection_with_tls_context( 08:30:11 request, verify, proxies=proxies, cert=cert 08:30:11 ) 08:30:11 except LocationValueError as e: 08:30:11 raise InvalidURL(e, request=request) 08:30:11 08:30:11 self.cert_verify(conn, request.url, verify, cert) 08:30:11 url = self.request_url(request, proxies) 08:30:11 self.add_headers( 08:30:11 request, 08:30:11 stream=stream, 08:30:11 timeout=timeout, 08:30:11 verify=verify, 08:30:11 cert=cert, 08:30:11 proxies=proxies, 08:30:11 ) 08:30:11 08:30:11 chunked = not (request.body is None or "Content-Length" in request.headers) 08:30:11 08:30:11 if isinstance(timeout, tuple): 08:30:11 try: 08:30:11 connect, read = timeout 08:30:11 timeout = TimeoutSauce(connect=connect, read=read) 08:30:11 except ValueError: 08:30:11 raise ValueError( 08:30:11 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:30:11 f"or a single float to set both timeouts to the same value." 08:30:11 ) 08:30:11 elif isinstance(timeout, TimeoutSauce): 08:30:11 pass 08:30:11 else: 08:30:11 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:30:11 08:30:11 try: 08:30:11 resp = conn.urlopen( 08:30:11 method=request.method, 08:30:11 url=url, 08:30:11 body=request.body, 08:30:11 headers=request.headers, 08:30:11 redirect=False, 08:30:11 assert_same_host=False, 08:30:11 preload_content=False, 08:30:11 decode_content=False, 08:30:11 retries=self.max_retries, 08:30:11 timeout=timeout, 08:30:11 chunked=chunked, 08:30:11 ) 08:30:11 08:30:11 except (ProtocolError, OSError) as err: 08:30:11 raise ConnectionError(err, request=request) 08:30:11 08:30:11 except MaxRetryError as e: 08:30:11 if isinstance(e.reason, ConnectTimeoutError): 08:30:11 # TODO: Remove this in 3.0.0: see #2811 08:30:11 if not isinstance(e.reason, NewConnectionError): 08:30:11 raise ConnectTimeout(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, ResponseError): 08:30:11 raise RetryError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _ProxyError): 08:30:11 raise ProxyError(e, request=request) 08:30:11 08:30:11 if isinstance(e.reason, _SSLError): 08:30:11 # This branch is for urllib3 v1.22 and later. 08:30:11 raise SSLError(e, request=request) 08:30:11 08:30:11 > raise ConnectionError(e, request=request) 08:30:11 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:30:11 08:30:11 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:30:11 ----------------------------- Captured stdout call ----------------------------- 08:30:11 execution of test_21_rdm_device_not_connected 08:30:11 --------------------------- Captured stdout teardown --------------------------- 08:30:11 all processes killed 08:30:11 =========================== short test summary info ============================ 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_02_rdm_device_connected 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_03_rdm_portmapping_info 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_04_rdm_portmapping_DEG1_TTP_TXRX 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_05_rdm_portmapping_SRG1_PP7_TXRX 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_06_rdm_portmapping_SRG3_PP1_TXRX 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_08_xpdr_device_connected 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_09_xpdr_portmapping_info 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_10_xpdr_portmapping_NETWORK1 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_11_xpdr_portmapping_NETWORK2 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_12_xpdr_portmapping_CLIENT1 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_13_xpdr_portmapping_CLIENT2 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_14_xpdr_portmapping_CLIENT3 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_15_xpdr_portmapping_CLIENT4 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_16_xpdr_device_disconnection 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_17_xpdr_device_disconnected 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_18_xpdr_device_not_connected 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_19_rdm_device_disconnection 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_20_rdm_device_disconnected 08:30:11 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_21_rdm_device_not_connected 08:30:11 19 failed, 2 passed in 439.70s (0:07:19) 08:30:11 tests121: exit 1 (440.12 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 pid=35127 08:30:24 ............ [100%] 08:30:37 12 passed in 44.18s 08:30:37 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 08:31:02 .............................................................. [100%] 08:33:12 62 passed in 154.99s (0:02:34) 08:33:12 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 08:33:44 ................................................ [100%] 08:35:28 48 passed in 135.22s (0:02:15) 08:35:28 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 08:35:52 ...................... [100%] 08:36:40 22 passed in 71.97s (0:01:11) 08:36:40 tests121: FAIL ✖ in 7 minutes 27.56 seconds 08:36:40 tests71: OK ✔ in 6 minutes 53.8 seconds 08:36:40 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 08:36:45 tests221: freeze> python -m pip freeze --all 08:36:46 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 08:36:46 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 08:36:46 using environment variables from ./karaf221.env 08:36:46 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 08:37:21 ................................... [100%] 08:38:01 35 passed in 74.85s (0:01:14) 08:38:01 pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py 08:38:32 ...... [100%] 08:38:46 6 passed in 44.56s 08:38:46 pytest -q transportpce_tests/2.2.1/test03_topology.py 08:39:28 ............................................ [100%] 08:44:01 44 passed in 315.58s (0:05:15) 08:44:01 pytest -q transportpce_tests/2.2.1/test04_otn_topology.py 08:44:38 ............ [100%] 08:45:02 12 passed in 60.06s (0:01:00) 08:45:02 pytest -q transportpce_tests/2.2.1/test05_flex_grid.py 08:45:26 ................ [100%] 08:46:55 16 passed in 113.18s (0:01:53) 08:46:55 pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py 08:47:24 ............................... [100%] 08:47:30 31 passed in 35.06s 08:47:30 pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py 08:48:06 .......................... [100%] 08:49:01 26 passed in 90.38s (0:01:30) 08:49:01 pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py 08:49:37 ...................... [100%] 08:50:40 22 passed in 98.95s (0:01:38) 08:50:40 pytest -q transportpce_tests/2.2.1/test09_olm.py 08:51:20 ........................................ [100%] 08:53:41 40 passed in 180.58s (0:03:00) 08:53:41 pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py 08:54:23 ........................................................................ [ 74%] 09:00:00 ......................... [100%] 09:01:52 97 passed in 490.31s (0:08:10) 09:01:52 pytest -q transportpce_tests/2.2.1/test12_end2end.py 09:02:32 ...................................................... [100%] 09:09:19 54 passed in 447.16s (0:07:27) 09:09:19 pytest -q transportpce_tests/2.2.1/test14_otn_switch_end2end.py 09:10:13 ........................................................................ [ 71%] 09:15:21 ............................. [100%] 09:17:31 101 passed in 491.52s (0:08:11) 09:17:31 pytest -q transportpce_tests/2.2.1/test15_otn_end2end_with_intermediate_switch.py 09:18:24 ........................................................................ [ 67%] 09:24:10 ................................... [100%] 09:30:31 107 passed in 780.19s (0:13:00) 09:30:31 tests221: OK ✔ in 53 minutes 51.26 seconds 09:30:31 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 09:30:37 tests_hybrid: freeze> python -m pip freeze --all 09:30:37 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 09:30:37 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 09:30:37 using environment variables from ./karaf121.env 09:30:37 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 09:31:26 ................................................... [100%] 09:33:13 51 passed in 155.63s (0:02:35) 09:33:13 pytest -q transportpce_tests/hybrid/test02_B100G_end2end.py 09:33:58 ........................................................................ [ 66%] 09:38:19 ..................................... [100%] 09:40:26 109 passed in 432.37s (0:07:12) 09:40:26 pytest -q transportpce_tests/hybrid/test03_autonomous_reroute.py 09:41:16 ..................................................... [100%] 09:44:49 53 passed in 262.98s (0:04:22) 09:44:49 tests_hybrid: OK ✔ in 14 minutes 17.69 seconds 09:44:49 buildlighty: 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 09:44:55 buildlighty: freeze> python -m pip freeze --all 09:44:55 buildlighty: 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 09:44:55 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 09:44:55 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 09:45:08 [ERROR] COMPILATION ERROR : 09:45:08 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 09:45:08 symbol: class YangModuleInfo 09:45:08 location: package org.opendaylight.yangtools.binding 09:45:08 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 09:45:08 symbol: class YangModuleInfo 09:45:08 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:45:08 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 09:45:08 symbol: class YangModuleInfo 09:45:08 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:45:08 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 09:45:08 symbol: class YangModuleInfo 09:45:08 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:45:08 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project tpce: Compilation failure: Compilation failure: 09:45:08 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 09:45:08 [ERROR] symbol: class YangModuleInfo 09:45:08 [ERROR] location: package org.opendaylight.yangtools.binding 09:45:08 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 09:45:08 [ERROR] symbol: class YangModuleInfo 09:45:08 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:45:08 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 09:45:08 [ERROR] symbol: class YangModuleInfo 09:45:08 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:45:08 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 09:45:08 [ERROR] symbol: class YangModuleInfo 09:45:08 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:45:08 [ERROR] -> [Help 1] 09:45:08 [ERROR] 09:45:08 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 09:45:08 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 09:45:08 [ERROR] 09:45:08 [ERROR] For more information about the errors and possible solutions, please read the following articles: 09:45:08 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 09:45:08 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 09:45:08 buildlighty: exit 9 (13.14 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=59938 09:45:08 buildlighty: command failed but is marked ignore outcome so handling it as success 09:45:08 buildcontroller: OK (132.15=setup[33.29]+cmd[98.85] seconds) 09:45:08 testsPCE: OK (338.65=setup[111.99]+cmd[226.66] seconds) 09:45:08 sims: OK (25.54=setup[21.38]+cmd[4.16] seconds) 09:45:08 build_karaf_tests121: OK (70.62=setup[21.64]+cmd[48.98] seconds) 09:45:08 tests121: FAIL code 1 (447.56=setup[7.44]+cmd[440.12] seconds) 09:45:08 build_karaf_tests221: OK (68.23=setup[20.74]+cmd[47.49] seconds) 09:45:08 tests_tapi: FAIL code 1 (690.80=setup[6.22]+cmd[684.58] seconds) 09:45:08 tests221: OK (3231.26=setup[5.87]+cmd[3225.39] seconds) 09:45:08 build_karaf_tests71: OK (66.69=setup[22.16]+cmd[44.54] seconds) 09:45:08 tests71: OK (413.80=setup[6.51]+cmd[407.29] seconds) 09:45:08 build_karaf_tests_hybrid: OK (54.25=setup[7.13]+cmd[47.12] seconds) 09:45:08 tests_hybrid: OK (857.69=setup[5.96]+cmd[851.73] seconds) 09:45:08 buildlighty: OK (19.61=setup[6.47]+cmd[13.14] seconds) 09:45:08 docs: OK (53.97=setup[51.90]+cmd[2.07] seconds) 09:45:08 docs-linkcheck: OK (51.36=setup[47.64]+cmd[3.72] seconds) 09:45:08 checkbashisms: OK (2.81=setup[1.89]+cmd[0.10,0.05,0.77] seconds) 09:45:08 pre-commit: OK (76.94=setup[27.21]+cmd[0.00,0.01,33.90,15.82] seconds) 09:45:08 pylint: OK (27.82=setup[4.23]+cmd[23.59] seconds) 09:45:08 evaluation failed :( (5416.00 seconds) 09:45:09 + tox_status=255 09:45:09 + echo '---> Completed tox runs' 09:45:09 ---> Completed tox runs 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/build_karaf_tests121/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=build_karaf_tests121 09:45:09 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/build_karaf_tests221/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=build_karaf_tests221 09:45:09 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/build_karaf_tests71/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=build_karaf_tests71 09:45:09 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/build_karaf_tests_hybrid/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=build_karaf_tests_hybrid 09:45:09 + cp -r .tox/build_karaf_tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests_hybrid 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/buildcontroller/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=buildcontroller 09:45:09 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/buildlighty/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=buildlighty 09:45:09 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/checkbashisms/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=checkbashisms 09:45:09 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/docs-linkcheck/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=docs-linkcheck 09:45:09 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/docs/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=docs 09:45:09 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/pre-commit/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=pre-commit 09:45:09 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/pylint/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=pylint 09:45:09 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/sims/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=sims 09:45:09 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/tests121/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=tests121 09:45:09 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests121 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/tests221/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=tests221 09:45:09 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/tests71/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=tests71 09:45:09 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/testsPCE/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=testsPCE 09:45:09 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/tests_hybrid/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=tests_hybrid 09:45:09 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 09:45:09 + for i in .tox/*/log 09:45:09 ++ echo .tox/tests_tapi/log 09:45:09 ++ awk -F/ '{print $2}' 09:45:09 + tox_env=tests_tapi 09:45:09 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 09:45:09 + DOC_DIR=docs/_build/html 09:45:09 + [[ -d docs/_build/html ]] 09:45:09 + echo '---> Archiving generated docs' 09:45:09 ---> Archiving generated docs 09:45:09 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 09:45:09 + echo '---> tox-run.sh ends' 09:45:09 ---> tox-run.sh ends 09:45:09 + test 255 -eq 0 09:45:09 + exit 255 09:45:09 ++ '[' 1 = 1 ']' 09:45:09 ++ '[' -x /usr/bin/clear_console ']' 09:45:09 ++ /usr/bin/clear_console -q 09:45:09 Build step 'Execute shell' marked build as failure 09:45:09 $ ssh-agent -k 09:45:09 unset SSH_AUTH_SOCK; 09:45:09 unset SSH_AGENT_PID; 09:45:09 echo Agent pid 12544 killed; 09:45:09 [ssh-agent] Stopped. 09:45:09 [PostBuildScript] - [INFO] Executing post build scripts. 09:45:09 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7271964903671573007.sh 09:45:09 ---> sysstat.sh 09:45:09 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins15350185782754924613.sh 09:45:09 ---> package-listing.sh 09:45:09 ++ facter osfamily 09:45:09 ++ tr '[:upper:]' '[:lower:]' 09:45:10 + OS_FAMILY=debian 09:45:10 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 09:45:10 + START_PACKAGES=/tmp/packages_start.txt 09:45:10 + END_PACKAGES=/tmp/packages_end.txt 09:45:10 + DIFF_PACKAGES=/tmp/packages_diff.txt 09:45:10 + PACKAGES=/tmp/packages_start.txt 09:45:10 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 09:45:10 + PACKAGES=/tmp/packages_end.txt 09:45:10 + case "${OS_FAMILY}" in 09:45:10 + dpkg -l 09:45:10 + grep '^ii' 09:45:10 + '[' -f /tmp/packages_start.txt ']' 09:45:10 + '[' -f /tmp/packages_end.txt ']' 09:45:10 + diff /tmp/packages_start.txt /tmp/packages_end.txt 09:45:10 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 09:45:10 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 09:45:10 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 09:45:10 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3858107462049842512.sh 09:45:10 ---> capture-instance-metadata.sh 09:45:10 Setup pyenv: 09:45:10 system 09:45:10 3.8.13 09:45:10 3.9.13 09:45:10 3.10.13 09:45:10 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:45:10 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8LKZ from file:/tmp/.os_lf_venv 09:45:11 lf-activate-venv(): INFO: Installing: lftools 09:45:23 lf-activate-venv(): INFO: Adding /tmp/venv-8LKZ/bin to PATH 09:45:23 INFO: Running in OpenStack, capturing instance metadata 09:45:23 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17832229445531446288.sh 09:45:23 provisioning config files... 09:45:24 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #2106 09:45:24 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config15215299810042248239tmp 09:45:24 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 09:45:24 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 09:45:24 provisioning config files... 09:45:24 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 09:45:24 [EnvInject] - Injecting environment variables from a build step. 09:45:24 [EnvInject] - Injecting as environment variables the properties content 09:45:24 SERVER_ID=logs 09:45:24 09:45:24 [EnvInject] - Variables injected successfully. 09:45:24 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14520007522552248292.sh 09:45:24 ---> create-netrc.sh 09:45:24 WARN: Log server credential not found. 09:45:24 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11049950428649175330.sh 09:45:24 ---> python-tools-install.sh 09:45:24 Setup pyenv: 09:45:24 system 09:45:24 3.8.13 09:45:24 3.9.13 09:45:24 3.10.13 09:45:24 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:45:24 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8LKZ from file:/tmp/.os_lf_venv 09:45:25 lf-activate-venv(): INFO: Installing: lftools 09:45:38 lf-activate-venv(): INFO: Adding /tmp/venv-8LKZ/bin to PATH 09:45:38 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4359926901472107541.sh 09:45:38 ---> sudo-logs.sh 09:45:38 Archiving 'sudo' log.. 09:45:38 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10146293316049805684.sh 09:45:38 ---> job-cost.sh 09:45:38 Setup pyenv: 09:45:38 system 09:45:38 3.8.13 09:45:38 3.9.13 09:45:38 3.10.13 09:45:38 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:45:38 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8LKZ from file:/tmp/.os_lf_venv 09:45:41 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 09:45:45 lf-activate-venv(): INFO: Adding /tmp/venv-8LKZ/bin to PATH 09:45:45 INFO: No Stack... 09:45:46 INFO: Retrieving Pricing Info for: v3-standard-4 09:45:46 INFO: Archiving Costs 09:45:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins1209300834302461720.sh 09:45:46 ---> logs-deploy.sh 09:45:46 Setup pyenv: 09:45:46 system 09:45:46 3.8.13 09:45:46 3.9.13 09:45:46 3.10.13 09:45:46 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:45:46 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8LKZ from file:/tmp/.os_lf_venv 09:45:47 lf-activate-venv(): INFO: Installing: lftools 09:45:57 lf-activate-venv(): INFO: Adding /tmp/venv-8LKZ/bin to PATH 09:45:57 WARNING: Nexus logging server not set 09:45:57 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/2106/ 09:45:57 INFO: archiving logs to S3 09:45:59 ---> uname -a: 09:45:59 Linux prd-ubuntu2004-docker-4c-16g-1097 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 09:45:59 09:45:59 09:45:59 ---> lscpu: 09:45:59 Architecture: x86_64 09:45:59 CPU op-mode(s): 32-bit, 64-bit 09:45:59 Byte Order: Little Endian 09:45:59 Address sizes: 40 bits physical, 48 bits virtual 09:45:59 CPU(s): 4 09:45:59 On-line CPU(s) list: 0-3 09:45:59 Thread(s) per core: 1 09:45:59 Core(s) per socket: 1 09:45:59 Socket(s): 4 09:45:59 NUMA node(s): 1 09:45:59 Vendor ID: AuthenticAMD 09:45:59 CPU family: 23 09:45:59 Model: 49 09:45:59 Model name: AMD EPYC-Rome Processor 09:45:59 Stepping: 0 09:45:59 CPU MHz: 2799.998 09:45:59 BogoMIPS: 5599.99 09:45:59 Virtualization: AMD-V 09:45:59 Hypervisor vendor: KVM 09:45:59 Virtualization type: full 09:45:59 L1d cache: 128 KiB 09:45:59 L1i cache: 128 KiB 09:45:59 L2 cache: 2 MiB 09:45:59 L3 cache: 64 MiB 09:45:59 NUMA node0 CPU(s): 0-3 09:45:59 Vulnerability Gather data sampling: Not affected 09:45:59 Vulnerability Itlb multihit: Not affected 09:45:59 Vulnerability L1tf: Not affected 09:45:59 Vulnerability Mds: Not affected 09:45:59 Vulnerability Meltdown: Not affected 09:45:59 Vulnerability Mmio stale data: Not affected 09:45:59 Vulnerability Retbleed: Vulnerable 09:45:59 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 09:45:59 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 09:45:59 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 09:45:59 Vulnerability Srbds: Not affected 09:45:59 Vulnerability Tsx async abort: Not affected 09:45:59 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 09:45:59 09:45:59 09:45:59 ---> nproc: 09:45:59 4 09:45:59 09:45:59 09:45:59 ---> df -h: 09:45:59 Filesystem Size Used Avail Use% Mounted on 09:45:59 udev 7.8G 0 7.8G 0% /dev 09:45:59 tmpfs 1.6G 1.1M 1.6G 1% /run 09:45:59 /dev/vda1 78G 17G 62G 21% / 09:45:59 tmpfs 7.9G 0 7.9G 0% /dev/shm 09:45:59 tmpfs 5.0M 0 5.0M 0% /run/lock 09:45:59 tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup 09:45:59 /dev/loop0 62M 62M 0 100% /snap/core20/1405 09:45:59 /dev/loop2 68M 68M 0 100% /snap/lxd/22753 09:45:59 /dev/loop1 44M 44M 0 100% /snap/snapd/15177 09:45:59 /dev/vda15 105M 6.1M 99M 6% /boot/efi 09:45:59 tmpfs 1.6G 0 1.6G 0% /run/user/1001 09:45:59 /dev/loop3 64M 64M 0 100% /snap/core20/2434 09:45:59 /dev/loop4 92M 92M 0 100% /snap/lxd/29619 09:45:59 09:45:59 09:45:59 ---> free -m: 09:45:59 total used free shared buff/cache available 09:45:59 Mem: 15997 730 7062 1 8204 14927 09:45:59 Swap: 1023 0 1023 09:45:59 09:45:59 09:45:59 ---> ip addr: 09:45:59 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 09:45:59 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 09:45:59 inet 127.0.0.1/8 scope host lo 09:45:59 valid_lft forever preferred_lft forever 09:45:59 inet6 ::1/128 scope host 09:45:59 valid_lft forever preferred_lft forever 09:45:59 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 09:45:59 link/ether fa:16:3e:f1:55:de brd ff:ff:ff:ff:ff:ff 09:45:59 inet 10.30.171.35/23 brd 10.30.171.255 scope global dynamic ens3 09:45:59 valid_lft 80788sec preferred_lft 80788sec 09:45:59 inet6 fe80::f816:3eff:fef1:55de/64 scope link 09:45:59 valid_lft forever preferred_lft forever 09:45:59 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 09:45:59 link/ether 02:42:9e:b9:22:9c brd ff:ff:ff:ff:ff:ff 09:45:59 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 09:45:59 valid_lft forever preferred_lft forever 09:45:59 09:45:59 09:45:59 ---> sar -b -r -n DEV: 09:45:59 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-1097) 10/25/24 _x86_64_ (4 CPU) 09:45:59 09:45:59 08:12:30 LINUX RESTART (4 CPU) 09:45:59 09:45:59 08:13:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 09:45:59 08:14:01 250.90 104.88 146.02 0.00 5315.29 11771.54 0.00 09:45:59 08:15:01 71.04 12.03 59.01 0.00 1027.03 9106.10 0.00 09:45:59 08:16:01 159.69 35.83 123.86 0.00 2501.45 19801.90 0.00 09:45:59 08:17:01 102.20 6.15 96.05 0.00 272.71 41164.95 0.00 09:45:59 08:18:01 144.08 6.23 137.84 0.00 4599.90 85532.41 0.00 09:45:59 08:19:01 165.67 10.90 154.77 0.00 381.14 95485.95 0.00 09:45:59 08:20:01 171.11 0.85 170.26 0.00 34.92 55427.79 0.00 09:45:59 08:21:01 71.77 2.98 68.79 0.00 229.14 1300.65 0.00 09:45:59 08:22:01 138.98 0.17 138.81 0.00 24.40 2362.27 0.00 09:45:59 08:23:13 73.72 0.31 73.41 0.00 41.61 1439.51 0.00 09:45:59 08:24:01 69.53 3.08 66.44 0.00 575.55 10958.55 0.00 09:45:59 08:25:01 3.47 0.02 3.45 0.00 0.13 55.32 0.00 09:45:59 08:26:01 49.48 0.35 49.13 0.00 18.00 888.65 0.00 09:45:59 08:27:01 52.82 0.02 52.81 0.00 0.13 859.99 0.00 09:45:59 08:28:01 4.70 0.98 3.72 0.00 22.66 76.77 0.00 09:45:59 08:29:01 2.08 0.00 2.08 0.00 0.00 35.99 0.00 09:45:59 08:30:01 11.06 0.05 11.01 0.00 1.87 1025.56 0.00 09:45:59 08:31:01 127.70 0.05 127.65 0.00 2.13 9720.38 0.00 09:45:59 08:32:01 1.65 0.00 1.65 0.00 0.00 39.46 0.00 09:45:59 08:33:01 2.38 0.00 2.38 0.00 0.00 41.73 0.00 09:45:59 08:34:01 55.76 0.00 55.76 0.00 0.00 831.46 0.00 09:45:59 08:35:01 2.48 0.00 2.48 0.00 0.00 44.66 0.00 09:45:59 08:36:01 79.94 0.00 79.94 0.00 0.00 1158.47 0.00 09:45:59 08:37:01 28.80 0.00 28.80 0.00 0.00 649.49 0.00 09:45:59 08:38:01 59.67 0.00 59.67 0.00 0.00 2840.59 0.00 09:45:59 08:39:01 101.73 0.00 101.73 0.00 0.00 1505.76 0.00 09:45:59 08:40:01 56.42 0.00 56.42 0.00 0.00 808.13 0.00 09:45:59 08:41:01 2.45 0.00 2.45 0.00 0.00 40.93 0.00 09:45:59 08:42:01 1.45 0.00 1.45 0.00 0.00 18.00 0.00 09:45:59 08:43:01 1.97 0.00 1.97 0.00 0.00 25.60 0.00 09:45:59 08:44:01 1.63 0.00 1.63 0.00 0.00 22.40 0.00 09:45:59 08:45:01 76.80 0.00 76.80 0.00 0.00 1121.28 0.00 09:45:59 08:46:01 75.55 0.60 74.95 0.00 39.46 1086.22 0.00 09:45:59 08:47:01 15.25 0.00 15.25 0.00 0.00 245.29 0.00 09:45:59 08:48:01 141.13 0.00 141.13 0.00 0.00 2128.05 0.00 09:45:59 08:49:01 2.52 0.00 2.52 0.00 0.00 41.59 0.00 09:45:59 08:50:01 68.97 0.00 68.97 0.00 0.00 1010.76 0.00 09:45:59 08:51:01 16.81 0.00 16.81 0.00 0.00 280.75 0.00 09:45:59 08:52:01 56.71 0.00 56.71 0.00 0.00 816.53 0.00 09:45:59 08:53:01 2.33 0.00 2.33 0.00 0.00 50.92 0.00 09:45:59 08:54:01 16.75 0.00 16.75 0.00 0.00 289.15 0.00 09:45:59 08:55:01 55.11 0.00 55.11 0.00 0.00 790.67 0.00 09:45:59 08:56:01 1.83 0.00 1.83 0.00 0.00 37.33 0.00 09:45:59 08:57:01 2.83 0.00 2.83 0.00 0.00 49.99 0.00 09:45:59 08:58:01 1.65 0.00 1.65 0.00 0.00 31.73 0.00 09:45:59 08:59:01 2.90 0.00 2.90 0.00 0.00 55.72 0.00 09:45:59 09:00:01 1.48 0.00 1.48 0.00 0.00 26.66 0.00 09:45:59 09:01:01 2.42 0.00 2.42 0.00 0.00 44.13 0.00 09:45:59 09:02:01 15.46 0.00 15.46 0.00 0.00 366.81 0.00 09:45:59 09:03:01 64.22 0.00 64.22 0.00 0.00 1020.36 0.00 09:45:59 09:04:01 1.93 0.00 1.93 0.00 0.00 43.73 0.00 09:45:59 09:05:01 3.68 0.00 3.68 0.00 0.00 79.85 0.00 09:45:59 09:06:01 2.23 0.00 2.23 0.00 0.00 46.93 0.00 09:45:59 09:07:01 2.10 0.00 2.10 0.00 0.00 46.39 0.00 09:45:59 09:08:01 2.03 0.00 2.03 0.00 0.00 50.52 0.00 09:45:59 09:09:01 2.02 0.00 2.02 0.00 0.00 45.06 0.00 09:45:59 09:10:01 17.72 0.00 17.72 0.00 0.00 326.67 0.00 09:45:59 09:11:01 62.44 0.00 62.44 0.00 0.00 880.92 0.00 09:45:59 09:12:01 2.55 0.00 2.55 0.00 0.00 60.26 0.00 09:45:59 09:13:01 3.25 0.00 3.25 0.00 0.00 59.46 0.00 09:45:59 09:14:01 2.15 0.00 2.15 0.00 0.00 37.32 0.00 09:45:59 09:15:01 3.32 0.00 3.32 0.00 0.00 71.05 0.00 09:45:59 09:16:01 2.10 0.00 2.10 0.00 0.00 43.46 0.00 09:45:59 09:17:01 2.00 0.03 1.97 0.00 0.93 35.86 0.00 09:45:59 09:18:01 20.81 0.00 20.81 0.00 0.00 347.01 0.00 09:45:59 09:19:01 48.28 0.00 48.28 0.00 0.00 705.88 0.00 09:45:59 09:20:01 2.45 0.00 2.45 0.00 0.00 58.92 0.00 09:45:59 09:21:01 3.58 0.00 3.58 0.00 0.00 68.79 0.00 09:45:59 09:22:01 2.13 0.00 2.13 0.00 0.00 35.06 0.00 09:45:59 09:23:01 2.63 0.00 2.63 0.00 0.00 49.06 0.00 09:45:59 09:24:01 2.27 0.00 2.27 0.00 0.00 39.59 0.00 09:45:59 09:25:01 3.37 0.00 3.37 0.00 0.00 57.32 0.00 09:45:59 09:26:01 1.77 0.00 1.77 0.00 0.00 26.66 0.00 09:45:59 09:27:01 2.18 0.00 2.18 0.00 0.00 51.86 0.00 09:45:59 09:28:01 2.07 0.00 2.07 0.00 0.00 34.52 0.00 09:45:59 09:29:01 1.60 0.00 1.60 0.00 0.00 22.40 0.00 09:45:59 09:30:01 1.83 0.00 1.83 0.00 0.00 24.26 0.00 09:45:59 09:31:01 39.01 0.00 39.01 0.00 0.00 1843.96 0.00 09:45:59 09:32:01 73.14 0.00 73.14 0.00 0.00 8543.11 0.00 09:45:59 09:33:01 3.22 0.00 3.22 0.00 0.00 62.25 0.00 09:45:59 09:34:01 82.45 0.00 82.45 0.00 0.00 1510.81 0.00 09:45:59 09:35:01 2.97 0.00 2.97 0.00 0.00 61.05 0.00 09:45:59 09:36:01 1.88 0.00 1.88 0.00 0.00 35.06 0.00 09:45:59 09:37:01 1.90 0.00 1.90 0.00 0.00 34.39 0.00 09:45:59 09:38:01 2.68 0.00 2.68 0.00 0.00 48.92 0.00 09:45:59 09:39:01 1.62 0.00 1.62 0.00 0.00 36.53 0.00 09:45:59 09:40:01 2.07 0.00 2.07 0.00 0.00 39.06 0.00 09:45:59 09:41:01 24.80 0.00 24.80 0.00 0.00 414.46 0.00 09:45:59 09:42:01 53.14 0.00 53.14 0.00 0.00 871.59 0.00 09:45:59 09:43:01 3.87 0.00 3.87 0.00 0.00 82.92 0.00 09:45:59 09:44:01 1.58 0.00 1.58 0.00 0.00 47.46 0.00 09:45:59 09:45:01 9.72 3.22 6.50 0.00 64.26 400.60 0.00 09:45:59 Average: 34.74 2.05 32.69 0.00 163.57 4131.10 0.00 09:45:59 09:45:59 08:13:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 09:45:59 08:14:01 13426092 15337148 652716 3.98 56836 2059408 1410044 8.09 876524 1820480 47824 09:45:59 08:15:01 12925552 15219280 743180 4.54 83360 2390260 1647176 9.45 1039008 2105776 223448 09:45:59 08:16:01 10707904 14439480 1518144 9.27 131760 3671284 2341748 13.44 1970292 3276092 1041560 09:45:59 08:17:01 9532528 14163556 1793400 10.95 150100 4512260 2497596 14.33 2489612 3891596 705064 09:45:59 08:18:01 6431532 13148176 2797868 17.08 183204 6479808 3804212 21.83 4029084 5351116 128212 09:45:59 08:19:01 4096668 13256192 2688232 16.41 218116 8780436 3787300 21.73 4768136 6838136 944176 09:45:59 08:20:01 1261376 10678688 5263872 32.13 227532 9019444 6729576 38.61 7524796 6894900 764 09:45:59 08:21:01 503068 8787720 7153652 43.67 221868 7911424 8179380 46.93 9226044 5960552 936 09:45:59 08:22:01 251168 8545088 7395940 45.15 228816 7913400 8762768 50.27 9491580 5944452 484 09:45:59 08:23:13 183380 8579696 7360692 44.93 237300 8002812 8776688 50.35 9459800 6040976 199132 09:45:59 08:24:01 181400 7378208 8562164 52.27 238688 6822060 9872700 56.64 10603812 4916196 804 09:45:59 08:25:01 181828 7378744 8561580 52.26 238748 6822064 9872700 56.64 10604136 4916004 316 09:45:59 08:26:01 3766364 10964960 4977392 30.38 239528 6822852 6591660 37.82 7040816 4907396 228 09:45:59 08:27:01 2278552 9479448 6462032 39.45 241520 6823160 7501080 43.04 8525532 4904812 296 09:45:59 08:28:01 2105316 9307652 6633616 40.49 241604 6824412 7665808 43.98 8700908 4903368 56 09:45:59 08:29:01 2088732 9291244 6650016 40.60 241616 6824576 7665808 43.98 8716348 4903492 284 09:45:59 08:30:01 4830908 12267672 3674736 22.43 247668 7046204 4923276 28.25 5792064 5091284 213120 09:45:59 08:31:01 6293448 13738804 2205496 13.46 250552 7051824 3043888 17.46 4386664 5042244 392 09:45:59 08:32:01 6241272 13686812 2257244 13.78 250580 7051984 3108276 17.83 4438328 5041412 136 09:45:59 08:33:01 6224272 13669956 2274084 13.88 250604 7052116 3108276 17.83 4454160 5041524 156 09:45:59 08:34:01 5469636 12916700 3026796 18.48 251760 7052292 3868180 22.19 5217580 5030532 16 09:45:59 08:35:01 5452480 12899780 3043704 18.58 251808 7052480 3884176 22.28 5233392 5030704 184 09:45:59 08:36:01 6281840 13730852 2213056 13.51 253284 7052656 3033100 17.40 4409540 5030168 392 09:45:59 08:37:01 6738416 14254344 1689604 10.31 255796 7113020 2840040 16.29 3891864 5089204 62916 09:45:59 08:38:01 7079652 14596696 1347236 8.22 256980 7112944 2221560 12.75 3548740 5089108 104 09:45:59 08:39:01 6666408 14185564 1758252 10.73 258256 7113696 2899180 16.63 3976528 5076092 360 09:45:59 08:40:01 4279556 11799952 4142608 25.29 259276 7113888 5129408 29.43 6351572 5076284 128 09:45:59 08:41:01 4168968 11689524 4252956 25.96 259288 7114016 5145784 29.52 6462924 5076412 64 09:45:59 08:42:01 4168112 11688672 4253776 25.97 259292 7114016 5145784 29.52 6463420 5076416 72 09:45:59 08:43:01 4168096 11688668 4253780 25.97 259300 7114020 5145784 29.52 6463836 5076416 88 09:45:59 08:44:01 6397028 13917452 2025800 12.37 259312 7113856 2910860 16.70 4242608 5076248 84 09:45:59 08:45:01 6197948 13719728 2223752 13.57 260176 7114280 3010352 17.27 4442420 5075880 96 09:45:59 08:46:01 6205840 13730556 2213104 13.51 261572 7115648 3095492 17.76 4435804 5075016 148 09:45:59 08:47:01 7399348 14924112 1020248 6.23 261596 7115672 1853224 10.63 3247836 5074696 484 09:45:59 08:48:01 6152704 13679636 2264132 13.82 262988 7116496 3056432 17.54 4488396 5075212 160 09:45:59 08:49:01 7044580 14571524 1372692 8.38 263000 7116492 2230840 12.80 3599620 5075212 124 09:45:59 08:50:01 5351564 12879792 3063440 18.70 263804 7116956 3900964 22.38 5285980 5075528 48 09:45:59 08:51:01 5985212 13513752 2429692 14.83 263848 7117248 3642044 20.90 4654352 5075620 632 09:45:59 08:52:01 3941120 11470708 4471640 27.30 264448 7117668 5321464 30.53 6689260 5076028 260 09:45:59 08:53:01 3914700 11444696 4497696 27.46 264460 7118060 5337456 30.62 6715964 5076416 232 09:45:59 08:54:01 6173724 13704028 2239636 13.67 264488 7118340 3576524 20.52 4466212 5076612 392 09:45:59 08:55:01 3929116 11460644 4481652 27.36 265160 7118876 5285144 30.32 6701124 5077132 436 09:45:59 08:56:01 3919352 11450956 4491308 27.42 265160 7118952 5285144 30.32 6710552 5077208 128 09:45:59 08:57:01 3904776 11436588 4505668 27.50 265164 7119156 5285144 30.32 6724668 5077412 140 09:45:59 08:58:01 3879892 11411968 4530252 27.65 265180 7119416 5317192 30.51 6748660 5077660 200 09:45:59 08:59:01 3868032 11400396 4541704 27.72 265184 7119716 5317192 30.51 6760460 5077944 192 09:45:59 09:00:01 3860676 11393248 4548932 27.77 265188 7119892 5317192 30.51 6767192 5078144 204 09:45:59 09:01:01 3813804 11346528 4595712 28.05 265192 7120052 5383272 30.89 6813820 5078292 172 09:45:59 09:02:01 7267580 14800596 1143792 6.98 265196 7120292 1989744 11.42 3375652 5078544 444 09:45:59 09:03:01 4002040 11535796 4406400 26.90 265492 7120732 5259704 30.18 6625980 5078976 428 09:45:59 09:04:01 3979864 11513948 4428188 27.03 265504 7121052 5275720 30.27 6647356 5079292 144 09:45:59 09:05:01 3943112 11477844 4464276 27.25 265504 7121704 5307776 30.45 6682972 5079936 32 09:45:59 09:06:01 3921724 11456828 4485300 27.38 265504 7122064 5307776 30.45 6703220 5080308 160 09:45:59 09:07:01 3904100 11439640 4502472 27.49 265508 7122504 5307776 30.45 6721312 5080736 336 09:45:59 09:08:01 3884208 11420356 4521724 27.60 265528 7123124 5323784 30.54 6741432 5081328 472 09:45:59 09:09:01 3866220 11403188 4538884 27.71 265540 7123904 5323784 30.54 6757968 5082132 792 09:45:59 09:10:01 3920948 11457268 4485112 27.38 265556 7123224 6411204 36.78 6705164 5081440 308 09:45:59 09:11:01 2593012 10130184 5811480 35.48 265904 7123720 6736960 38.65 8031328 5081920 184 09:45:59 09:12:01 2446108 9983708 5957796 36.37 265904 7124144 6850324 39.30 8173260 5082344 164 09:45:59 09:13:01 2374028 9911924 6029484 36.81 265912 7124432 6916356 39.68 8246824 5082640 120 09:45:59 09:14:01 2318312 9856496 6084868 37.15 265916 7124732 6916356 39.68 8303380 5082920 336 09:45:59 09:15:01 2300624 9839232 6102076 37.25 265928 7125164 6916356 39.68 8320376 5083332 108 09:45:59 09:16:01 2277732 9816692 6124584 37.39 265932 7125476 6932892 39.78 8342904 5083676 40 09:45:59 09:17:01 2247444 9786620 6154640 37.57 265932 7125700 6982404 40.06 8371860 5083892 412 09:45:59 09:18:01 5239828 12779200 3163844 19.31 265976 7125828 4294256 24.64 5390660 5084020 280 09:45:59 09:19:01 2733336 10273216 5668312 34.60 266236 7126064 6590404 37.81 7889012 5084236 168 09:45:59 09:20:01 2538696 10079012 5862288 35.79 266240 7126496 6688000 38.37 8081760 5084668 120 09:45:59 09:21:01 2438304 9979036 5962180 36.40 266252 7126900 6753912 38.75 8180008 5085072 132 09:45:59 09:22:01 2432144 9972984 5968232 36.43 266256 7127004 6753912 38.75 8186452 5085176 100 09:45:59 09:23:01 2422284 9963476 5977732 36.49 266268 7127344 6753912 38.75 8195324 5085516 128 09:45:59 09:24:01 2407552 9948900 5992412 36.58 266276 7127496 6753912 38.75 8210092 5085668 108 09:45:59 09:25:01 2387108 9928732 6012548 36.70 266280 7127768 6753912 38.75 8229092 5085940 156 09:45:59 09:26:01 2383328 9925064 6016264 36.73 266296 7127872 6753912 38.75 8232744 5086032 444 09:45:59 09:27:01 2349268 9891424 6049852 36.93 266304 7128268 6836048 39.22 8266428 5086440 356 09:45:59 09:28:01 2348212 9890424 6050852 36.94 266308 7128320 6836048 39.22 8266904 5086492 116 09:45:59 09:29:01 2347732 9889968 6051308 36.94 266320 7128328 6836048 39.22 8266708 5086500 304 09:45:59 09:30:01 2347740 9889980 6051272 36.94 266328 7128328 6836048 39.22 8266636 5086500 268 09:45:59 09:31:01 6299368 14080476 1863056 11.37 272396 7353464 2990776 17.16 4149616 5261484 224108 09:45:59 09:32:01 3668668 11451916 4490120 27.41 272648 7355212 5363768 30.77 6775676 5255204 176 09:45:59 09:33:01 3525332 11308852 4633004 28.28 272652 7355480 5445320 31.24 6917448 5255300 304 09:45:59 09:34:01 4015852 11799824 4142448 25.29 272960 7355516 5098072 29.25 6451196 5234444 240 09:45:59 09:35:01 3707436 11491824 4450164 27.17 272960 7355916 5233536 30.03 6757928 5233752 92 09:45:59 09:36:01 3693924 11478492 4463548 27.25 272960 7356104 5233536 30.03 6771160 5233872 312 09:45:59 09:37:01 3673708 11458568 4483480 27.37 272968 7356380 5249564 30.12 6790728 5234148 332 09:45:59 09:38:01 3671756 11456748 4485280 27.38 272968 7356516 5281676 30.30 6792136 5234280 248 09:45:59 09:39:01 3637640 11423172 4518748 27.58 272980 7357060 5281676 30.30 6825684 5234788 600 09:45:59 09:40:01 3638744 11424588 4517360 27.58 272984 7357348 5281676 30.30 6823452 5235096 636 09:45:59 09:41:01 4428448 12214220 3728468 22.76 273012 7357164 5070696 29.09 6050588 5223388 304 09:45:59 09:42:01 2837552 10623912 5317640 32.46 273308 7357448 6113636 35.08 7637168 5223524 224 09:45:59 09:43:01 2775260 10562212 5379276 32.84 273316 7358024 6146580 35.26 7697424 5224028 224 09:45:59 09:44:01 2675444 10463324 5478048 33.44 273324 7358928 6162624 35.36 7796936 5224920 432 09:45:59 09:45:01 7166604 15033484 910300 5.56 276640 7426748 1758400 10.09 3250616 5288532 70148 09:45:59 Average: 4227851 11638467 4304935 26.28 253273 7021705 5224344 29.97 6429919 5063390 42189 09:45:59 09:45:59 08:13:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 09:45:59 08:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:14:01 ens3 328.19 241.87 1525.08 69.34 0.00 0.00 0.00 0.00 09:45:59 08:14:01 lo 0.73 0.73 0.07 0.07 0.00 0.00 0.00 0.00 09:45:59 08:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:15:01 ens3 38.63 34.19 272.81 6.94 0.00 0.00 0.00 0.00 09:45:59 08:15:01 lo 1.13 1.13 0.11 0.11 0.00 0.00 0.00 0.00 09:45:59 08:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:16:01 ens3 358.89 296.63 5340.10 32.02 0.00 0.00 0.00 0.00 09:45:59 08:16:01 lo 5.47 5.47 0.56 0.56 0.00 0.00 0.00 0.00 09:45:59 08:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:17:01 ens3 309.76 263.70 4674.68 26.33 0.00 0.00 0.00 0.00 09:45:59 08:17:01 lo 0.60 0.60 0.05 0.05 0.00 0.00 0.00 0.00 09:45:59 08:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:18:01 ens3 274.30 140.96 4298.09 13.00 0.00 0.00 0.00 0.00 09:45:59 08:18:01 lo 1.60 1.60 0.17 0.17 0.00 0.00 0.00 0.00 09:45:59 08:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:19:01 ens3 66.27 38.36 1766.87 5.16 0.00 0.00 0.00 0.00 09:45:59 08:19:01 lo 2.38 2.38 0.26 0.26 0.00 0.00 0.00 0.00 09:45:59 08:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:20:01 ens3 1.03 0.87 0.18 0.11 0.00 0.00 0.00 0.00 09:45:59 08:20:01 lo 5.30 5.30 5.70 5.70 0.00 0.00 0.00 0.00 09:45:59 08:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:21:01 ens3 1.67 1.43 0.30 0.27 0.00 0.00 0.00 0.00 09:45:59 08:21:01 lo 49.53 49.53 44.31 44.31 0.00 0.00 0.00 0.00 09:45:59 08:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:22:01 ens3 1.07 0.93 0.20 0.18 0.00 0.00 0.00 0.00 09:45:59 08:22:01 lo 34.28 34.28 18.35 18.35 0.00 0.00 0.00 0.00 09:45:59 08:23:13 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:23:13 ens3 2.67 2.22 1.06 0.87 0.00 0.00 0.00 0.00 09:45:59 08:23:13 lo 7.27 7.27 3.42 3.42 0.00 0.00 0.00 0.00 09:45:59 08:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:24:01 ens3 0.69 0.56 0.41 0.27 0.00 0.00 0.00 0.00 09:45:59 08:24:01 lo 10.23 10.23 8.10 8.10 0.00 0.00 0.00 0.00 09:45:59 08:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:25:01 ens3 0.25 0.10 0.01 0.01 0.00 0.00 0.00 0.00 09:45:59 08:25:01 lo 0.53 0.53 0.04 0.04 0.00 0.00 0.00 0.00 09:45:59 08:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:26:01 ens3 0.70 0.63 0.08 0.08 0.00 0.00 0.00 0.00 09:45:59 08:26:01 lo 3.90 3.90 0.40 0.40 0.00 0.00 0.00 0.00 09:45:59 08:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:27:01 ens3 0.98 1.05 0.16 0.16 0.00 0.00 0.00 0.00 09:45:59 08:27:01 lo 19.20 19.20 17.81 17.81 0.00 0.00 0.00 0.00 09:45:59 08:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:28:01 ens3 0.90 0.33 0.11 0.05 0.00 0.00 0.00 0.00 09:45:59 08:28:01 lo 23.61 23.61 13.63 13.63 0.00 0.00 0.00 0.00 09:45:59 08:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:29:01 ens3 0.88 0.60 0.38 0.30 0.00 0.00 0.00 0.00 09:45:59 08:29:01 lo 14.66 14.66 5.64 5.64 0.00 0.00 0.00 0.00 09:45:59 08:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:30:01 ens3 2.38 2.40 1.18 0.99 0.00 0.00 0.00 0.00 09:45:59 08:30:01 lo 19.93 19.93 5.82 5.82 0.00 0.00 0.00 0.00 09:45:59 08:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:31:01 ens3 15.53 13.73 3.27 9.48 0.00 0.00 0.00 0.00 09:45:59 08:31:01 lo 10.80 10.80 16.47 16.47 0.00 0.00 0.00 0.00 09:45:59 08:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:32:01 ens3 1.13 1.43 0.23 0.23 0.00 0.00 0.00 0.00 09:45:59 08:32:01 lo 27.05 27.05 11.37 11.37 0.00 0.00 0.00 0.00 09:45:59 08:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:33:01 ens3 1.32 1.55 0.24 0.24 0.00 0.00 0.00 0.00 09:45:59 08:33:01 lo 26.35 26.35 8.27 8.27 0.00 0.00 0.00 0.00 09:45:59 08:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:34:01 ens3 1.90 1.47 0.60 0.44 0.00 0.00 0.00 0.00 09:45:59 08:34:01 lo 17.08 17.08 10.85 10.85 0.00 0.00 0.00 0.00 09:45:59 08:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:35:01 ens3 1.13 1.55 0.23 0.24 0.00 0.00 0.00 0.00 09:45:59 08:35:01 lo 30.86 30.86 10.40 10.40 0.00 0.00 0.00 0.00 09:45:59 08:36:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:36:01 ens3 0.90 1.08 0.17 0.17 0.00 0.00 0.00 0.00 09:45:59 08:36:01 lo 24.36 24.36 10.49 10.49 0.00 0.00 0.00 0.00 09:45:59 08:37:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:37:01 ens3 2.20 2.73 0.89 0.82 0.00 0.00 0.00 0.00 09:45:59 08:37:01 lo 18.30 18.30 5.53 5.53 0.00 0.00 0.00 0.00 09:45:59 08:38:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:38:01 ens3 1.55 1.95 0.29 0.31 0.00 0.00 0.00 0.00 09:45:59 08:38:01 lo 15.10 15.10 10.09 10.09 0.00 0.00 0.00 0.00 09:45:59 08:39:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:39:01 ens3 1.07 1.07 0.20 0.20 0.00 0.00 0.00 0.00 09:45:59 08:39:01 lo 14.06 14.06 4.70 4.70 0.00 0.00 0.00 0.00 09:45:59 08:40:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:40:01 ens3 0.95 1.12 0.21 0.16 0.00 0.00 0.00 0.00 09:45:59 08:40:01 lo 14.95 14.95 6.79 6.79 0.00 0.00 0.00 0.00 09:45:59 08:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:41:01 ens3 0.62 0.73 0.11 0.11 0.00 0.00 0.00 0.00 09:45:59 08:41:01 lo 12.98 12.98 5.96 5.96 0.00 0.00 0.00 0.00 09:45:59 08:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:42:01 ens3 0.07 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:42:01 lo 0.58 0.58 0.07 0.07 0.00 0.00 0.00 0.00 09:45:59 08:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:43:01 ens3 0.25 0.12 0.01 0.01 0.00 0.00 0.00 0.00 09:45:59 08:43:01 lo 0.60 0.60 0.05 0.05 0.00 0.00 0.00 0.00 09:45:59 08:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:44:01 ens3 0.73 0.62 0.19 0.17 0.00 0.00 0.00 0.00 09:45:59 08:44:01 lo 3.70 3.70 1.30 1.30 0.00 0.00 0.00 0.00 09:45:59 08:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:45:01 ens3 0.88 0.75 0.14 0.13 0.00 0.00 0.00 0.00 09:45:59 08:45:01 lo 5.58 5.58 6.27 6.27 0.00 0.00 0.00 0.00 09:45:59 08:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:46:01 ens3 0.82 0.85 0.22 0.12 0.00 0.00 0.00 0.00 09:45:59 08:46:01 lo 8.63 8.63 3.11 3.11 0.00 0.00 0.00 0.00 09:45:59 08:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:47:01 ens3 0.68 0.78 0.11 0.12 0.00 0.00 0.00 0.00 09:45:59 08:47:01 lo 3.70 3.70 0.60 0.60 0.00 0.00 0.00 0.00 09:45:59 08:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:48:01 ens3 0.73 0.77 0.11 0.11 0.00 0.00 0.00 0.00 09:45:59 08:48:01 lo 30.63 30.63 14.75 14.75 0.00 0.00 0.00 0.00 09:45:59 08:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:49:01 ens3 1.23 1.55 0.29 0.29 0.00 0.00 0.00 0.00 09:45:59 08:49:01 lo 20.71 20.71 8.39 8.39 0.00 0.00 0.00 0.00 09:45:59 08:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:50:01 ens3 0.58 0.63 0.09 0.09 0.00 0.00 0.00 0.00 09:45:59 08:50:01 lo 12.78 12.78 15.35 15.35 0.00 0.00 0.00 0.00 09:45:59 08:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:51:01 ens3 1.03 1.22 0.17 0.18 0.00 0.00 0.00 0.00 09:45:59 08:51:01 lo 12.05 12.05 5.50 5.50 0.00 0.00 0.00 0.00 09:45:59 08:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:52:01 ens3 0.78 0.97 0.14 0.15 0.00 0.00 0.00 0.00 09:45:59 08:52:01 lo 35.89 35.89 14.49 14.49 0.00 0.00 0.00 0.00 09:45:59 08:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:53:01 ens3 0.65 0.75 0.11 0.11 0.00 0.00 0.00 0.00 09:45:59 08:53:01 lo 40.71 40.71 11.99 11.99 0.00 0.00 0.00 0.00 09:45:59 08:54:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:54:01 ens3 1.03 1.13 0.32 0.21 0.00 0.00 0.00 0.00 09:45:59 08:54:01 lo 18.58 18.58 5.72 5.72 0.00 0.00 0.00 0.00 09:45:59 08:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:55:01 ens3 0.67 0.78 0.11 0.11 0.00 0.00 0.00 0.00 09:45:59 08:55:01 lo 30.44 30.44 22.15 22.15 0.00 0.00 0.00 0.00 09:45:59 08:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:56:01 ens3 0.67 0.83 0.13 0.13 0.00 0.00 0.00 0.00 09:45:59 08:56:01 lo 5.63 5.63 3.25 3.25 0.00 0.00 0.00 0.00 09:45:59 08:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:57:01 ens3 1.32 0.73 0.20 0.11 0.00 0.00 0.00 0.00 09:45:59 08:57:01 lo 18.73 18.73 9.28 9.28 0.00 0.00 0.00 0.00 09:45:59 08:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:58:01 ens3 2.07 1.12 0.94 0.69 0.00 0.00 0.00 0.00 09:45:59 08:58:01 lo 24.23 24.23 10.06 10.06 0.00 0.00 0.00 0.00 09:45:59 08:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 08:59:01 ens3 1.03 0.72 0.47 0.38 0.00 0.00 0.00 0.00 09:45:59 08:59:01 lo 15.63 15.63 6.52 6.52 0.00 0.00 0.00 0.00 09:45:59 09:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:00:01 ens3 0.45 0.33 0.12 0.06 0.00 0.00 0.00 0.00 09:45:59 09:00:01 lo 9.15 9.15 4.35 4.35 0.00 0.00 0.00 0.00 09:45:59 09:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:01:01 ens3 0.82 0.62 0.14 0.12 0.00 0.00 0.00 0.00 09:45:59 09:01:01 lo 17.63 17.63 8.63 8.63 0.00 0.00 0.00 0.00 09:45:59 09:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:02:01 ens3 0.53 0.45 0.09 0.08 0.00 0.00 0.00 0.00 09:45:59 09:02:01 lo 21.03 21.03 6.91 6.91 0.00 0.00 0.00 0.00 09:45:59 09:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:03:01 ens3 0.97 0.78 0.14 0.12 0.00 0.00 0.00 0.00 09:45:59 09:03:01 lo 34.89 34.89 13.27 13.27 0.00 0.00 0.00 0.00 09:45:59 09:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:04:01 ens3 0.73 0.78 0.19 0.17 0.00 0.00 0.00 0.00 09:45:59 09:04:01 lo 19.48 19.48 6.40 6.40 0.00 0.00 0.00 0.00 09:45:59 09:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:05:01 ens3 0.57 0.57 0.13 0.08 0.00 0.00 0.00 0.00 09:45:59 09:05:01 lo 53.14 53.14 16.28 16.28 0.00 0.00 0.00 0.00 09:45:59 09:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:06:01 ens3 0.50 0.48 0.08 0.08 0.00 0.00 0.00 0.00 09:45:59 09:06:01 lo 22.60 22.60 6.58 6.58 0.00 0.00 0.00 0.00 09:45:59 09:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:07:01 ens3 0.93 0.62 0.33 0.25 0.00 0.00 0.00 0.00 09:45:59 09:07:01 lo 32.48 32.48 9.30 9.30 0.00 0.00 0.00 0.00 09:45:59 09:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:08:01 ens3 0.15 0.08 0.01 0.01 0.00 0.00 0.00 0.00 09:45:59 09:08:01 lo 37.46 37.46 11.81 11.81 0.00 0.00 0.00 0.00 09:45:59 09:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:09:01 ens3 0.40 0.25 0.09 0.08 0.00 0.00 0.00 0.00 09:45:59 09:09:01 lo 63.27 63.27 19.35 19.35 0.00 0.00 0.00 0.00 09:45:59 09:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:10:01 ens3 0.80 0.80 0.10 0.11 0.00 0.00 0.00 0.00 09:45:59 09:10:01 lo 2.68 2.68 0.25 0.25 0.00 0.00 0.00 0.00 09:45:59 09:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:11:01 ens3 1.87 1.23 0.52 0.34 0.00 0.00 0.00 0.00 09:45:59 09:11:01 lo 23.36 23.36 22.66 22.66 0.00 0.00 0.00 0.00 09:45:59 09:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:12:01 ens3 0.95 0.83 0.38 0.32 0.00 0.00 0.00 0.00 09:45:59 09:12:01 lo 34.23 34.23 13.95 13.95 0.00 0.00 0.00 0.00 09:45:59 09:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:13:01 ens3 1.25 0.67 0.18 0.14 0.00 0.00 0.00 0.00 09:45:59 09:13:01 lo 18.06 18.06 7.63 7.63 0.00 0.00 0.00 0.00 09:45:59 09:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:14:01 ens3 7.26 1.00 1.49 0.59 0.00 0.00 0.00 0.00 09:45:59 09:14:01 lo 28.14 28.14 12.34 12.34 0.00 0.00 0.00 0.00 09:45:59 09:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:15:01 ens3 8.30 1.28 2.14 1.06 0.00 0.00 0.00 0.00 09:45:59 09:15:01 lo 32.49 32.49 10.72 10.72 0.00 0.00 0.00 0.00 09:45:59 09:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:16:01 ens3 2.73 1.17 1.22 0.88 0.00 0.00 0.00 0.00 09:45:59 09:16:01 lo 18.16 18.16 8.35 8.35 0.00 0.00 0.00 0.00 09:45:59 09:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:17:01 ens3 1.23 0.73 0.60 0.46 0.00 0.00 0.00 0.00 09:45:59 09:17:01 lo 22.01 22.01 8.33 8.33 0.00 0.00 0.00 0.00 09:45:59 09:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:18:01 ens3 1.05 0.68 0.14 0.11 0.00 0.00 0.00 0.00 09:45:59 09:18:01 lo 4.62 4.62 2.13 2.13 0.00 0.00 0.00 0.00 09:45:59 09:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:19:01 ens3 1.35 0.97 0.27 0.18 0.00 0.00 0.00 0.00 09:45:59 09:19:01 lo 23.16 23.16 22.63 22.63 0.00 0.00 0.00 0.00 09:45:59 09:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:20:01 ens3 0.70 0.73 0.12 0.12 0.00 0.00 0.00 0.00 09:45:59 09:20:01 lo 32.28 32.28 13.40 13.40 0.00 0.00 0.00 0.00 09:45:59 09:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:21:01 ens3 0.55 0.52 0.08 0.07 0.00 0.00 0.00 0.00 09:45:59 09:21:01 lo 19.06 19.06 9.78 9.78 0.00 0.00 0.00 0.00 09:45:59 09:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:22:01 ens3 0.88 0.98 0.16 0.16 0.00 0.00 0.00 0.00 09:45:59 09:22:01 lo 11.18 11.18 7.47 7.47 0.00 0.00 0.00 0.00 09:45:59 09:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:23:01 ens3 0.63 0.53 0.09 0.08 0.00 0.00 0.00 0.00 09:45:59 09:23:01 lo 23.05 23.05 10.77 10.77 0.00 0.00 0.00 0.00 09:45:59 09:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:24:01 ens3 0.87 0.70 0.18 0.16 0.00 0.00 0.00 0.00 09:45:59 09:24:01 lo 8.25 8.25 5.72 5.72 0.00 0.00 0.00 0.00 09:45:59 09:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:25:01 ens3 0.90 0.70 0.17 0.10 0.00 0.00 0.00 0.00 09:45:59 09:25:01 lo 25.18 25.18 12.07 12.07 0.00 0.00 0.00 0.00 09:45:59 09:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:26:01 ens3 0.53 0.47 0.08 0.07 0.00 0.00 0.00 0.00 09:45:59 09:26:01 lo 9.95 9.95 6.13 6.13 0.00 0.00 0.00 0.00 09:45:59 09:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:27:01 ens3 0.37 0.23 0.04 0.03 0.00 0.00 0.00 0.00 09:45:59 09:27:01 lo 34.43 34.43 12.50 12.50 0.00 0.00 0.00 0.00 09:45:59 09:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:28:01 ens3 0.60 0.47 0.08 0.07 0.00 0.00 0.00 0.00 09:45:59 09:28:01 lo 3.70 3.70 2.47 2.47 0.00 0.00 0.00 0.00 09:45:59 09:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:29:01 ens3 1.88 0.75 0.52 0.39 0.00 0.00 0.00 0.00 09:45:59 09:29:01 lo 0.78 0.78 0.08 0.08 0.00 0.00 0.00 0.00 09:45:59 09:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:30:01 ens3 1.80 0.43 0.64 0.39 0.00 0.00 0.00 0.00 09:45:59 09:30:01 lo 0.40 0.40 0.03 0.03 0.00 0.00 0.00 0.00 09:45:59 09:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:31:01 ens3 2.27 2.30 1.29 1.09 0.00 0.00 0.00 0.00 09:45:59 09:31:01 lo 2.38 2.38 0.22 0.22 0.00 0.00 0.00 0.00 09:45:59 09:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:32:01 ens3 1.25 0.53 0.16 0.09 0.00 0.00 0.00 0.00 09:45:59 09:32:01 lo 37.21 37.21 33.96 33.96 0.00 0.00 0.00 0.00 09:45:59 09:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:33:01 ens3 1.65 1.40 0.51 0.44 0.00 0.00 0.00 0.00 09:45:59 09:33:01 lo 32.61 32.61 13.21 13.21 0.00 0.00 0.00 0.00 09:45:59 09:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:34:01 ens3 1.05 0.77 0.25 0.17 0.00 0.00 0.00 0.00 09:45:59 09:34:01 lo 8.87 8.87 7.84 7.84 0.00 0.00 0.00 0.00 09:45:59 09:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:35:01 ens3 0.95 0.78 0.17 0.15 0.00 0.00 0.00 0.00 09:45:59 09:35:01 lo 32.97 32.97 12.31 12.31 0.00 0.00 0.00 0.00 09:45:59 09:36:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:36:01 ens3 0.73 0.65 0.14 0.13 0.00 0.00 0.00 0.00 09:45:59 09:36:01 lo 12.43 12.43 5.41 5.41 0.00 0.00 0.00 0.00 09:45:59 09:37:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:37:01 ens3 0.80 0.57 0.12 0.11 0.00 0.00 0.00 0.00 09:45:59 09:37:01 lo 26.71 26.71 10.64 10.64 0.00 0.00 0.00 0.00 09:45:59 09:38:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:38:01 ens3 0.70 0.48 0.12 0.10 0.00 0.00 0.00 0.00 09:45:59 09:38:01 lo 15.49 15.49 5.73 5.73 0.00 0.00 0.00 0.00 09:45:59 09:39:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:39:01 ens3 1.90 0.97 0.59 0.39 0.00 0.00 0.00 0.00 09:45:59 09:39:01 lo 45.01 45.01 15.34 15.34 0.00 0.00 0.00 0.00 09:45:59 09:40:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:40:01 ens3 0.47 0.42 0.09 0.09 0.00 0.00 0.00 0.00 09:45:59 09:40:01 lo 33.88 33.88 11.14 11.14 0.00 0.00 0.00 0.00 09:45:59 09:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:41:01 ens3 1.67 0.92 0.22 0.15 0.00 0.00 0.00 0.00 09:45:59 09:41:01 lo 5.57 5.57 1.17 1.17 0.00 0.00 0.00 0.00 09:45:59 09:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:42:01 ens3 1.32 0.78 0.42 0.31 0.00 0.00 0.00 0.00 09:45:59 09:42:01 lo 43.14 43.14 21.45 21.45 0.00 0.00 0.00 0.00 09:45:59 09:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:43:01 ens3 1.37 0.77 0.22 0.15 0.00 0.00 0.00 0.00 09:45:59 09:43:01 lo 42.74 42.74 15.75 15.75 0.00 0.00 0.00 0.00 09:45:59 09:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:44:01 ens3 0.60 0.52 0.16 0.14 0.00 0.00 0.00 0.00 09:45:59 09:44:01 lo 86.25 86.25 29.66 29.66 0.00 0.00 0.00 0.00 09:45:59 09:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 09:45:01 ens3 11.06 13.96 59.72 3.06 0.00 0.00 0.00 0.00 09:45:59 09:45:01 lo 42.68 42.68 13.58 13.58 0.00 0.00 0.00 0.00 09:45:59 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:45:59 Average: ens3 16.35 12.14 195.33 2.01 0.00 0.00 0.00 0.00 09:45:59 Average: lo 20.16 20.16 9.27 9.27 0.00 0.00 0.00 0.00 09:45:59 09:45:59 09:45:59 ---> sar -P ALL: 09:45:59 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-1097) 10/25/24 _x86_64_ (4 CPU) 09:45:59 09:45:59 08:12:30 LINUX RESTART (4 CPU) 09:45:59 09:45:59 08:13:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 08:14:01 all 14.63 15.40 11.41 4.04 0.11 54.41 09:45:59 08:14:01 0 13.65 16.23 12.03 4.79 0.10 53.20 09:45:59 08:14:01 1 19.33 13.86 11.01 3.98 0.12 51.70 09:45:59 08:14:01 2 17.60 14.29 10.42 3.00 0.14 54.56 09:45:59 08:14:01 3 7.98 17.22 12.19 4.36 0.10 58.14 09:45:59 08:15:01 all 17.54 0.00 2.04 2.39 0.06 77.96 09:45:59 08:15:01 0 19.08 0.00 2.59 3.37 0.10 74.85 09:45:59 08:15:01 1 7.34 0.00 1.41 0.33 0.03 90.88 09:45:59 08:15:01 2 26.79 0.00 2.16 1.02 0.07 69.96 09:45:59 08:15:01 3 16.95 0.00 2.01 4.82 0.05 76.17 09:45:59 08:16:01 all 58.94 0.00 3.28 4.67 0.11 32.99 09:45:59 08:16:01 0 57.85 0.00 3.57 4.25 0.12 34.22 09:45:59 08:16:01 1 60.61 0.00 3.61 3.81 0.12 31.86 09:45:59 08:16:01 2 59.47 0.00 3.13 4.70 0.14 32.57 09:45:59 08:16:01 3 57.85 0.00 2.83 5.92 0.08 33.31 09:45:59 08:17:01 all 54.94 0.00 2.02 3.19 0.13 39.72 09:45:59 08:17:01 0 55.34 0.00 1.60 0.39 0.12 42.55 09:45:59 08:17:01 1 48.45 0.00 1.82 8.20 0.15 41.38 09:45:59 08:17:01 2 37.87 0.00 2.07 3.44 0.13 56.48 09:45:59 08:17:01 3 78.07 0.00 2.61 0.74 0.10 18.48 09:45:59 08:18:01 all 55.87 0.00 3.73 9.73 0.14 30.53 09:45:59 08:18:01 0 58.16 0.00 3.59 5.76 0.17 32.32 09:45:59 08:18:01 1 58.46 0.00 3.51 13.41 0.14 24.48 09:45:59 08:18:01 2 52.19 0.00 4.74 12.82 0.12 30.13 09:45:59 08:18:01 3 54.65 0.00 3.06 6.96 0.13 35.20 09:45:59 08:19:01 all 81.45 0.00 3.73 7.74 0.14 6.95 09:45:59 08:19:01 0 78.93 0.00 3.21 5.87 0.14 11.84 09:45:59 08:19:01 1 83.76 0.00 3.42 6.85 0.13 5.83 09:45:59 08:19:01 2 80.87 0.00 4.29 8.56 0.13 6.14 09:45:59 08:19:01 3 82.22 0.00 4.00 9.68 0.14 3.97 09:45:59 08:20:01 all 76.39 0.00 2.63 2.97 0.14 17.88 09:45:59 08:20:01 0 76.89 0.00 2.57 1.95 0.12 18.47 09:45:59 08:20:01 1 76.61 0.00 3.36 2.30 0.15 17.58 09:45:59 08:20:01 2 75.03 0.00 2.18 4.47 0.12 18.20 09:45:59 08:20:01 3 77.03 0.00 2.40 3.14 0.15 17.27 09:45:59 08:21:01 all 46.11 0.00 1.51 0.42 0.10 51.85 09:45:59 08:21:01 0 44.89 0.00 1.37 0.20 0.10 53.43 09:45:59 08:21:01 1 44.75 0.00 1.31 0.05 0.10 53.80 09:45:59 08:21:01 2 45.51 0.00 1.58 0.89 0.12 51.90 09:45:59 08:21:01 3 49.29 0.00 1.78 0.55 0.10 48.27 09:45:59 08:22:01 all 30.72 0.00 1.13 0.81 0.11 67.23 09:45:59 08:22:01 0 33.51 0.00 0.85 0.15 0.10 65.38 09:45:59 08:22:01 1 26.51 0.00 1.16 0.74 0.12 71.47 09:45:59 08:22:01 2 31.53 0.00 1.43 1.68 0.10 65.26 09:45:59 08:22:01 3 31.30 0.00 1.08 0.66 0.13 66.83 09:45:59 08:23:13 all 25.12 0.00 1.14 11.26 0.13 62.35 09:45:59 08:23:13 0 23.83 0.00 1.01 0.23 0.13 74.81 09:45:59 08:23:13 1 30.39 0.00 1.37 0.33 0.11 67.80 09:45:59 08:23:13 2 22.27 0.00 1.11 23.49 0.14 52.99 09:45:59 08:23:13 3 23.99 0.00 1.07 20.97 0.13 53.84 09:45:59 08:24:01 all 32.15 0.00 1.17 8.71 0.12 57.85 09:45:59 08:24:01 0 36.09 0.00 1.42 3.01 0.17 59.31 09:45:59 08:24:01 1 25.08 0.00 1.44 0.00 0.11 73.38 09:45:59 08:24:01 2 32.52 0.00 1.05 14.16 0.08 52.19 09:45:59 08:24:01 3 34.86 0.00 0.78 17.65 0.11 46.61 09:45:59 09:45:59 08:24:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 08:25:01 all 0.48 0.00 0.21 0.02 0.10 99.18 09:45:59 08:25:01 0 0.59 0.00 0.29 0.00 0.10 99.02 09:45:59 08:25:01 1 0.61 0.00 0.22 0.00 0.12 99.05 09:45:59 08:25:01 2 0.42 0.00 0.17 0.05 0.08 99.28 09:45:59 08:25:01 3 0.32 0.00 0.18 0.03 0.10 99.36 09:45:59 08:26:01 all 55.13 0.00 2.04 0.08 0.12 42.64 09:45:59 08:26:01 0 57.45 0.00 1.91 0.03 0.12 40.49 09:45:59 08:26:01 1 50.13 0.00 1.86 0.08 0.12 47.81 09:45:59 08:26:01 2 57.38 0.00 1.91 0.17 0.10 40.44 09:45:59 08:26:01 3 55.57 0.00 2.47 0.02 0.15 41.79 09:45:59 08:27:01 all 22.57 0.00 0.84 0.36 0.11 76.11 09:45:59 08:27:01 0 22.67 0.00 0.97 0.07 0.13 76.17 09:45:59 08:27:01 1 22.75 0.00 0.72 0.22 0.10 76.21 09:45:59 08:27:01 2 20.97 0.00 0.84 1.16 0.10 76.93 09:45:59 08:27:01 3 23.89 0.00 0.85 0.00 0.12 75.15 09:45:59 08:28:01 all 8.74 0.00 0.55 0.05 0.11 90.55 09:45:59 08:28:01 0 8.99 0.00 0.55 0.00 0.12 90.35 09:45:59 08:28:01 1 8.58 0.00 0.52 0.07 0.10 90.73 09:45:59 08:28:01 2 7.88 0.00 0.59 0.13 0.12 91.28 09:45:59 08:28:01 3 9.49 0.00 0.55 0.00 0.12 89.84 09:45:59 08:29:01 all 2.73 0.00 0.36 0.01 0.09 96.81 09:45:59 08:29:01 0 3.01 0.00 0.33 0.00 0.10 96.55 09:45:59 08:29:01 1 3.11 0.00 0.52 0.00 0.08 96.29 09:45:59 08:29:01 2 2.53 0.00 0.39 0.03 0.08 96.97 09:45:59 08:29:01 3 2.27 0.00 0.18 0.00 0.10 97.44 09:45:59 08:30:01 all 14.89 0.00 0.98 0.23 0.10 83.80 09:45:59 08:30:01 0 14.02 0.00 0.85 0.02 0.08 85.02 09:45:59 08:30:01 1 14.04 0.00 0.96 0.13 0.08 84.79 09:45:59 08:30:01 2 11.86 0.00 0.87 0.45 0.10 86.73 09:45:59 08:30:01 3 19.65 0.00 1.26 0.30 0.13 78.66 09:45:59 08:31:01 all 52.33 0.00 1.77 2.17 0.12 43.60 09:45:59 08:31:01 0 52.40 0.00 1.88 4.84 0.13 40.75 09:45:59 08:31:01 1 55.86 0.00 1.63 0.12 0.12 42.28 09:45:59 08:31:01 2 46.62 0.00 2.01 3.69 0.12 47.56 09:45:59 08:31:01 3 54.46 0.00 1.58 0.03 0.12 43.81 09:45:59 08:32:01 all 7.21 0.00 0.40 0.07 0.08 92.25 09:45:59 08:32:01 0 6.84 0.00 0.42 0.00 0.07 92.68 09:45:59 08:32:01 1 7.17 0.00 0.40 0.03 0.07 92.33 09:45:59 08:32:01 2 7.80 0.00 0.38 0.18 0.07 91.57 09:45:59 08:32:01 3 7.02 0.00 0.38 0.07 0.12 92.41 09:45:59 08:33:01 all 3.11 0.00 0.34 0.07 0.09 96.38 09:45:59 08:33:01 0 3.05 0.00 0.37 0.08 0.10 96.40 09:45:59 08:33:01 1 2.70 0.00 0.37 0.00 0.07 96.87 09:45:59 08:33:01 2 2.53 0.00 0.37 0.20 0.10 96.80 09:45:59 08:33:01 3 4.17 0.00 0.27 0.00 0.10 95.47 09:45:59 08:34:01 all 38.20 0.00 1.23 0.60 0.10 59.87 09:45:59 08:34:01 0 38.99 0.00 0.77 0.42 0.08 59.73 09:45:59 08:34:01 1 36.65 0.00 1.34 0.17 0.08 61.75 09:45:59 08:34:01 2 36.23 0.00 1.21 1.48 0.10 60.98 09:45:59 08:34:01 3 40.92 0.00 1.61 0.34 0.12 57.01 09:45:59 08:35:01 all 4.70 0.00 0.32 0.02 0.08 94.88 09:45:59 08:35:01 0 4.12 0.00 0.40 0.02 0.08 95.37 09:45:59 08:35:01 1 4.78 0.00 0.20 0.00 0.08 94.93 09:45:59 08:35:01 2 5.35 0.00 0.27 0.03 0.07 94.29 09:45:59 08:35:01 3 4.54 0.00 0.40 0.02 0.10 94.94 09:45:59 09:45:59 08:35:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 08:36:01 all 30.91 0.00 1.16 0.86 0.09 66.98 09:45:59 08:36:01 0 32.12 0.00 1.57 0.00 0.08 66.23 09:45:59 08:36:01 1 27.85 0.00 1.00 0.45 0.08 70.62 09:45:59 08:36:01 2 32.23 0.00 1.22 2.98 0.10 63.47 09:45:59 08:36:01 3 31.44 0.00 0.85 0.00 0.10 67.60 09:45:59 08:37:01 all 24.85 0.00 1.00 0.09 0.09 73.97 09:45:59 08:37:01 0 21.20 0.00 0.92 0.02 0.08 77.77 09:45:59 08:37:01 1 24.49 0.00 0.97 0.00 0.08 74.45 09:45:59 08:37:01 2 31.67 0.00 1.17 0.32 0.08 66.75 09:45:59 08:37:01 3 22.05 0.00 0.94 0.03 0.10 76.88 09:45:59 08:38:01 all 21.70 0.00 0.76 0.46 0.09 76.99 09:45:59 08:38:01 0 18.21 0.00 0.67 0.02 0.10 81.00 09:45:59 08:38:01 1 22.53 0.00 0.59 0.47 0.08 76.33 09:45:59 08:38:01 2 23.47 0.00 0.82 0.69 0.10 74.92 09:45:59 08:38:01 3 22.60 0.00 0.97 0.65 0.08 75.69 09:45:59 08:39:01 all 56.10 0.00 1.71 0.23 0.12 41.85 09:45:59 08:39:01 0 57.97 0.00 1.65 0.02 0.12 40.25 09:45:59 08:39:01 1 56.43 0.00 1.42 0.40 0.12 41.63 09:45:59 08:39:01 2 52.73 0.00 2.00 0.44 0.13 44.70 09:45:59 08:39:01 3 57.27 0.00 1.76 0.05 0.12 40.80 09:45:59 08:40:01 all 26.09 0.00 0.87 0.31 0.10 72.63 09:45:59 08:40:01 0 24.96 0.00 0.90 0.02 0.10 74.02 09:45:59 08:40:01 1 26.49 0.00 0.99 0.07 0.10 72.36 09:45:59 08:40:01 2 25.65 0.00 0.65 0.02 0.08 73.59 09:45:59 08:40:01 3 27.26 0.00 0.96 1.12 0.10 70.56 09:45:59 08:41:01 all 2.80 0.00 0.17 0.02 0.07 96.94 09:45:59 08:41:01 0 2.97 0.00 0.17 0.00 0.07 96.80 09:45:59 08:41:01 1 2.90 0.00 0.12 0.00 0.07 96.92 09:45:59 08:41:01 2 2.52 0.00 0.20 0.00 0.07 97.21 09:45:59 08:41:01 3 2.83 0.00 0.18 0.08 0.08 96.82 09:45:59 08:42:01 all 0.91 0.00 0.12 0.00 0.09 98.88 09:45:59 08:42:01 0 1.64 0.00 0.07 0.00 0.07 98.23 09:45:59 08:42:01 1 0.52 0.00 0.13 0.00 0.07 99.28 09:45:59 08:42:01 2 0.38 0.00 0.13 0.00 0.08 99.40 09:45:59 08:42:01 3 1.08 0.00 0.15 0.02 0.13 98.62 09:45:59 08:43:01 all 0.42 0.00 0.12 0.01 0.08 99.36 09:45:59 08:43:01 0 0.74 0.00 0.17 0.02 0.10 98.98 09:45:59 08:43:01 1 0.37 0.00 0.12 0.00 0.07 99.45 09:45:59 08:43:01 2 0.28 0.00 0.12 0.00 0.10 99.50 09:45:59 08:43:01 3 0.30 0.00 0.08 0.02 0.07 99.53 09:45:59 08:44:01 all 0.67 0.00 0.16 0.00 0.07 99.10 09:45:59 08:44:01 0 0.71 0.00 0.19 0.02 0.08 99.01 09:45:59 08:44:01 1 0.60 0.00 0.20 0.00 0.07 99.13 09:45:59 08:44:01 2 0.74 0.00 0.10 0.00 0.07 99.10 09:45:59 08:44:01 3 0.62 0.00 0.15 0.00 0.07 99.16 09:45:59 08:45:01 all 30.17 0.00 0.96 0.25 0.10 68.54 09:45:59 08:45:01 0 26.95 0.00 0.87 0.10 0.10 71.98 09:45:59 08:45:01 1 31.72 0.00 0.85 0.20 0.10 67.13 09:45:59 08:45:01 2 30.79 0.00 1.22 0.13 0.08 67.77 09:45:59 08:45:01 3 31.19 0.00 0.89 0.55 0.10 67.27 09:45:59 08:46:01 all 28.47 0.00 1.08 0.28 0.09 70.09 09:45:59 08:46:01 0 29.47 0.00 0.97 0.02 0.08 69.47 09:45:59 08:46:01 1 25.98 0.00 0.88 0.05 0.07 73.02 09:45:59 08:46:01 2 28.68 0.00 1.37 0.42 0.12 69.41 09:45:59 08:46:01 3 29.74 0.00 1.09 0.65 0.08 68.44 09:45:59 09:45:59 08:46:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 08:47:01 all 8.48 0.00 0.54 0.03 0.07 90.87 09:45:59 08:47:01 0 7.70 0.00 0.60 0.02 0.07 91.61 09:45:59 08:47:01 1 8.45 0.00 0.48 0.05 0.08 90.93 09:45:59 08:47:01 2 9.29 0.00 0.65 0.03 0.07 89.97 09:45:59 08:47:01 3 8.49 0.00 0.43 0.03 0.08 90.96 09:45:59 08:48:01 all 59.95 0.00 1.79 0.56 0.13 37.57 09:45:59 08:48:01 0 60.91 0.00 1.86 0.05 0.13 37.05 09:45:59 08:48:01 1 60.98 0.00 1.98 1.59 0.13 35.32 09:45:59 08:48:01 2 58.20 0.00 1.86 0.23 0.12 39.59 09:45:59 08:48:01 3 59.72 0.00 1.47 0.37 0.12 38.32 09:45:59 08:49:01 all 5.86 0.00 0.36 0.01 0.09 93.69 09:45:59 08:49:01 0 5.58 0.00 0.47 0.02 0.08 93.85 09:45:59 08:49:01 1 6.22 0.00 0.32 0.03 0.10 93.33 09:45:59 08:49:01 2 5.98 0.00 0.26 0.00 0.10 93.65 09:45:59 08:49:01 3 5.64 0.00 0.38 0.00 0.07 93.91 09:45:59 08:50:01 all 38.69 0.00 1.10 0.26 0.11 59.84 09:45:59 08:50:01 0 37.88 0.00 1.12 0.00 0.10 60.89 09:45:59 08:50:01 1 39.68 0.00 0.87 0.49 0.10 58.85 09:45:59 08:50:01 2 40.02 0.00 1.31 0.44 0.12 58.12 09:45:59 08:50:01 3 37.16 0.00 1.11 0.13 0.12 61.48 09:45:59 08:51:01 all 27.90 0.00 0.94 0.02 0.10 71.05 09:45:59 08:51:01 0 29.25 0.00 1.09 0.02 0.08 69.56 09:45:59 08:51:01 1 29.66 0.00 1.12 0.03 0.10 69.09 09:45:59 08:51:01 2 28.36 0.00 0.75 0.00 0.08 70.81 09:45:59 08:51:01 3 24.29 0.00 0.81 0.02 0.12 74.76 09:45:59 08:52:01 all 26.85 0.00 0.78 0.30 0.09 71.98 09:45:59 08:52:01 0 26.63 0.00 0.50 0.00 0.08 72.79 09:45:59 08:52:01 1 25.63 0.00 0.94 1.16 0.08 72.19 09:45:59 08:52:01 2 27.90 0.00 0.89 0.00 0.10 71.11 09:45:59 08:52:01 3 27.25 0.00 0.80 0.03 0.10 71.81 09:45:59 08:53:01 all 4.76 0.00 0.23 0.01 0.08 94.91 09:45:59 08:53:01 0 4.63 0.00 0.22 0.02 0.07 95.07 09:45:59 08:53:01 1 4.51 0.00 0.18 0.03 0.07 95.21 09:45:59 08:53:01 2 4.75 0.00 0.22 0.00 0.08 94.95 09:45:59 08:53:01 3 5.16 0.00 0.32 0.00 0.10 94.42 09:45:59 08:54:01 all 26.09 0.00 0.97 0.02 0.10 72.82 09:45:59 08:54:01 0 26.85 0.00 1.25 0.02 0.10 71.78 09:45:59 08:54:01 1 27.78 0.00 0.59 0.02 0.10 71.51 09:45:59 08:54:01 2 26.10 0.00 1.15 0.05 0.10 72.60 09:45:59 08:54:01 3 23.63 0.00 0.90 0.00 0.08 75.39 09:45:59 08:55:01 all 32.17 0.00 0.87 0.27 0.10 66.59 09:45:59 08:55:01 0 32.61 0.00 0.73 0.05 0.08 66.53 09:45:59 08:55:01 1 32.56 0.00 1.10 1.05 0.10 65.19 09:45:59 08:55:01 2 32.41 0.00 0.78 0.00 0.10 66.71 09:45:59 08:55:01 3 31.10 0.00 0.88 0.00 0.10 67.92 09:45:59 08:56:01 all 2.19 0.00 0.23 0.03 0.08 97.46 09:45:59 08:56:01 0 1.98 0.00 0.23 0.05 0.08 97.65 09:45:59 08:56:01 1 2.05 0.00 0.28 0.03 0.08 97.55 09:45:59 08:56:01 2 2.77 0.00 0.13 0.00 0.05 97.05 09:45:59 08:56:01 3 1.97 0.00 0.28 0.03 0.12 97.60 09:45:59 08:57:01 all 3.17 0.00 0.33 0.02 0.07 96.42 09:45:59 08:57:01 0 2.94 0.00 0.27 0.03 0.07 96.69 09:45:59 08:57:01 1 3.06 0.00 0.33 0.03 0.05 96.52 09:45:59 08:57:01 2 3.48 0.00 0.38 0.00 0.08 96.06 09:45:59 08:57:01 3 3.20 0.00 0.32 0.00 0.08 96.40 09:45:59 09:45:59 08:57:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 08:58:01 all 3.08 0.00 0.33 0.01 0.08 96.50 09:45:59 08:58:01 0 3.85 0.00 0.35 0.02 0.08 95.71 09:45:59 08:58:01 1 2.52 0.00 0.27 0.02 0.07 97.13 09:45:59 08:58:01 2 3.18 0.00 0.40 0.00 0.10 96.32 09:45:59 08:58:01 3 2.75 0.00 0.32 0.00 0.07 96.87 09:45:59 08:59:01 all 1.78 0.00 0.25 0.01 0.08 97.88 09:45:59 08:59:01 0 1.87 0.00 0.27 0.02 0.07 97.78 09:45:59 08:59:01 1 1.89 0.00 0.27 0.02 0.08 97.74 09:45:59 08:59:01 2 1.57 0.00 0.23 0.00 0.07 98.13 09:45:59 08:59:01 3 1.81 0.00 0.23 0.00 0.08 97.88 09:45:59 09:00:01 all 1.49 0.00 0.27 0.00 0.07 98.17 09:45:59 09:00:01 0 1.59 0.00 0.12 0.00 0.07 98.23 09:45:59 09:00:01 1 0.98 0.00 0.15 0.02 0.03 98.82 09:45:59 09:00:01 2 1.48 0.00 0.35 0.00 0.08 98.08 09:45:59 09:00:01 3 1.91 0.00 0.45 0.00 0.08 97.56 09:45:59 09:01:01 all 2.22 0.00 0.31 0.01 0.07 97.39 09:45:59 09:01:01 0 2.40 0.00 0.20 0.02 0.07 97.32 09:45:59 09:01:01 1 2.10 0.00 0.45 0.03 0.08 97.33 09:45:59 09:01:01 2 1.88 0.00 0.30 0.00 0.07 97.75 09:45:59 09:01:01 3 2.49 0.00 0.30 0.00 0.07 97.15 09:45:59 09:02:01 all 14.07 0.00 0.81 0.09 0.08 84.95 09:45:59 09:02:01 0 14.40 0.00 1.12 0.10 0.07 84.31 09:45:59 09:02:01 1 15.43 0.00 0.85 0.23 0.10 83.39 09:45:59 09:02:01 2 11.14 0.00 0.68 0.02 0.07 88.09 09:45:59 09:02:01 3 15.31 0.00 0.60 0.00 0.08 84.00 09:45:59 09:03:01 all 41.89 0.00 1.20 0.33 0.11 56.47 09:45:59 09:03:01 0 42.36 0.00 0.80 0.07 0.10 56.67 09:45:59 09:03:01 1 43.86 0.00 1.40 1.22 0.10 53.42 09:45:59 09:03:01 2 38.04 0.00 1.34 0.03 0.13 60.46 09:45:59 09:03:01 3 43.31 0.00 1.27 0.00 0.10 55.33 09:45:59 09:04:01 all 3.48 0.00 0.28 0.01 0.08 96.16 09:45:59 09:04:01 0 3.75 0.00 0.33 0.00 0.08 95.83 09:45:59 09:04:01 1 3.53 0.00 0.33 0.02 0.08 96.03 09:45:59 09:04:01 2 3.16 0.00 0.25 0.02 0.07 96.51 09:45:59 09:04:01 3 3.46 0.00 0.20 0.00 0.08 96.25 09:45:59 09:05:01 all 5.55 0.00 0.40 0.03 0.08 93.92 09:45:59 09:05:01 0 6.48 0.00 0.45 0.00 0.08 92.99 09:45:59 09:05:01 1 5.55 0.00 0.40 0.03 0.08 93.93 09:45:59 09:05:01 2 4.64 0.00 0.40 0.10 0.08 94.77 09:45:59 09:05:01 3 5.54 0.00 0.37 0.00 0.08 94.01 09:45:59 09:06:01 all 2.37 0.00 0.30 0.01 0.08 97.25 09:45:59 09:06:01 0 2.66 0.00 0.23 0.02 0.07 97.02 09:45:59 09:06:01 1 2.42 0.00 0.40 0.02 0.08 97.08 09:45:59 09:06:01 2 1.90 0.00 0.23 0.00 0.07 97.80 09:45:59 09:06:01 3 2.49 0.00 0.32 0.00 0.10 97.09 09:45:59 09:07:01 all 2.45 0.00 0.29 0.01 0.08 97.17 09:45:59 09:07:01 0 2.43 0.00 0.30 0.02 0.10 97.16 09:45:59 09:07:01 1 2.45 0.00 0.47 0.03 0.08 96.97 09:45:59 09:07:01 2 2.66 0.00 0.20 0.00 0.07 97.08 09:45:59 09:07:01 3 2.27 0.00 0.20 0.00 0.07 97.46 09:45:59 09:08:01 all 2.63 0.00 0.30 0.00 0.07 97.00 09:45:59 09:08:01 0 2.66 0.00 0.33 0.00 0.07 96.94 09:45:59 09:08:01 1 2.82 0.00 0.28 0.02 0.08 96.80 09:45:59 09:08:01 2 2.48 0.00 0.32 0.00 0.08 97.12 09:45:59 09:08:01 3 2.55 0.00 0.27 0.00 0.05 97.13 09:45:59 09:45:59 09:08:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 09:09:01 all 4.62 0.00 0.32 0.01 0.08 94.97 09:45:59 09:09:01 0 4.35 0.00 0.23 0.02 0.07 95.33 09:45:59 09:09:01 1 5.44 0.00 0.33 0.03 0.08 94.11 09:45:59 09:09:01 2 4.33 0.00 0.43 0.00 0.08 95.15 09:45:59 09:09:01 3 4.36 0.00 0.27 0.00 0.08 95.29 09:45:59 09:10:01 all 43.19 0.00 1.36 0.05 0.09 55.30 09:45:59 09:10:01 0 44.23 0.00 1.43 0.17 0.08 54.09 09:45:59 09:10:01 1 43.66 0.00 1.17 0.03 0.08 55.05 09:45:59 09:10:01 2 45.61 0.00 1.14 0.00 0.10 53.15 09:45:59 09:10:01 3 39.28 0.00 1.70 0.00 0.10 58.92 09:45:59 09:11:01 all 21.36 0.00 0.57 0.25 0.11 77.71 09:45:59 09:11:01 0 20.30 0.00 0.42 0.00 0.12 79.17 09:45:59 09:11:01 1 22.50 0.00 0.87 0.48 0.10 76.04 09:45:59 09:11:01 2 22.51 0.00 0.54 0.52 0.10 76.33 09:45:59 09:11:01 3 20.13 0.00 0.47 0.00 0.12 79.29 09:45:59 09:12:01 all 8.15 0.00 0.27 0.01 0.08 91.49 09:45:59 09:12:01 0 8.34 0.00 0.23 0.02 0.07 91.34 09:45:59 09:12:01 1 8.19 0.00 0.25 0.02 0.08 91.46 09:45:59 09:12:01 2 8.04 0.00 0.30 0.00 0.08 91.57 09:45:59 09:12:01 3 8.04 0.00 0.28 0.00 0.08 91.59 09:45:59 09:13:01 all 3.67 0.00 0.21 0.02 0.10 96.01 09:45:59 09:13:01 0 3.07 0.00 0.22 0.03 0.10 96.58 09:45:59 09:13:01 1 3.04 0.00 0.23 0.03 0.10 96.59 09:45:59 09:13:01 2 5.24 0.00 0.20 0.00 0.10 94.47 09:45:59 09:13:01 3 3.31 0.00 0.18 0.00 0.08 96.42 09:45:59 09:14:01 all 5.15 0.00 0.26 0.01 0.10 94.48 09:45:59 09:14:01 0 4.76 0.00 0.29 0.02 0.10 94.83 09:45:59 09:14:01 1 5.14 0.00 0.22 0.02 0.10 94.52 09:45:59 09:14:01 2 5.76 0.00 0.13 0.00 0.08 94.02 09:45:59 09:14:01 3 4.93 0.00 0.40 0.00 0.10 94.57 09:45:59 09:15:01 all 2.88 0.00 0.21 0.21 0.09 96.61 09:45:59 09:15:01 0 3.17 0.00 0.22 0.49 0.08 96.05 09:45:59 09:15:01 1 2.84 0.00 0.23 0.37 0.08 96.48 09:45:59 09:15:01 2 2.64 0.00 0.22 0.00 0.10 97.04 09:45:59 09:15:01 3 2.89 0.00 0.17 0.00 0.08 96.86 09:45:59 09:16:01 all 1.89 0.00 0.20 0.03 0.08 97.80 09:45:59 09:16:01 0 1.83 0.00 0.28 0.08 0.08 97.72 09:45:59 09:16:01 1 2.66 0.00 0.17 0.02 0.08 97.07 09:45:59 09:16:01 2 1.66 0.00 0.18 0.00 0.10 98.06 09:45:59 09:16:01 3 1.41 0.00 0.18 0.00 0.07 98.34 09:45:59 09:17:01 all 1.93 0.00 0.20 0.02 0.08 97.78 09:45:59 09:17:01 0 1.86 0.00 0.28 0.02 0.08 97.75 09:45:59 09:17:01 1 2.18 0.00 0.17 0.05 0.07 97.54 09:45:59 09:17:01 2 2.12 0.00 0.20 0.00 0.07 97.61 09:45:59 09:17:01 3 1.54 0.00 0.15 0.00 0.08 98.22 09:45:59 09:18:01 all 33.41 0.00 1.20 0.03 0.09 65.27 09:45:59 09:18:01 0 34.08 0.00 1.11 0.07 0.08 64.67 09:45:59 09:18:01 1 33.99 0.00 1.17 0.03 0.10 64.71 09:45:59 09:18:01 2 30.43 0.00 1.04 0.00 0.10 68.43 09:45:59 09:18:01 3 35.15 0.00 1.49 0.00 0.08 63.28 09:45:59 09:19:01 all 30.74 0.00 0.94 0.35 0.10 67.87 09:45:59 09:19:01 0 32.52 0.00 0.65 0.00 0.12 66.71 09:45:59 09:19:01 1 30.10 0.00 1.45 1.33 0.10 67.01 09:45:59 09:19:01 2 31.58 0.00 0.90 0.05 0.08 67.38 09:45:59 09:19:01 3 28.76 0.00 0.75 0.00 0.12 70.37 09:45:59 09:45:59 09:19:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 09:20:01 all 8.80 0.00 0.48 0.08 0.13 90.51 09:45:59 09:20:01 0 8.49 0.00 0.37 0.00 0.17 90.98 09:45:59 09:20:01 1 8.68 0.00 0.50 0.28 0.12 90.41 09:45:59 09:20:01 2 8.76 0.00 0.50 0.00 0.12 90.62 09:45:59 09:20:01 3 9.27 0.00 0.55 0.03 0.12 90.02 09:45:59 09:21:01 all 4.35 0.00 0.28 0.01 0.09 95.26 09:45:59 09:21:01 0 4.13 0.00 0.28 0.02 0.12 95.46 09:45:59 09:21:01 1 4.23 0.00 0.32 0.00 0.10 95.36 09:45:59 09:21:01 2 4.79 0.00 0.23 0.03 0.07 94.88 09:45:59 09:21:01 3 4.27 0.00 0.28 0.00 0.08 95.37 09:45:59 09:22:01 all 2.47 0.00 0.24 0.02 0.08 97.19 09:45:59 09:22:01 0 2.90 0.00 0.35 0.03 0.10 96.61 09:45:59 09:22:01 1 2.02 0.00 0.23 0.00 0.05 97.70 09:45:59 09:22:01 2 2.59 0.00 0.17 0.03 0.10 97.11 09:45:59 09:22:01 3 2.37 0.00 0.20 0.00 0.08 97.34 09:45:59 09:23:01 all 2.87 0.00 0.29 0.04 0.10 96.71 09:45:59 09:23:01 0 2.85 0.00 0.28 0.00 0.10 96.76 09:45:59 09:23:01 1 2.66 0.00 0.27 0.00 0.08 96.99 09:45:59 09:23:01 2 3.05 0.00 0.30 0.13 0.12 96.39 09:45:59 09:23:01 3 2.91 0.00 0.30 0.02 0.08 96.69 09:45:59 09:24:01 all 1.40 0.00 0.29 0.01 0.11 98.20 09:45:59 09:24:01 0 1.23 0.00 0.35 0.00 0.10 98.32 09:45:59 09:24:01 1 1.35 0.00 0.43 0.00 0.10 98.12 09:45:59 09:24:01 2 1.19 0.00 0.20 0.02 0.12 98.48 09:45:59 09:24:01 3 1.81 0.00 0.17 0.03 0.12 97.87 09:45:59 09:25:01 all 3.02 0.00 0.27 0.01 0.09 96.62 09:45:59 09:25:01 0 3.23 0.00 0.28 0.00 0.08 96.40 09:45:59 09:25:01 1 2.95 0.00 0.25 0.00 0.07 96.73 09:45:59 09:25:01 2 2.72 0.00 0.27 0.02 0.08 96.91 09:45:59 09:25:01 3 3.16 0.00 0.28 0.02 0.12 96.42 09:45:59 09:26:01 all 1.25 0.00 0.27 0.00 0.11 98.36 09:45:59 09:26:01 0 1.59 0.00 0.38 0.00 0.10 97.93 09:45:59 09:26:01 1 1.30 0.00 0.27 0.00 0.10 98.33 09:45:59 09:26:01 2 1.04 0.00 0.18 0.02 0.10 98.66 09:45:59 09:26:01 3 1.09 0.00 0.25 0.00 0.13 98.53 09:45:59 09:27:01 all 2.99 0.00 0.36 0.01 0.08 96.55 09:45:59 09:27:01 0 2.44 0.00 0.35 0.03 0.10 97.08 09:45:59 09:27:01 1 3.32 0.00 0.40 0.00 0.08 96.20 09:45:59 09:27:01 2 4.02 0.00 0.33 0.02 0.08 95.54 09:45:59 09:27:01 3 2.19 0.00 0.37 0.00 0.07 97.37 09:45:59 09:28:01 all 0.94 0.00 0.26 0.01 0.09 98.70 09:45:59 09:28:01 0 1.10 0.00 0.15 0.02 0.08 98.65 09:45:59 09:28:01 1 1.14 0.00 0.42 0.00 0.12 98.33 09:45:59 09:28:01 2 1.08 0.00 0.23 0.02 0.08 98.58 09:45:59 09:28:01 3 0.43 0.00 0.25 0.00 0.08 99.23 09:45:59 09:29:01 all 0.51 0.00 0.25 0.01 0.10 99.13 09:45:59 09:29:01 0 0.32 0.00 0.30 0.00 0.10 99.28 09:45:59 09:29:01 1 0.87 0.00 0.27 0.00 0.10 98.77 09:45:59 09:29:01 2 0.38 0.00 0.23 0.03 0.10 99.25 09:45:59 09:29:01 3 0.48 0.00 0.20 0.00 0.10 99.22 09:45:59 09:30:01 all 0.49 0.00 0.23 0.05 0.09 99.14 09:45:59 09:30:01 0 0.65 0.00 0.28 0.08 0.08 98.90 09:45:59 09:30:01 1 0.58 0.00 0.28 0.00 0.08 99.05 09:45:59 09:30:01 2 0.45 0.00 0.23 0.12 0.15 99.05 09:45:59 09:30:01 3 0.28 0.00 0.10 0.02 0.05 99.55 09:45:59 09:45:59 09:30:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 09:31:01 all 32.24 0.00 1.46 0.24 0.09 65.97 09:45:59 09:31:01 0 27.52 0.00 1.56 0.44 0.08 70.40 09:45:59 09:31:01 1 39.22 0.00 1.62 0.44 0.10 58.62 09:45:59 09:31:01 2 31.41 0.00 1.24 0.00 0.08 67.26 09:45:59 09:31:01 3 30.79 0.00 1.40 0.10 0.08 67.63 09:45:59 09:32:01 all 36.55 0.00 1.19 1.25 0.12 60.89 09:45:59 09:32:01 0 34.01 0.00 1.38 2.77 0.10 61.73 09:45:59 09:32:01 1 38.12 0.00 1.08 0.13 0.12 60.55 09:45:59 09:32:01 2 36.97 0.00 1.28 1.98 0.13 59.63 09:45:59 09:32:01 3 37.09 0.00 1.03 0.12 0.12 61.64 09:45:59 09:33:01 all 5.29 0.00 0.31 0.03 0.08 94.30 09:45:59 09:33:01 0 4.76 0.00 0.32 0.07 0.07 94.79 09:45:59 09:33:01 1 4.77 0.00 0.37 0.03 0.10 94.73 09:45:59 09:33:01 2 6.02 0.00 0.23 0.00 0.08 93.66 09:45:59 09:33:01 3 5.61 0.00 0.30 0.00 0.08 94.01 09:45:59 09:34:01 all 50.32 0.00 1.65 0.27 0.10 47.65 09:45:59 09:34:01 0 51.78 0.00 1.95 0.60 0.12 45.55 09:45:59 09:34:01 1 51.73 0.00 1.34 0.13 0.10 46.70 09:45:59 09:34:01 2 49.28 0.00 1.66 0.32 0.10 48.65 09:45:59 09:34:01 3 48.52 0.00 1.64 0.03 0.10 49.71 09:45:59 09:35:01 all 13.72 0.00 0.41 0.01 0.10 85.75 09:45:59 09:35:01 0 13.37 0.00 0.40 0.02 0.08 86.13 09:45:59 09:35:01 1 14.19 0.00 0.49 0.02 0.12 85.19 09:45:59 09:35:01 2 14.02 0.00 0.42 0.00 0.08 85.48 09:45:59 09:35:01 3 13.32 0.00 0.35 0.00 0.13 86.20 09:45:59 09:36:01 all 2.51 0.00 0.21 0.02 0.09 97.18 09:45:59 09:36:01 0 2.61 0.00 0.25 0.05 0.10 96.99 09:45:59 09:36:01 1 2.70 0.00 0.20 0.02 0.10 96.98 09:45:59 09:36:01 2 2.31 0.00 0.15 0.00 0.08 97.45 09:45:59 09:36:01 3 2.42 0.00 0.22 0.00 0.07 97.30 09:45:59 09:37:01 all 3.69 0.00 0.19 0.00 0.06 96.05 09:45:59 09:37:01 0 4.20 0.00 0.22 0.02 0.07 95.50 09:45:59 09:37:01 1 3.69 0.00 0.17 0.00 0.07 96.07 09:45:59 09:37:01 2 3.23 0.00 0.20 0.00 0.05 96.52 09:45:59 09:37:01 3 3.62 0.00 0.18 0.00 0.07 96.13 09:45:59 09:38:01 all 1.89 0.00 0.21 0.02 0.07 97.83 09:45:59 09:38:01 0 1.87 0.00 0.17 0.07 0.05 97.84 09:45:59 09:38:01 1 2.05 0.00 0.18 0.00 0.08 97.68 09:45:59 09:38:01 2 1.73 0.00 0.23 0.00 0.05 97.99 09:45:59 09:38:01 3 1.89 0.00 0.23 0.00 0.08 97.79 09:45:59 09:39:01 all 5.08 0.00 0.28 0.01 0.07 94.56 09:45:59 09:39:01 0 4.78 0.00 0.25 0.03 0.07 94.87 09:45:59 09:39:01 1 5.10 0.00 0.29 0.02 0.08 94.51 09:45:59 09:39:01 2 5.65 0.00 0.32 0.00 0.07 93.97 09:45:59 09:39:01 3 4.79 0.00 0.27 0.00 0.07 94.88 09:45:59 09:40:01 all 3.09 0.00 0.24 0.01 0.08 96.59 09:45:59 09:40:01 0 3.22 0.00 0.32 0.02 0.08 96.36 09:45:59 09:40:01 1 2.87 0.00 0.18 0.02 0.08 96.85 09:45:59 09:40:01 2 3.15 0.00 0.25 0.00 0.07 96.54 09:45:59 09:40:01 3 3.12 0.00 0.20 0.00 0.07 96.61 09:45:59 09:41:01 all 39.74 0.00 1.37 0.10 0.09 58.70 09:45:59 09:41:01 0 41.17 0.00 1.36 0.03 0.07 57.37 09:45:59 09:41:01 1 38.22 0.00 1.22 0.12 0.10 60.34 09:45:59 09:41:01 2 40.83 0.00 1.85 0.15 0.10 57.07 09:45:59 09:41:01 3 38.73 0.00 1.07 0.08 0.08 60.03 09:45:59 09:45:59 09:41:01 CPU %user %nice %system %iowait %steal %idle 09:45:59 09:42:01 all 29.14 0.00 0.79 0.55 0.12 69.39 09:45:59 09:42:01 0 29.42 0.00 0.72 0.42 0.12 69.31 09:45:59 09:42:01 1 27.60 0.00 0.80 1.32 0.17 70.11 09:45:59 09:42:01 2 30.17 0.00 0.67 0.13 0.10 68.93 09:45:59 09:42:01 3 29.38 0.00 0.97 0.34 0.10 69.21 09:45:59 09:43:01 all 6.47 0.00 0.31 0.06 0.10 93.07 09:45:59 09:43:01 0 7.68 0.00 0.30 0.15 0.08 91.79 09:45:59 09:43:01 1 6.66 0.00 0.22 0.07 0.10 92.96 09:45:59 09:43:01 2 5.78 0.00 0.40 0.02 0.12 93.68 09:45:59 09:43:01 3 5.73 0.00 0.32 0.00 0.08 93.87 09:45:59 09:44:01 all 8.00 0.00 0.37 0.44 0.09 91.10 09:45:59 09:44:01 0 8.52 0.00 0.42 0.00 0.08 90.98 09:45:59 09:44:01 1 7.58 0.00 0.35 1.57 0.08 90.41 09:45:59 09:44:01 2 7.97 0.00 0.37 0.08 0.10 91.48 09:45:59 09:44:01 3 7.93 0.00 0.35 0.08 0.08 91.55 09:45:59 09:45:01 all 10.96 0.00 0.70 0.15 0.10 88.09 09:45:59 09:45:01 0 8.45 0.00 0.57 0.02 0.12 90.85 09:45:59 09:45:01 1 9.45 0.00 0.76 0.42 0.10 89.27 09:45:59 09:45:01 2 8.94 0.00 0.72 0.07 0.10 90.17 09:45:59 09:45:01 3 16.99 0.00 0.74 0.08 0.10 82.09 09:45:59 Average: all 18.19 0.17 0.89 0.74 0.09 79.91 09:45:59 Average: 0 18.19 0.17 0.89 0.45 0.09 80.20 09:45:59 Average: 1 18.17 0.15 0.89 0.60 0.09 80.10 09:45:59 Average: 2 17.97 0.15 0.90 1.05 0.09 79.83 09:45:59 Average: 3 18.45 0.19 0.89 0.88 0.10 79.50 09:45:59 09:45:59 09:45:59