08:58:53 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/113558 08:58:53 Running as SYSTEM 08:58:53 [EnvInject] - Loading node environment variables. 08:58:54 Building remotely on prd-ubuntu2004-docker-4c-16g-23743 (ubuntu2004-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 08:58:54 [ssh-agent] Looking for ssh-agent implementation... 08:58:54 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 08:58:54 $ ssh-agent 08:58:54 SSH_AUTH_SOCK=/tmp/ssh-VJq9I4UC13VX/agent.12580 08:58:54 SSH_AGENT_PID=12584 08:58:54 [ssh-agent] Started. 08:58:54 Running ssh-add (command line suppressed) 08:58:54 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_4321021524660271582.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_4321021524660271582.key) 08:58:54 [ssh-agent] Using credentials jenkins (jenkins-ssh) 08:58:54 The recommended git tool is: NONE 08:58:57 using credential jenkins-ssh 08:58:57 Wiping out workspace first. 08:58:57 Cloning the remote Git repository 08:58:57 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 08:58:57 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 08:58:58 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 08:58:58 > git --version # timeout=10 08:58:58 > git --version # 'git version 2.25.1' 08:58:58 using GIT_SSH to set credentials jenkins-ssh 08:58:58 Verifying host key using known hosts file 08:58:58 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:58:58 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 08:59:01 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 08:59:01 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 08:59:01 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 08:59:01 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 08:59:01 using GIT_SSH to set credentials jenkins-ssh 08:59:01 Verifying host key using known hosts file 08:59:01 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:59:01 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/58/113558/3 # timeout=10 08:59:02 > git rev-parse b07cdd94fd167d2c7c5707c357cdb1211c4ace9f^{commit} # timeout=10 08:59:02 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 08:59:02 Checking out Revision b07cdd94fd167d2c7c5707c357cdb1211c4ace9f (refs/changes/58/113558/3) 08:59:02 > git config core.sparsecheckout # timeout=10 08:59:02 > git checkout -f b07cdd94fd167d2c7c5707c357cdb1211c4ace9f # timeout=10 08:59:05 Commit message: "Link node id to node name conversion in TAPI" 08:59:05 > git rev-parse FETCH_HEAD^{commit} # timeout=10 08:59:05 > git rev-list --no-walk ee77c94d73171d4eb7a8f85abdfd387dc14ffd3a # timeout=10 08:59:05 > git remote # timeout=10 08:59:05 > git submodule init # timeout=10 08:59:05 > git submodule sync # timeout=10 08:59:05 > git config --get remote.origin.url # timeout=10 08:59:05 > git submodule init # timeout=10 08:59:05 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 08:59:05 ERROR: No submodules found. 08:59:06 provisioning config files... 08:59:06 copy managed file [npmrc] to file:/home/jenkins/.npmrc 08:59:06 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 08:59:06 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17402398671461802435.sh 08:59:06 ---> python-tools-install.sh 08:59:06 Setup pyenv: 08:59:06 * system (set by /opt/pyenv/version) 08:59:06 * 3.8.13 (set by /opt/pyenv/version) 08:59:06 * 3.9.13 (set by /opt/pyenv/version) 08:59:06 * 3.10.13 (set by /opt/pyenv/version) 08:59:06 * 3.11.7 (set by /opt/pyenv/version) 08:59:11 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-5ZTY 08:59:11 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 08:59:14 lf-activate-venv(): INFO: Installing: lftools 09:00:01 lf-activate-venv(): INFO: Adding /tmp/venv-5ZTY/bin to PATH 09:00:01 Generating Requirements File 09:00:23 Python 3.11.7 09:00:23 pip 24.2 from /tmp/venv-5ZTY/lib/python3.11/site-packages/pip (python 3.11) 09:00:23 appdirs==1.4.4 09:00:23 argcomplete==3.5.0 09:00:23 aspy.yaml==1.3.0 09:00:23 attrs==24.2.0 09:00:23 autopage==0.5.2 09:00:23 beautifulsoup4==4.12.3 09:00:23 boto3==1.35.21 09:00:23 botocore==1.35.21 09:00:23 bs4==0.0.2 09:00:23 cachetools==5.5.0 09:00:23 certifi==2024.8.30 09:00:23 cffi==1.17.1 09:00:23 cfgv==3.4.0 09:00:23 chardet==5.2.0 09:00:23 charset-normalizer==3.3.2 09:00:23 click==8.1.7 09:00:23 cliff==4.7.0 09:00:23 cmd2==2.4.3 09:00:23 cryptography==3.3.2 09:00:23 debtcollector==3.0.0 09:00:23 decorator==5.1.1 09:00:23 defusedxml==0.7.1 09:00:23 Deprecated==1.2.14 09:00:23 distlib==0.3.8 09:00:23 dnspython==2.6.1 09:00:23 docker==4.2.2 09:00:23 dogpile.cache==1.3.3 09:00:23 email_validator==2.2.0 09:00:23 filelock==3.16.1 09:00:23 future==1.0.0 09:00:23 gitdb==4.0.11 09:00:23 GitPython==3.1.43 09:00:23 google-auth==2.34.0 09:00:23 httplib2==0.22.0 09:00:23 identify==2.6.1 09:00:23 idna==3.10 09:00:23 importlib-resources==1.5.0 09:00:23 iso8601==2.1.0 09:00:23 Jinja2==3.1.4 09:00:23 jmespath==1.0.1 09:00:23 jsonpatch==1.33 09:00:23 jsonpointer==3.0.0 09:00:23 jsonschema==4.23.0 09:00:23 jsonschema-specifications==2023.12.1 09:00:23 keystoneauth1==5.8.0 09:00:23 kubernetes==30.1.0 09:00:23 lftools==0.37.10 09:00:23 lxml==5.3.0 09:00:23 MarkupSafe==2.1.5 09:00:23 msgpack==1.1.0 09:00:23 multi_key_dict==2.0.3 09:00:23 munch==4.0.0 09:00:23 netaddr==1.3.0 09:00:23 netifaces==0.11.0 09:00:23 niet==1.4.2 09:00:23 nodeenv==1.9.1 09:00:23 oauth2client==4.1.3 09:00:23 oauthlib==3.2.2 09:00:23 openstacksdk==4.0.0 09:00:23 os-client-config==2.1.0 09:00:23 os-service-types==1.7.0 09:00:23 osc-lib==3.1.0 09:00:23 oslo.config==9.6.0 09:00:23 oslo.context==5.6.0 09:00:23 oslo.i18n==6.4.0 09:00:23 oslo.log==6.1.2 09:00:23 oslo.serialization==5.5.0 09:00:23 oslo.utils==7.3.0 09:00:23 packaging==24.1 09:00:23 pbr==6.1.0 09:00:23 platformdirs==4.3.6 09:00:23 prettytable==3.11.0 09:00:23 pyasn1==0.6.1 09:00:23 pyasn1_modules==0.4.1 09:00:23 pycparser==2.22 09:00:23 pygerrit2==2.0.15 09:00:23 PyGithub==2.4.0 09:00:23 PyJWT==2.9.0 09:00:23 PyNaCl==1.5.0 09:00:23 pyparsing==2.4.7 09:00:23 pyperclip==1.9.0 09:00:23 pyrsistent==0.20.0 09:00:23 python-cinderclient==9.6.0 09:00:23 python-dateutil==2.9.0.post0 09:00:23 python-heatclient==4.0.0 09:00:23 python-jenkins==1.8.2 09:00:23 python-keystoneclient==5.5.0 09:00:23 python-magnumclient==4.7.0 09:00:23 python-openstackclient==7.1.1 09:00:23 python-swiftclient==4.6.0 09:00:23 PyYAML==6.0.2 09:00:23 referencing==0.35.1 09:00:23 requests==2.32.3 09:00:23 requests-oauthlib==2.0.0 09:00:23 requestsexceptions==1.4.0 09:00:23 rfc3986==2.0.0 09:00:23 rpds-py==0.20.0 09:00:23 rsa==4.9 09:00:23 ruamel.yaml==0.18.6 09:00:23 ruamel.yaml.clib==0.2.8 09:00:23 s3transfer==0.10.2 09:00:23 simplejson==3.19.3 09:00:23 six==1.16.0 09:00:23 smmap==5.0.1 09:00:23 soupsieve==2.6 09:00:23 stevedore==5.3.0 09:00:23 tabulate==0.9.0 09:00:23 toml==0.10.2 09:00:23 tomlkit==0.13.2 09:00:23 tqdm==4.66.5 09:00:23 typing_extensions==4.12.2 09:00:23 tzdata==2024.1 09:00:23 urllib3==1.26.20 09:00:23 virtualenv==20.26.5 09:00:23 wcwidth==0.2.13 09:00:23 websocket-client==1.8.0 09:00:23 wrapt==1.16.0 09:00:23 xdg==6.0.0 09:00:23 xmltodict==0.13.0 09:00:23 yq==3.4.3 09:00:23 [EnvInject] - Injecting environment variables from a build step. 09:00:23 [EnvInject] - Injecting as environment variables the properties content 09:00:23 PYTHON=python3 09:00:23 09:00:23 [EnvInject] - Variables injected successfully. 09:00:23 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins14866306082917529985.sh 09:00:24 ---> tox-install.sh 09:00:24 + source /home/jenkins/lf-env.sh 09:00:24 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 09:00:24 ++ mktemp -d /tmp/venv-XXXX 09:00:24 + lf_venv=/tmp/venv-8A5m 09:00:24 + local venv_file=/tmp/.os_lf_venv 09:00:24 + local python=python3 09:00:24 + local options 09:00:24 + local set_path=true 09:00:24 + local install_args= 09:00:24 ++ 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 09:00:24 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:00:24 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:00:24 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 09:00:24 + true 09:00:24 + case $1 in 09:00:24 + venv_file=/tmp/.toxenv 09:00:24 + shift 2 09:00:24 + true 09:00:24 + case $1 in 09:00:24 + shift 09:00:24 + break 09:00:24 + case $python in 09:00:24 + local pkg_list= 09:00:24 + [[ -d /opt/pyenv ]] 09:00:24 + echo 'Setup pyenv:' 09:00:24 Setup pyenv: 09:00:24 + export PYENV_ROOT=/opt/pyenv 09:00:24 + PYENV_ROOT=/opt/pyenv 09:00:24 + 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 09:00:24 + 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 09:00:24 + pyenv versions 09:00:24 system 09:00:24 3.8.13 09:00:24 3.9.13 09:00:24 3.10.13 09:00:24 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:00:24 + command -v pyenv 09:00:24 ++ pyenv init - --no-rehash 09:00:24 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 09:00:24 for i in ${!paths[@]}; do 09:00:24 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 09:00:24 fi; done; 09:00:24 echo "${paths[*]}"'\'')" 09:00:24 export PATH="/opt/pyenv/shims:${PATH}" 09:00:24 export PYENV_SHELL=bash 09:00:24 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 09:00:24 pyenv() { 09:00:24 local command 09:00:24 command="${1:-}" 09:00:24 if [ "$#" -gt 0 ]; then 09:00:24 shift 09:00:24 fi 09:00:24 09:00:24 case "$command" in 09:00:24 rehash|shell) 09:00:24 eval "$(pyenv "sh-$command" "$@")" 09:00:24 ;; 09:00:24 *) 09:00:24 command pyenv "$command" "$@" 09:00:24 ;; 09:00:24 esac 09:00:24 }' 09:00:24 +++ bash --norc -ec 'IFS=:; paths=($PATH); 09:00:24 for i in ${!paths[@]}; do 09:00:24 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 09:00:24 fi; done; 09:00:24 echo "${paths[*]}"' 09:00:24 ++ 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 09:00:24 ++ 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 09:00:24 ++ 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 09:00:24 ++ export PYENV_SHELL=bash 09:00:24 ++ PYENV_SHELL=bash 09:00:24 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 09:00:24 +++ complete -F _pyenv pyenv 09:00:24 ++ lf-pyver python3 09:00:24 ++ local py_version_xy=python3 09:00:24 ++ local py_version_xyz= 09:00:24 ++ pyenv versions 09:00:24 ++ local command 09:00:24 ++ command=versions 09:00:24 ++ '[' 1 -gt 0 ']' 09:00:24 ++ shift 09:00:24 ++ case "$command" in 09:00:24 ++ command pyenv versions 09:00:24 ++ pyenv versions 09:00:24 ++ sed 's/^[ *]* //' 09:00:24 ++ awk '{ print $1 }' 09:00:24 ++ grep -E '^[0-9.]*[0-9]$' 09:00:24 ++ [[ ! -s /tmp/.pyenv_versions ]] 09:00:24 +++ grep '^3' /tmp/.pyenv_versions 09:00:24 +++ sort -V 09:00:24 +++ tail -n 1 09:00:24 ++ py_version_xyz=3.11.7 09:00:24 ++ [[ -z 3.11.7 ]] 09:00:24 ++ echo 3.11.7 09:00:24 ++ return 0 09:00:24 + pyenv local 3.11.7 09:00:24 + local command 09:00:24 + command=local 09:00:24 + '[' 2 -gt 0 ']' 09:00:24 + shift 09:00:24 + case "$command" in 09:00:24 + command pyenv local 3.11.7 09:00:24 + pyenv local 3.11.7 09:00:24 + for arg in "$@" 09:00:24 + case $arg in 09:00:24 + pkg_list+='tox ' 09:00:24 + for arg in "$@" 09:00:24 + case $arg in 09:00:24 + pkg_list+='virtualenv ' 09:00:24 + for arg in "$@" 09:00:24 + case $arg in 09:00:24 + pkg_list+='urllib3~=1.26.15 ' 09:00:24 + [[ -f /tmp/.toxenv ]] 09:00:24 + [[ ! -f /tmp/.toxenv ]] 09:00:24 + [[ -n '' ]] 09:00:24 + python3 -m venv /tmp/venv-8A5m 09:00:28 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-8A5m' 09:00:28 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-8A5m 09:00:28 + echo /tmp/venv-8A5m 09:00:28 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 09:00:28 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 09:00:28 + /tmp/venv-8A5m/bin/python3 -m pip install --upgrade --quiet pip virtualenv 09:00:31 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 09:00:31 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 09:00:31 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 09:00:31 + /tmp/venv-8A5m/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 09:00:33 + type python3 09:00:33 + true 09:00:33 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-8A5m/bin to PATH' 09:00:33 lf-activate-venv(): INFO: Adding /tmp/venv-8A5m/bin to PATH 09:00:33 + PATH=/tmp/venv-8A5m/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 09:00:33 + return 0 09:00:33 + python3 --version 09:00:33 Python 3.11.7 09:00:33 + python3 -m pip --version 09:00:34 pip 24.2 from /tmp/venv-8A5m/lib/python3.11/site-packages/pip (python 3.11) 09:00:34 + python3 -m pip freeze 09:00:34 cachetools==5.5.0 09:00:34 chardet==5.2.0 09:00:34 colorama==0.4.6 09:00:34 distlib==0.3.8 09:00:34 filelock==3.16.1 09:00:34 packaging==24.1 09:00:34 platformdirs==4.3.6 09:00:34 pluggy==1.5.0 09:00:34 pyproject-api==1.7.2 09:00:34 tox==4.19.0 09:00:34 urllib3==1.26.20 09:00:34 virtualenv==20.26.5 09:00:34 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins10579144863728062264.sh 09:00:34 [EnvInject] - Injecting environment variables from a build step. 09:00:34 [EnvInject] - Injecting as environment variables the properties content 09:00:34 PARALLEL=True 09:00:34 09:00:34 [EnvInject] - Variables injected successfully. 09:00:34 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins18100661133237964124.sh 09:00:34 ---> tox-run.sh 09:00:34 + 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 09:00:34 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 09:00:34 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 09:00:34 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 09:00:34 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 09:00:34 + source /home/jenkins/lf-env.sh 09:00:34 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 09:00:34 ++ mktemp -d /tmp/venv-XXXX 09:00:34 + lf_venv=/tmp/venv-GsME 09:00:34 + local venv_file=/tmp/.os_lf_venv 09:00:34 + local python=python3 09:00:34 + local options 09:00:34 + local set_path=true 09:00:34 + local install_args= 09:00:34 ++ 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 09:00:34 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:00:34 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:00:34 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 09:00:34 + true 09:00:34 + case $1 in 09:00:34 + venv_file=/tmp/.toxenv 09:00:34 + shift 2 09:00:34 + true 09:00:34 + case $1 in 09:00:34 + shift 09:00:34 + break 09:00:34 + case $python in 09:00:34 + local pkg_list= 09:00:34 + [[ -d /opt/pyenv ]] 09:00:34 + echo 'Setup pyenv:' 09:00:34 Setup pyenv: 09:00:34 + export PYENV_ROOT=/opt/pyenv 09:00:34 + PYENV_ROOT=/opt/pyenv 09:00:34 + 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 09:00:34 + 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 09:00:34 + pyenv versions 09:00:34 system 09:00:34 3.8.13 09:00:34 3.9.13 09:00:34 3.10.13 09:00:34 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:00:34 + command -v pyenv 09:00:34 ++ pyenv init - --no-rehash 09:00:34 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 09:00:34 for i in ${!paths[@]}; do 09:00:34 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 09:00:34 fi; done; 09:00:34 echo "${paths[*]}"'\'')" 09:00:34 export PATH="/opt/pyenv/shims:${PATH}" 09:00:34 export PYENV_SHELL=bash 09:00:34 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 09:00:34 pyenv() { 09:00:34 local command 09:00:34 command="${1:-}" 09:00:34 if [ "$#" -gt 0 ]; then 09:00:34 shift 09:00:34 fi 09:00:34 09:00:34 case "$command" in 09:00:34 rehash|shell) 09:00:34 eval "$(pyenv "sh-$command" "$@")" 09:00:34 ;; 09:00:34 *) 09:00:34 command pyenv "$command" "$@" 09:00:34 ;; 09:00:34 esac 09:00:34 }' 09:00:34 +++ bash --norc -ec 'IFS=:; paths=($PATH); 09:00:34 for i in ${!paths[@]}; do 09:00:34 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 09:00:34 fi; done; 09:00:34 echo "${paths[*]}"' 09:00:34 ++ 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 09:00:34 ++ 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 09:00:34 ++ 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 09:00:34 ++ export PYENV_SHELL=bash 09:00:34 ++ PYENV_SHELL=bash 09:00:34 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 09:00:34 +++ complete -F _pyenv pyenv 09:00:34 ++ lf-pyver python3 09:00:34 ++ local py_version_xy=python3 09:00:34 ++ local py_version_xyz= 09:00:34 ++ pyenv versions 09:00:34 ++ local command 09:00:34 ++ sed 's/^[ *]* //' 09:00:34 ++ command=versions 09:00:34 ++ '[' 1 -gt 0 ']' 09:00:34 ++ shift 09:00:34 ++ case "$command" in 09:00:34 ++ command pyenv versions 09:00:34 ++ pyenv versions 09:00:34 ++ awk '{ print $1 }' 09:00:34 ++ grep -E '^[0-9.]*[0-9]$' 09:00:34 ++ [[ ! -s /tmp/.pyenv_versions ]] 09:00:34 +++ grep '^3' /tmp/.pyenv_versions 09:00:34 +++ sort -V 09:00:34 +++ tail -n 1 09:00:34 ++ py_version_xyz=3.11.7 09:00:34 ++ [[ -z 3.11.7 ]] 09:00:34 ++ echo 3.11.7 09:00:34 ++ return 0 09:00:34 + pyenv local 3.11.7 09:00:34 + local command 09:00:34 + command=local 09:00:34 + '[' 2 -gt 0 ']' 09:00:34 + shift 09:00:34 + case "$command" in 09:00:34 + command pyenv local 3.11.7 09:00:34 + pyenv local 3.11.7 09:00:34 + for arg in "$@" 09:00:34 + case $arg in 09:00:34 + pkg_list+='tox ' 09:00:34 + for arg in "$@" 09:00:34 + case $arg in 09:00:34 + pkg_list+='virtualenv ' 09:00:34 + for arg in "$@" 09:00:34 + case $arg in 09:00:34 + pkg_list+='urllib3~=1.26.15 ' 09:00:34 + [[ -f /tmp/.toxenv ]] 09:00:34 ++ cat /tmp/.toxenv 09:00:34 + lf_venv=/tmp/venv-8A5m 09:00:34 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8A5m from' file:/tmp/.toxenv 09:00:34 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8A5m from file:/tmp/.toxenv 09:00:34 + /tmp/venv-8A5m/bin/python3 -m pip install --upgrade --quiet pip virtualenv 09:00:35 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 09:00:35 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 09:00:35 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 09:00:35 + /tmp/venv-8A5m/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 09:00:36 + type python3 09:00:36 + true 09:00:36 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-8A5m/bin to PATH' 09:00:36 lf-activate-venv(): INFO: Adding /tmp/venv-8A5m/bin to PATH 09:00:36 + PATH=/tmp/venv-8A5m/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 09:00:36 + return 0 09:00:36 + [[ -d /opt/pyenv ]] 09:00:36 + echo '---> Setting up pyenv' 09:00:36 ---> Setting up pyenv 09:00:36 + export PYENV_ROOT=/opt/pyenv 09:00:36 + PYENV_ROOT=/opt/pyenv 09:00:36 + export PATH=/opt/pyenv/bin:/tmp/venv-8A5m/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 09:00:36 + PATH=/opt/pyenv/bin:/tmp/venv-8A5m/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 09:00:36 ++ pwd 09:00:37 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 09:00:37 + export PYTHONPATH 09:00:37 + export TOX_TESTENV_PASSENV=PYTHONPATH 09:00:37 + TOX_TESTENV_PASSENV=PYTHONPATH 09:00:37 + tox --version 09:00:37 4.19.0 from /tmp/venv-8A5m/lib/python3.11/site-packages/tox/__init__.py 09:00:37 + PARALLEL=True 09:00:37 + TOX_OPTIONS_LIST= 09:00:37 + [[ -n '' ]] 09:00:37 + case ${PARALLEL,,} in 09:00:37 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 09:00:37 + tox --parallel auto --parallel-live 09:00:37 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 09:00:38 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 09:00:38 checkbashisms: freeze> python -m pip freeze --all 09:00:38 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 09:00:38 docs: install_deps> python -I -m pip install -r docs/requirements.txt 09:00:39 checkbashisms: pip==24.2,setuptools==75.1.0,wheel==0.44.0 09:00:39 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 09:00:39 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)' 09:00:39 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 09:00:40 script ./reflectwarn.sh does not appear to have a #! interpreter line; 09:00:40 you may get strange results 09:00:40 checkbashisms: OK ✔ in 2.89 seconds 09:00:40 pre-commit: install_deps> python -I -m pip install pre-commit 09:00:43 pre-commit: freeze> python -m pip freeze --all 09:00:44 pre-commit: cfgv==3.4.0,distlib==0.3.8,filelock==3.16.1,identify==2.6.1,nodeenv==1.9.1,pip==24.2,platformdirs==4.3.6,pre-commit==3.8.0,PyYAML==6.0.2,setuptools==75.1.0,virtualenv==20.26.5,wheel==0.44.0 09:00:44 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 09:00:44 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)' 09:00:44 /usr/bin/cpan 09:00:44 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 09:00:44 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 09:00:44 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 09:00:45 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 09:00:45 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 09:00:46 buildcontroller: freeze> python -m pip freeze --all 09:00:46 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 09:00:46 buildcontroller: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:00:46 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 09:00:46 + update-java-alternatives -l 09:00:46 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 09:00:46 java-1.12.0-openjdk-amd64 1211 /usr/lib/jvm/java-1.12.0-openjdk-amd64 09:00:46 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 09:00:46 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 09:00:46 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64 09:00:46 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 09:00:46 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 09:00:46 + java -version 09:00:46 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 09:00:47 + JAVA_VER=21 09:00:47 + echo 21 09:00:47 21 09:00:47 + javac -version 09:00:47 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 09:00:47 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 09:00:47 [INFO] Once installed this environment will be reused. 09:00:47 [INFO] This may take a few minutes... 09:00:47 + JAVAC_VER=21 09:00:47 + echo 21 09:00:47 21 09:00:47 ok, java is 21 or newer 09:00:47 + [ 21 -ge 21 ] 09:00:47 + [ 21 -ge 21 ] 09:00:47 + echo ok, java is 21 or newer 09:00:47 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz -P /tmp 09:00:47 2024-09-18 09:00:47 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] 09:00:47 + sudo mkdir -p /opt 09:00:47 + sudo tar xf /tmp/apache-maven-3.9.8-bin.tar.gz -C /opt 09:00:48 + sudo ln -s /opt/apache-maven-3.9.8 /opt/maven 09:00:48 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 09:00:48 + mvn --version 09:00:48 Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) 09:00:48 Maven home: /opt/maven 09:00:48 Java version: 21.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 09:00:48 Default locale: en, platform encoding: UTF-8 09:00:48 OS name: "linux", version: "5.4.0-190-generic", arch: "amd64", family: "unix" 09:00:49 NOTE: Picked up JDK_JAVA_OPTIONS: 09:00:49 --add-opens=java.base/java.io=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.lang=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.net=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.nio=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.util=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:00:49 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:00:49 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:00:49 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:00:49 -Xlog:disable 09:00:51 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 09:00:51 [INFO] Once installed this environment will be reused. 09:00:51 [INFO] This may take a few minutes... 09:00:57 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 09:00:57 [INFO] Once installed this environment will be reused. 09:00:57 [INFO] This may take a few minutes... 09:01:01 [INFO] Installing environment for https://github.com/perltidy/perltidy. 09:01:01 [INFO] Once installed this environment will be reused. 09:01:01 [INFO] This may take a few minutes... 09:01:11 docs-linkcheck: freeze> python -m pip freeze --all 09:01:11 docs: freeze> python -m pip freeze --all 09:01:11 docs-linkcheck: alabaster==0.7.16,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.3.2,contourpy==1.3.0,cycler==0.12.1,docutils==0.20.1,fonttools==4.53.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==2.1.5,matplotlib==3.9.2,numpy==2.1.1,nwdiag==3.0.0,packaging==24.1,pillow==10.4.0,pip==24.2,Pygments==2.18.0,pyparsing==3.1.4,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.1.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==7.4.7,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==2.0.0,sphinx-tabs==3.4.5,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 09:01:11 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 09:01:11 docs: alabaster==0.7.16,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.3.2,contourpy==1.3.0,cycler==0.12.1,docutils==0.20.1,fonttools==4.53.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==2.1.5,matplotlib==3.9.2,numpy==2.1.1,nwdiag==3.0.0,packaging==24.1,pillow==10.4.0,pip==24.2,Pygments==2.18.0,pyparsing==3.1.4,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.1.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==7.4.7,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==2.0.0,sphinx-tabs==3.4.5,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 09:01:11 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 09:01:12 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/lib/python3.11/site-packages/sphinx/builders/linkcheck.py:86: RemovedInSphinx80Warning: The default value for 'linkcheck_report_timeouts_as_broken' will change to False in Sphinx 8, meaning that request timeouts will be reported with a new 'timeout' status, instead of as 'broken'. This is intended to provide more detail as to the failure mode. See https://github.com/sphinx-doc/sphinx/issues/11868 for details. 09:01:12 warnings.warn(deprecation_msg, RemovedInSphinx80Warning, stacklevel=1) 09:01:14 trim trailing whitespace.................................................Passed 09:01:14 Tabs remover.............................................................docs: OK ✔ in 36.84 seconds 09:01:14 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 09:01:14 Passed 09:01:14 autopep8.................................................................Passed 09:01:18 perltidy.................................................................Passed 09:01:19 docs-linkcheck: OK ✔ in 40.48 seconds 09:01:19 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 09:01:19 pylint: freeze> python -m pip freeze --all 09:01:19 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 09:01:19 [INFO] Once installed this environment will be reused. 09:01:19 [INFO] This may take a few minutes... 09:01:19 pylint: astroid==3.2.4,dill==0.3.8,isort==5.13.2,mccabe==0.7.0,pip==24.2,platformdirs==4.3.6,pylint==3.2.7,setuptools==75.1.0,tomlkit==0.13.2,wheel==0.44.0 09:01:19 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}$' '{}' + 09:01:26 gitlint..................................................................Passed 09:01:39 09:01:39 ------------------------------------ 09:01:39 Your code has been rated at 10.00/10 09:01:39 09:02:34 pre-commit: OK ✔ in 46.26 seconds 09:02:34 pylint: OK ✔ in 26.41 seconds 09:02:34 buildcontroller: OK ✔ in 1 minute 56.36 seconds 09:02:34 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 09:02:34 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 09:02:34 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 09:02:34 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 09:02:41 build_karaf_tests121: freeze> python -m pip freeze --all 09:02:41 sims: freeze> python -m pip freeze --all 09:02:41 build_karaf_tests221: freeze> python -m pip freeze --all 09:02:41 build_karaf_tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:02:41 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:02:41 sims: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:02:41 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 09:02:41 Using lighynode version 20.1.0.2 09:02:41 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 09:02:41 NOTE: Picked up JDK_JAVA_OPTIONS: 09:02:41 --add-opens=java.base/java.io=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.lang=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.net=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.nio=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.util=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:02:41 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:02:41 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:02:41 -Xlog:disable 09:02:41 build_karaf_tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:02:41 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:02:41 NOTE: Picked up JDK_JAVA_OPTIONS: 09:02:41 --add-opens=java.base/java.io=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.lang=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.net=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.nio=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.util=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:02:41 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:02:41 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:02:41 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:02:41 -Xlog:disable 09:02:49 sims: OK ✔ in 15.09 seconds 09:02:49 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 09:03:02 build_karaf_tests71: freeze> python -m pip freeze --all 09:03:02 build_karaf_tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:03:02 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:03:02 NOTE: Picked up JDK_JAVA_OPTIONS: 09:03:02 --add-opens=java.base/java.io=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.lang=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.net=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.nio=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.util=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:03:02 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:03:02 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:03:02 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:03:02 -Xlog:disable 09:03:53 build_karaf_tests121: OK ✔ in 1 minute 18.91 seconds 09:03:53 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 09:04:00 build_karaf_tests221: OK ✔ in 1 minute 24.84 seconds 09:04:00 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 09:04:15 build_karaf_tests71: OK ✔ in 1 minute 13.1 seconds 09:04:15 build_karaf_tests_hybrid: freeze> python -m pip freeze --all 09:04:15 tests_tapi: freeze> python -m pip freeze --all 09:04:15 build_karaf_tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:04:15 build_karaf_tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:04:15 NOTE: Picked up JDK_JAVA_OPTIONS: 09:04:15 --add-opens=java.base/java.io=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.lang=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.net=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.nio=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.util=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:04:15 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:04:15 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:04:15 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:04:15 -Xlog:disable 09:04:15 tests_tapi: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:04:15 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 09:04:15 using environment variables from ./karaf221.env 09:04:15 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 09:04:40 testsPCE: freeze> python -m pip freeze --all 09:04:40 testsPCE: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,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.53.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==2.1.5,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==10.4.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pyparsing==3.1.4,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 09:04:40 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 09:04:40 pytest -q transportpce_tests/pce/test01_pce.py 09:05:31 ............................................ [100%] 09:06:35 20 passed in 114.21s (0:01:54) 09:06:35 pytest -q transportpce_tests/pce/test02_pce_400G.py 09:06:36 ................. [100%] 09:07:17 9 passed in 42.09s 09:07:17 pytest -q transportpce_tests/pce/test03_gnpy.py 09:07:20 .............. [100%] 09:07:56 8 passed in 38.28s 09:07:56 pytest -q transportpce_tests/pce/test04_pce_bug_fix.py 09:08:05 ............ [100%] 09:08:10 50 passed in 234.41s (0:03:54) 09:08:10 pytest -q transportpce_tests/tapi/test02_full_topology.py 09:08:33 ... [100%] 09:08:38 3 passed in 41.64s 09:08:38 build_karaf_tests_hybrid: OK ✔ in 1 minute 10.82 seconds 09:08:38 testsPCE: OK ✔ in 6 minutes 4.36 seconds 09:08:38 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 09:08:44 tests121: freeze> python -m pip freeze --all 09:08:44 tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:08:44 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 09:08:44 using environment variables from ./karaf121.env 09:08:44 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 09:09:35 ...........FF.......................... [100%] 09:16:02 =================================== FAILURES =================================== 09:16:02 _____________ TransportPCEtesting.test_12_check_openroadm_topology _____________ 09:16:02 09:16:02 self = 09:16:02 09:16:02 def test_12_check_openroadm_topology(self): 09:16:02 response = test_utils.get_ietf_network_request('openroadm-topology', 'config') 09:16:02 self.assertEqual(response['status_code'], requests.codes.ok) 09:16:02 > self.assertEqual(len(response['network'][0]['node']), 13, 'There should be 13 openroadm nodes') 09:16:02 E AssertionError: 17 != 13 : There should be 13 openroadm nodes 09:16:02 09:16:02 transportpce_tests/tapi/test02_full_topology.py:272: AssertionError 09:16:02 ____________ TransportPCEtesting.test_13_get_tapi_topology_details _____________ 09:16:02 09:16:02 self = 09:16:02 09:16:02 def test_13_get_tapi_topology_details(self): 09:16:02 self.tapi_topo["topology-id"] = test_utils.T0_FULL_MULTILAYER_TOPO_UUID 09:16:02 response = test_utils.transportpce_api_rpc_request( 09:16:02 'tapi-topology', 'get-topology-details', self.tapi_topo) 09:16:02 time.sleep(2) 09:16:02 self.assertEqual(response['status_code'], requests.codes.ok) 09:16:02 > self.assertEqual(len(response['output']['topology']['node']), 8, 'There should be 8 TAPI nodes') 09:16:02 E AssertionError: 9 != 8 : There should be 8 TAPI nodes 09:16:02 09:16:02 transportpce_tests/tapi/test02_full_topology.py:282: AssertionError 09:16:02 =========================== short test summary info ============================ 09:16:02 FAILED transportpce_tests/tapi/test02_full_topology.py::TransportPCEtesting::test_12_check_openroadm_topology 09:16:02 FAILED transportpce_tests/tapi/test02_full_topology.py::TransportPCEtesting::test_13_get_tapi_topology_details 09:16:02 2 failed, 28 passed in 472.02s (0:07:52) 09:16:02 tests_tapi: exit 1 (706.98 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=30903 09:16:02 tests_tapi: FAIL ✖ in 12 minutes 3.87 seconds 09:16:02 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 09:16:03 FFFFFtests71: freeze> python -m pip freeze --all 09:16:08 tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:16:08 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 09:16:08 using environment variables from ./karaf71.env 09:16:08 pytest -q transportpce_tests/7.1/test01_portmapping.py 09:16:09 FFFFFFF [100%] 09:16:18 =================================== FAILURES =================================== 09:16:18 _______ TransportPCEPortMappingTesting.test_10_xpdr_portmapping_NETWORK1 _______ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 > sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:18 raise err 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:18 socket_options = [(6, 1, 1)] 09:16:18 09:16:18 def create_connection( 09:16:18 address: tuple[str, int], 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 source_address: tuple[str, int] | None = None, 09:16:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:18 ) -> socket.socket: 09:16:18 """Connect to *address* and return the socket object. 09:16:18 09:16:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:18 port)``) and return the socket object. Passing the optional 09:16:18 *timeout* parameter will set the timeout on the socket instance 09:16:18 before attempting to connect. If no *timeout* is supplied, the 09:16:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:18 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:18 for the socket to bind as a source address before making the connection. 09:16:18 An host of '' or port 0 tells the OS to use the default. 09:16:18 """ 09:16:18 09:16:18 host, port = address 09:16:18 if host.startswith("["): 09:16:18 host = host.strip("[]") 09:16:18 err = None 09:16:18 09:16:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:18 # The original create_connection function always returns all records. 09:16:18 family = allowed_gai_family() 09:16:18 09:16:18 try: 09:16:18 host.encode("idna") 09:16:18 except UnicodeError: 09:16:18 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:18 09:16:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:18 af, socktype, proto, canonname, sa = res 09:16:18 sock = None 09:16:18 try: 09:16:18 sock = socket.socket(af, socktype, proto) 09:16:18 09:16:18 # If provided, set socket level options before connecting. 09:16:18 _set_socket_options(sock, socket_options) 09:16:18 09:16:18 if timeout is not _DEFAULT_TIMEOUT: 09:16:18 sock.settimeout(timeout) 09:16:18 if source_address: 09:16:18 sock.bind(source_address) 09:16:18 > sock.connect(sa) 09:16:18 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1' 09:16:18 body = None 09:16:18 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='} 09:16:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 redirect = False, assert_same_host = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:18 decode_content = False, response_kw = {} 09:16:18 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) 09:16:18 destination_scheme = None, conn = None, release_this_conn = True 09:16:18 http_tunnel_required = False, err = None, clean_exit = False 09:16:18 09:16:18 def urlopen( # type: ignore[override] 09:16:18 self, 09:16:18 method: str, 09:16:18 url: str, 09:16:18 body: _TYPE_BODY | None = None, 09:16:18 headers: typing.Mapping[str, str] | None = None, 09:16:18 retries: Retry | bool | int | None = None, 09:16:18 redirect: bool = True, 09:16:18 assert_same_host: bool = True, 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 pool_timeout: int | None = None, 09:16:18 release_conn: bool | None = None, 09:16:18 chunked: bool = False, 09:16:18 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:18 preload_content: bool = True, 09:16:18 decode_content: bool = True, 09:16:18 **response_kw: typing.Any, 09:16:18 ) -> BaseHTTPResponse: 09:16:18 """ 09:16:18 Get a connection from the pool and perform an HTTP request. This is the 09:16:18 lowest level call for making a request, so you'll need to specify all 09:16:18 the raw details. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 More commonly, it's appropriate to use a convenience method 09:16:18 such as :meth:`request`. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 `release_conn` will only behave as expected if 09:16:18 `preload_content=False` because we want to make 09:16:18 `preload_content=False` the default behaviour someday soon without 09:16:18 breaking backwards compatibility. 09:16:18 09:16:18 :param method: 09:16:18 HTTP request method (such as GET, POST, PUT, etc.) 09:16:18 09:16:18 :param url: 09:16:18 The URL to perform the request on. 09:16:18 09:16:18 :param body: 09:16:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:18 09:16:18 :param headers: 09:16:18 Dictionary of custom headers to send, such as User-Agent, 09:16:18 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:18 these headers completely replace any pool-specific headers. 09:16:18 09:16:18 :param retries: 09:16:18 Configure the number of retries to allow before raising a 09:16:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:18 09:16:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:18 over different types of retries. 09:16:18 Pass an integer number to retry connection errors that many times, 09:16:18 but no other types of errors. Pass zero to never retry. 09:16:18 09:16:18 If ``False``, then retries are disabled and any exception is raised 09:16:18 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:18 the redirect response will be returned. 09:16:18 09:16:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:18 09:16:18 :param redirect: 09:16:18 If True, automatically handle redirects (status codes 301, 302, 09:16:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:18 will disable redirect, too. 09:16:18 09:16:18 :param assert_same_host: 09:16:18 If ``True``, will make sure that the host of the pool requests is 09:16:18 consistent else will raise HostChangedError. When ``False``, you can 09:16:18 use the pool on an HTTP proxy and request foreign hosts. 09:16:18 09:16:18 :param timeout: 09:16:18 If specified, overrides the default timeout for this one 09:16:18 request. It may be a float (in seconds) or an instance of 09:16:18 :class:`urllib3.util.Timeout`. 09:16:18 09:16:18 :param pool_timeout: 09:16:18 If set and the pool is set to block=True, then this method will 09:16:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:18 connection is available within the time period. 09:16:18 09:16:18 :param bool preload_content: 09:16:18 If True, the response's body will be preloaded into memory. 09:16:18 09:16:18 :param bool decode_content: 09:16:18 If True, will attempt to decode the body based on the 09:16:18 'content-encoding' header. 09:16:18 09:16:18 :param release_conn: 09:16:18 If False, then the urlopen call will not release the connection 09:16:18 back into the pool once a response is received (but will release if 09:16:18 you read the entire contents of the response such as when 09:16:18 `preload_content=True`). This is useful if you're not preloading 09:16:18 the response's content immediately. You will need to call 09:16:18 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:18 back into the pool. If None, it takes the value of ``preload_content`` 09:16:18 which defaults to ``True``. 09:16:18 09:16:18 :param bool chunked: 09:16:18 If True, urllib3 will send the body using chunked transfer 09:16:18 encoding. Otherwise, urllib3 will send the body using the standard 09:16:18 content-length form. Defaults to False. 09:16:18 09:16:18 :param int body_pos: 09:16:18 Position to seek to in file-like body in the event of a retry or 09:16:18 redirect. Typically this won't need to be set because urllib3 will 09:16:18 auto-populate the value when needed. 09:16:18 """ 09:16:18 parsed_url = parse_url(url) 09:16:18 destination_scheme = parsed_url.scheme 09:16:18 09:16:18 if headers is None: 09:16:18 headers = self.headers 09:16:18 09:16:18 if not isinstance(retries, Retry): 09:16:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:18 09:16:18 if release_conn is None: 09:16:18 release_conn = preload_content 09:16:18 09:16:18 # Check host 09:16:18 if assert_same_host and not self.is_same_host(url): 09:16:18 raise HostChangedError(self, url, retries) 09:16:18 09:16:18 # Ensure that the URL we're connecting to is properly encoded 09:16:18 if url.startswith("/"): 09:16:18 url = to_str(_encode_target(url)) 09:16:18 else: 09:16:18 url = to_str(parsed_url.url) 09:16:18 09:16:18 conn = None 09:16:18 09:16:18 # Track whether `conn` needs to be released before 09:16:18 # returning/raising/recursing. Update this variable if necessary, and 09:16:18 # leave `release_conn` constant throughout the function. That way, if 09:16:18 # the function recurses, the original value of `release_conn` will be 09:16:18 # passed down into the recursive call, and its value will be respected. 09:16:18 # 09:16:18 # See issue #651 [1] for details. 09:16:18 # 09:16:18 # [1] 09:16:18 release_this_conn = release_conn 09:16:18 09:16:18 http_tunnel_required = connection_requires_http_tunnel( 09:16:18 self.proxy, self.proxy_config, destination_scheme 09:16:18 ) 09:16:18 09:16:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:18 # have to copy the headers dict so we can safely change it without those 09:16:18 # changes being reflected in anyone else's copy. 09:16:18 if not http_tunnel_required: 09:16:18 headers = headers.copy() # type: ignore[attr-defined] 09:16:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:18 09:16:18 # Must keep the exception bound to a separate variable or else Python 3 09:16:18 # complains about UnboundLocalError. 09:16:18 err = None 09:16:18 09:16:18 # Keep track of whether we cleanly exited the except block. This 09:16:18 # ensures we do proper cleanup in finally. 09:16:18 clean_exit = False 09:16:18 09:16:18 # Rewind body position, if needed. Record current position 09:16:18 # for future rewinds in the event of a redirect/retry. 09:16:18 body_pos = set_file_position(body, body_pos) 09:16:18 09:16:18 try: 09:16:18 # Request a connection from the queue. 09:16:18 timeout_obj = self._get_timeout(timeout) 09:16:18 conn = self._get_conn(timeout=pool_timeout) 09:16:18 09:16:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:18 09:16:18 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:18 try: 09:16:18 self._prepare_proxy(conn) 09:16:18 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:18 self._raise_timeout( 09:16:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:18 ) 09:16:18 raise 09:16:18 09:16:18 # If we're going to release the connection in ``finally:``, then 09:16:18 # the response doesn't need to know about the connection. Otherwise 09:16:18 # it will also try to release it and we'll have a double-release 09:16:18 # mess. 09:16:18 response_conn = conn if not release_conn else None 09:16:18 09:16:18 # Make the request on the HTTPConnection object 09:16:18 > response = self._make_request( 09:16:18 conn, 09:16:18 method, 09:16:18 url, 09:16:18 timeout=timeout_obj, 09:16:18 body=body, 09:16:18 headers=headers, 09:16:18 chunked=chunked, 09:16:18 retries=retries, 09:16:18 response_conn=response_conn, 09:16:18 preload_content=preload_content, 09:16:18 decode_content=decode_content, 09:16:18 **response_kw, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:18 conn.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:18 self.endheaders() 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:18 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:18 self.send(msg) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:18 self.connect() 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:18 self.sock = self._new_conn() 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 except socket.gaierror as e: 09:16:18 raise NameResolutionError(self.host, self, e) from e 09:16:18 except SocketTimeout as e: 09:16:18 raise ConnectTimeoutError( 09:16:18 self, 09:16:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:18 ) from e 09:16:18 09:16:18 except OSError as e: 09:16:18 > raise NewConnectionError( 09:16:18 self, f"Failed to establish a new connection: {e}" 09:16:18 ) from e 09:16:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 request = , stream = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:18 proxies = OrderedDict() 09:16:18 09:16:18 def send( 09:16:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:18 ): 09:16:18 """Sends PreparedRequest object. Returns Response object. 09:16:18 09:16:18 :param request: The :class:`PreparedRequest ` being sent. 09:16:18 :param stream: (optional) Whether to stream the request content. 09:16:18 :param timeout: (optional) How long to wait for the server to send 09:16:18 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:18 read timeout) ` tuple. 09:16:18 :type timeout: float or tuple or urllib3 Timeout object 09:16:18 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:18 we verify the server's TLS certificate, or a string, in which case it 09:16:18 must be a path to a CA bundle to use 09:16:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:18 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:18 :rtype: requests.Response 09:16:18 """ 09:16:18 09:16:18 try: 09:16:18 conn = self.get_connection_with_tls_context( 09:16:18 request, verify, proxies=proxies, cert=cert 09:16:18 ) 09:16:18 except LocationValueError as e: 09:16:18 raise InvalidURL(e, request=request) 09:16:18 09:16:18 self.cert_verify(conn, request.url, verify, cert) 09:16:18 url = self.request_url(request, proxies) 09:16:18 self.add_headers( 09:16:18 request, 09:16:18 stream=stream, 09:16:18 timeout=timeout, 09:16:18 verify=verify, 09:16:18 cert=cert, 09:16:18 proxies=proxies, 09:16:18 ) 09:16:18 09:16:18 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:18 09:16:18 if isinstance(timeout, tuple): 09:16:18 try: 09:16:18 connect, read = timeout 09:16:18 timeout = TimeoutSauce(connect=connect, read=read) 09:16:18 except ValueError: 09:16:18 raise ValueError( 09:16:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:18 f"or a single float to set both timeouts to the same value." 09:16:18 ) 09:16:18 elif isinstance(timeout, TimeoutSauce): 09:16:18 pass 09:16:18 else: 09:16:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:18 09:16:18 try: 09:16:18 > resp = conn.urlopen( 09:16:18 method=request.method, 09:16:18 url=url, 09:16:18 body=request.body, 09:16:18 headers=request.headers, 09:16:18 redirect=False, 09:16:18 assert_same_host=False, 09:16:18 preload_content=False, 09:16:18 decode_content=False, 09:16:18 retries=self.max_retries, 09:16:18 timeout=timeout, 09:16:18 chunked=chunked, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:18 retries = retries.increment( 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1' 09:16:18 response = None 09:16:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:18 _pool = 09:16:18 _stacktrace = 09:16:18 09:16:18 def increment( 09:16:18 self, 09:16:18 method: str | None = None, 09:16:18 url: str | None = None, 09:16:18 response: BaseHTTPResponse | None = None, 09:16:18 error: Exception | None = None, 09:16:18 _pool: ConnectionPool | None = None, 09:16:18 _stacktrace: TracebackType | None = None, 09:16:18 ) -> Self: 09:16:18 """Return a new Retry object with incremented retry counters. 09:16:18 09:16:18 :param response: A response object, or None, if the server did not 09:16:18 return a response. 09:16:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:18 :param Exception error: An error encountered during the request, or 09:16:18 None if the response was received successfully. 09:16:18 09:16:18 :return: A new ``Retry`` object. 09:16:18 """ 09:16:18 if self.total is False and error: 09:16:18 # Disabled, indicate to re-raise the error. 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 09:16:18 total = self.total 09:16:18 if total is not None: 09:16:18 total -= 1 09:16:18 09:16:18 connect = self.connect 09:16:18 read = self.read 09:16:18 redirect = self.redirect 09:16:18 status_count = self.status 09:16:18 other = self.other 09:16:18 cause = "unknown" 09:16:18 status = None 09:16:18 redirect_location = None 09:16:18 09:16:18 if error and self._is_connection_error(error): 09:16:18 # Connect retry? 09:16:18 if connect is False: 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 elif connect is not None: 09:16:18 connect -= 1 09:16:18 09:16:18 elif error and self._is_read_error(error): 09:16:18 # Read retry? 09:16:18 if read is False or method is None or not self._is_method_retryable(method): 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 elif read is not None: 09:16:18 read -= 1 09:16:18 09:16:18 elif error: 09:16:18 # Other retry? 09:16:18 if other is not None: 09:16:18 other -= 1 09:16:18 09:16:18 elif response and response.get_redirect_location(): 09:16:18 # Redirect retry? 09:16:18 if redirect is not None: 09:16:18 redirect -= 1 09:16:18 cause = "too many redirects" 09:16:18 response_redirect_location = response.get_redirect_location() 09:16:18 if response_redirect_location: 09:16:18 redirect_location = response_redirect_location 09:16:18 status = response.status 09:16:18 09:16:18 else: 09:16:18 # Incrementing because of a server error like a 500 in 09:16:18 # status_forcelist and the given method is in the allowed_methods 09:16:18 cause = ResponseError.GENERIC_ERROR 09:16:18 if response and response.status: 09:16:18 if status_count is not None: 09:16:18 status_count -= 1 09:16:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:18 status = response.status 09:16:18 09:16:18 history = self.history + ( 09:16:18 RequestHistory(method, url, error, status, redirect_location), 09:16:18 ) 09:16:18 09:16:18 new_retry = self.new( 09:16:18 total=total, 09:16:18 connect=connect, 09:16:18 read=read, 09:16:18 redirect=redirect, 09:16:18 status=status_count, 09:16:18 other=other, 09:16:18 history=history, 09:16:18 ) 09:16:18 09:16:18 if new_retry.is_exhausted(): 09:16:18 reason = error or ResponseError(cause) 09:16:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:18 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')) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:18 09:16:18 During handling of the above exception, another exception occurred: 09:16:18 09:16:18 self = 09:16:18 09:16:18 def test_10_xpdr_portmapping_NETWORK1(self): 09:16:18 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-NETWORK1") 09:16:18 09:16:18 transportpce_tests/1.2.1/test01_portmapping.py:122: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 09:16:18 response = get_request(target_url) 09:16:18 transportpce_tests/common/test_utils.py:116: in get_request 09:16:18 return requests.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:18 return session.request(method=method, url=url, **kwargs) 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:18 resp = self.send(prep, **send_kwargs) 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:18 r = adapter.send(request, **kwargs) 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = 09:16:18 request = , stream = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:18 proxies = OrderedDict() 09:16:18 09:16:18 def send( 09:16:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:18 ): 09:16:18 """Sends PreparedRequest object. Returns Response object. 09:16:18 09:16:18 :param request: The :class:`PreparedRequest ` being sent. 09:16:18 :param stream: (optional) Whether to stream the request content. 09:16:18 :param timeout: (optional) How long to wait for the server to send 09:16:18 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:18 read timeout) ` tuple. 09:16:18 :type timeout: float or tuple or urllib3 Timeout object 09:16:18 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:18 we verify the server's TLS certificate, or a string, in which case it 09:16:18 must be a path to a CA bundle to use 09:16:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:18 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:18 :rtype: requests.Response 09:16:18 """ 09:16:18 09:16:18 try: 09:16:18 conn = self.get_connection_with_tls_context( 09:16:18 request, verify, proxies=proxies, cert=cert 09:16:18 ) 09:16:18 except LocationValueError as e: 09:16:18 raise InvalidURL(e, request=request) 09:16:18 09:16:18 self.cert_verify(conn, request.url, verify, cert) 09:16:18 url = self.request_url(request, proxies) 09:16:18 self.add_headers( 09:16:18 request, 09:16:18 stream=stream, 09:16:18 timeout=timeout, 09:16:18 verify=verify, 09:16:18 cert=cert, 09:16:18 proxies=proxies, 09:16:18 ) 09:16:18 09:16:18 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:18 09:16:18 if isinstance(timeout, tuple): 09:16:18 try: 09:16:18 connect, read = timeout 09:16:18 timeout = TimeoutSauce(connect=connect, read=read) 09:16:18 except ValueError: 09:16:18 raise ValueError( 09:16:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:18 f"or a single float to set both timeouts to the same value." 09:16:18 ) 09:16:18 elif isinstance(timeout, TimeoutSauce): 09:16:18 pass 09:16:18 else: 09:16:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:18 09:16:18 try: 09:16:18 resp = conn.urlopen( 09:16:18 method=request.method, 09:16:18 url=url, 09:16:18 body=request.body, 09:16:18 headers=request.headers, 09:16:18 redirect=False, 09:16:18 assert_same_host=False, 09:16:18 preload_content=False, 09:16:18 decode_content=False, 09:16:18 retries=self.max_retries, 09:16:18 timeout=timeout, 09:16:18 chunked=chunked, 09:16:18 ) 09:16:18 09:16:18 except (ProtocolError, OSError) as err: 09:16:18 raise ConnectionError(err, request=request) 09:16:18 09:16:18 except MaxRetryError as e: 09:16:18 if isinstance(e.reason, ConnectTimeoutError): 09:16:18 # TODO: Remove this in 3.0.0: see #2811 09:16:18 if not isinstance(e.reason, NewConnectionError): 09:16:18 raise ConnectTimeout(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, ResponseError): 09:16:18 raise RetryError(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, _ProxyError): 09:16:18 raise ProxyError(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, _SSLError): 09:16:18 # This branch is for urllib3 v1.22 and later. 09:16:18 raise SSLError(e, request=request) 09:16:18 09:16:18 > raise ConnectionError(e, request=request) 09:16:18 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')) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:18 ----------------------------- Captured stdout call ----------------------------- 09:16:18 execution of test_10_xpdr_portmapping_NETWORK1 09:16:18 _______ TransportPCEPortMappingTesting.test_11_xpdr_portmapping_NETWORK2 _______ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 > sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:18 raise err 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:18 socket_options = [(6, 1, 1)] 09:16:18 09:16:18 def create_connection( 09:16:18 address: tuple[str, int], 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 source_address: tuple[str, int] | None = None, 09:16:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:18 ) -> socket.socket: 09:16:18 """Connect to *address* and return the socket object. 09:16:18 09:16:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:18 port)``) and return the socket object. Passing the optional 09:16:18 *timeout* parameter will set the timeout on the socket instance 09:16:18 before attempting to connect. If no *timeout* is supplied, the 09:16:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:18 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:18 for the socket to bind as a source address before making the connection. 09:16:18 An host of '' or port 0 tells the OS to use the default. 09:16:18 """ 09:16:18 09:16:18 host, port = address 09:16:18 if host.startswith("["): 09:16:18 host = host.strip("[]") 09:16:18 err = None 09:16:18 09:16:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:18 # The original create_connection function always returns all records. 09:16:18 family = allowed_gai_family() 09:16:18 09:16:18 try: 09:16:18 host.encode("idna") 09:16:18 except UnicodeError: 09:16:18 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:18 09:16:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:18 af, socktype, proto, canonname, sa = res 09:16:18 sock = None 09:16:18 try: 09:16:18 sock = socket.socket(af, socktype, proto) 09:16:18 09:16:18 # If provided, set socket level options before connecting. 09:16:18 _set_socket_options(sock, socket_options) 09:16:18 09:16:18 if timeout is not _DEFAULT_TIMEOUT: 09:16:18 sock.settimeout(timeout) 09:16:18 if source_address: 09:16:18 sock.bind(source_address) 09:16:18 > sock.connect(sa) 09:16:18 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2' 09:16:18 body = None 09:16:18 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='} 09:16:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 redirect = False, assert_same_host = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:18 decode_content = False, response_kw = {} 09:16:18 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) 09:16:18 destination_scheme = None, conn = None, release_this_conn = True 09:16:18 http_tunnel_required = False, err = None, clean_exit = False 09:16:18 09:16:18 def urlopen( # type: ignore[override] 09:16:18 self, 09:16:18 method: str, 09:16:18 url: str, 09:16:18 body: _TYPE_BODY | None = None, 09:16:18 headers: typing.Mapping[str, str] | None = None, 09:16:18 retries: Retry | bool | int | None = None, 09:16:18 redirect: bool = True, 09:16:18 assert_same_host: bool = True, 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 pool_timeout: int | None = None, 09:16:18 release_conn: bool | None = None, 09:16:18 chunked: bool = False, 09:16:18 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:18 preload_content: bool = True, 09:16:18 decode_content: bool = True, 09:16:18 **response_kw: typing.Any, 09:16:18 ) -> BaseHTTPResponse: 09:16:18 """ 09:16:18 Get a connection from the pool and perform an HTTP request. This is the 09:16:18 lowest level call for making a request, so you'll need to specify all 09:16:18 the raw details. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 More commonly, it's appropriate to use a convenience method 09:16:18 such as :meth:`request`. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 `release_conn` will only behave as expected if 09:16:18 `preload_content=False` because we want to make 09:16:18 `preload_content=False` the default behaviour someday soon without 09:16:18 breaking backwards compatibility. 09:16:18 09:16:18 :param method: 09:16:18 HTTP request method (such as GET, POST, PUT, etc.) 09:16:18 09:16:18 :param url: 09:16:18 The URL to perform the request on. 09:16:18 09:16:18 :param body: 09:16:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:18 09:16:18 :param headers: 09:16:18 Dictionary of custom headers to send, such as User-Agent, 09:16:18 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:18 these headers completely replace any pool-specific headers. 09:16:18 09:16:18 :param retries: 09:16:18 Configure the number of retries to allow before raising a 09:16:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:18 09:16:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:18 over different types of retries. 09:16:18 Pass an integer number to retry connection errors that many times, 09:16:18 but no other types of errors. Pass zero to never retry. 09:16:18 09:16:18 If ``False``, then retries are disabled and any exception is raised 09:16:18 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:18 the redirect response will be returned. 09:16:18 09:16:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:18 09:16:18 :param redirect: 09:16:18 If True, automatically handle redirects (status codes 301, 302, 09:16:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:18 will disable redirect, too. 09:16:18 09:16:18 :param assert_same_host: 09:16:18 If ``True``, will make sure that the host of the pool requests is 09:16:18 consistent else will raise HostChangedError. When ``False``, you can 09:16:18 use the pool on an HTTP proxy and request foreign hosts. 09:16:18 09:16:18 :param timeout: 09:16:18 If specified, overrides the default timeout for this one 09:16:18 request. It may be a float (in seconds) or an instance of 09:16:18 :class:`urllib3.util.Timeout`. 09:16:18 09:16:18 :param pool_timeout: 09:16:18 If set and the pool is set to block=True, then this method will 09:16:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:18 connection is available within the time period. 09:16:18 09:16:18 :param bool preload_content: 09:16:18 If True, the response's body will be preloaded into memory. 09:16:18 09:16:18 :param bool decode_content: 09:16:18 If True, will attempt to decode the body based on the 09:16:18 'content-encoding' header. 09:16:18 09:16:18 :param release_conn: 09:16:18 If False, then the urlopen call will not release the connection 09:16:18 back into the pool once a response is received (but will release if 09:16:18 you read the entire contents of the response such as when 09:16:18 `preload_content=True`). This is useful if you're not preloading 09:16:18 the response's content immediately. You will need to call 09:16:18 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:18 back into the pool. If None, it takes the value of ``preload_content`` 09:16:18 which defaults to ``True``. 09:16:18 09:16:18 :param bool chunked: 09:16:18 If True, urllib3 will send the body using chunked transfer 09:16:18 encoding. Otherwise, urllib3 will send the body using the standard 09:16:18 content-length form. Defaults to False. 09:16:18 09:16:18 :param int body_pos: 09:16:18 Position to seek to in file-like body in the event of a retry or 09:16:18 redirect. Typically this won't need to be set because urllib3 will 09:16:18 auto-populate the value when needed. 09:16:18 """ 09:16:18 parsed_url = parse_url(url) 09:16:18 destination_scheme = parsed_url.scheme 09:16:18 09:16:18 if headers is None: 09:16:18 headers = self.headers 09:16:18 09:16:18 if not isinstance(retries, Retry): 09:16:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:18 09:16:18 if release_conn is None: 09:16:18 release_conn = preload_content 09:16:18 09:16:18 # Check host 09:16:18 if assert_same_host and not self.is_same_host(url): 09:16:18 raise HostChangedError(self, url, retries) 09:16:18 09:16:18 # Ensure that the URL we're connecting to is properly encoded 09:16:18 if url.startswith("/"): 09:16:18 url = to_str(_encode_target(url)) 09:16:18 else: 09:16:18 url = to_str(parsed_url.url) 09:16:18 09:16:18 conn = None 09:16:18 09:16:18 # Track whether `conn` needs to be released before 09:16:18 # returning/raising/recursing. Update this variable if necessary, and 09:16:18 # leave `release_conn` constant throughout the function. That way, if 09:16:18 # the function recurses, the original value of `release_conn` will be 09:16:18 # passed down into the recursive call, and its value will be respected. 09:16:18 # 09:16:18 # See issue #651 [1] for details. 09:16:18 # 09:16:18 # [1] 09:16:18 release_this_conn = release_conn 09:16:18 09:16:18 http_tunnel_required = connection_requires_http_tunnel( 09:16:18 self.proxy, self.proxy_config, destination_scheme 09:16:18 ) 09:16:18 09:16:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:18 # have to copy the headers dict so we can safely change it without those 09:16:18 # changes being reflected in anyone else's copy. 09:16:18 if not http_tunnel_required: 09:16:18 headers = headers.copy() # type: ignore[attr-defined] 09:16:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:18 09:16:18 # Must keep the exception bound to a separate variable or else Python 3 09:16:18 # complains about UnboundLocalError. 09:16:18 err = None 09:16:18 09:16:18 # Keep track of whether we cleanly exited the except block. This 09:16:18 # ensures we do proper cleanup in finally. 09:16:18 clean_exit = False 09:16:18 09:16:18 # Rewind body position, if needed. Record current position 09:16:18 # for future rewinds in the event of a redirect/retry. 09:16:18 body_pos = set_file_position(body, body_pos) 09:16:18 09:16:18 try: 09:16:18 # Request a connection from the queue. 09:16:18 timeout_obj = self._get_timeout(timeout) 09:16:18 conn = self._get_conn(timeout=pool_timeout) 09:16:18 09:16:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:18 09:16:18 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:18 try: 09:16:18 self._prepare_proxy(conn) 09:16:18 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:18 self._raise_timeout( 09:16:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:18 ) 09:16:18 raise 09:16:18 09:16:18 # If we're going to release the connection in ``finally:``, then 09:16:18 # the response doesn't need to know about the connection. Otherwise 09:16:18 # it will also try to release it and we'll have a double-release 09:16:18 # mess. 09:16:18 response_conn = conn if not release_conn else None 09:16:18 09:16:18 # Make the request on the HTTPConnection object 09:16:18 > response = self._make_request( 09:16:18 conn, 09:16:18 method, 09:16:18 url, 09:16:18 timeout=timeout_obj, 09:16:18 body=body, 09:16:18 headers=headers, 09:16:18 chunked=chunked, 09:16:18 retries=retries, 09:16:18 response_conn=response_conn, 09:16:18 preload_content=preload_content, 09:16:18 decode_content=decode_content, 09:16:18 **response_kw, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:18 conn.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:18 self.endheaders() 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:18 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:18 self.send(msg) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:18 self.connect() 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:18 self.sock = self._new_conn() 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 except socket.gaierror as e: 09:16:18 raise NameResolutionError(self.host, self, e) from e 09:16:18 except SocketTimeout as e: 09:16:18 raise ConnectTimeoutError( 09:16:18 self, 09:16:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:18 ) from e 09:16:18 09:16:18 except OSError as e: 09:16:18 > raise NewConnectionError( 09:16:18 self, f"Failed to establish a new connection: {e}" 09:16:18 ) from e 09:16:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 request = , stream = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:18 proxies = OrderedDict() 09:16:18 09:16:18 def send( 09:16:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:18 ): 09:16:18 """Sends PreparedRequest object. Returns Response object. 09:16:18 09:16:18 :param request: The :class:`PreparedRequest ` being sent. 09:16:18 :param stream: (optional) Whether to stream the request content. 09:16:18 :param timeout: (optional) How long to wait for the server to send 09:16:18 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:18 read timeout) ` tuple. 09:16:18 :type timeout: float or tuple or urllib3 Timeout object 09:16:18 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:18 we verify the server's TLS certificate, or a string, in which case it 09:16:18 must be a path to a CA bundle to use 09:16:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:18 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:18 :rtype: requests.Response 09:16:18 """ 09:16:18 09:16:18 try: 09:16:18 conn = self.get_connection_with_tls_context( 09:16:18 request, verify, proxies=proxies, cert=cert 09:16:18 ) 09:16:18 except LocationValueError as e: 09:16:18 raise InvalidURL(e, request=request) 09:16:18 09:16:18 self.cert_verify(conn, request.url, verify, cert) 09:16:18 url = self.request_url(request, proxies) 09:16:18 self.add_headers( 09:16:18 request, 09:16:18 stream=stream, 09:16:18 timeout=timeout, 09:16:18 verify=verify, 09:16:18 cert=cert, 09:16:18 proxies=proxies, 09:16:18 ) 09:16:18 09:16:18 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:18 09:16:18 if isinstance(timeout, tuple): 09:16:18 try: 09:16:18 connect, read = timeout 09:16:18 timeout = TimeoutSauce(connect=connect, read=read) 09:16:18 except ValueError: 09:16:18 raise ValueError( 09:16:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:18 f"or a single float to set both timeouts to the same value." 09:16:18 ) 09:16:18 elif isinstance(timeout, TimeoutSauce): 09:16:18 pass 09:16:18 else: 09:16:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:18 09:16:18 try: 09:16:18 > resp = conn.urlopen( 09:16:18 method=request.method, 09:16:18 url=url, 09:16:18 body=request.body, 09:16:18 headers=request.headers, 09:16:18 redirect=False, 09:16:18 assert_same_host=False, 09:16:18 preload_content=False, 09:16:18 decode_content=False, 09:16:18 retries=self.max_retries, 09:16:18 timeout=timeout, 09:16:18 chunked=chunked, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:18 retries = retries.increment( 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2' 09:16:18 response = None 09:16:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:18 _pool = 09:16:18 _stacktrace = 09:16:18 09:16:18 def increment( 09:16:18 self, 09:16:18 method: str | None = None, 09:16:18 url: str | None = None, 09:16:18 response: BaseHTTPResponse | None = None, 09:16:18 error: Exception | None = None, 09:16:18 _pool: ConnectionPool | None = None, 09:16:18 _stacktrace: TracebackType | None = None, 09:16:18 ) -> Self: 09:16:18 """Return a new Retry object with incremented retry counters. 09:16:18 09:16:18 :param response: A response object, or None, if the server did not 09:16:18 return a response. 09:16:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:18 :param Exception error: An error encountered during the request, or 09:16:18 None if the response was received successfully. 09:16:18 09:16:18 :return: A new ``Retry`` object. 09:16:18 """ 09:16:18 if self.total is False and error: 09:16:18 # Disabled, indicate to re-raise the error. 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 09:16:18 total = self.total 09:16:18 if total is not None: 09:16:18 total -= 1 09:16:18 09:16:18 connect = self.connect 09:16:18 read = self.read 09:16:18 redirect = self.redirect 09:16:18 status_count = self.status 09:16:18 other = self.other 09:16:18 cause = "unknown" 09:16:18 status = None 09:16:18 redirect_location = None 09:16:18 09:16:18 if error and self._is_connection_error(error): 09:16:18 # Connect retry? 09:16:18 if connect is False: 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 elif connect is not None: 09:16:18 connect -= 1 09:16:18 09:16:18 elif error and self._is_read_error(error): 09:16:18 # Read retry? 09:16:18 if read is False or method is None or not self._is_method_retryable(method): 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 elif read is not None: 09:16:18 read -= 1 09:16:18 09:16:18 elif error: 09:16:18 # Other retry? 09:16:18 if other is not None: 09:16:18 other -= 1 09:16:18 09:16:18 elif response and response.get_redirect_location(): 09:16:18 # Redirect retry? 09:16:18 if redirect is not None: 09:16:18 redirect -= 1 09:16:18 cause = "too many redirects" 09:16:18 response_redirect_location = response.get_redirect_location() 09:16:18 if response_redirect_location: 09:16:18 redirect_location = response_redirect_location 09:16:18 status = response.status 09:16:18 09:16:18 else: 09:16:18 # Incrementing because of a server error like a 500 in 09:16:18 # status_forcelist and the given method is in the allowed_methods 09:16:18 cause = ResponseError.GENERIC_ERROR 09:16:18 if response and response.status: 09:16:18 if status_count is not None: 09:16:18 status_count -= 1 09:16:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:18 status = response.status 09:16:18 09:16:18 history = self.history + ( 09:16:18 RequestHistory(method, url, error, status, redirect_location), 09:16:18 ) 09:16:18 09:16:18 new_retry = self.new( 09:16:18 total=total, 09:16:18 connect=connect, 09:16:18 read=read, 09:16:18 redirect=redirect, 09:16:18 status=status_count, 09:16:18 other=other, 09:16:18 history=history, 09:16:18 ) 09:16:18 09:16:18 if new_retry.is_exhausted(): 09:16:18 reason = error or ResponseError(cause) 09:16:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:18 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')) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:18 09:16:18 During handling of the above exception, another exception occurred: 09:16:18 09:16:18 self = 09:16:18 09:16:18 def test_11_xpdr_portmapping_NETWORK2(self): 09:16:18 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-NETWORK2") 09:16:18 09:16:18 transportpce_tests/1.2.1/test01_portmapping.py:133: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 09:16:18 response = get_request(target_url) 09:16:18 transportpce_tests/common/test_utils.py:116: in get_request 09:16:18 return requests.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:18 return session.request(method=method, url=url, **kwargs) 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:18 resp = self.send(prep, **send_kwargs) 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:18 r = adapter.send(request, **kwargs) 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = 09:16:18 request = , stream = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:18 proxies = OrderedDict() 09:16:18 09:16:18 def send( 09:16:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:18 ): 09:16:18 """Sends PreparedRequest object. Returns Response object. 09:16:18 09:16:18 :param request: The :class:`PreparedRequest ` being sent. 09:16:18 :param stream: (optional) Whether to stream the request content. 09:16:18 :param timeout: (optional) How long to wait for the server to send 09:16:18 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:18 read timeout) ` tuple. 09:16:18 :type timeout: float or tuple or urllib3 Timeout object 09:16:18 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:18 we verify the server's TLS certificate, or a string, in which case it 09:16:18 must be a path to a CA bundle to use 09:16:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:18 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:18 :rtype: requests.Response 09:16:18 """ 09:16:18 09:16:18 try: 09:16:18 conn = self.get_connection_with_tls_context( 09:16:18 request, verify, proxies=proxies, cert=cert 09:16:18 ) 09:16:18 except LocationValueError as e: 09:16:18 raise InvalidURL(e, request=request) 09:16:18 09:16:18 self.cert_verify(conn, request.url, verify, cert) 09:16:18 url = self.request_url(request, proxies) 09:16:18 self.add_headers( 09:16:18 request, 09:16:18 stream=stream, 09:16:18 timeout=timeout, 09:16:18 verify=verify, 09:16:18 cert=cert, 09:16:18 proxies=proxies, 09:16:18 ) 09:16:18 09:16:18 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:18 09:16:18 if isinstance(timeout, tuple): 09:16:18 try: 09:16:18 connect, read = timeout 09:16:18 timeout = TimeoutSauce(connect=connect, read=read) 09:16:18 except ValueError: 09:16:18 raise ValueError( 09:16:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:18 f"or a single float to set both timeouts to the same value." 09:16:18 ) 09:16:18 elif isinstance(timeout, TimeoutSauce): 09:16:18 pass 09:16:18 else: 09:16:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:18 09:16:18 try: 09:16:18 resp = conn.urlopen( 09:16:18 method=request.method, 09:16:18 url=url, 09:16:18 body=request.body, 09:16:18 headers=request.headers, 09:16:18 redirect=False, 09:16:18 assert_same_host=False, 09:16:18 preload_content=False, 09:16:18 decode_content=False, 09:16:18 retries=self.max_retries, 09:16:18 timeout=timeout, 09:16:18 chunked=chunked, 09:16:18 ) 09:16:18 09:16:18 except (ProtocolError, OSError) as err: 09:16:18 raise ConnectionError(err, request=request) 09:16:18 09:16:18 except MaxRetryError as e: 09:16:18 if isinstance(e.reason, ConnectTimeoutError): 09:16:18 # TODO: Remove this in 3.0.0: see #2811 09:16:18 if not isinstance(e.reason, NewConnectionError): 09:16:18 raise ConnectTimeout(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, ResponseError): 09:16:18 raise RetryError(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, _ProxyError): 09:16:18 raise ProxyError(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, _SSLError): 09:16:18 # This branch is for urllib3 v1.22 and later. 09:16:18 raise SSLError(e, request=request) 09:16:18 09:16:18 > raise ConnectionError(e, request=request) 09:16:18 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')) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:18 ----------------------------- Captured stdout call ----------------------------- 09:16:18 execution of test_11_xpdr_portmapping_NETWORK2 09:16:18 _______ TransportPCEPortMappingTesting.test_12_xpdr_portmapping_CLIENT1 ________ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 > sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:18 raise err 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:18 socket_options = [(6, 1, 1)] 09:16:18 09:16:18 def create_connection( 09:16:18 address: tuple[str, int], 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 source_address: tuple[str, int] | None = None, 09:16:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:18 ) -> socket.socket: 09:16:18 """Connect to *address* and return the socket object. 09:16:18 09:16:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:18 port)``) and return the socket object. Passing the optional 09:16:18 *timeout* parameter will set the timeout on the socket instance 09:16:18 before attempting to connect. If no *timeout* is supplied, the 09:16:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:18 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:18 for the socket to bind as a source address before making the connection. 09:16:18 An host of '' or port 0 tells the OS to use the default. 09:16:18 """ 09:16:18 09:16:18 host, port = address 09:16:18 if host.startswith("["): 09:16:18 host = host.strip("[]") 09:16:18 err = None 09:16:18 09:16:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:18 # The original create_connection function always returns all records. 09:16:18 family = allowed_gai_family() 09:16:18 09:16:18 try: 09:16:18 host.encode("idna") 09:16:18 except UnicodeError: 09:16:18 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:18 09:16:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:18 af, socktype, proto, canonname, sa = res 09:16:18 sock = None 09:16:18 try: 09:16:18 sock = socket.socket(af, socktype, proto) 09:16:18 09:16:18 # If provided, set socket level options before connecting. 09:16:18 _set_socket_options(sock, socket_options) 09:16:18 09:16:18 if timeout is not _DEFAULT_TIMEOUT: 09:16:18 sock.settimeout(timeout) 09:16:18 if source_address: 09:16:18 sock.bind(source_address) 09:16:18 > sock.connect(sa) 09:16:18 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1' 09:16:18 body = None 09:16:18 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='} 09:16:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 redirect = False, assert_same_host = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:18 decode_content = False, response_kw = {} 09:16:18 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) 09:16:18 destination_scheme = None, conn = None, release_this_conn = True 09:16:18 http_tunnel_required = False, err = None, clean_exit = False 09:16:18 09:16:18 def urlopen( # type: ignore[override] 09:16:18 self, 09:16:18 method: str, 09:16:18 url: str, 09:16:18 body: _TYPE_BODY | None = None, 09:16:18 headers: typing.Mapping[str, str] | None = None, 09:16:18 retries: Retry | bool | int | None = None, 09:16:18 redirect: bool = True, 09:16:18 assert_same_host: bool = True, 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 pool_timeout: int | None = None, 09:16:18 release_conn: bool | None = None, 09:16:18 chunked: bool = False, 09:16:18 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:18 preload_content: bool = True, 09:16:18 decode_content: bool = True, 09:16:18 **response_kw: typing.Any, 09:16:18 ) -> BaseHTTPResponse: 09:16:18 """ 09:16:18 Get a connection from the pool and perform an HTTP request. This is the 09:16:18 lowest level call for making a request, so you'll need to specify all 09:16:18 the raw details. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 More commonly, it's appropriate to use a convenience method 09:16:18 such as :meth:`request`. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 `release_conn` will only behave as expected if 09:16:18 `preload_content=False` because we want to make 09:16:18 `preload_content=False` the default behaviour someday soon without 09:16:18 breaking backwards compatibility. 09:16:18 09:16:18 :param method: 09:16:18 HTTP request method (such as GET, POST, PUT, etc.) 09:16:18 09:16:18 :param url: 09:16:18 The URL to perform the request on. 09:16:18 09:16:18 :param body: 09:16:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:18 09:16:18 :param headers: 09:16:18 Dictionary of custom headers to send, such as User-Agent, 09:16:18 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:18 these headers completely replace any pool-specific headers. 09:16:18 09:16:18 :param retries: 09:16:18 Configure the number of retries to allow before raising a 09:16:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:18 09:16:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:18 over different types of retries. 09:16:18 Pass an integer number to retry connection errors that many times, 09:16:18 but no other types of errors. Pass zero to never retry. 09:16:18 09:16:18 If ``False``, then retries are disabled and any exception is raised 09:16:18 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:18 the redirect response will be returned. 09:16:18 09:16:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:18 09:16:18 :param redirect: 09:16:18 If True, automatically handle redirects (status codes 301, 302, 09:16:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:18 will disable redirect, too. 09:16:18 09:16:18 :param assert_same_host: 09:16:18 If ``True``, will make sure that the host of the pool requests is 09:16:18 consistent else will raise HostChangedError. When ``False``, you can 09:16:18 use the pool on an HTTP proxy and request foreign hosts. 09:16:18 09:16:18 :param timeout: 09:16:18 If specified, overrides the default timeout for this one 09:16:18 request. It may be a float (in seconds) or an instance of 09:16:18 :class:`urllib3.util.Timeout`. 09:16:18 09:16:18 :param pool_timeout: 09:16:18 If set and the pool is set to block=True, then this method will 09:16:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:18 connection is available within the time period. 09:16:18 09:16:18 :param bool preload_content: 09:16:18 If True, the response's body will be preloaded into memory. 09:16:18 09:16:18 :param bool decode_content: 09:16:18 If True, will attempt to decode the body based on the 09:16:18 'content-encoding' header. 09:16:18 09:16:18 :param release_conn: 09:16:18 If False, then the urlopen call will not release the connection 09:16:18 back into the pool once a response is received (but will release if 09:16:18 you read the entire contents of the response such as when 09:16:18 `preload_content=True`). This is useful if you're not preloading 09:16:18 the response's content immediately. You will need to call 09:16:18 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:18 back into the pool. If None, it takes the value of ``preload_content`` 09:16:18 which defaults to ``True``. 09:16:18 09:16:18 :param bool chunked: 09:16:18 If True, urllib3 will send the body using chunked transfer 09:16:18 encoding. Otherwise, urllib3 will send the body using the standard 09:16:18 content-length form. Defaults to False. 09:16:18 09:16:18 :param int body_pos: 09:16:18 Position to seek to in file-like body in the event of a retry or 09:16:18 redirect. Typically this won't need to be set because urllib3 will 09:16:18 auto-populate the value when needed. 09:16:18 """ 09:16:18 parsed_url = parse_url(url) 09:16:18 destination_scheme = parsed_url.scheme 09:16:18 09:16:18 if headers is None: 09:16:18 headers = self.headers 09:16:18 09:16:18 if not isinstance(retries, Retry): 09:16:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:18 09:16:18 if release_conn is None: 09:16:18 release_conn = preload_content 09:16:18 09:16:18 # Check host 09:16:18 if assert_same_host and not self.is_same_host(url): 09:16:18 raise HostChangedError(self, url, retries) 09:16:18 09:16:18 # Ensure that the URL we're connecting to is properly encoded 09:16:18 if url.startswith("/"): 09:16:18 url = to_str(_encode_target(url)) 09:16:18 else: 09:16:18 url = to_str(parsed_url.url) 09:16:18 09:16:18 conn = None 09:16:18 09:16:18 # Track whether `conn` needs to be released before 09:16:18 # returning/raising/recursing. Update this variable if necessary, and 09:16:18 # leave `release_conn` constant throughout the function. That way, if 09:16:18 # the function recurses, the original value of `release_conn` will be 09:16:18 # passed down into the recursive call, and its value will be respected. 09:16:18 # 09:16:18 # See issue #651 [1] for details. 09:16:18 # 09:16:18 # [1] 09:16:18 release_this_conn = release_conn 09:16:18 09:16:18 http_tunnel_required = connection_requires_http_tunnel( 09:16:18 self.proxy, self.proxy_config, destination_scheme 09:16:18 ) 09:16:18 09:16:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:18 # have to copy the headers dict so we can safely change it without those 09:16:18 # changes being reflected in anyone else's copy. 09:16:18 if not http_tunnel_required: 09:16:18 headers = headers.copy() # type: ignore[attr-defined] 09:16:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:18 09:16:18 # Must keep the exception bound to a separate variable or else Python 3 09:16:18 # complains about UnboundLocalError. 09:16:18 err = None 09:16:18 09:16:18 # Keep track of whether we cleanly exited the except block. This 09:16:18 # ensures we do proper cleanup in finally. 09:16:18 clean_exit = False 09:16:18 09:16:18 # Rewind body position, if needed. Record current position 09:16:18 # for future rewinds in the event of a redirect/retry. 09:16:18 body_pos = set_file_position(body, body_pos) 09:16:18 09:16:18 try: 09:16:18 # Request a connection from the queue. 09:16:18 timeout_obj = self._get_timeout(timeout) 09:16:18 conn = self._get_conn(timeout=pool_timeout) 09:16:18 09:16:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:18 09:16:18 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:18 try: 09:16:18 self._prepare_proxy(conn) 09:16:18 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:18 self._raise_timeout( 09:16:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:18 ) 09:16:18 raise 09:16:18 09:16:18 # If we're going to release the connection in ``finally:``, then 09:16:18 # the response doesn't need to know about the connection. Otherwise 09:16:18 # it will also try to release it and we'll have a double-release 09:16:18 # mess. 09:16:18 response_conn = conn if not release_conn else None 09:16:18 09:16:18 # Make the request on the HTTPConnection object 09:16:18 > response = self._make_request( 09:16:18 conn, 09:16:18 method, 09:16:18 url, 09:16:18 timeout=timeout_obj, 09:16:18 body=body, 09:16:18 headers=headers, 09:16:18 chunked=chunked, 09:16:18 retries=retries, 09:16:18 response_conn=response_conn, 09:16:18 preload_content=preload_content, 09:16:18 decode_content=decode_content, 09:16:18 **response_kw, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:18 conn.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:18 self.endheaders() 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:18 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:18 self.send(msg) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:18 self.connect() 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:18 self.sock = self._new_conn() 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 except socket.gaierror as e: 09:16:18 raise NameResolutionError(self.host, self, e) from e 09:16:18 except SocketTimeout as e: 09:16:18 raise ConnectTimeoutError( 09:16:18 self, 09:16:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:18 ) from e 09:16:18 09:16:18 except OSError as e: 09:16:18 > raise NewConnectionError( 09:16:18 self, f"Failed to establish a new connection: {e}" 09:16:18 ) from e 09:16:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 request = , stream = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:18 proxies = OrderedDict() 09:16:18 09:16:18 def send( 09:16:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:18 ): 09:16:18 """Sends PreparedRequest object. Returns Response object. 09:16:18 09:16:18 :param request: The :class:`PreparedRequest ` being sent. 09:16:18 :param stream: (optional) Whether to stream the request content. 09:16:18 :param timeout: (optional) How long to wait for the server to send 09:16:18 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:18 read timeout) ` tuple. 09:16:18 :type timeout: float or tuple or urllib3 Timeout object 09:16:18 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:18 we verify the server's TLS certificate, or a string, in which case it 09:16:18 must be a path to a CA bundle to use 09:16:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:18 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:18 :rtype: requests.Response 09:16:18 """ 09:16:18 09:16:18 try: 09:16:18 conn = self.get_connection_with_tls_context( 09:16:18 request, verify, proxies=proxies, cert=cert 09:16:18 ) 09:16:18 except LocationValueError as e: 09:16:18 raise InvalidURL(e, request=request) 09:16:18 09:16:18 self.cert_verify(conn, request.url, verify, cert) 09:16:18 url = self.request_url(request, proxies) 09:16:18 self.add_headers( 09:16:18 request, 09:16:18 stream=stream, 09:16:18 timeout=timeout, 09:16:18 verify=verify, 09:16:18 cert=cert, 09:16:18 proxies=proxies, 09:16:18 ) 09:16:18 09:16:18 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:18 09:16:18 if isinstance(timeout, tuple): 09:16:18 try: 09:16:18 connect, read = timeout 09:16:18 timeout = TimeoutSauce(connect=connect, read=read) 09:16:18 except ValueError: 09:16:18 raise ValueError( 09:16:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:18 f"or a single float to set both timeouts to the same value." 09:16:18 ) 09:16:18 elif isinstance(timeout, TimeoutSauce): 09:16:18 pass 09:16:18 else: 09:16:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:18 09:16:18 try: 09:16:18 > resp = conn.urlopen( 09:16:18 method=request.method, 09:16:18 url=url, 09:16:18 body=request.body, 09:16:18 headers=request.headers, 09:16:18 redirect=False, 09:16:18 assert_same_host=False, 09:16:18 preload_content=False, 09:16:18 decode_content=False, 09:16:18 retries=self.max_retries, 09:16:18 timeout=timeout, 09:16:18 chunked=chunked, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:18 retries = retries.increment( 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1' 09:16:18 response = None 09:16:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:18 _pool = 09:16:18 _stacktrace = 09:16:18 09:16:18 def increment( 09:16:18 self, 09:16:18 method: str | None = None, 09:16:18 url: str | None = None, 09:16:18 response: BaseHTTPResponse | None = None, 09:16:18 error: Exception | None = None, 09:16:18 _pool: ConnectionPool | None = None, 09:16:18 _stacktrace: TracebackType | None = None, 09:16:18 ) -> Self: 09:16:18 """Return a new Retry object with incremented retry counters. 09:16:18 09:16:18 :param response: A response object, or None, if the server did not 09:16:18 return a response. 09:16:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:18 :param Exception error: An error encountered during the request, or 09:16:18 None if the response was received successfully. 09:16:18 09:16:18 :return: A new ``Retry`` object. 09:16:18 """ 09:16:18 if self.total is False and error: 09:16:18 # Disabled, indicate to re-raise the error. 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 09:16:18 total = self.total 09:16:18 if total is not None: 09:16:18 total -= 1 09:16:18 09:16:18 connect = self.connect 09:16:18 read = self.read 09:16:18 redirect = self.redirect 09:16:18 status_count = self.status 09:16:18 other = self.other 09:16:18 cause = "unknown" 09:16:18 status = None 09:16:18 redirect_location = None 09:16:18 09:16:18 if error and self._is_connection_error(error): 09:16:18 # Connect retry? 09:16:18 if connect is False: 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 elif connect is not None: 09:16:18 connect -= 1 09:16:18 09:16:18 elif error and self._is_read_error(error): 09:16:18 # Read retry? 09:16:18 if read is False or method is None or not self._is_method_retryable(method): 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 elif read is not None: 09:16:18 read -= 1 09:16:18 09:16:18 elif error: 09:16:18 # Other retry? 09:16:18 if other is not None: 09:16:18 other -= 1 09:16:18 09:16:18 elif response and response.get_redirect_location(): 09:16:18 # Redirect retry? 09:16:18 if redirect is not None: 09:16:18 redirect -= 1 09:16:18 cause = "too many redirects" 09:16:18 response_redirect_location = response.get_redirect_location() 09:16:18 if response_redirect_location: 09:16:18 redirect_location = response_redirect_location 09:16:18 status = response.status 09:16:18 09:16:18 else: 09:16:18 # Incrementing because of a server error like a 500 in 09:16:18 # status_forcelist and the given method is in the allowed_methods 09:16:18 cause = ResponseError.GENERIC_ERROR 09:16:18 if response and response.status: 09:16:18 if status_count is not None: 09:16:18 status_count -= 1 09:16:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:18 status = response.status 09:16:18 09:16:18 history = self.history + ( 09:16:18 RequestHistory(method, url, error, status, redirect_location), 09:16:18 ) 09:16:18 09:16:18 new_retry = self.new( 09:16:18 total=total, 09:16:18 connect=connect, 09:16:18 read=read, 09:16:18 redirect=redirect, 09:16:18 status=status_count, 09:16:18 other=other, 09:16:18 history=history, 09:16:18 ) 09:16:18 09:16:18 if new_retry.is_exhausted(): 09:16:18 reason = error or ResponseError(cause) 09:16:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:18 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')) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:18 09:16:18 During handling of the above exception, another exception occurred: 09:16:18 09:16:18 self = 09:16:18 09:16:18 def test_12_xpdr_portmapping_CLIENT1(self): 09:16:18 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT1") 09:16:18 09:16:18 transportpce_tests/1.2.1/test01_portmapping.py:144: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 09:16:18 response = get_request(target_url) 09:16:18 transportpce_tests/common/test_utils.py:116: in get_request 09:16:18 return requests.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:18 return session.request(method=method, url=url, **kwargs) 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:18 resp = self.send(prep, **send_kwargs) 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:18 r = adapter.send(request, **kwargs) 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = 09:16:18 request = , stream = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:18 proxies = OrderedDict() 09:16:18 09:16:18 def send( 09:16:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:18 ): 09:16:18 """Sends PreparedRequest object. Returns Response object. 09:16:18 09:16:18 :param request: The :class:`PreparedRequest ` being sent. 09:16:18 :param stream: (optional) Whether to stream the request content. 09:16:18 :param timeout: (optional) How long to wait for the server to send 09:16:18 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:18 read timeout) ` tuple. 09:16:18 :type timeout: float or tuple or urllib3 Timeout object 09:16:18 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:18 we verify the server's TLS certificate, or a string, in which case it 09:16:18 must be a path to a CA bundle to use 09:16:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:18 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:18 :rtype: requests.Response 09:16:18 """ 09:16:18 09:16:18 try: 09:16:18 conn = self.get_connection_with_tls_context( 09:16:18 request, verify, proxies=proxies, cert=cert 09:16:18 ) 09:16:18 except LocationValueError as e: 09:16:18 raise InvalidURL(e, request=request) 09:16:18 09:16:18 self.cert_verify(conn, request.url, verify, cert) 09:16:18 url = self.request_url(request, proxies) 09:16:18 self.add_headers( 09:16:18 request, 09:16:18 stream=stream, 09:16:18 timeout=timeout, 09:16:18 verify=verify, 09:16:18 cert=cert, 09:16:18 proxies=proxies, 09:16:18 ) 09:16:18 09:16:18 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:18 09:16:18 if isinstance(timeout, tuple): 09:16:18 try: 09:16:18 connect, read = timeout 09:16:18 timeout = TimeoutSauce(connect=connect, read=read) 09:16:18 except ValueError: 09:16:18 raise ValueError( 09:16:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:18 f"or a single float to set both timeouts to the same value." 09:16:18 ) 09:16:18 elif isinstance(timeout, TimeoutSauce): 09:16:18 pass 09:16:18 else: 09:16:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:18 09:16:18 try: 09:16:18 resp = conn.urlopen( 09:16:18 method=request.method, 09:16:18 url=url, 09:16:18 body=request.body, 09:16:18 headers=request.headers, 09:16:18 redirect=False, 09:16:18 assert_same_host=False, 09:16:18 preload_content=False, 09:16:18 decode_content=False, 09:16:18 retries=self.max_retries, 09:16:18 timeout=timeout, 09:16:18 chunked=chunked, 09:16:18 ) 09:16:18 09:16:18 except (ProtocolError, OSError) as err: 09:16:18 raise ConnectionError(err, request=request) 09:16:18 09:16:18 except MaxRetryError as e: 09:16:18 if isinstance(e.reason, ConnectTimeoutError): 09:16:18 # TODO: Remove this in 3.0.0: see #2811 09:16:18 if not isinstance(e.reason, NewConnectionError): 09:16:18 raise ConnectTimeout(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, ResponseError): 09:16:18 raise RetryError(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, _ProxyError): 09:16:18 raise ProxyError(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, _SSLError): 09:16:18 # This branch is for urllib3 v1.22 and later. 09:16:18 raise SSLError(e, request=request) 09:16:18 09:16:18 > raise ConnectionError(e, request=request) 09:16:18 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')) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:18 ----------------------------- Captured stdout call ----------------------------- 09:16:18 execution of test_12_xpdr_portmapping_CLIENT1 09:16:18 _______ TransportPCEPortMappingTesting.test_13_xpdr_portmapping_CLIENT2 ________ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 > sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:18 raise err 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:18 socket_options = [(6, 1, 1)] 09:16:18 09:16:18 def create_connection( 09:16:18 address: tuple[str, int], 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 source_address: tuple[str, int] | None = None, 09:16:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:18 ) -> socket.socket: 09:16:18 """Connect to *address* and return the socket object. 09:16:18 09:16:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:18 port)``) and return the socket object. Passing the optional 09:16:18 *timeout* parameter will set the timeout on the socket instance 09:16:18 before attempting to connect. If no *timeout* is supplied, the 09:16:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:18 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:18 for the socket to bind as a source address before making the connection. 09:16:18 An host of '' or port 0 tells the OS to use the default. 09:16:18 """ 09:16:18 09:16:18 host, port = address 09:16:18 if host.startswith("["): 09:16:18 host = host.strip("[]") 09:16:18 err = None 09:16:18 09:16:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:18 # The original create_connection function always returns all records. 09:16:18 family = allowed_gai_family() 09:16:18 09:16:18 try: 09:16:18 host.encode("idna") 09:16:18 except UnicodeError: 09:16:18 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:18 09:16:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:18 af, socktype, proto, canonname, sa = res 09:16:18 sock = None 09:16:18 try: 09:16:18 sock = socket.socket(af, socktype, proto) 09:16:18 09:16:18 # If provided, set socket level options before connecting. 09:16:18 _set_socket_options(sock, socket_options) 09:16:18 09:16:18 if timeout is not _DEFAULT_TIMEOUT: 09:16:18 sock.settimeout(timeout) 09:16:18 if source_address: 09:16:18 sock.bind(source_address) 09:16:18 > sock.connect(sa) 09:16:18 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2' 09:16:18 body = None 09:16:18 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='} 09:16:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 redirect = False, assert_same_host = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:18 decode_content = False, response_kw = {} 09:16:18 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) 09:16:18 destination_scheme = None, conn = None, release_this_conn = True 09:16:18 http_tunnel_required = False, err = None, clean_exit = False 09:16:18 09:16:18 def urlopen( # type: ignore[override] 09:16:18 self, 09:16:18 method: str, 09:16:18 url: str, 09:16:18 body: _TYPE_BODY | None = None, 09:16:18 headers: typing.Mapping[str, str] | None = None, 09:16:18 retries: Retry | bool | int | None = None, 09:16:18 redirect: bool = True, 09:16:18 assert_same_host: bool = True, 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 pool_timeout: int | None = None, 09:16:18 release_conn: bool | None = None, 09:16:18 chunked: bool = False, 09:16:18 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:18 preload_content: bool = True, 09:16:18 decode_content: bool = True, 09:16:18 **response_kw: typing.Any, 09:16:18 ) -> BaseHTTPResponse: 09:16:18 """ 09:16:18 Get a connection from the pool and perform an HTTP request. This is the 09:16:18 lowest level call for making a request, so you'll need to specify all 09:16:18 the raw details. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 More commonly, it's appropriate to use a convenience method 09:16:18 such as :meth:`request`. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 `release_conn` will only behave as expected if 09:16:18 `preload_content=False` because we want to make 09:16:18 `preload_content=False` the default behaviour someday soon without 09:16:18 breaking backwards compatibility. 09:16:18 09:16:18 :param method: 09:16:18 HTTP request method (such as GET, POST, PUT, etc.) 09:16:18 09:16:18 :param url: 09:16:18 The URL to perform the request on. 09:16:18 09:16:18 :param body: 09:16:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:18 09:16:18 :param headers: 09:16:18 Dictionary of custom headers to send, such as User-Agent, 09:16:18 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:18 these headers completely replace any pool-specific headers. 09:16:18 09:16:18 :param retries: 09:16:18 Configure the number of retries to allow before raising a 09:16:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:18 09:16:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:18 over different types of retries. 09:16:18 Pass an integer number to retry connection errors that many times, 09:16:18 but no other types of errors. Pass zero to never retry. 09:16:18 09:16:18 If ``False``, then retries are disabled and any exception is raised 09:16:18 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:18 the redirect response will be returned. 09:16:18 09:16:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:18 09:16:18 :param redirect: 09:16:18 If True, automatically handle redirects (status codes 301, 302, 09:16:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:18 will disable redirect, too. 09:16:18 09:16:18 :param assert_same_host: 09:16:18 If ``True``, will make sure that the host of the pool requests is 09:16:18 consistent else will raise HostChangedError. When ``False``, you can 09:16:18 use the pool on an HTTP proxy and request foreign hosts. 09:16:18 09:16:18 :param timeout: 09:16:18 If specified, overrides the default timeout for this one 09:16:18 request. It may be a float (in seconds) or an instance of 09:16:18 :class:`urllib3.util.Timeout`. 09:16:18 09:16:18 :param pool_timeout: 09:16:18 If set and the pool is set to block=True, then this method will 09:16:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:18 connection is available within the time period. 09:16:18 09:16:18 :param bool preload_content: 09:16:18 If True, the response's body will be preloaded into memory. 09:16:18 09:16:18 :param bool decode_content: 09:16:18 If True, will attempt to decode the body based on the 09:16:18 'content-encoding' header. 09:16:18 09:16:18 :param release_conn: 09:16:18 If False, then the urlopen call will not release the connection 09:16:18 back into the pool once a response is received (but will release if 09:16:18 you read the entire contents of the response such as when 09:16:18 `preload_content=True`). This is useful if you're not preloading 09:16:18 the response's content immediately. You will need to call 09:16:18 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:18 back into the pool. If None, it takes the value of ``preload_content`` 09:16:18 which defaults to ``True``. 09:16:18 09:16:18 :param bool chunked: 09:16:18 If True, urllib3 will send the body using chunked transfer 09:16:18 encoding. Otherwise, urllib3 will send the body using the standard 09:16:18 content-length form. Defaults to False. 09:16:18 09:16:18 :param int body_pos: 09:16:18 Position to seek to in file-like body in the event of a retry or 09:16:18 redirect. Typically this won't need to be set because urllib3 will 09:16:18 auto-populate the value when needed. 09:16:18 """ 09:16:18 parsed_url = parse_url(url) 09:16:18 destination_scheme = parsed_url.scheme 09:16:18 09:16:18 if headers is None: 09:16:18 headers = self.headers 09:16:18 09:16:18 if not isinstance(retries, Retry): 09:16:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:18 09:16:18 if release_conn is None: 09:16:18 release_conn = preload_content 09:16:18 09:16:18 # Check host 09:16:18 if assert_same_host and not self.is_same_host(url): 09:16:18 raise HostChangedError(self, url, retries) 09:16:18 09:16:18 # Ensure that the URL we're connecting to is properly encoded 09:16:18 if url.startswith("/"): 09:16:18 url = to_str(_encode_target(url)) 09:16:18 else: 09:16:18 url = to_str(parsed_url.url) 09:16:18 09:16:18 conn = None 09:16:18 09:16:18 # Track whether `conn` needs to be released before 09:16:18 # returning/raising/recursing. Update this variable if necessary, and 09:16:18 # leave `release_conn` constant throughout the function. That way, if 09:16:18 # the function recurses, the original value of `release_conn` will be 09:16:18 # passed down into the recursive call, and its value will be respected. 09:16:18 # 09:16:18 # See issue #651 [1] for details. 09:16:18 # 09:16:18 # [1] 09:16:18 release_this_conn = release_conn 09:16:18 09:16:18 http_tunnel_required = connection_requires_http_tunnel( 09:16:18 self.proxy, self.proxy_config, destination_scheme 09:16:18 ) 09:16:18 09:16:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:18 # have to copy the headers dict so we can safely change it without those 09:16:18 # changes being reflected in anyone else's copy. 09:16:18 if not http_tunnel_required: 09:16:18 headers = headers.copy() # type: ignore[attr-defined] 09:16:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:18 09:16:18 # Must keep the exception bound to a separate variable or else Python 3 09:16:18 # complains about UnboundLocalError. 09:16:18 err = None 09:16:18 09:16:18 # Keep track of whether we cleanly exited the except block. This 09:16:18 # ensures we do proper cleanup in finally. 09:16:18 clean_exit = False 09:16:18 09:16:18 # Rewind body position, if needed. Record current position 09:16:18 # for future rewinds in the event of a redirect/retry. 09:16:18 body_pos = set_file_position(body, body_pos) 09:16:18 09:16:18 try: 09:16:18 # Request a connection from the queue. 09:16:18 timeout_obj = self._get_timeout(timeout) 09:16:18 conn = self._get_conn(timeout=pool_timeout) 09:16:18 09:16:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:18 09:16:18 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:18 try: 09:16:18 self._prepare_proxy(conn) 09:16:18 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:18 self._raise_timeout( 09:16:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:18 ) 09:16:18 raise 09:16:18 09:16:18 # If we're going to release the connection in ``finally:``, then 09:16:18 # the response doesn't need to know about the connection. Otherwise 09:16:18 # it will also try to release it and we'll have a double-release 09:16:18 # mess. 09:16:18 response_conn = conn if not release_conn else None 09:16:18 09:16:18 # Make the request on the HTTPConnection object 09:16:18 > response = self._make_request( 09:16:18 conn, 09:16:18 method, 09:16:18 url, 09:16:18 timeout=timeout_obj, 09:16:18 body=body, 09:16:18 headers=headers, 09:16:18 chunked=chunked, 09:16:18 retries=retries, 09:16:18 response_conn=response_conn, 09:16:18 preload_content=preload_content, 09:16:18 decode_content=decode_content, 09:16:18 **response_kw, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:18 conn.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:18 self.endheaders() 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:18 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:18 self.send(msg) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:18 self.connect() 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:18 self.sock = self._new_conn() 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 except socket.gaierror as e: 09:16:18 raise NameResolutionError(self.host, self, e) from e 09:16:18 except SocketTimeout as e: 09:16:18 raise ConnectTimeoutError( 09:16:18 self, 09:16:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:18 ) from e 09:16:18 09:16:18 except OSError as e: 09:16:18 > raise NewConnectionError( 09:16:18 self, f"Failed to establish a new connection: {e}" 09:16:18 ) from e 09:16:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 request = , stream = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:18 proxies = OrderedDict() 09:16:18 09:16:18 def send( 09:16:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:18 ): 09:16:18 """Sends PreparedRequest object. Returns Response object. 09:16:18 09:16:18 :param request: The :class:`PreparedRequest ` being sent. 09:16:18 :param stream: (optional) Whether to stream the request content. 09:16:18 :param timeout: (optional) How long to wait for the server to send 09:16:18 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:18 read timeout) ` tuple. 09:16:18 :type timeout: float or tuple or urllib3 Timeout object 09:16:18 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:18 we verify the server's TLS certificate, or a string, in which case it 09:16:18 must be a path to a CA bundle to use 09:16:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:18 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:18 :rtype: requests.Response 09:16:18 """ 09:16:18 09:16:18 try: 09:16:18 conn = self.get_connection_with_tls_context( 09:16:18 request, verify, proxies=proxies, cert=cert 09:16:18 ) 09:16:18 except LocationValueError as e: 09:16:18 raise InvalidURL(e, request=request) 09:16:18 09:16:18 self.cert_verify(conn, request.url, verify, cert) 09:16:18 url = self.request_url(request, proxies) 09:16:18 self.add_headers( 09:16:18 request, 09:16:18 stream=stream, 09:16:18 timeout=timeout, 09:16:18 verify=verify, 09:16:18 cert=cert, 09:16:18 proxies=proxies, 09:16:18 ) 09:16:18 09:16:18 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:18 09:16:18 if isinstance(timeout, tuple): 09:16:18 try: 09:16:18 connect, read = timeout 09:16:18 timeout = TimeoutSauce(connect=connect, read=read) 09:16:18 except ValueError: 09:16:18 raise ValueError( 09:16:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:18 f"or a single float to set both timeouts to the same value." 09:16:18 ) 09:16:18 elif isinstance(timeout, TimeoutSauce): 09:16:18 pass 09:16:18 else: 09:16:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:18 09:16:18 try: 09:16:18 > resp = conn.urlopen( 09:16:18 method=request.method, 09:16:18 url=url, 09:16:18 body=request.body, 09:16:18 headers=request.headers, 09:16:18 redirect=False, 09:16:18 assert_same_host=False, 09:16:18 preload_content=False, 09:16:18 decode_content=False, 09:16:18 retries=self.max_retries, 09:16:18 timeout=timeout, 09:16:18 chunked=chunked, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:18 retries = retries.increment( 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2' 09:16:18 response = None 09:16:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:18 _pool = 09:16:18 _stacktrace = 09:16:18 09:16:18 def increment( 09:16:18 self, 09:16:18 method: str | None = None, 09:16:18 url: str | None = None, 09:16:18 response: BaseHTTPResponse | None = None, 09:16:18 error: Exception | None = None, 09:16:18 _pool: ConnectionPool | None = None, 09:16:18 _stacktrace: TracebackType | None = None, 09:16:18 ) -> Self: 09:16:18 """Return a new Retry object with incremented retry counters. 09:16:18 09:16:18 :param response: A response object, or None, if the server did not 09:16:18 return a response. 09:16:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:18 :param Exception error: An error encountered during the request, or 09:16:18 None if the response was received successfully. 09:16:18 09:16:18 :return: A new ``Retry`` object. 09:16:18 """ 09:16:18 if self.total is False and error: 09:16:18 # Disabled, indicate to re-raise the error. 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 09:16:18 total = self.total 09:16:18 if total is not None: 09:16:18 total -= 1 09:16:18 09:16:18 connect = self.connect 09:16:18 read = self.read 09:16:18 redirect = self.redirect 09:16:18 status_count = self.status 09:16:18 other = self.other 09:16:18 cause = "unknown" 09:16:18 status = None 09:16:18 redirect_location = None 09:16:18 09:16:18 if error and self._is_connection_error(error): 09:16:18 # Connect retry? 09:16:18 if connect is False: 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 elif connect is not None: 09:16:18 connect -= 1 09:16:18 09:16:18 elif error and self._is_read_error(error): 09:16:18 # Read retry? 09:16:18 if read is False or method is None or not self._is_method_retryable(method): 09:16:18 raise reraise(type(error), error, _stacktrace) 09:16:18 elif read is not None: 09:16:18 read -= 1 09:16:18 09:16:18 elif error: 09:16:18 # Other retry? 09:16:18 if other is not None: 09:16:18 other -= 1 09:16:18 09:16:18 elif response and response.get_redirect_location(): 09:16:18 # Redirect retry? 09:16:18 if redirect is not None: 09:16:18 redirect -= 1 09:16:18 cause = "too many redirects" 09:16:18 response_redirect_location = response.get_redirect_location() 09:16:18 if response_redirect_location: 09:16:18 redirect_location = response_redirect_location 09:16:18 status = response.status 09:16:18 09:16:18 else: 09:16:18 # Incrementing because of a server error like a 500 in 09:16:18 # status_forcelist and the given method is in the allowed_methods 09:16:18 cause = ResponseError.GENERIC_ERROR 09:16:18 if response and response.status: 09:16:18 if status_count is not None: 09:16:18 status_count -= 1 09:16:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:18 status = response.status 09:16:18 09:16:18 history = self.history + ( 09:16:18 RequestHistory(method, url, error, status, redirect_location), 09:16:18 ) 09:16:18 09:16:18 new_retry = self.new( 09:16:18 total=total, 09:16:18 connect=connect, 09:16:18 read=read, 09:16:18 redirect=redirect, 09:16:18 status=status_count, 09:16:18 other=other, 09:16:18 history=history, 09:16:18 ) 09:16:18 09:16:18 if new_retry.is_exhausted(): 09:16:18 reason = error or ResponseError(cause) 09:16:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:18 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')) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:18 09:16:18 During handling of the above exception, another exception occurred: 09:16:18 09:16:18 self = 09:16:18 09:16:18 def test_13_xpdr_portmapping_CLIENT2(self): 09:16:18 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT2") 09:16:18 09:16:18 transportpce_tests/1.2.1/test01_portmapping.py:156: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 09:16:18 response = get_request(target_url) 09:16:18 transportpce_tests/common/test_utils.py:116: in get_request 09:16:18 return requests.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:18 return session.request(method=method, url=url, **kwargs) 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:18 resp = self.send(prep, **send_kwargs) 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:18 r = adapter.send(request, **kwargs) 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 self = 09:16:18 request = , stream = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:18 proxies = OrderedDict() 09:16:18 09:16:18 def send( 09:16:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:18 ): 09:16:18 """Sends PreparedRequest object. Returns Response object. 09:16:18 09:16:18 :param request: The :class:`PreparedRequest ` being sent. 09:16:18 :param stream: (optional) Whether to stream the request content. 09:16:18 :param timeout: (optional) How long to wait for the server to send 09:16:18 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:18 read timeout) ` tuple. 09:16:18 :type timeout: float or tuple or urllib3 Timeout object 09:16:18 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:18 we verify the server's TLS certificate, or a string, in which case it 09:16:18 must be a path to a CA bundle to use 09:16:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:18 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:18 :rtype: requests.Response 09:16:18 """ 09:16:18 09:16:18 try: 09:16:18 conn = self.get_connection_with_tls_context( 09:16:18 request, verify, proxies=proxies, cert=cert 09:16:18 ) 09:16:18 except LocationValueError as e: 09:16:18 raise InvalidURL(e, request=request) 09:16:18 09:16:18 self.cert_verify(conn, request.url, verify, cert) 09:16:18 url = self.request_url(request, proxies) 09:16:18 self.add_headers( 09:16:18 request, 09:16:18 stream=stream, 09:16:18 timeout=timeout, 09:16:18 verify=verify, 09:16:18 cert=cert, 09:16:18 proxies=proxies, 09:16:18 ) 09:16:18 09:16:18 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:18 09:16:18 if isinstance(timeout, tuple): 09:16:18 try: 09:16:18 connect, read = timeout 09:16:18 timeout = TimeoutSauce(connect=connect, read=read) 09:16:18 except ValueError: 09:16:18 raise ValueError( 09:16:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:18 f"or a single float to set both timeouts to the same value." 09:16:18 ) 09:16:18 elif isinstance(timeout, TimeoutSauce): 09:16:18 pass 09:16:18 else: 09:16:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:18 09:16:18 try: 09:16:18 resp = conn.urlopen( 09:16:18 method=request.method, 09:16:18 url=url, 09:16:18 body=request.body, 09:16:18 headers=request.headers, 09:16:18 redirect=False, 09:16:18 assert_same_host=False, 09:16:18 preload_content=False, 09:16:18 decode_content=False, 09:16:18 retries=self.max_retries, 09:16:18 timeout=timeout, 09:16:18 chunked=chunked, 09:16:18 ) 09:16:18 09:16:18 except (ProtocolError, OSError) as err: 09:16:18 raise ConnectionError(err, request=request) 09:16:18 09:16:18 except MaxRetryError as e: 09:16:18 if isinstance(e.reason, ConnectTimeoutError): 09:16:18 # TODO: Remove this in 3.0.0: see #2811 09:16:18 if not isinstance(e.reason, NewConnectionError): 09:16:18 raise ConnectTimeout(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, ResponseError): 09:16:18 raise RetryError(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, _ProxyError): 09:16:18 raise ProxyError(e, request=request) 09:16:18 09:16:18 if isinstance(e.reason, _SSLError): 09:16:18 # This branch is for urllib3 v1.22 and later. 09:16:18 raise SSLError(e, request=request) 09:16:18 09:16:18 > raise ConnectionError(e, request=request) 09:16:18 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')) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:18 ----------------------------- Captured stdout call ----------------------------- 09:16:18 execution of test_13_xpdr_portmapping_CLIENT2 09:16:18 _______ TransportPCEPortMappingTesting.test_14_xpdr_portmapping_CLIENT3 ________ 09:16:18 09:16:18 self = 09:16:18 09:16:18 def _new_conn(self) -> socket.socket: 09:16:18 """Establish a socket connection and set nodelay settings on it. 09:16:18 09:16:18 :return: New socket connection. 09:16:18 """ 09:16:18 try: 09:16:18 > sock = connection.create_connection( 09:16:18 (self._dns_host, self.port), 09:16:18 self.timeout, 09:16:18 source_address=self.source_address, 09:16:18 socket_options=self.socket_options, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:18 raise err 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 09:16:18 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:18 socket_options = [(6, 1, 1)] 09:16:18 09:16:18 def create_connection( 09:16:18 address: tuple[str, int], 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 source_address: tuple[str, int] | None = None, 09:16:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:18 ) -> socket.socket: 09:16:18 """Connect to *address* and return the socket object. 09:16:18 09:16:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:18 port)``) and return the socket object. Passing the optional 09:16:18 *timeout* parameter will set the timeout on the socket instance 09:16:18 before attempting to connect. If no *timeout* is supplied, the 09:16:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:18 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:18 for the socket to bind as a source address before making the connection. 09:16:18 An host of '' or port 0 tells the OS to use the default. 09:16:18 """ 09:16:18 09:16:18 host, port = address 09:16:18 if host.startswith("["): 09:16:18 host = host.strip("[]") 09:16:18 err = None 09:16:18 09:16:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:18 # The original create_connection function always returns all records. 09:16:18 family = allowed_gai_family() 09:16:18 09:16:18 try: 09:16:18 host.encode("idna") 09:16:18 except UnicodeError: 09:16:18 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:18 09:16:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:18 af, socktype, proto, canonname, sa = res 09:16:18 sock = None 09:16:18 try: 09:16:18 sock = socket.socket(af, socktype, proto) 09:16:18 09:16:18 # If provided, set socket level options before connecting. 09:16:18 _set_socket_options(sock, socket_options) 09:16:18 09:16:18 if timeout is not _DEFAULT_TIMEOUT: 09:16:18 sock.settimeout(timeout) 09:16:18 if source_address: 09:16:18 sock.bind(source_address) 09:16:18 > sock.connect(sa) 09:16:18 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:18 09:16:18 The above exception was the direct cause of the following exception: 09:16:18 09:16:18 self = 09:16:18 method = 'GET' 09:16:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3' 09:16:18 body = None 09:16:18 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='} 09:16:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:18 redirect = False, assert_same_host = False 09:16:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:18 decode_content = False, response_kw = {} 09:16:18 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) 09:16:18 destination_scheme = None, conn = None, release_this_conn = True 09:16:18 http_tunnel_required = False, err = None, clean_exit = False 09:16:18 09:16:18 def urlopen( # type: ignore[override] 09:16:18 self, 09:16:18 method: str, 09:16:18 url: str, 09:16:18 body: _TYPE_BODY | None = None, 09:16:18 headers: typing.Mapping[str, str] | None = None, 09:16:18 retries: Retry | bool | int | None = None, 09:16:18 redirect: bool = True, 09:16:18 assert_same_host: bool = True, 09:16:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:18 pool_timeout: int | None = None, 09:16:18 release_conn: bool | None = None, 09:16:18 chunked: bool = False, 09:16:18 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:18 preload_content: bool = True, 09:16:18 decode_content: bool = True, 09:16:18 **response_kw: typing.Any, 09:16:18 ) -> BaseHTTPResponse: 09:16:18 """ 09:16:18 Get a connection from the pool and perform an HTTP request. This is the 09:16:18 lowest level call for making a request, so you'll need to specify all 09:16:18 the raw details. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 More commonly, it's appropriate to use a convenience method 09:16:18 such as :meth:`request`. 09:16:18 09:16:18 .. note:: 09:16:18 09:16:18 `release_conn` will only behave as expected if 09:16:18 `preload_content=False` because we want to make 09:16:18 `preload_content=False` the default behaviour someday soon without 09:16:18 breaking backwards compatibility. 09:16:18 09:16:18 :param method: 09:16:18 HTTP request method (such as GET, POST, PUT, etc.) 09:16:18 09:16:18 :param url: 09:16:18 The URL to perform the request on. 09:16:18 09:16:18 :param body: 09:16:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:18 09:16:18 :param headers: 09:16:18 Dictionary of custom headers to send, such as User-Agent, 09:16:18 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:18 these headers completely replace any pool-specific headers. 09:16:18 09:16:18 :param retries: 09:16:18 Configure the number of retries to allow before raising a 09:16:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:18 09:16:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:18 over different types of retries. 09:16:18 Pass an integer number to retry connection errors that many times, 09:16:18 but no other types of errors. Pass zero to never retry. 09:16:18 09:16:18 If ``False``, then retries are disabled and any exception is raised 09:16:18 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:18 the redirect response will be returned. 09:16:18 09:16:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:18 09:16:18 :param redirect: 09:16:18 If True, automatically handle redirects (status codes 301, 302, 09:16:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:18 will disable redirect, too. 09:16:18 09:16:18 :param assert_same_host: 09:16:18 If ``True``, will make sure that the host of the pool requests is 09:16:18 consistent else will raise HostChangedError. When ``False``, you can 09:16:18 use the pool on an HTTP proxy and request foreign hosts. 09:16:18 09:16:18 :param timeout: 09:16:18 If specified, overrides the default timeout for this one 09:16:18 request. It may be a float (in seconds) or an instance of 09:16:18 :class:`urllib3.util.Timeout`. 09:16:18 09:16:18 :param pool_timeout: 09:16:18 If set and the pool is set to block=True, then this method will 09:16:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:18 connection is available within the time period. 09:16:18 09:16:18 :param bool preload_content: 09:16:18 If True, the response's body will be preloaded into memory. 09:16:18 09:16:18 :param bool decode_content: 09:16:18 If True, will attempt to decode the body based on the 09:16:18 'content-encoding' header. 09:16:18 09:16:18 :param release_conn: 09:16:18 If False, then the urlopen call will not release the connection 09:16:18 back into the pool once a response is received (but will release if 09:16:18 you read the entire contents of the response such as when 09:16:18 `preload_content=True`). This is useful if you're not preloading 09:16:18 the response's content immediately. You will need to call 09:16:18 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:18 back into the pool. If None, it takes the value of ``preload_content`` 09:16:18 which defaults to ``True``. 09:16:18 09:16:18 :param bool chunked: 09:16:18 If True, urllib3 will send the body using chunked transfer 09:16:18 encoding. Otherwise, urllib3 will send the body using the standard 09:16:18 content-length form. Defaults to False. 09:16:18 09:16:18 :param int body_pos: 09:16:18 Position to seek to in file-like body in the event of a retry or 09:16:18 redirect. Typically this won't need to be set because urllib3 will 09:16:18 auto-populate the value when needed. 09:16:18 """ 09:16:18 parsed_url = parse_url(url) 09:16:18 destination_scheme = parsed_url.scheme 09:16:18 09:16:18 if headers is None: 09:16:18 headers = self.headers 09:16:18 09:16:18 if not isinstance(retries, Retry): 09:16:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:18 09:16:18 if release_conn is None: 09:16:18 release_conn = preload_content 09:16:18 09:16:18 # Check host 09:16:18 if assert_same_host and not self.is_same_host(url): 09:16:18 raise HostChangedError(self, url, retries) 09:16:18 09:16:18 # Ensure that the URL we're connecting to is properly encoded 09:16:18 if url.startswith("/"): 09:16:18 url = to_str(_encode_target(url)) 09:16:18 else: 09:16:18 url = to_str(parsed_url.url) 09:16:18 09:16:18 conn = None 09:16:18 09:16:18 # Track whether `conn` needs to be released before 09:16:18 # returning/raising/recursing. Update this variable if necessary, and 09:16:18 # leave `release_conn` constant throughout the function. That way, if 09:16:18 # the function recurses, the original value of `release_conn` will be 09:16:18 # passed down into the recursive call, and its value will be respected. 09:16:18 # 09:16:18 # See issue #651 [1] for details. 09:16:18 # 09:16:18 # [1] 09:16:18 release_this_conn = release_conn 09:16:18 09:16:18 http_tunnel_required = connection_requires_http_tunnel( 09:16:18 self.proxy, self.proxy_config, destination_scheme 09:16:18 ) 09:16:18 09:16:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:18 # have to copy the headers dict so we can safely change it without those 09:16:18 # changes being reflected in anyone else's copy. 09:16:18 if not http_tunnel_required: 09:16:18 headers = headers.copy() # type: ignore[attr-defined] 09:16:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:18 09:16:18 # Must keep the exception bound to a separate variable or else Python 3 09:16:18 # complains about UnboundLocalError. 09:16:18 err = None 09:16:18 09:16:18 # Keep track of whether we cleanly exited the except block. This 09:16:18 # ensures we do proper cleanup in finally. 09:16:18 clean_exit = False 09:16:18 09:16:18 # Rewind body position, if needed. Record current position 09:16:18 # for future rewinds in the event of a redirect/retry. 09:16:18 body_pos = set_file_position(body, body_pos) 09:16:18 09:16:18 try: 09:16:18 # Request a connection from the queue. 09:16:18 timeout_obj = self._get_timeout(timeout) 09:16:18 conn = self._get_conn(timeout=pool_timeout) 09:16:18 09:16:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:18 09:16:18 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:18 try: 09:16:18 self._prepare_proxy(conn) 09:16:18 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:18 self._raise_timeout( 09:16:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:18 ) 09:16:18 raise 09:16:18 09:16:18 # If we're going to release the connection in ``finally:``, then 09:16:18 # the response doesn't need to know about the connection. Otherwise 09:16:18 # it will also try to release it and we'll have a double-release 09:16:18 # mess. 09:16:18 response_conn = conn if not release_conn else None 09:16:18 09:16:18 # Make the request on the HTTPConnection object 09:16:18 > response = self._make_request( 09:16:18 conn, 09:16:18 method, 09:16:18 url, 09:16:18 timeout=timeout_obj, 09:16:18 body=body, 09:16:18 headers=headers, 09:16:18 chunked=chunked, 09:16:18 retries=retries, 09:16:18 response_conn=response_conn, 09:16:18 preload_content=preload_content, 09:16:18 decode_content=decode_content, 09:16:18 **response_kw, 09:16:18 ) 09:16:18 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:18 conn.request( 09:16:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:18 self.endheaders() 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:18 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:18 self.send(msg) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:19 self.connect() 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:19 self.sock = self._new_conn() 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 except socket.gaierror as e: 09:16:19 raise NameResolutionError(self.host, self, e) from e 09:16:19 except SocketTimeout as e: 09:16:19 raise ConnectTimeoutError( 09:16:19 self, 09:16:19 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:19 ) from e 09:16:19 09:16:19 except OSError as e: 09:16:19 > raise NewConnectionError( 09:16:19 self, f"Failed to establish a new connection: {e}" 09:16:19 ) from e 09:16:19 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 > resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:19 retries = retries.increment( 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3' 09:16:19 response = None 09:16:19 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:19 _pool = 09:16:19 _stacktrace = 09:16:19 09:16:19 def increment( 09:16:19 self, 09:16:19 method: str | None = None, 09:16:19 url: str | None = None, 09:16:19 response: BaseHTTPResponse | None = None, 09:16:19 error: Exception | None = None, 09:16:19 _pool: ConnectionPool | None = None, 09:16:19 _stacktrace: TracebackType | None = None, 09:16:19 ) -> Self: 09:16:19 """Return a new Retry object with incremented retry counters. 09:16:19 09:16:19 :param response: A response object, or None, if the server did not 09:16:19 return a response. 09:16:19 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:19 :param Exception error: An error encountered during the request, or 09:16:19 None if the response was received successfully. 09:16:19 09:16:19 :return: A new ``Retry`` object. 09:16:19 """ 09:16:19 if self.total is False and error: 09:16:19 # Disabled, indicate to re-raise the error. 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 09:16:19 total = self.total 09:16:19 if total is not None: 09:16:19 total -= 1 09:16:19 09:16:19 connect = self.connect 09:16:19 read = self.read 09:16:19 redirect = self.redirect 09:16:19 status_count = self.status 09:16:19 other = self.other 09:16:19 cause = "unknown" 09:16:19 status = None 09:16:19 redirect_location = None 09:16:19 09:16:19 if error and self._is_connection_error(error): 09:16:19 # Connect retry? 09:16:19 if connect is False: 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif connect is not None: 09:16:19 connect -= 1 09:16:19 09:16:19 elif error and self._is_read_error(error): 09:16:19 # Read retry? 09:16:19 if read is False or method is None or not self._is_method_retryable(method): 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif read is not None: 09:16:19 read -= 1 09:16:19 09:16:19 elif error: 09:16:19 # Other retry? 09:16:19 if other is not None: 09:16:19 other -= 1 09:16:19 09:16:19 elif response and response.get_redirect_location(): 09:16:19 # Redirect retry? 09:16:19 if redirect is not None: 09:16:19 redirect -= 1 09:16:19 cause = "too many redirects" 09:16:19 response_redirect_location = response.get_redirect_location() 09:16:19 if response_redirect_location: 09:16:19 redirect_location = response_redirect_location 09:16:19 status = response.status 09:16:19 09:16:19 else: 09:16:19 # Incrementing because of a server error like a 500 in 09:16:19 # status_forcelist and the given method is in the allowed_methods 09:16:19 cause = ResponseError.GENERIC_ERROR 09:16:19 if response and response.status: 09:16:19 if status_count is not None: 09:16:19 status_count -= 1 09:16:19 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:19 status = response.status 09:16:19 09:16:19 history = self.history + ( 09:16:19 RequestHistory(method, url, error, status, redirect_location), 09:16:19 ) 09:16:19 09:16:19 new_retry = self.new( 09:16:19 total=total, 09:16:19 connect=connect, 09:16:19 read=read, 09:16:19 redirect=redirect, 09:16:19 status=status_count, 09:16:19 other=other, 09:16:19 history=history, 09:16:19 ) 09:16:19 09:16:19 if new_retry.is_exhausted(): 09:16:19 reason = error or ResponseError(cause) 09:16:19 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:19 09:16:19 During handling of the above exception, another exception occurred: 09:16:19 09:16:19 self = 09:16:19 09:16:19 def test_14_xpdr_portmapping_CLIENT3(self): 09:16:19 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT3") 09:16:19 09:16:19 transportpce_tests/1.2.1/test01_portmapping.py:168: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 09:16:19 response = get_request(target_url) 09:16:19 transportpce_tests/common/test_utils.py:116: in get_request 09:16:19 return requests.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:19 return session.request(method=method, url=url, **kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:19 resp = self.send(prep, **send_kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:19 r = adapter.send(request, **kwargs) 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 except (ProtocolError, OSError) as err: 09:16:19 raise ConnectionError(err, request=request) 09:16:19 09:16:19 except MaxRetryError as e: 09:16:19 if isinstance(e.reason, ConnectTimeoutError): 09:16:19 # TODO: Remove this in 3.0.0: see #2811 09:16:19 if not isinstance(e.reason, NewConnectionError): 09:16:19 raise ConnectTimeout(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, ResponseError): 09:16:19 raise RetryError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _ProxyError): 09:16:19 raise ProxyError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _SSLError): 09:16:19 # This branch is for urllib3 v1.22 and later. 09:16:19 raise SSLError(e, request=request) 09:16:19 09:16:19 > raise ConnectionError(e, request=request) 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:19 ----------------------------- Captured stdout call ----------------------------- 09:16:19 execution of test_14_xpdr_portmapping_CLIENT3 09:16:19 _______ TransportPCEPortMappingTesting.test_15_xpdr_portmapping_CLIENT4 ________ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 > sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:19 raise err 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:19 socket_options = [(6, 1, 1)] 09:16:19 09:16:19 def create_connection( 09:16:19 address: tuple[str, int], 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 source_address: tuple[str, int] | None = None, 09:16:19 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:19 ) -> socket.socket: 09:16:19 """Connect to *address* and return the socket object. 09:16:19 09:16:19 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:19 port)``) and return the socket object. Passing the optional 09:16:19 *timeout* parameter will set the timeout on the socket instance 09:16:19 before attempting to connect. If no *timeout* is supplied, the 09:16:19 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:19 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:19 for the socket to bind as a source address before making the connection. 09:16:19 An host of '' or port 0 tells the OS to use the default. 09:16:19 """ 09:16:19 09:16:19 host, port = address 09:16:19 if host.startswith("["): 09:16:19 host = host.strip("[]") 09:16:19 err = None 09:16:19 09:16:19 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:19 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:19 # The original create_connection function always returns all records. 09:16:19 family = allowed_gai_family() 09:16:19 09:16:19 try: 09:16:19 host.encode("idna") 09:16:19 except UnicodeError: 09:16:19 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:19 09:16:19 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:19 af, socktype, proto, canonname, sa = res 09:16:19 sock = None 09:16:19 try: 09:16:19 sock = socket.socket(af, socktype, proto) 09:16:19 09:16:19 # If provided, set socket level options before connecting. 09:16:19 _set_socket_options(sock, socket_options) 09:16:19 09:16:19 if timeout is not _DEFAULT_TIMEOUT: 09:16:19 sock.settimeout(timeout) 09:16:19 if source_address: 09:16:19 sock.bind(source_address) 09:16:19 > sock.connect(sa) 09:16:19 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4' 09:16:19 body = None 09:16:19 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='} 09:16:19 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 redirect = False, assert_same_host = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:19 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:19 decode_content = False, response_kw = {} 09:16:19 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) 09:16:19 destination_scheme = None, conn = None, release_this_conn = True 09:16:19 http_tunnel_required = False, err = None, clean_exit = False 09:16:19 09:16:19 def urlopen( # type: ignore[override] 09:16:19 self, 09:16:19 method: str, 09:16:19 url: str, 09:16:19 body: _TYPE_BODY | None = None, 09:16:19 headers: typing.Mapping[str, str] | None = None, 09:16:19 retries: Retry | bool | int | None = None, 09:16:19 redirect: bool = True, 09:16:19 assert_same_host: bool = True, 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 pool_timeout: int | None = None, 09:16:19 release_conn: bool | None = None, 09:16:19 chunked: bool = False, 09:16:19 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:19 preload_content: bool = True, 09:16:19 decode_content: bool = True, 09:16:19 **response_kw: typing.Any, 09:16:19 ) -> BaseHTTPResponse: 09:16:19 """ 09:16:19 Get a connection from the pool and perform an HTTP request. This is the 09:16:19 lowest level call for making a request, so you'll need to specify all 09:16:19 the raw details. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 More commonly, it's appropriate to use a convenience method 09:16:19 such as :meth:`request`. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 `release_conn` will only behave as expected if 09:16:19 `preload_content=False` because we want to make 09:16:19 `preload_content=False` the default behaviour someday soon without 09:16:19 breaking backwards compatibility. 09:16:19 09:16:19 :param method: 09:16:19 HTTP request method (such as GET, POST, PUT, etc.) 09:16:19 09:16:19 :param url: 09:16:19 The URL to perform the request on. 09:16:19 09:16:19 :param body: 09:16:19 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:19 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:19 09:16:19 :param headers: 09:16:19 Dictionary of custom headers to send, such as User-Agent, 09:16:19 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:19 these headers completely replace any pool-specific headers. 09:16:19 09:16:19 :param retries: 09:16:19 Configure the number of retries to allow before raising a 09:16:19 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:19 09:16:19 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:19 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:19 over different types of retries. 09:16:19 Pass an integer number to retry connection errors that many times, 09:16:19 but no other types of errors. Pass zero to never retry. 09:16:19 09:16:19 If ``False``, then retries are disabled and any exception is raised 09:16:19 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:19 the redirect response will be returned. 09:16:19 09:16:19 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:19 09:16:19 :param redirect: 09:16:19 If True, automatically handle redirects (status codes 301, 302, 09:16:19 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:19 will disable redirect, too. 09:16:19 09:16:19 :param assert_same_host: 09:16:19 If ``True``, will make sure that the host of the pool requests is 09:16:19 consistent else will raise HostChangedError. When ``False``, you can 09:16:19 use the pool on an HTTP proxy and request foreign hosts. 09:16:19 09:16:19 :param timeout: 09:16:19 If specified, overrides the default timeout for this one 09:16:19 request. It may be a float (in seconds) or an instance of 09:16:19 :class:`urllib3.util.Timeout`. 09:16:19 09:16:19 :param pool_timeout: 09:16:19 If set and the pool is set to block=True, then this method will 09:16:19 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:19 connection is available within the time period. 09:16:19 09:16:19 :param bool preload_content: 09:16:19 If True, the response's body will be preloaded into memory. 09:16:19 09:16:19 :param bool decode_content: 09:16:19 If True, will attempt to decode the body based on the 09:16:19 'content-encoding' header. 09:16:19 09:16:19 :param release_conn: 09:16:19 If False, then the urlopen call will not release the connection 09:16:19 back into the pool once a response is received (but will release if 09:16:19 you read the entire contents of the response such as when 09:16:19 `preload_content=True`). This is useful if you're not preloading 09:16:19 the response's content immediately. You will need to call 09:16:19 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:19 back into the pool. If None, it takes the value of ``preload_content`` 09:16:19 which defaults to ``True``. 09:16:19 09:16:19 :param bool chunked: 09:16:19 If True, urllib3 will send the body using chunked transfer 09:16:19 encoding. Otherwise, urllib3 will send the body using the standard 09:16:19 content-length form. Defaults to False. 09:16:19 09:16:19 :param int body_pos: 09:16:19 Position to seek to in file-like body in the event of a retry or 09:16:19 redirect. Typically this won't need to be set because urllib3 will 09:16:19 auto-populate the value when needed. 09:16:19 """ 09:16:19 parsed_url = parse_url(url) 09:16:19 destination_scheme = parsed_url.scheme 09:16:19 09:16:19 if headers is None: 09:16:19 headers = self.headers 09:16:19 09:16:19 if not isinstance(retries, Retry): 09:16:19 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:19 09:16:19 if release_conn is None: 09:16:19 release_conn = preload_content 09:16:19 09:16:19 # Check host 09:16:19 if assert_same_host and not self.is_same_host(url): 09:16:19 raise HostChangedError(self, url, retries) 09:16:19 09:16:19 # Ensure that the URL we're connecting to is properly encoded 09:16:19 if url.startswith("/"): 09:16:19 url = to_str(_encode_target(url)) 09:16:19 else: 09:16:19 url = to_str(parsed_url.url) 09:16:19 09:16:19 conn = None 09:16:19 09:16:19 # Track whether `conn` needs to be released before 09:16:19 # returning/raising/recursing. Update this variable if necessary, and 09:16:19 # leave `release_conn` constant throughout the function. That way, if 09:16:19 # the function recurses, the original value of `release_conn` will be 09:16:19 # passed down into the recursive call, and its value will be respected. 09:16:19 # 09:16:19 # See issue #651 [1] for details. 09:16:19 # 09:16:19 # [1] 09:16:19 release_this_conn = release_conn 09:16:19 09:16:19 http_tunnel_required = connection_requires_http_tunnel( 09:16:19 self.proxy, self.proxy_config, destination_scheme 09:16:19 ) 09:16:19 09:16:19 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:19 # have to copy the headers dict so we can safely change it without those 09:16:19 # changes being reflected in anyone else's copy. 09:16:19 if not http_tunnel_required: 09:16:19 headers = headers.copy() # type: ignore[attr-defined] 09:16:19 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:19 09:16:19 # Must keep the exception bound to a separate variable or else Python 3 09:16:19 # complains about UnboundLocalError. 09:16:19 err = None 09:16:19 09:16:19 # Keep track of whether we cleanly exited the except block. This 09:16:19 # ensures we do proper cleanup in finally. 09:16:19 clean_exit = False 09:16:19 09:16:19 # Rewind body position, if needed. Record current position 09:16:19 # for future rewinds in the event of a redirect/retry. 09:16:19 body_pos = set_file_position(body, body_pos) 09:16:19 09:16:19 try: 09:16:19 # Request a connection from the queue. 09:16:19 timeout_obj = self._get_timeout(timeout) 09:16:19 conn = self._get_conn(timeout=pool_timeout) 09:16:19 09:16:19 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:19 09:16:19 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:19 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:19 try: 09:16:19 self._prepare_proxy(conn) 09:16:19 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:19 self._raise_timeout( 09:16:19 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:19 ) 09:16:19 raise 09:16:19 09:16:19 # If we're going to release the connection in ``finally:``, then 09:16:19 # the response doesn't need to know about the connection. Otherwise 09:16:19 # it will also try to release it and we'll have a double-release 09:16:19 # mess. 09:16:19 response_conn = conn if not release_conn else None 09:16:19 09:16:19 # Make the request on the HTTPConnection object 09:16:19 > response = self._make_request( 09:16:19 conn, 09:16:19 method, 09:16:19 url, 09:16:19 timeout=timeout_obj, 09:16:19 body=body, 09:16:19 headers=headers, 09:16:19 chunked=chunked, 09:16:19 retries=retries, 09:16:19 response_conn=response_conn, 09:16:19 preload_content=preload_content, 09:16:19 decode_content=decode_content, 09:16:19 **response_kw, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:19 conn.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:19 self.endheaders() 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:19 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:19 self.send(msg) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:19 self.connect() 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:19 self.sock = self._new_conn() 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 except socket.gaierror as e: 09:16:19 raise NameResolutionError(self.host, self, e) from e 09:16:19 except SocketTimeout as e: 09:16:19 raise ConnectTimeoutError( 09:16:19 self, 09:16:19 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:19 ) from e 09:16:19 09:16:19 except OSError as e: 09:16:19 > raise NewConnectionError( 09:16:19 self, f"Failed to establish a new connection: {e}" 09:16:19 ) from e 09:16:19 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 > resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:19 retries = retries.increment( 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4' 09:16:19 response = None 09:16:19 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:19 _pool = 09:16:19 _stacktrace = 09:16:19 09:16:19 def increment( 09:16:19 self, 09:16:19 method: str | None = None, 09:16:19 url: str | None = None, 09:16:19 response: BaseHTTPResponse | None = None, 09:16:19 error: Exception | None = None, 09:16:19 _pool: ConnectionPool | None = None, 09:16:19 _stacktrace: TracebackType | None = None, 09:16:19 ) -> Self: 09:16:19 """Return a new Retry object with incremented retry counters. 09:16:19 09:16:19 :param response: A response object, or None, if the server did not 09:16:19 return a response. 09:16:19 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:19 :param Exception error: An error encountered during the request, or 09:16:19 None if the response was received successfully. 09:16:19 09:16:19 :return: A new ``Retry`` object. 09:16:19 """ 09:16:19 if self.total is False and error: 09:16:19 # Disabled, indicate to re-raise the error. 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 09:16:19 total = self.total 09:16:19 if total is not None: 09:16:19 total -= 1 09:16:19 09:16:19 connect = self.connect 09:16:19 read = self.read 09:16:19 redirect = self.redirect 09:16:19 status_count = self.status 09:16:19 other = self.other 09:16:19 cause = "unknown" 09:16:19 status = None 09:16:19 redirect_location = None 09:16:19 09:16:19 if error and self._is_connection_error(error): 09:16:19 # Connect retry? 09:16:19 if connect is False: 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif connect is not None: 09:16:19 connect -= 1 09:16:19 09:16:19 elif error and self._is_read_error(error): 09:16:19 # Read retry? 09:16:19 if read is False or method is None or not self._is_method_retryable(method): 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif read is not None: 09:16:19 read -= 1 09:16:19 09:16:19 elif error: 09:16:19 # Other retry? 09:16:19 if other is not None: 09:16:19 other -= 1 09:16:19 09:16:19 elif response and response.get_redirect_location(): 09:16:19 # Redirect retry? 09:16:19 if redirect is not None: 09:16:19 redirect -= 1 09:16:19 cause = "too many redirects" 09:16:19 response_redirect_location = response.get_redirect_location() 09:16:19 if response_redirect_location: 09:16:19 redirect_location = response_redirect_location 09:16:19 status = response.status 09:16:19 09:16:19 else: 09:16:19 # Incrementing because of a server error like a 500 in 09:16:19 # status_forcelist and the given method is in the allowed_methods 09:16:19 cause = ResponseError.GENERIC_ERROR 09:16:19 if response and response.status: 09:16:19 if status_count is not None: 09:16:19 status_count -= 1 09:16:19 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:19 status = response.status 09:16:19 09:16:19 history = self.history + ( 09:16:19 RequestHistory(method, url, error, status, redirect_location), 09:16:19 ) 09:16:19 09:16:19 new_retry = self.new( 09:16:19 total=total, 09:16:19 connect=connect, 09:16:19 read=read, 09:16:19 redirect=redirect, 09:16:19 status=status_count, 09:16:19 other=other, 09:16:19 history=history, 09:16:19 ) 09:16:19 09:16:19 if new_retry.is_exhausted(): 09:16:19 reason = error or ResponseError(cause) 09:16:19 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:19 09:16:19 During handling of the above exception, another exception occurred: 09:16:19 09:16:19 self = 09:16:19 09:16:19 def test_15_xpdr_portmapping_CLIENT4(self): 09:16:19 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT4") 09:16:19 09:16:19 transportpce_tests/1.2.1/test01_portmapping.py:180: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 09:16:19 response = get_request(target_url) 09:16:19 transportpce_tests/common/test_utils.py:116: in get_request 09:16:19 return requests.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:19 return session.request(method=method, url=url, **kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:19 resp = self.send(prep, **send_kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:19 r = adapter.send(request, **kwargs) 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 except (ProtocolError, OSError) as err: 09:16:19 raise ConnectionError(err, request=request) 09:16:19 09:16:19 except MaxRetryError as e: 09:16:19 if isinstance(e.reason, ConnectTimeoutError): 09:16:19 # TODO: Remove this in 3.0.0: see #2811 09:16:19 if not isinstance(e.reason, NewConnectionError): 09:16:19 raise ConnectTimeout(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, ResponseError): 09:16:19 raise RetryError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _ProxyError): 09:16:19 raise ProxyError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _SSLError): 09:16:19 # This branch is for urllib3 v1.22 and later. 09:16:19 raise SSLError(e, request=request) 09:16:19 09:16:19 > raise ConnectionError(e, request=request) 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:19 ----------------------------- Captured stdout call ----------------------------- 09:16:19 execution of test_15_xpdr_portmapping_CLIENT4 09:16:19 _______ TransportPCEPortMappingTesting.test_16_xpdr_device_disconnection _______ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 > sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:19 raise err 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:19 socket_options = [(6, 1, 1)] 09:16:19 09:16:19 def create_connection( 09:16:19 address: tuple[str, int], 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 source_address: tuple[str, int] | None = None, 09:16:19 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:19 ) -> socket.socket: 09:16:19 """Connect to *address* and return the socket object. 09:16:19 09:16:19 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:19 port)``) and return the socket object. Passing the optional 09:16:19 *timeout* parameter will set the timeout on the socket instance 09:16:19 before attempting to connect. If no *timeout* is supplied, the 09:16:19 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:19 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:19 for the socket to bind as a source address before making the connection. 09:16:19 An host of '' or port 0 tells the OS to use the default. 09:16:19 """ 09:16:19 09:16:19 host, port = address 09:16:19 if host.startswith("["): 09:16:19 host = host.strip("[]") 09:16:19 err = None 09:16:19 09:16:19 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:19 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:19 # The original create_connection function always returns all records. 09:16:19 family = allowed_gai_family() 09:16:19 09:16:19 try: 09:16:19 host.encode("idna") 09:16:19 except UnicodeError: 09:16:19 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:19 09:16:19 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:19 af, socktype, proto, canonname, sa = res 09:16:19 sock = None 09:16:19 try: 09:16:19 sock = socket.socket(af, socktype, proto) 09:16:19 09:16:19 # If provided, set socket level options before connecting. 09:16:19 _set_socket_options(sock, socket_options) 09:16:19 09:16:19 if timeout is not _DEFAULT_TIMEOUT: 09:16:19 sock.settimeout(timeout) 09:16:19 if source_address: 09:16:19 sock.bind(source_address) 09:16:19 > sock.connect(sa) 09:16:19 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 method = 'DELETE' 09:16:19 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 09:16:19 body = None 09:16:19 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='} 09:16:19 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 redirect = False, assert_same_host = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:19 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:19 decode_content = False, response_kw = {} 09:16:19 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) 09:16:19 destination_scheme = None, conn = None, release_this_conn = True 09:16:19 http_tunnel_required = False, err = None, clean_exit = False 09:16:19 09:16:19 def urlopen( # type: ignore[override] 09:16:19 self, 09:16:19 method: str, 09:16:19 url: str, 09:16:19 body: _TYPE_BODY | None = None, 09:16:19 headers: typing.Mapping[str, str] | None = None, 09:16:19 retries: Retry | bool | int | None = None, 09:16:19 redirect: bool = True, 09:16:19 assert_same_host: bool = True, 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 pool_timeout: int | None = None, 09:16:19 release_conn: bool | None = None, 09:16:19 chunked: bool = False, 09:16:19 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:19 preload_content: bool = True, 09:16:19 decode_content: bool = True, 09:16:19 **response_kw: typing.Any, 09:16:19 ) -> BaseHTTPResponse: 09:16:19 """ 09:16:19 Get a connection from the pool and perform an HTTP request. This is the 09:16:19 lowest level call for making a request, so you'll need to specify all 09:16:19 the raw details. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 More commonly, it's appropriate to use a convenience method 09:16:19 such as :meth:`request`. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 `release_conn` will only behave as expected if 09:16:19 `preload_content=False` because we want to make 09:16:19 `preload_content=False` the default behaviour someday soon without 09:16:19 breaking backwards compatibility. 09:16:19 09:16:19 :param method: 09:16:19 HTTP request method (such as GET, POST, PUT, etc.) 09:16:19 09:16:19 :param url: 09:16:19 The URL to perform the request on. 09:16:19 09:16:19 :param body: 09:16:19 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:19 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:19 09:16:19 :param headers: 09:16:19 Dictionary of custom headers to send, such as User-Agent, 09:16:19 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:19 these headers completely replace any pool-specific headers. 09:16:19 09:16:19 :param retries: 09:16:19 Configure the number of retries to allow before raising a 09:16:19 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:19 09:16:19 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:19 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:19 over different types of retries. 09:16:19 Pass an integer number to retry connection errors that many times, 09:16:19 but no other types of errors. Pass zero to never retry. 09:16:19 09:16:19 If ``False``, then retries are disabled and any exception is raised 09:16:19 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:19 the redirect response will be returned. 09:16:19 09:16:19 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:19 09:16:19 :param redirect: 09:16:19 If True, automatically handle redirects (status codes 301, 302, 09:16:19 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:19 will disable redirect, too. 09:16:19 09:16:19 :param assert_same_host: 09:16:19 If ``True``, will make sure that the host of the pool requests is 09:16:19 consistent else will raise HostChangedError. When ``False``, you can 09:16:19 use the pool on an HTTP proxy and request foreign hosts. 09:16:19 09:16:19 :param timeout: 09:16:19 If specified, overrides the default timeout for this one 09:16:19 request. It may be a float (in seconds) or an instance of 09:16:19 :class:`urllib3.util.Timeout`. 09:16:19 09:16:19 :param pool_timeout: 09:16:19 If set and the pool is set to block=True, then this method will 09:16:19 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:19 connection is available within the time period. 09:16:19 09:16:19 :param bool preload_content: 09:16:19 If True, the response's body will be preloaded into memory. 09:16:19 09:16:19 :param bool decode_content: 09:16:19 If True, will attempt to decode the body based on the 09:16:19 'content-encoding' header. 09:16:19 09:16:19 :param release_conn: 09:16:19 If False, then the urlopen call will not release the connection 09:16:19 back into the pool once a response is received (but will release if 09:16:19 you read the entire contents of the response such as when 09:16:19 `preload_content=True`). This is useful if you're not preloading 09:16:19 the response's content immediately. You will need to call 09:16:19 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:19 back into the pool. If None, it takes the value of ``preload_content`` 09:16:19 which defaults to ``True``. 09:16:19 09:16:19 :param bool chunked: 09:16:19 If True, urllib3 will send the body using chunked transfer 09:16:19 encoding. Otherwise, urllib3 will send the body using the standard 09:16:19 content-length form. Defaults to False. 09:16:19 09:16:19 :param int body_pos: 09:16:19 Position to seek to in file-like body in the event of a retry or 09:16:19 redirect. Typically this won't need to be set because urllib3 will 09:16:19 auto-populate the value when needed. 09:16:19 """ 09:16:19 parsed_url = parse_url(url) 09:16:19 destination_scheme = parsed_url.scheme 09:16:19 09:16:19 if headers is None: 09:16:19 headers = self.headers 09:16:19 09:16:19 if not isinstance(retries, Retry): 09:16:19 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:19 09:16:19 if release_conn is None: 09:16:19 release_conn = preload_content 09:16:19 09:16:19 # Check host 09:16:19 if assert_same_host and not self.is_same_host(url): 09:16:19 raise HostChangedError(self, url, retries) 09:16:19 09:16:19 # Ensure that the URL we're connecting to is properly encoded 09:16:19 if url.startswith("/"): 09:16:19 url = to_str(_encode_target(url)) 09:16:19 else: 09:16:19 url = to_str(parsed_url.url) 09:16:19 09:16:19 conn = None 09:16:19 09:16:19 # Track whether `conn` needs to be released before 09:16:19 # returning/raising/recursing. Update this variable if necessary, and 09:16:19 # leave `release_conn` constant throughout the function. That way, if 09:16:19 # the function recurses, the original value of `release_conn` will be 09:16:19 # passed down into the recursive call, and its value will be respected. 09:16:19 # 09:16:19 # See issue #651 [1] for details. 09:16:19 # 09:16:19 # [1] 09:16:19 release_this_conn = release_conn 09:16:19 09:16:19 http_tunnel_required = connection_requires_http_tunnel( 09:16:19 self.proxy, self.proxy_config, destination_scheme 09:16:19 ) 09:16:19 09:16:19 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:19 # have to copy the headers dict so we can safely change it without those 09:16:19 # changes being reflected in anyone else's copy. 09:16:19 if not http_tunnel_required: 09:16:19 headers = headers.copy() # type: ignore[attr-defined] 09:16:19 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:19 09:16:19 # Must keep the exception bound to a separate variable or else Python 3 09:16:19 # complains about UnboundLocalError. 09:16:19 err = None 09:16:19 09:16:19 # Keep track of whether we cleanly exited the except block. This 09:16:19 # ensures we do proper cleanup in finally. 09:16:19 clean_exit = False 09:16:19 09:16:19 # Rewind body position, if needed. Record current position 09:16:19 # for future rewinds in the event of a redirect/retry. 09:16:19 body_pos = set_file_position(body, body_pos) 09:16:19 09:16:19 try: 09:16:19 # Request a connection from the queue. 09:16:19 timeout_obj = self._get_timeout(timeout) 09:16:19 conn = self._get_conn(timeout=pool_timeout) 09:16:19 09:16:19 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:19 09:16:19 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:19 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:19 try: 09:16:19 self._prepare_proxy(conn) 09:16:19 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:19 self._raise_timeout( 09:16:19 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:19 ) 09:16:19 raise 09:16:19 09:16:19 # If we're going to release the connection in ``finally:``, then 09:16:19 # the response doesn't need to know about the connection. Otherwise 09:16:19 # it will also try to release it and we'll have a double-release 09:16:19 # mess. 09:16:19 response_conn = conn if not release_conn else None 09:16:19 09:16:19 # Make the request on the HTTPConnection object 09:16:19 > response = self._make_request( 09:16:19 conn, 09:16:19 method, 09:16:19 url, 09:16:19 timeout=timeout_obj, 09:16:19 body=body, 09:16:19 headers=headers, 09:16:19 chunked=chunked, 09:16:19 retries=retries, 09:16:19 response_conn=response_conn, 09:16:19 preload_content=preload_content, 09:16:19 decode_content=decode_content, 09:16:19 **response_kw, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:19 conn.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:19 self.endheaders() 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:19 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:19 self.send(msg) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:19 self.connect() 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:19 self.sock = self._new_conn() 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 except socket.gaierror as e: 09:16:19 raise NameResolutionError(self.host, self, e) from e 09:16:19 except SocketTimeout as e: 09:16:19 raise ConnectTimeoutError( 09:16:19 self, 09:16:19 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:19 ) from e 09:16:19 09:16:19 except OSError as e: 09:16:19 > raise NewConnectionError( 09:16:19 self, f"Failed to establish a new connection: {e}" 09:16:19 ) from e 09:16:19 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 > resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:19 retries = retries.increment( 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 method = 'DELETE' 09:16:19 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 09:16:19 response = None 09:16:19 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:19 _pool = 09:16:19 _stacktrace = 09:16:19 09:16:19 def increment( 09:16:19 self, 09:16:19 method: str | None = None, 09:16:19 url: str | None = None, 09:16:19 response: BaseHTTPResponse | None = None, 09:16:19 error: Exception | None = None, 09:16:19 _pool: ConnectionPool | None = None, 09:16:19 _stacktrace: TracebackType | None = None, 09:16:19 ) -> Self: 09:16:19 """Return a new Retry object with incremented retry counters. 09:16:19 09:16:19 :param response: A response object, or None, if the server did not 09:16:19 return a response. 09:16:19 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:19 :param Exception error: An error encountered during the request, or 09:16:19 None if the response was received successfully. 09:16:19 09:16:19 :return: A new ``Retry`` object. 09:16:19 """ 09:16:19 if self.total is False and error: 09:16:19 # Disabled, indicate to re-raise the error. 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 09:16:19 total = self.total 09:16:19 if total is not None: 09:16:19 total -= 1 09:16:19 09:16:19 connect = self.connect 09:16:19 read = self.read 09:16:19 redirect = self.redirect 09:16:19 status_count = self.status 09:16:19 other = self.other 09:16:19 cause = "unknown" 09:16:19 status = None 09:16:19 redirect_location = None 09:16:19 09:16:19 if error and self._is_connection_error(error): 09:16:19 # Connect retry? 09:16:19 if connect is False: 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif connect is not None: 09:16:19 connect -= 1 09:16:19 09:16:19 elif error and self._is_read_error(error): 09:16:19 # Read retry? 09:16:19 if read is False or method is None or not self._is_method_retryable(method): 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif read is not None: 09:16:19 read -= 1 09:16:19 09:16:19 elif error: 09:16:19 # Other retry? 09:16:19 if other is not None: 09:16:19 other -= 1 09:16:19 09:16:19 elif response and response.get_redirect_location(): 09:16:19 # Redirect retry? 09:16:19 if redirect is not None: 09:16:19 redirect -= 1 09:16:19 cause = "too many redirects" 09:16:19 response_redirect_location = response.get_redirect_location() 09:16:19 if response_redirect_location: 09:16:19 redirect_location = response_redirect_location 09:16:19 status = response.status 09:16:19 09:16:19 else: 09:16:19 # Incrementing because of a server error like a 500 in 09:16:19 # status_forcelist and the given method is in the allowed_methods 09:16:19 cause = ResponseError.GENERIC_ERROR 09:16:19 if response and response.status: 09:16:19 if status_count is not None: 09:16:19 status_count -= 1 09:16:19 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:19 status = response.status 09:16:19 09:16:19 history = self.history + ( 09:16:19 RequestHistory(method, url, error, status, redirect_location), 09:16:19 ) 09:16:19 09:16:19 new_retry = self.new( 09:16:19 total=total, 09:16:19 connect=connect, 09:16:19 read=read, 09:16:19 redirect=redirect, 09:16:19 status=status_count, 09:16:19 other=other, 09:16:19 history=history, 09:16:19 ) 09:16:19 09:16:19 if new_retry.is_exhausted(): 09:16:19 reason = error or ResponseError(cause) 09:16:19 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:19 09:16:19 During handling of the above exception, another exception occurred: 09:16:19 09:16:19 self = 09:16:19 09:16:19 def test_16_xpdr_device_disconnection(self): 09:16:19 > response = test_utils.unmount_device("XPDRA01") 09:16:19 09:16:19 transportpce_tests/1.2.1/test01_portmapping.py:191: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 transportpce_tests/common/test_utils.py:358: in unmount_device 09:16:19 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 09:16:19 transportpce_tests/common/test_utils.py:133: in delete_request 09:16:19 return requests.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:19 return session.request(method=method, url=url, **kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:19 resp = self.send(prep, **send_kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:19 r = adapter.send(request, **kwargs) 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 except (ProtocolError, OSError) as err: 09:16:19 raise ConnectionError(err, request=request) 09:16:19 09:16:19 except MaxRetryError as e: 09:16:19 if isinstance(e.reason, ConnectTimeoutError): 09:16:19 # TODO: Remove this in 3.0.0: see #2811 09:16:19 if not isinstance(e.reason, NewConnectionError): 09:16:19 raise ConnectTimeout(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, ResponseError): 09:16:19 raise RetryError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _ProxyError): 09:16:19 raise ProxyError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _SSLError): 09:16:19 # This branch is for urllib3 v1.22 and later. 09:16:19 raise SSLError(e, request=request) 09:16:19 09:16:19 > raise ConnectionError(e, request=request) 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:19 ----------------------------- Captured stdout call ----------------------------- 09:16:19 execution of test_16_xpdr_device_disconnection 09:16:19 _______ TransportPCEPortMappingTesting.test_17_xpdr_device_disconnected ________ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 > sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:19 raise err 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:19 socket_options = [(6, 1, 1)] 09:16:19 09:16:19 def create_connection( 09:16:19 address: tuple[str, int], 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 source_address: tuple[str, int] | None = None, 09:16:19 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:19 ) -> socket.socket: 09:16:19 """Connect to *address* and return the socket object. 09:16:19 09:16:19 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:19 port)``) and return the socket object. Passing the optional 09:16:19 *timeout* parameter will set the timeout on the socket instance 09:16:19 before attempting to connect. If no *timeout* is supplied, the 09:16:19 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:19 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:19 for the socket to bind as a source address before making the connection. 09:16:19 An host of '' or port 0 tells the OS to use the default. 09:16:19 """ 09:16:19 09:16:19 host, port = address 09:16:19 if host.startswith("["): 09:16:19 host = host.strip("[]") 09:16:19 err = None 09:16:19 09:16:19 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:19 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:19 # The original create_connection function always returns all records. 09:16:19 family = allowed_gai_family() 09:16:19 09:16:19 try: 09:16:19 host.encode("idna") 09:16:19 except UnicodeError: 09:16:19 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:19 09:16:19 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:19 af, socktype, proto, canonname, sa = res 09:16:19 sock = None 09:16:19 try: 09:16:19 sock = socket.socket(af, socktype, proto) 09:16:19 09:16:19 # If provided, set socket level options before connecting. 09:16:19 _set_socket_options(sock, socket_options) 09:16:19 09:16:19 if timeout is not _DEFAULT_TIMEOUT: 09:16:19 sock.settimeout(timeout) 09:16:19 if source_address: 09:16:19 sock.bind(source_address) 09:16:19 > sock.connect(sa) 09:16:19 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 09:16:19 body = None 09:16:19 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='} 09:16:19 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 redirect = False, assert_same_host = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:19 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:19 decode_content = False, response_kw = {} 09:16:19 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) 09:16:19 destination_scheme = None, conn = None, release_this_conn = True 09:16:19 http_tunnel_required = False, err = None, clean_exit = False 09:16:19 09:16:19 def urlopen( # type: ignore[override] 09:16:19 self, 09:16:19 method: str, 09:16:19 url: str, 09:16:19 body: _TYPE_BODY | None = None, 09:16:19 headers: typing.Mapping[str, str] | None = None, 09:16:19 retries: Retry | bool | int | None = None, 09:16:19 redirect: bool = True, 09:16:19 assert_same_host: bool = True, 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 pool_timeout: int | None = None, 09:16:19 release_conn: bool | None = None, 09:16:19 chunked: bool = False, 09:16:19 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:19 preload_content: bool = True, 09:16:19 decode_content: bool = True, 09:16:19 **response_kw: typing.Any, 09:16:19 ) -> BaseHTTPResponse: 09:16:19 """ 09:16:19 Get a connection from the pool and perform an HTTP request. This is the 09:16:19 lowest level call for making a request, so you'll need to specify all 09:16:19 the raw details. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 More commonly, it's appropriate to use a convenience method 09:16:19 such as :meth:`request`. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 `release_conn` will only behave as expected if 09:16:19 `preload_content=False` because we want to make 09:16:19 `preload_content=False` the default behaviour someday soon without 09:16:19 breaking backwards compatibility. 09:16:19 09:16:19 :param method: 09:16:19 HTTP request method (such as GET, POST, PUT, etc.) 09:16:19 09:16:19 :param url: 09:16:19 The URL to perform the request on. 09:16:19 09:16:19 :param body: 09:16:19 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:19 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:19 09:16:19 :param headers: 09:16:19 Dictionary of custom headers to send, such as User-Agent, 09:16:19 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:19 these headers completely replace any pool-specific headers. 09:16:19 09:16:19 :param retries: 09:16:19 Configure the number of retries to allow before raising a 09:16:19 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:19 09:16:19 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:19 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:19 over different types of retries. 09:16:19 Pass an integer number to retry connection errors that many times, 09:16:19 but no other types of errors. Pass zero to never retry. 09:16:19 09:16:19 If ``False``, then retries are disabled and any exception is raised 09:16:19 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:19 the redirect response will be returned. 09:16:19 09:16:19 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:19 09:16:19 :param redirect: 09:16:19 If True, automatically handle redirects (status codes 301, 302, 09:16:19 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:19 will disable redirect, too. 09:16:19 09:16:19 :param assert_same_host: 09:16:19 If ``True``, will make sure that the host of the pool requests is 09:16:19 consistent else will raise HostChangedError. When ``False``, you can 09:16:19 use the pool on an HTTP proxy and request foreign hosts. 09:16:19 09:16:19 :param timeout: 09:16:19 If specified, overrides the default timeout for this one 09:16:19 request. It may be a float (in seconds) or an instance of 09:16:19 :class:`urllib3.util.Timeout`. 09:16:19 09:16:19 :param pool_timeout: 09:16:19 If set and the pool is set to block=True, then this method will 09:16:19 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:19 connection is available within the time period. 09:16:19 09:16:19 :param bool preload_content: 09:16:19 If True, the response's body will be preloaded into memory. 09:16:19 09:16:19 :param bool decode_content: 09:16:19 If True, will attempt to decode the body based on the 09:16:19 'content-encoding' header. 09:16:19 09:16:19 :param release_conn: 09:16:19 If False, then the urlopen call will not release the connection 09:16:19 back into the pool once a response is received (but will release if 09:16:19 you read the entire contents of the response such as when 09:16:19 `preload_content=True`). This is useful if you're not preloading 09:16:19 the response's content immediately. You will need to call 09:16:19 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:19 back into the pool. If None, it takes the value of ``preload_content`` 09:16:19 which defaults to ``True``. 09:16:19 09:16:19 :param bool chunked: 09:16:19 If True, urllib3 will send the body using chunked transfer 09:16:19 encoding. Otherwise, urllib3 will send the body using the standard 09:16:19 content-length form. Defaults to False. 09:16:19 09:16:19 :param int body_pos: 09:16:19 Position to seek to in file-like body in the event of a retry or 09:16:19 redirect. Typically this won't need to be set because urllib3 will 09:16:19 auto-populate the value when needed. 09:16:19 """ 09:16:19 parsed_url = parse_url(url) 09:16:19 destination_scheme = parsed_url.scheme 09:16:19 09:16:19 if headers is None: 09:16:19 headers = self.headers 09:16:19 09:16:19 if not isinstance(retries, Retry): 09:16:19 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:19 09:16:19 if release_conn is None: 09:16:19 release_conn = preload_content 09:16:19 09:16:19 # Check host 09:16:19 if assert_same_host and not self.is_same_host(url): 09:16:19 raise HostChangedError(self, url, retries) 09:16:19 09:16:19 # Ensure that the URL we're connecting to is properly encoded 09:16:19 if url.startswith("/"): 09:16:19 url = to_str(_encode_target(url)) 09:16:19 else: 09:16:19 url = to_str(parsed_url.url) 09:16:19 09:16:19 conn = None 09:16:19 09:16:19 # Track whether `conn` needs to be released before 09:16:19 # returning/raising/recursing. Update this variable if necessary, and 09:16:19 # leave `release_conn` constant throughout the function. That way, if 09:16:19 # the function recurses, the original value of `release_conn` will be 09:16:19 # passed down into the recursive call, and its value will be respected. 09:16:19 # 09:16:19 # See issue #651 [1] for details. 09:16:19 # 09:16:19 # [1] 09:16:19 release_this_conn = release_conn 09:16:19 09:16:19 http_tunnel_required = connection_requires_http_tunnel( 09:16:19 self.proxy, self.proxy_config, destination_scheme 09:16:19 ) 09:16:19 09:16:19 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:19 # have to copy the headers dict so we can safely change it without those 09:16:19 # changes being reflected in anyone else's copy. 09:16:19 if not http_tunnel_required: 09:16:19 headers = headers.copy() # type: ignore[attr-defined] 09:16:19 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:19 09:16:19 # Must keep the exception bound to a separate variable or else Python 3 09:16:19 # complains about UnboundLocalError. 09:16:19 err = None 09:16:19 09:16:19 # Keep track of whether we cleanly exited the except block. This 09:16:19 # ensures we do proper cleanup in finally. 09:16:19 clean_exit = False 09:16:19 09:16:19 # Rewind body position, if needed. Record current position 09:16:19 # for future rewinds in the event of a redirect/retry. 09:16:19 body_pos = set_file_position(body, body_pos) 09:16:19 09:16:19 try: 09:16:19 # Request a connection from the queue. 09:16:19 timeout_obj = self._get_timeout(timeout) 09:16:19 conn = self._get_conn(timeout=pool_timeout) 09:16:19 09:16:19 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:19 09:16:19 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:19 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:19 try: 09:16:19 self._prepare_proxy(conn) 09:16:19 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:19 self._raise_timeout( 09:16:19 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:19 ) 09:16:19 raise 09:16:19 09:16:19 # If we're going to release the connection in ``finally:``, then 09:16:19 # the response doesn't need to know about the connection. Otherwise 09:16:19 # it will also try to release it and we'll have a double-release 09:16:19 # mess. 09:16:19 response_conn = conn if not release_conn else None 09:16:19 09:16:19 # Make the request on the HTTPConnection object 09:16:19 > response = self._make_request( 09:16:19 conn, 09:16:19 method, 09:16:19 url, 09:16:19 timeout=timeout_obj, 09:16:19 body=body, 09:16:19 headers=headers, 09:16:19 chunked=chunked, 09:16:19 retries=retries, 09:16:19 response_conn=response_conn, 09:16:19 preload_content=preload_content, 09:16:19 decode_content=decode_content, 09:16:19 **response_kw, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:19 conn.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:19 self.endheaders() 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:19 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:19 self.send(msg) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:19 self.connect() 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:19 self.sock = self._new_conn() 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 except socket.gaierror as e: 09:16:19 raise NameResolutionError(self.host, self, e) from e 09:16:19 except SocketTimeout as e: 09:16:19 raise ConnectTimeoutError( 09:16:19 self, 09:16:19 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:19 ) from e 09:16:19 09:16:19 except OSError as e: 09:16:19 > raise NewConnectionError( 09:16:19 self, f"Failed to establish a new connection: {e}" 09:16:19 ) from e 09:16:19 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 > resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:19 retries = retries.increment( 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 09:16:19 response = None 09:16:19 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:19 _pool = 09:16:19 _stacktrace = 09:16:19 09:16:19 def increment( 09:16:19 self, 09:16:19 method: str | None = None, 09:16:19 url: str | None = None, 09:16:19 response: BaseHTTPResponse | None = None, 09:16:19 error: Exception | None = None, 09:16:19 _pool: ConnectionPool | None = None, 09:16:19 _stacktrace: TracebackType | None = None, 09:16:19 ) -> Self: 09:16:19 """Return a new Retry object with incremented retry counters. 09:16:19 09:16:19 :param response: A response object, or None, if the server did not 09:16:19 return a response. 09:16:19 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:19 :param Exception error: An error encountered during the request, or 09:16:19 None if the response was received successfully. 09:16:19 09:16:19 :return: A new ``Retry`` object. 09:16:19 """ 09:16:19 if self.total is False and error: 09:16:19 # Disabled, indicate to re-raise the error. 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 09:16:19 total = self.total 09:16:19 if total is not None: 09:16:19 total -= 1 09:16:19 09:16:19 connect = self.connect 09:16:19 read = self.read 09:16:19 redirect = self.redirect 09:16:19 status_count = self.status 09:16:19 other = self.other 09:16:19 cause = "unknown" 09:16:19 status = None 09:16:19 redirect_location = None 09:16:19 09:16:19 if error and self._is_connection_error(error): 09:16:19 # Connect retry? 09:16:19 if connect is False: 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif connect is not None: 09:16:19 connect -= 1 09:16:19 09:16:19 elif error and self._is_read_error(error): 09:16:19 # Read retry? 09:16:19 if read is False or method is None or not self._is_method_retryable(method): 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif read is not None: 09:16:19 read -= 1 09:16:19 09:16:19 elif error: 09:16:19 # Other retry? 09:16:19 if other is not None: 09:16:19 other -= 1 09:16:19 09:16:19 elif response and response.get_redirect_location(): 09:16:19 # Redirect retry? 09:16:19 if redirect is not None: 09:16:19 redirect -= 1 09:16:19 cause = "too many redirects" 09:16:19 response_redirect_location = response.get_redirect_location() 09:16:19 if response_redirect_location: 09:16:19 redirect_location = response_redirect_location 09:16:19 status = response.status 09:16:19 09:16:19 else: 09:16:19 # Incrementing because of a server error like a 500 in 09:16:19 # status_forcelist and the given method is in the allowed_methods 09:16:19 cause = ResponseError.GENERIC_ERROR 09:16:19 if response and response.status: 09:16:19 if status_count is not None: 09:16:19 status_count -= 1 09:16:19 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:19 status = response.status 09:16:19 09:16:19 history = self.history + ( 09:16:19 RequestHistory(method, url, error, status, redirect_location), 09:16:19 ) 09:16:19 09:16:19 new_retry = self.new( 09:16:19 total=total, 09:16:19 connect=connect, 09:16:19 read=read, 09:16:19 redirect=redirect, 09:16:19 status=status_count, 09:16:19 other=other, 09:16:19 history=history, 09:16:19 ) 09:16:19 09:16:19 if new_retry.is_exhausted(): 09:16:19 reason = error or ResponseError(cause) 09:16:19 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:19 09:16:19 During handling of the above exception, another exception occurred: 09:16:19 09:16:19 self = 09:16:19 09:16:19 def test_17_xpdr_device_disconnected(self): 09:16:19 > response = test_utils.check_device_connection("XPDRA01") 09:16:19 09:16:19 transportpce_tests/1.2.1/test01_portmapping.py:195: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 transportpce_tests/common/test_utils.py:369: in check_device_connection 09:16:19 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 09:16:19 transportpce_tests/common/test_utils.py:116: in get_request 09:16:19 return requests.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:19 return session.request(method=method, url=url, **kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:19 resp = self.send(prep, **send_kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:19 r = adapter.send(request, **kwargs) 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 except (ProtocolError, OSError) as err: 09:16:19 raise ConnectionError(err, request=request) 09:16:19 09:16:19 except MaxRetryError as e: 09:16:19 if isinstance(e.reason, ConnectTimeoutError): 09:16:19 # TODO: Remove this in 3.0.0: see #2811 09:16:19 if not isinstance(e.reason, NewConnectionError): 09:16:19 raise ConnectTimeout(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, ResponseError): 09:16:19 raise RetryError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _ProxyError): 09:16:19 raise ProxyError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _SSLError): 09:16:19 # This branch is for urllib3 v1.22 and later. 09:16:19 raise SSLError(e, request=request) 09:16:19 09:16:19 > raise ConnectionError(e, request=request) 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:19 ----------------------------- Captured stdout call ----------------------------- 09:16:19 execution of test_17_xpdr_device_disconnected 09:16:19 _______ TransportPCEPortMappingTesting.test_18_xpdr_device_not_connected _______ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 > sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:19 raise err 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:19 socket_options = [(6, 1, 1)] 09:16:19 09:16:19 def create_connection( 09:16:19 address: tuple[str, int], 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 source_address: tuple[str, int] | None = None, 09:16:19 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:19 ) -> socket.socket: 09:16:19 """Connect to *address* and return the socket object. 09:16:19 09:16:19 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:19 port)``) and return the socket object. Passing the optional 09:16:19 *timeout* parameter will set the timeout on the socket instance 09:16:19 before attempting to connect. If no *timeout* is supplied, the 09:16:19 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:19 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:19 for the socket to bind as a source address before making the connection. 09:16:19 An host of '' or port 0 tells the OS to use the default. 09:16:19 """ 09:16:19 09:16:19 host, port = address 09:16:19 if host.startswith("["): 09:16:19 host = host.strip("[]") 09:16:19 err = None 09:16:19 09:16:19 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:19 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:19 # The original create_connection function always returns all records. 09:16:19 family = allowed_gai_family() 09:16:19 09:16:19 try: 09:16:19 host.encode("idna") 09:16:19 except UnicodeError: 09:16:19 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:19 09:16:19 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:19 af, socktype, proto, canonname, sa = res 09:16:19 sock = None 09:16:19 try: 09:16:19 sock = socket.socket(af, socktype, proto) 09:16:19 09:16:19 # If provided, set socket level options before connecting. 09:16:19 _set_socket_options(sock, socket_options) 09:16:19 09:16:19 if timeout is not _DEFAULT_TIMEOUT: 09:16:19 sock.settimeout(timeout) 09:16:19 if source_address: 09:16:19 sock.bind(source_address) 09:16:19 > sock.connect(sa) 09:16:19 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 09:16:19 body = None 09:16:19 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='} 09:16:19 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 redirect = False, assert_same_host = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:19 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:19 decode_content = False, response_kw = {} 09:16:19 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) 09:16:19 destination_scheme = None, conn = None, release_this_conn = True 09:16:19 http_tunnel_required = False, err = None, clean_exit = False 09:16:19 09:16:19 def urlopen( # type: ignore[override] 09:16:19 self, 09:16:19 method: str, 09:16:19 url: str, 09:16:19 body: _TYPE_BODY | None = None, 09:16:19 headers: typing.Mapping[str, str] | None = None, 09:16:19 retries: Retry | bool | int | None = None, 09:16:19 redirect: bool = True, 09:16:19 assert_same_host: bool = True, 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 pool_timeout: int | None = None, 09:16:19 release_conn: bool | None = None, 09:16:19 chunked: bool = False, 09:16:19 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:19 preload_content: bool = True, 09:16:19 decode_content: bool = True, 09:16:19 **response_kw: typing.Any, 09:16:19 ) -> BaseHTTPResponse: 09:16:19 """ 09:16:19 Get a connection from the pool and perform an HTTP request. This is the 09:16:19 lowest level call for making a request, so you'll need to specify all 09:16:19 the raw details. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 More commonly, it's appropriate to use a convenience method 09:16:19 such as :meth:`request`. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 `release_conn` will only behave as expected if 09:16:19 `preload_content=False` because we want to make 09:16:19 `preload_content=False` the default behaviour someday soon without 09:16:19 breaking backwards compatibility. 09:16:19 09:16:19 :param method: 09:16:19 HTTP request method (such as GET, POST, PUT, etc.) 09:16:19 09:16:19 :param url: 09:16:19 The URL to perform the request on. 09:16:19 09:16:19 :param body: 09:16:19 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:19 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:19 09:16:19 :param headers: 09:16:19 Dictionary of custom headers to send, such as User-Agent, 09:16:19 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:19 these headers completely replace any pool-specific headers. 09:16:19 09:16:19 :param retries: 09:16:19 Configure the number of retries to allow before raising a 09:16:19 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:19 09:16:19 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:19 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:19 over different types of retries. 09:16:19 Pass an integer number to retry connection errors that many times, 09:16:19 but no other types of errors. Pass zero to never retry. 09:16:19 09:16:19 If ``False``, then retries are disabled and any exception is raised 09:16:19 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:19 the redirect response will be returned. 09:16:19 09:16:19 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:19 09:16:19 :param redirect: 09:16:19 If True, automatically handle redirects (status codes 301, 302, 09:16:19 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:19 will disable redirect, too. 09:16:19 09:16:19 :param assert_same_host: 09:16:19 If ``True``, will make sure that the host of the pool requests is 09:16:19 consistent else will raise HostChangedError. When ``False``, you can 09:16:19 use the pool on an HTTP proxy and request foreign hosts. 09:16:19 09:16:19 :param timeout: 09:16:19 If specified, overrides the default timeout for this one 09:16:19 request. It may be a float (in seconds) or an instance of 09:16:19 :class:`urllib3.util.Timeout`. 09:16:19 09:16:19 :param pool_timeout: 09:16:19 If set and the pool is set to block=True, then this method will 09:16:19 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:19 connection is available within the time period. 09:16:19 09:16:19 :param bool preload_content: 09:16:19 If True, the response's body will be preloaded into memory. 09:16:19 09:16:19 :param bool decode_content: 09:16:19 If True, will attempt to decode the body based on the 09:16:19 'content-encoding' header. 09:16:19 09:16:19 :param release_conn: 09:16:19 If False, then the urlopen call will not release the connection 09:16:19 back into the pool once a response is received (but will release if 09:16:19 you read the entire contents of the response such as when 09:16:19 `preload_content=True`). This is useful if you're not preloading 09:16:19 the response's content immediately. You will need to call 09:16:19 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:19 back into the pool. If None, it takes the value of ``preload_content`` 09:16:19 which defaults to ``True``. 09:16:19 09:16:19 :param bool chunked: 09:16:19 If True, urllib3 will send the body using chunked transfer 09:16:19 encoding. Otherwise, urllib3 will send the body using the standard 09:16:19 content-length form. Defaults to False. 09:16:19 09:16:19 :param int body_pos: 09:16:19 Position to seek to in file-like body in the event of a retry or 09:16:19 redirect. Typically this won't need to be set because urllib3 will 09:16:19 auto-populate the value when needed. 09:16:19 """ 09:16:19 parsed_url = parse_url(url) 09:16:19 destination_scheme = parsed_url.scheme 09:16:19 09:16:19 if headers is None: 09:16:19 headers = self.headers 09:16:19 09:16:19 if not isinstance(retries, Retry): 09:16:19 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:19 09:16:19 if release_conn is None: 09:16:19 release_conn = preload_content 09:16:19 09:16:19 # Check host 09:16:19 if assert_same_host and not self.is_same_host(url): 09:16:19 raise HostChangedError(self, url, retries) 09:16:19 09:16:19 # Ensure that the URL we're connecting to is properly encoded 09:16:19 if url.startswith("/"): 09:16:19 url = to_str(_encode_target(url)) 09:16:19 else: 09:16:19 url = to_str(parsed_url.url) 09:16:19 09:16:19 conn = None 09:16:19 09:16:19 # Track whether `conn` needs to be released before 09:16:19 # returning/raising/recursing. Update this variable if necessary, and 09:16:19 # leave `release_conn` constant throughout the function. That way, if 09:16:19 # the function recurses, the original value of `release_conn` will be 09:16:19 # passed down into the recursive call, and its value will be respected. 09:16:19 # 09:16:19 # See issue #651 [1] for details. 09:16:19 # 09:16:19 # [1] 09:16:19 release_this_conn = release_conn 09:16:19 09:16:19 http_tunnel_required = connection_requires_http_tunnel( 09:16:19 self.proxy, self.proxy_config, destination_scheme 09:16:19 ) 09:16:19 09:16:19 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:19 # have to copy the headers dict so we can safely change it without those 09:16:19 # changes being reflected in anyone else's copy. 09:16:19 if not http_tunnel_required: 09:16:19 headers = headers.copy() # type: ignore[attr-defined] 09:16:19 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:19 09:16:19 # Must keep the exception bound to a separate variable or else Python 3 09:16:19 # complains about UnboundLocalError. 09:16:19 err = None 09:16:19 09:16:19 # Keep track of whether we cleanly exited the except block. This 09:16:19 # ensures we do proper cleanup in finally. 09:16:19 clean_exit = False 09:16:19 09:16:19 # Rewind body position, if needed. Record current position 09:16:19 # for future rewinds in the event of a redirect/retry. 09:16:19 body_pos = set_file_position(body, body_pos) 09:16:19 09:16:19 try: 09:16:19 # Request a connection from the queue. 09:16:19 timeout_obj = self._get_timeout(timeout) 09:16:19 conn = self._get_conn(timeout=pool_timeout) 09:16:19 09:16:19 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:19 09:16:19 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:19 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:19 try: 09:16:19 self._prepare_proxy(conn) 09:16:19 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:19 self._raise_timeout( 09:16:19 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:19 ) 09:16:19 raise 09:16:19 09:16:19 # If we're going to release the connection in ``finally:``, then 09:16:19 # the response doesn't need to know about the connection. Otherwise 09:16:19 # it will also try to release it and we'll have a double-release 09:16:19 # mess. 09:16:19 response_conn = conn if not release_conn else None 09:16:19 09:16:19 # Make the request on the HTTPConnection object 09:16:19 > response = self._make_request( 09:16:19 conn, 09:16:19 method, 09:16:19 url, 09:16:19 timeout=timeout_obj, 09:16:19 body=body, 09:16:19 headers=headers, 09:16:19 chunked=chunked, 09:16:19 retries=retries, 09:16:19 response_conn=response_conn, 09:16:19 preload_content=preload_content, 09:16:19 decode_content=decode_content, 09:16:19 **response_kw, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:19 conn.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:19 self.endheaders() 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:19 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:19 self.send(msg) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:19 self.connect() 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:19 self.sock = self._new_conn() 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 except socket.gaierror as e: 09:16:19 raise NameResolutionError(self.host, self, e) from e 09:16:19 except SocketTimeout as e: 09:16:19 raise ConnectTimeoutError( 09:16:19 self, 09:16:19 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:19 ) from e 09:16:19 09:16:19 except OSError as e: 09:16:19 > raise NewConnectionError( 09:16:19 self, f"Failed to establish a new connection: {e}" 09:16:19 ) from e 09:16:19 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 > resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:19 retries = retries.increment( 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 09:16:19 response = None 09:16:19 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:19 _pool = 09:16:19 _stacktrace = 09:16:19 09:16:19 def increment( 09:16:19 self, 09:16:19 method: str | None = None, 09:16:19 url: str | None = None, 09:16:19 response: BaseHTTPResponse | None = None, 09:16:19 error: Exception | None = None, 09:16:19 _pool: ConnectionPool | None = None, 09:16:19 _stacktrace: TracebackType | None = None, 09:16:19 ) -> Self: 09:16:19 """Return a new Retry object with incremented retry counters. 09:16:19 09:16:19 :param response: A response object, or None, if the server did not 09:16:19 return a response. 09:16:19 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:19 :param Exception error: An error encountered during the request, or 09:16:19 None if the response was received successfully. 09:16:19 09:16:19 :return: A new ``Retry`` object. 09:16:19 """ 09:16:19 if self.total is False and error: 09:16:19 # Disabled, indicate to re-raise the error. 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 09:16:19 total = self.total 09:16:19 if total is not None: 09:16:19 total -= 1 09:16:19 09:16:19 connect = self.connect 09:16:19 read = self.read 09:16:19 redirect = self.redirect 09:16:19 status_count = self.status 09:16:19 other = self.other 09:16:19 cause = "unknown" 09:16:19 status = None 09:16:19 redirect_location = None 09:16:19 09:16:19 if error and self._is_connection_error(error): 09:16:19 # Connect retry? 09:16:19 if connect is False: 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif connect is not None: 09:16:19 connect -= 1 09:16:19 09:16:19 elif error and self._is_read_error(error): 09:16:19 # Read retry? 09:16:19 if read is False or method is None or not self._is_method_retryable(method): 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif read is not None: 09:16:19 read -= 1 09:16:19 09:16:19 elif error: 09:16:19 # Other retry? 09:16:19 if other is not None: 09:16:19 other -= 1 09:16:19 09:16:19 elif response and response.get_redirect_location(): 09:16:19 # Redirect retry? 09:16:19 if redirect is not None: 09:16:19 redirect -= 1 09:16:19 cause = "too many redirects" 09:16:19 response_redirect_location = response.get_redirect_location() 09:16:19 if response_redirect_location: 09:16:19 redirect_location = response_redirect_location 09:16:19 status = response.status 09:16:19 09:16:19 else: 09:16:19 # Incrementing because of a server error like a 500 in 09:16:19 # status_forcelist and the given method is in the allowed_methods 09:16:19 cause = ResponseError.GENERIC_ERROR 09:16:19 if response and response.status: 09:16:19 if status_count is not None: 09:16:19 status_count -= 1 09:16:19 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:19 status = response.status 09:16:19 09:16:19 history = self.history + ( 09:16:19 RequestHistory(method, url, error, status, redirect_location), 09:16:19 ) 09:16:19 09:16:19 new_retry = self.new( 09:16:19 total=total, 09:16:19 connect=connect, 09:16:19 read=read, 09:16:19 redirect=redirect, 09:16:19 status=status_count, 09:16:19 other=other, 09:16:19 history=history, 09:16:19 ) 09:16:19 09:16:19 if new_retry.is_exhausted(): 09:16:19 reason = error or ResponseError(cause) 09:16:19 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:19 09:16:19 During handling of the above exception, another exception occurred: 09:16:19 09:16:19 self = 09:16:19 09:16:19 def test_18_xpdr_device_not_connected(self): 09:16:19 > response = test_utils.get_portmapping_node_attr("XPDRA01", "node-info", None) 09:16:19 09:16:19 transportpce_tests/1.2.1/test01_portmapping.py:203: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 09:16:19 response = get_request(target_url) 09:16:19 transportpce_tests/common/test_utils.py:116: in get_request 09:16:19 return requests.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:19 return session.request(method=method, url=url, **kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:19 resp = self.send(prep, **send_kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:19 r = adapter.send(request, **kwargs) 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 except (ProtocolError, OSError) as err: 09:16:19 raise ConnectionError(err, request=request) 09:16:19 09:16:19 except MaxRetryError as e: 09:16:19 if isinstance(e.reason, ConnectTimeoutError): 09:16:19 # TODO: Remove this in 3.0.0: see #2811 09:16:19 if not isinstance(e.reason, NewConnectionError): 09:16:19 raise ConnectTimeout(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, ResponseError): 09:16:19 raise RetryError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _ProxyError): 09:16:19 raise ProxyError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _SSLError): 09:16:19 # This branch is for urllib3 v1.22 and later. 09:16:19 raise SSLError(e, request=request) 09:16:19 09:16:19 > raise ConnectionError(e, request=request) 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:19 ----------------------------- Captured stdout call ----------------------------- 09:16:19 execution of test_18_xpdr_device_not_connected 09:16:19 _______ TransportPCEPortMappingTesting.test_19_rdm_device_disconnection ________ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 > sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:19 raise err 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:19 socket_options = [(6, 1, 1)] 09:16:19 09:16:19 def create_connection( 09:16:19 address: tuple[str, int], 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 source_address: tuple[str, int] | None = None, 09:16:19 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:19 ) -> socket.socket: 09:16:19 """Connect to *address* and return the socket object. 09:16:19 09:16:19 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:19 port)``) and return the socket object. Passing the optional 09:16:19 *timeout* parameter will set the timeout on the socket instance 09:16:19 before attempting to connect. If no *timeout* is supplied, the 09:16:19 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:19 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:19 for the socket to bind as a source address before making the connection. 09:16:19 An host of '' or port 0 tells the OS to use the default. 09:16:19 """ 09:16:19 09:16:19 host, port = address 09:16:19 if host.startswith("["): 09:16:19 host = host.strip("[]") 09:16:19 err = None 09:16:19 09:16:19 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:19 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:19 # The original create_connection function always returns all records. 09:16:19 family = allowed_gai_family() 09:16:19 09:16:19 try: 09:16:19 host.encode("idna") 09:16:19 except UnicodeError: 09:16:19 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:19 09:16:19 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:19 af, socktype, proto, canonname, sa = res 09:16:19 sock = None 09:16:19 try: 09:16:19 sock = socket.socket(af, socktype, proto) 09:16:19 09:16:19 # If provided, set socket level options before connecting. 09:16:19 _set_socket_options(sock, socket_options) 09:16:19 09:16:19 if timeout is not _DEFAULT_TIMEOUT: 09:16:19 sock.settimeout(timeout) 09:16:19 if source_address: 09:16:19 sock.bind(source_address) 09:16:19 > sock.connect(sa) 09:16:19 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 method = 'DELETE' 09:16:19 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 09:16:19 body = None 09:16:19 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='} 09:16:19 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 redirect = False, assert_same_host = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:19 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:19 decode_content = False, response_kw = {} 09:16:19 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) 09:16:19 destination_scheme = None, conn = None, release_this_conn = True 09:16:19 http_tunnel_required = False, err = None, clean_exit = False 09:16:19 09:16:19 def urlopen( # type: ignore[override] 09:16:19 self, 09:16:19 method: str, 09:16:19 url: str, 09:16:19 body: _TYPE_BODY | None = None, 09:16:19 headers: typing.Mapping[str, str] | None = None, 09:16:19 retries: Retry | bool | int | None = None, 09:16:19 redirect: bool = True, 09:16:19 assert_same_host: bool = True, 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 pool_timeout: int | None = None, 09:16:19 release_conn: bool | None = None, 09:16:19 chunked: bool = False, 09:16:19 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:19 preload_content: bool = True, 09:16:19 decode_content: bool = True, 09:16:19 **response_kw: typing.Any, 09:16:19 ) -> BaseHTTPResponse: 09:16:19 """ 09:16:19 Get a connection from the pool and perform an HTTP request. This is the 09:16:19 lowest level call for making a request, so you'll need to specify all 09:16:19 the raw details. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 More commonly, it's appropriate to use a convenience method 09:16:19 such as :meth:`request`. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 `release_conn` will only behave as expected if 09:16:19 `preload_content=False` because we want to make 09:16:19 `preload_content=False` the default behaviour someday soon without 09:16:19 breaking backwards compatibility. 09:16:19 09:16:19 :param method: 09:16:19 HTTP request method (such as GET, POST, PUT, etc.) 09:16:19 09:16:19 :param url: 09:16:19 The URL to perform the request on. 09:16:19 09:16:19 :param body: 09:16:19 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:19 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:19 09:16:19 :param headers: 09:16:19 Dictionary of custom headers to send, such as User-Agent, 09:16:19 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:19 these headers completely replace any pool-specific headers. 09:16:19 09:16:19 :param retries: 09:16:19 Configure the number of retries to allow before raising a 09:16:19 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:19 09:16:19 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:19 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:19 over different types of retries. 09:16:19 Pass an integer number to retry connection errors that many times, 09:16:19 but no other types of errors. Pass zero to never retry. 09:16:19 09:16:19 If ``False``, then retries are disabled and any exception is raised 09:16:19 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:19 the redirect response will be returned. 09:16:19 09:16:19 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:19 09:16:19 :param redirect: 09:16:19 If True, automatically handle redirects (status codes 301, 302, 09:16:19 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:19 will disable redirect, too. 09:16:19 09:16:19 :param assert_same_host: 09:16:19 If ``True``, will make sure that the host of the pool requests is 09:16:19 consistent else will raise HostChangedError. When ``False``, you can 09:16:19 use the pool on an HTTP proxy and request foreign hosts. 09:16:19 09:16:19 :param timeout: 09:16:19 If specified, overrides the default timeout for this one 09:16:19 request. It may be a float (in seconds) or an instance of 09:16:19 :class:`urllib3.util.Timeout`. 09:16:19 09:16:19 :param pool_timeout: 09:16:19 If set and the pool is set to block=True, then this method will 09:16:19 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:19 connection is available within the time period. 09:16:19 09:16:19 :param bool preload_content: 09:16:19 If True, the response's body will be preloaded into memory. 09:16:19 09:16:19 :param bool decode_content: 09:16:19 If True, will attempt to decode the body based on the 09:16:19 'content-encoding' header. 09:16:19 09:16:19 :param release_conn: 09:16:19 If False, then the urlopen call will not release the connection 09:16:19 back into the pool once a response is received (but will release if 09:16:19 you read the entire contents of the response such as when 09:16:19 `preload_content=True`). This is useful if you're not preloading 09:16:19 the response's content immediately. You will need to call 09:16:19 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:19 back into the pool. If None, it takes the value of ``preload_content`` 09:16:19 which defaults to ``True``. 09:16:19 09:16:19 :param bool chunked: 09:16:19 If True, urllib3 will send the body using chunked transfer 09:16:19 encoding. Otherwise, urllib3 will send the body using the standard 09:16:19 content-length form. Defaults to False. 09:16:19 09:16:19 :param int body_pos: 09:16:19 Position to seek to in file-like body in the event of a retry or 09:16:19 redirect. Typically this won't need to be set because urllib3 will 09:16:19 auto-populate the value when needed. 09:16:19 """ 09:16:19 parsed_url = parse_url(url) 09:16:19 destination_scheme = parsed_url.scheme 09:16:19 09:16:19 if headers is None: 09:16:19 headers = self.headers 09:16:19 09:16:19 if not isinstance(retries, Retry): 09:16:19 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:19 09:16:19 if release_conn is None: 09:16:19 release_conn = preload_content 09:16:19 09:16:19 # Check host 09:16:19 if assert_same_host and not self.is_same_host(url): 09:16:19 raise HostChangedError(self, url, retries) 09:16:19 09:16:19 # Ensure that the URL we're connecting to is properly encoded 09:16:19 if url.startswith("/"): 09:16:19 url = to_str(_encode_target(url)) 09:16:19 else: 09:16:19 url = to_str(parsed_url.url) 09:16:19 09:16:19 conn = None 09:16:19 09:16:19 # Track whether `conn` needs to be released before 09:16:19 # returning/raising/recursing. Update this variable if necessary, and 09:16:19 # leave `release_conn` constant throughout the function. That way, if 09:16:19 # the function recurses, the original value of `release_conn` will be 09:16:19 # passed down into the recursive call, and its value will be respected. 09:16:19 # 09:16:19 # See issue #651 [1] for details. 09:16:19 # 09:16:19 # [1] 09:16:19 release_this_conn = release_conn 09:16:19 09:16:19 http_tunnel_required = connection_requires_http_tunnel( 09:16:19 self.proxy, self.proxy_config, destination_scheme 09:16:19 ) 09:16:19 09:16:19 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:19 # have to copy the headers dict so we can safely change it without those 09:16:19 # changes being reflected in anyone else's copy. 09:16:19 if not http_tunnel_required: 09:16:19 headers = headers.copy() # type: ignore[attr-defined] 09:16:19 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:19 09:16:19 # Must keep the exception bound to a separate variable or else Python 3 09:16:19 # complains about UnboundLocalError. 09:16:19 err = None 09:16:19 09:16:19 # Keep track of whether we cleanly exited the except block. This 09:16:19 # ensures we do proper cleanup in finally. 09:16:19 clean_exit = False 09:16:19 09:16:19 # Rewind body position, if needed. Record current position 09:16:19 # for future rewinds in the event of a redirect/retry. 09:16:19 body_pos = set_file_position(body, body_pos) 09:16:19 09:16:19 try: 09:16:19 # Request a connection from the queue. 09:16:19 timeout_obj = self._get_timeout(timeout) 09:16:19 conn = self._get_conn(timeout=pool_timeout) 09:16:19 09:16:19 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:19 09:16:19 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:19 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:19 try: 09:16:19 self._prepare_proxy(conn) 09:16:19 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:19 self._raise_timeout( 09:16:19 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:19 ) 09:16:19 raise 09:16:19 09:16:19 # If we're going to release the connection in ``finally:``, then 09:16:19 # the response doesn't need to know about the connection. Otherwise 09:16:19 # it will also try to release it and we'll have a double-release 09:16:19 # mess. 09:16:19 response_conn = conn if not release_conn else None 09:16:19 09:16:19 # Make the request on the HTTPConnection object 09:16:19 > response = self._make_request( 09:16:19 conn, 09:16:19 method, 09:16:19 url, 09:16:19 timeout=timeout_obj, 09:16:19 body=body, 09:16:19 headers=headers, 09:16:19 chunked=chunked, 09:16:19 retries=retries, 09:16:19 response_conn=response_conn, 09:16:19 preload_content=preload_content, 09:16:19 decode_content=decode_content, 09:16:19 **response_kw, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:19 conn.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:19 self.endheaders() 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:19 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:19 self.send(msg) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:19 self.connect() 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:19 self.sock = self._new_conn() 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 except socket.gaierror as e: 09:16:19 raise NameResolutionError(self.host, self, e) from e 09:16:19 except SocketTimeout as e: 09:16:19 raise ConnectTimeoutError( 09:16:19 self, 09:16:19 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:19 ) from e 09:16:19 09:16:19 except OSError as e: 09:16:19 > raise NewConnectionError( 09:16:19 self, f"Failed to establish a new connection: {e}" 09:16:19 ) from e 09:16:19 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 > resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:19 retries = retries.increment( 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 method = 'DELETE' 09:16:19 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 09:16:19 response = None 09:16:19 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:19 _pool = 09:16:19 _stacktrace = 09:16:19 09:16:19 def increment( 09:16:19 self, 09:16:19 method: str | None = None, 09:16:19 url: str | None = None, 09:16:19 response: BaseHTTPResponse | None = None, 09:16:19 error: Exception | None = None, 09:16:19 _pool: ConnectionPool | None = None, 09:16:19 _stacktrace: TracebackType | None = None, 09:16:19 ) -> Self: 09:16:19 """Return a new Retry object with incremented retry counters. 09:16:19 09:16:19 :param response: A response object, or None, if the server did not 09:16:19 return a response. 09:16:19 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:19 :param Exception error: An error encountered during the request, or 09:16:19 None if the response was received successfully. 09:16:19 09:16:19 :return: A new ``Retry`` object. 09:16:19 """ 09:16:19 if self.total is False and error: 09:16:19 # Disabled, indicate to re-raise the error. 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 09:16:19 total = self.total 09:16:19 if total is not None: 09:16:19 total -= 1 09:16:19 09:16:19 connect = self.connect 09:16:19 read = self.read 09:16:19 redirect = self.redirect 09:16:19 status_count = self.status 09:16:19 other = self.other 09:16:19 cause = "unknown" 09:16:19 status = None 09:16:19 redirect_location = None 09:16:19 09:16:19 if error and self._is_connection_error(error): 09:16:19 # Connect retry? 09:16:19 if connect is False: 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif connect is not None: 09:16:19 connect -= 1 09:16:19 09:16:19 elif error and self._is_read_error(error): 09:16:19 # Read retry? 09:16:19 if read is False or method is None or not self._is_method_retryable(method): 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif read is not None: 09:16:19 read -= 1 09:16:19 09:16:19 elif error: 09:16:19 # Other retry? 09:16:19 if other is not None: 09:16:19 other -= 1 09:16:19 09:16:19 elif response and response.get_redirect_location(): 09:16:19 # Redirect retry? 09:16:19 if redirect is not None: 09:16:19 redirect -= 1 09:16:19 cause = "too many redirects" 09:16:19 response_redirect_location = response.get_redirect_location() 09:16:19 if response_redirect_location: 09:16:19 redirect_location = response_redirect_location 09:16:19 status = response.status 09:16:19 09:16:19 else: 09:16:19 # Incrementing because of a server error like a 500 in 09:16:19 # status_forcelist and the given method is in the allowed_methods 09:16:19 cause = ResponseError.GENERIC_ERROR 09:16:19 if response and response.status: 09:16:19 if status_count is not None: 09:16:19 status_count -= 1 09:16:19 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:19 status = response.status 09:16:19 09:16:19 history = self.history + ( 09:16:19 RequestHistory(method, url, error, status, redirect_location), 09:16:19 ) 09:16:19 09:16:19 new_retry = self.new( 09:16:19 total=total, 09:16:19 connect=connect, 09:16:19 read=read, 09:16:19 redirect=redirect, 09:16:19 status=status_count, 09:16:19 other=other, 09:16:19 history=history, 09:16:19 ) 09:16:19 09:16:19 if new_retry.is_exhausted(): 09:16:19 reason = error or ResponseError(cause) 09:16:19 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:19 09:16:19 During handling of the above exception, another exception occurred: 09:16:19 09:16:19 self = 09:16:19 09:16:19 def test_19_rdm_device_disconnection(self): 09:16:19 > response = test_utils.unmount_device("ROADMA01") 09:16:19 09:16:19 transportpce_tests/1.2.1/test01_portmapping.py:211: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 transportpce_tests/common/test_utils.py:358: in unmount_device 09:16:19 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 09:16:19 transportpce_tests/common/test_utils.py:133: in delete_request 09:16:19 return requests.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:19 return session.request(method=method, url=url, **kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:19 resp = self.send(prep, **send_kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:19 r = adapter.send(request, **kwargs) 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 except (ProtocolError, OSError) as err: 09:16:19 raise ConnectionError(err, request=request) 09:16:19 09:16:19 except MaxRetryError as e: 09:16:19 if isinstance(e.reason, ConnectTimeoutError): 09:16:19 # TODO: Remove this in 3.0.0: see #2811 09:16:19 if not isinstance(e.reason, NewConnectionError): 09:16:19 raise ConnectTimeout(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, ResponseError): 09:16:19 raise RetryError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _ProxyError): 09:16:19 raise ProxyError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _SSLError): 09:16:19 # This branch is for urllib3 v1.22 and later. 09:16:19 raise SSLError(e, request=request) 09:16:19 09:16:19 > raise ConnectionError(e, request=request) 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:19 ----------------------------- Captured stdout call ----------------------------- 09:16:19 execution of test_19_rdm_device_disconnection 09:16:19 ________ TransportPCEPortMappingTesting.test_20_rdm_device_disconnected ________ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 > sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:19 raise err 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:19 socket_options = [(6, 1, 1)] 09:16:19 09:16:19 def create_connection( 09:16:19 address: tuple[str, int], 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 source_address: tuple[str, int] | None = None, 09:16:19 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:19 ) -> socket.socket: 09:16:19 """Connect to *address* and return the socket object. 09:16:19 09:16:19 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:19 port)``) and return the socket object. Passing the optional 09:16:19 *timeout* parameter will set the timeout on the socket instance 09:16:19 before attempting to connect. If no *timeout* is supplied, the 09:16:19 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:19 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:19 for the socket to bind as a source address before making the connection. 09:16:19 An host of '' or port 0 tells the OS to use the default. 09:16:19 """ 09:16:19 09:16:19 host, port = address 09:16:19 if host.startswith("["): 09:16:19 host = host.strip("[]") 09:16:19 err = None 09:16:19 09:16:19 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:19 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:19 # The original create_connection function always returns all records. 09:16:19 family = allowed_gai_family() 09:16:19 09:16:19 try: 09:16:19 host.encode("idna") 09:16:19 except UnicodeError: 09:16:19 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:19 09:16:19 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:19 af, socktype, proto, canonname, sa = res 09:16:19 sock = None 09:16:19 try: 09:16:19 sock = socket.socket(af, socktype, proto) 09:16:19 09:16:19 # If provided, set socket level options before connecting. 09:16:19 _set_socket_options(sock, socket_options) 09:16:19 09:16:19 if timeout is not _DEFAULT_TIMEOUT: 09:16:19 sock.settimeout(timeout) 09:16:19 if source_address: 09:16:19 sock.bind(source_address) 09:16:19 > sock.connect(sa) 09:16:19 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 09:16:19 body = None 09:16:19 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='} 09:16:19 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 redirect = False, assert_same_host = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:19 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:19 decode_content = False, response_kw = {} 09:16:19 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) 09:16:19 destination_scheme = None, conn = None, release_this_conn = True 09:16:19 http_tunnel_required = False, err = None, clean_exit = False 09:16:19 09:16:19 def urlopen( # type: ignore[override] 09:16:19 self, 09:16:19 method: str, 09:16:19 url: str, 09:16:19 body: _TYPE_BODY | None = None, 09:16:19 headers: typing.Mapping[str, str] | None = None, 09:16:19 retries: Retry | bool | int | None = None, 09:16:19 redirect: bool = True, 09:16:19 assert_same_host: bool = True, 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 pool_timeout: int | None = None, 09:16:19 release_conn: bool | None = None, 09:16:19 chunked: bool = False, 09:16:19 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:19 preload_content: bool = True, 09:16:19 decode_content: bool = True, 09:16:19 **response_kw: typing.Any, 09:16:19 ) -> BaseHTTPResponse: 09:16:19 """ 09:16:19 Get a connection from the pool and perform an HTTP request. This is the 09:16:19 lowest level call for making a request, so you'll need to specify all 09:16:19 the raw details. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 More commonly, it's appropriate to use a convenience method 09:16:19 such as :meth:`request`. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 `release_conn` will only behave as expected if 09:16:19 `preload_content=False` because we want to make 09:16:19 `preload_content=False` the default behaviour someday soon without 09:16:19 breaking backwards compatibility. 09:16:19 09:16:19 :param method: 09:16:19 HTTP request method (such as GET, POST, PUT, etc.) 09:16:19 09:16:19 :param url: 09:16:19 The URL to perform the request on. 09:16:19 09:16:19 :param body: 09:16:19 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:19 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:19 09:16:19 :param headers: 09:16:19 Dictionary of custom headers to send, such as User-Agent, 09:16:19 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:19 these headers completely replace any pool-specific headers. 09:16:19 09:16:19 :param retries: 09:16:19 Configure the number of retries to allow before raising a 09:16:19 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:19 09:16:19 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:19 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:19 over different types of retries. 09:16:19 Pass an integer number to retry connection errors that many times, 09:16:19 but no other types of errors. Pass zero to never retry. 09:16:19 09:16:19 If ``False``, then retries are disabled and any exception is raised 09:16:19 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:19 the redirect response will be returned. 09:16:19 09:16:19 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:19 09:16:19 :param redirect: 09:16:19 If True, automatically handle redirects (status codes 301, 302, 09:16:19 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:19 will disable redirect, too. 09:16:19 09:16:19 :param assert_same_host: 09:16:19 If ``True``, will make sure that the host of the pool requests is 09:16:19 consistent else will raise HostChangedError. When ``False``, you can 09:16:19 use the pool on an HTTP proxy and request foreign hosts. 09:16:19 09:16:19 :param timeout: 09:16:19 If specified, overrides the default timeout for this one 09:16:19 request. It may be a float (in seconds) or an instance of 09:16:19 :class:`urllib3.util.Timeout`. 09:16:19 09:16:19 :param pool_timeout: 09:16:19 If set and the pool is set to block=True, then this method will 09:16:19 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:19 connection is available within the time period. 09:16:19 09:16:19 :param bool preload_content: 09:16:19 If True, the response's body will be preloaded into memory. 09:16:19 09:16:19 :param bool decode_content: 09:16:19 If True, will attempt to decode the body based on the 09:16:19 'content-encoding' header. 09:16:19 09:16:19 :param release_conn: 09:16:19 If False, then the urlopen call will not release the connection 09:16:19 back into the pool once a response is received (but will release if 09:16:19 you read the entire contents of the response such as when 09:16:19 `preload_content=True`). This is useful if you're not preloading 09:16:19 the response's content immediately. You will need to call 09:16:19 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:19 back into the pool. If None, it takes the value of ``preload_content`` 09:16:19 which defaults to ``True``. 09:16:19 09:16:19 :param bool chunked: 09:16:19 If True, urllib3 will send the body using chunked transfer 09:16:19 encoding. Otherwise, urllib3 will send the body using the standard 09:16:19 content-length form. Defaults to False. 09:16:19 09:16:19 :param int body_pos: 09:16:19 Position to seek to in file-like body in the event of a retry or 09:16:19 redirect. Typically this won't need to be set because urllib3 will 09:16:19 auto-populate the value when needed. 09:16:19 """ 09:16:19 parsed_url = parse_url(url) 09:16:19 destination_scheme = parsed_url.scheme 09:16:19 09:16:19 if headers is None: 09:16:19 headers = self.headers 09:16:19 09:16:19 if not isinstance(retries, Retry): 09:16:19 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:19 09:16:19 if release_conn is None: 09:16:19 release_conn = preload_content 09:16:19 09:16:19 # Check host 09:16:19 if assert_same_host and not self.is_same_host(url): 09:16:19 raise HostChangedError(self, url, retries) 09:16:19 09:16:19 # Ensure that the URL we're connecting to is properly encoded 09:16:19 if url.startswith("/"): 09:16:19 url = to_str(_encode_target(url)) 09:16:19 else: 09:16:19 url = to_str(parsed_url.url) 09:16:19 09:16:19 conn = None 09:16:19 09:16:19 # Track whether `conn` needs to be released before 09:16:19 # returning/raising/recursing. Update this variable if necessary, and 09:16:19 # leave `release_conn` constant throughout the function. That way, if 09:16:19 # the function recurses, the original value of `release_conn` will be 09:16:19 # passed down into the recursive call, and its value will be respected. 09:16:19 # 09:16:19 # See issue #651 [1] for details. 09:16:19 # 09:16:19 # [1] 09:16:19 release_this_conn = release_conn 09:16:19 09:16:19 http_tunnel_required = connection_requires_http_tunnel( 09:16:19 self.proxy, self.proxy_config, destination_scheme 09:16:19 ) 09:16:19 09:16:19 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:19 # have to copy the headers dict so we can safely change it without those 09:16:19 # changes being reflected in anyone else's copy. 09:16:19 if not http_tunnel_required: 09:16:19 headers = headers.copy() # type: ignore[attr-defined] 09:16:19 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:19 09:16:19 # Must keep the exception bound to a separate variable or else Python 3 09:16:19 # complains about UnboundLocalError. 09:16:19 err = None 09:16:19 09:16:19 # Keep track of whether we cleanly exited the except block. This 09:16:19 # ensures we do proper cleanup in finally. 09:16:19 clean_exit = False 09:16:19 09:16:19 # Rewind body position, if needed. Record current position 09:16:19 # for future rewinds in the event of a redirect/retry. 09:16:19 body_pos = set_file_position(body, body_pos) 09:16:19 09:16:19 try: 09:16:19 # Request a connection from the queue. 09:16:19 timeout_obj = self._get_timeout(timeout) 09:16:19 conn = self._get_conn(timeout=pool_timeout) 09:16:19 09:16:19 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:19 09:16:19 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:19 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:19 try: 09:16:19 self._prepare_proxy(conn) 09:16:19 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:19 self._raise_timeout( 09:16:19 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:19 ) 09:16:19 raise 09:16:19 09:16:19 # If we're going to release the connection in ``finally:``, then 09:16:19 # the response doesn't need to know about the connection. Otherwise 09:16:19 # it will also try to release it and we'll have a double-release 09:16:19 # mess. 09:16:19 response_conn = conn if not release_conn else None 09:16:19 09:16:19 # Make the request on the HTTPConnection object 09:16:19 > response = self._make_request( 09:16:19 conn, 09:16:19 method, 09:16:19 url, 09:16:19 timeout=timeout_obj, 09:16:19 body=body, 09:16:19 headers=headers, 09:16:19 chunked=chunked, 09:16:19 retries=retries, 09:16:19 response_conn=response_conn, 09:16:19 preload_content=preload_content, 09:16:19 decode_content=decode_content, 09:16:19 **response_kw, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:19 conn.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:19 self.endheaders() 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:19 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:19 self.send(msg) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:19 self.connect() 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:19 self.sock = self._new_conn() 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 except socket.gaierror as e: 09:16:19 raise NameResolutionError(self.host, self, e) from e 09:16:19 except SocketTimeout as e: 09:16:19 raise ConnectTimeoutError( 09:16:19 self, 09:16:19 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:19 ) from e 09:16:19 09:16:19 except OSError as e: 09:16:19 > raise NewConnectionError( 09:16:19 self, f"Failed to establish a new connection: {e}" 09:16:19 ) from e 09:16:19 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 > resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:19 retries = retries.increment( 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 09:16:19 response = None 09:16:19 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:19 _pool = 09:16:19 _stacktrace = 09:16:19 09:16:19 def increment( 09:16:19 self, 09:16:19 method: str | None = None, 09:16:19 url: str | None = None, 09:16:19 response: BaseHTTPResponse | None = None, 09:16:19 error: Exception | None = None, 09:16:19 _pool: ConnectionPool | None = None, 09:16:19 _stacktrace: TracebackType | None = None, 09:16:19 ) -> Self: 09:16:19 """Return a new Retry object with incremented retry counters. 09:16:19 09:16:19 :param response: A response object, or None, if the server did not 09:16:19 return a response. 09:16:19 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:19 :param Exception error: An error encountered during the request, or 09:16:19 None if the response was received successfully. 09:16:19 09:16:19 :return: A new ``Retry`` object. 09:16:19 """ 09:16:19 if self.total is False and error: 09:16:19 # Disabled, indicate to re-raise the error. 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 09:16:19 total = self.total 09:16:19 if total is not None: 09:16:19 total -= 1 09:16:19 09:16:19 connect = self.connect 09:16:19 read = self.read 09:16:19 redirect = self.redirect 09:16:19 status_count = self.status 09:16:19 other = self.other 09:16:19 cause = "unknown" 09:16:19 status = None 09:16:19 redirect_location = None 09:16:19 09:16:19 if error and self._is_connection_error(error): 09:16:19 # Connect retry? 09:16:19 if connect is False: 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif connect is not None: 09:16:19 connect -= 1 09:16:19 09:16:19 elif error and self._is_read_error(error): 09:16:19 # Read retry? 09:16:19 if read is False or method is None or not self._is_method_retryable(method): 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif read is not None: 09:16:19 read -= 1 09:16:19 09:16:19 elif error: 09:16:19 # Other retry? 09:16:19 if other is not None: 09:16:19 other -= 1 09:16:19 09:16:19 elif response and response.get_redirect_location(): 09:16:19 # Redirect retry? 09:16:19 if redirect is not None: 09:16:19 redirect -= 1 09:16:19 cause = "too many redirects" 09:16:19 response_redirect_location = response.get_redirect_location() 09:16:19 if response_redirect_location: 09:16:19 redirect_location = response_redirect_location 09:16:19 status = response.status 09:16:19 09:16:19 else: 09:16:19 # Incrementing because of a server error like a 500 in 09:16:19 # status_forcelist and the given method is in the allowed_methods 09:16:19 cause = ResponseError.GENERIC_ERROR 09:16:19 if response and response.status: 09:16:19 if status_count is not None: 09:16:19 status_count -= 1 09:16:19 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:19 status = response.status 09:16:19 09:16:19 history = self.history + ( 09:16:19 RequestHistory(method, url, error, status, redirect_location), 09:16:19 ) 09:16:19 09:16:19 new_retry = self.new( 09:16:19 total=total, 09:16:19 connect=connect, 09:16:19 read=read, 09:16:19 redirect=redirect, 09:16:19 status=status_count, 09:16:19 other=other, 09:16:19 history=history, 09:16:19 ) 09:16:19 09:16:19 if new_retry.is_exhausted(): 09:16:19 reason = error or ResponseError(cause) 09:16:19 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:19 09:16:19 During handling of the above exception, another exception occurred: 09:16:19 09:16:19 self = 09:16:19 09:16:19 def test_20_rdm_device_disconnected(self): 09:16:19 > response = test_utils.check_device_connection("ROADMA01") 09:16:19 09:16:19 transportpce_tests/1.2.1/test01_portmapping.py:215: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 transportpce_tests/common/test_utils.py:369: in check_device_connection 09:16:19 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 09:16:19 transportpce_tests/common/test_utils.py:116: in get_request 09:16:19 return requests.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:19 return session.request(method=method, url=url, **kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:19 resp = self.send(prep, **send_kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:19 r = adapter.send(request, **kwargs) 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 except (ProtocolError, OSError) as err: 09:16:19 raise ConnectionError(err, request=request) 09:16:19 09:16:19 except MaxRetryError as e: 09:16:19 if isinstance(e.reason, ConnectTimeoutError): 09:16:19 # TODO: Remove this in 3.0.0: see #2811 09:16:19 if not isinstance(e.reason, NewConnectionError): 09:16:19 raise ConnectTimeout(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, ResponseError): 09:16:19 raise RetryError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _ProxyError): 09:16:19 raise ProxyError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _SSLError): 09:16:19 # This branch is for urllib3 v1.22 and later. 09:16:19 raise SSLError(e, request=request) 09:16:19 09:16:19 > raise ConnectionError(e, request=request) 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:19 ----------------------------- Captured stdout call ----------------------------- 09:16:19 execution of test_20_rdm_device_disconnected 09:16:19 _______ TransportPCEPortMappingTesting.test_21_rdm_device_not_connected ________ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 > sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 09:16:19 raise err 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 address = ('localhost', 8182), timeout = 10, source_address = None 09:16:19 socket_options = [(6, 1, 1)] 09:16:19 09:16:19 def create_connection( 09:16:19 address: tuple[str, int], 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 source_address: tuple[str, int] | None = None, 09:16:19 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 09:16:19 ) -> socket.socket: 09:16:19 """Connect to *address* and return the socket object. 09:16:19 09:16:19 Convenience function. Connect to *address* (a 2-tuple ``(host, 09:16:19 port)``) and return the socket object. Passing the optional 09:16:19 *timeout* parameter will set the timeout on the socket instance 09:16:19 before attempting to connect. If no *timeout* is supplied, the 09:16:19 global default timeout setting returned by :func:`socket.getdefaulttimeout` 09:16:19 is used. If *source_address* is set it must be a tuple of (host, port) 09:16:19 for the socket to bind as a source address before making the connection. 09:16:19 An host of '' or port 0 tells the OS to use the default. 09:16:19 """ 09:16:19 09:16:19 host, port = address 09:16:19 if host.startswith("["): 09:16:19 host = host.strip("[]") 09:16:19 err = None 09:16:19 09:16:19 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 09:16:19 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 09:16:19 # The original create_connection function always returns all records. 09:16:19 family = allowed_gai_family() 09:16:19 09:16:19 try: 09:16:19 host.encode("idna") 09:16:19 except UnicodeError: 09:16:19 raise LocationParseError(f"'{host}', label empty or too long") from None 09:16:19 09:16:19 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 09:16:19 af, socktype, proto, canonname, sa = res 09:16:19 sock = None 09:16:19 try: 09:16:19 sock = socket.socket(af, socktype, proto) 09:16:19 09:16:19 # If provided, set socket level options before connecting. 09:16:19 _set_socket_options(sock, socket_options) 09:16:19 09:16:19 if timeout is not _DEFAULT_TIMEOUT: 09:16:19 sock.settimeout(timeout) 09:16:19 if source_address: 09:16:19 sock.bind(source_address) 09:16:19 > sock.connect(sa) 09:16:19 E ConnectionRefusedError: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 09:16:19 body = None 09:16:19 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='} 09:16:19 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 redirect = False, assert_same_host = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 09:16:19 release_conn = False, chunked = False, body_pos = None, preload_content = False 09:16:19 decode_content = False, response_kw = {} 09:16:19 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) 09:16:19 destination_scheme = None, conn = None, release_this_conn = True 09:16:19 http_tunnel_required = False, err = None, clean_exit = False 09:16:19 09:16:19 def urlopen( # type: ignore[override] 09:16:19 self, 09:16:19 method: str, 09:16:19 url: str, 09:16:19 body: _TYPE_BODY | None = None, 09:16:19 headers: typing.Mapping[str, str] | None = None, 09:16:19 retries: Retry | bool | int | None = None, 09:16:19 redirect: bool = True, 09:16:19 assert_same_host: bool = True, 09:16:19 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 09:16:19 pool_timeout: int | None = None, 09:16:19 release_conn: bool | None = None, 09:16:19 chunked: bool = False, 09:16:19 body_pos: _TYPE_BODY_POSITION | None = None, 09:16:19 preload_content: bool = True, 09:16:19 decode_content: bool = True, 09:16:19 **response_kw: typing.Any, 09:16:19 ) -> BaseHTTPResponse: 09:16:19 """ 09:16:19 Get a connection from the pool and perform an HTTP request. This is the 09:16:19 lowest level call for making a request, so you'll need to specify all 09:16:19 the raw details. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 More commonly, it's appropriate to use a convenience method 09:16:19 such as :meth:`request`. 09:16:19 09:16:19 .. note:: 09:16:19 09:16:19 `release_conn` will only behave as expected if 09:16:19 `preload_content=False` because we want to make 09:16:19 `preload_content=False` the default behaviour someday soon without 09:16:19 breaking backwards compatibility. 09:16:19 09:16:19 :param method: 09:16:19 HTTP request method (such as GET, POST, PUT, etc.) 09:16:19 09:16:19 :param url: 09:16:19 The URL to perform the request on. 09:16:19 09:16:19 :param body: 09:16:19 Data to send in the request body, either :class:`str`, :class:`bytes`, 09:16:19 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 09:16:19 09:16:19 :param headers: 09:16:19 Dictionary of custom headers to send, such as User-Agent, 09:16:19 If-None-Match, etc. If None, pool headers are used. If provided, 09:16:19 these headers completely replace any pool-specific headers. 09:16:19 09:16:19 :param retries: 09:16:19 Configure the number of retries to allow before raising a 09:16:19 :class:`~urllib3.exceptions.MaxRetryError` exception. 09:16:19 09:16:19 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 09:16:19 :class:`~urllib3.util.retry.Retry` object for fine-grained control 09:16:19 over different types of retries. 09:16:19 Pass an integer number to retry connection errors that many times, 09:16:19 but no other types of errors. Pass zero to never retry. 09:16:19 09:16:19 If ``False``, then retries are disabled and any exception is raised 09:16:19 immediately. Also, instead of raising a MaxRetryError on redirects, 09:16:19 the redirect response will be returned. 09:16:19 09:16:19 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 09:16:19 09:16:19 :param redirect: 09:16:19 If True, automatically handle redirects (status codes 301, 302, 09:16:19 303, 307, 308). Each redirect counts as a retry. Disabling retries 09:16:19 will disable redirect, too. 09:16:19 09:16:19 :param assert_same_host: 09:16:19 If ``True``, will make sure that the host of the pool requests is 09:16:19 consistent else will raise HostChangedError. When ``False``, you can 09:16:19 use the pool on an HTTP proxy and request foreign hosts. 09:16:19 09:16:19 :param timeout: 09:16:19 If specified, overrides the default timeout for this one 09:16:19 request. It may be a float (in seconds) or an instance of 09:16:19 :class:`urllib3.util.Timeout`. 09:16:19 09:16:19 :param pool_timeout: 09:16:19 If set and the pool is set to block=True, then this method will 09:16:19 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 09:16:19 connection is available within the time period. 09:16:19 09:16:19 :param bool preload_content: 09:16:19 If True, the response's body will be preloaded into memory. 09:16:19 09:16:19 :param bool decode_content: 09:16:19 If True, will attempt to decode the body based on the 09:16:19 'content-encoding' header. 09:16:19 09:16:19 :param release_conn: 09:16:19 If False, then the urlopen call will not release the connection 09:16:19 back into the pool once a response is received (but will release if 09:16:19 you read the entire contents of the response such as when 09:16:19 `preload_content=True`). This is useful if you're not preloading 09:16:19 the response's content immediately. You will need to call 09:16:19 ``r.release_conn()`` on the response ``r`` to return the connection 09:16:19 back into the pool. If None, it takes the value of ``preload_content`` 09:16:19 which defaults to ``True``. 09:16:19 09:16:19 :param bool chunked: 09:16:19 If True, urllib3 will send the body using chunked transfer 09:16:19 encoding. Otherwise, urllib3 will send the body using the standard 09:16:19 content-length form. Defaults to False. 09:16:19 09:16:19 :param int body_pos: 09:16:19 Position to seek to in file-like body in the event of a retry or 09:16:19 redirect. Typically this won't need to be set because urllib3 will 09:16:19 auto-populate the value when needed. 09:16:19 """ 09:16:19 parsed_url = parse_url(url) 09:16:19 destination_scheme = parsed_url.scheme 09:16:19 09:16:19 if headers is None: 09:16:19 headers = self.headers 09:16:19 09:16:19 if not isinstance(retries, Retry): 09:16:19 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 09:16:19 09:16:19 if release_conn is None: 09:16:19 release_conn = preload_content 09:16:19 09:16:19 # Check host 09:16:19 if assert_same_host and not self.is_same_host(url): 09:16:19 raise HostChangedError(self, url, retries) 09:16:19 09:16:19 # Ensure that the URL we're connecting to is properly encoded 09:16:19 if url.startswith("/"): 09:16:19 url = to_str(_encode_target(url)) 09:16:19 else: 09:16:19 url = to_str(parsed_url.url) 09:16:19 09:16:19 conn = None 09:16:19 09:16:19 # Track whether `conn` needs to be released before 09:16:19 # returning/raising/recursing. Update this variable if necessary, and 09:16:19 # leave `release_conn` constant throughout the function. That way, if 09:16:19 # the function recurses, the original value of `release_conn` will be 09:16:19 # passed down into the recursive call, and its value will be respected. 09:16:19 # 09:16:19 # See issue #651 [1] for details. 09:16:19 # 09:16:19 # [1] 09:16:19 release_this_conn = release_conn 09:16:19 09:16:19 http_tunnel_required = connection_requires_http_tunnel( 09:16:19 self.proxy, self.proxy_config, destination_scheme 09:16:19 ) 09:16:19 09:16:19 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 09:16:19 # have to copy the headers dict so we can safely change it without those 09:16:19 # changes being reflected in anyone else's copy. 09:16:19 if not http_tunnel_required: 09:16:19 headers = headers.copy() # type: ignore[attr-defined] 09:16:19 headers.update(self.proxy_headers) # type: ignore[union-attr] 09:16:19 09:16:19 # Must keep the exception bound to a separate variable or else Python 3 09:16:19 # complains about UnboundLocalError. 09:16:19 err = None 09:16:19 09:16:19 # Keep track of whether we cleanly exited the except block. This 09:16:19 # ensures we do proper cleanup in finally. 09:16:19 clean_exit = False 09:16:19 09:16:19 # Rewind body position, if needed. Record current position 09:16:19 # for future rewinds in the event of a redirect/retry. 09:16:19 body_pos = set_file_position(body, body_pos) 09:16:19 09:16:19 try: 09:16:19 # Request a connection from the queue. 09:16:19 timeout_obj = self._get_timeout(timeout) 09:16:19 conn = self._get_conn(timeout=pool_timeout) 09:16:19 09:16:19 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 09:16:19 09:16:19 # Is this a closed/new connection that requires CONNECT tunnelling? 09:16:19 if self.proxy is not None and http_tunnel_required and conn.is_closed: 09:16:19 try: 09:16:19 self._prepare_proxy(conn) 09:16:19 except (BaseSSLError, OSError, SocketTimeout) as e: 09:16:19 self._raise_timeout( 09:16:19 err=e, url=self.proxy.url, timeout_value=conn.timeout 09:16:19 ) 09:16:19 raise 09:16:19 09:16:19 # If we're going to release the connection in ``finally:``, then 09:16:19 # the response doesn't need to know about the connection. Otherwise 09:16:19 # it will also try to release it and we'll have a double-release 09:16:19 # mess. 09:16:19 response_conn = conn if not release_conn else None 09:16:19 09:16:19 # Make the request on the HTTPConnection object 09:16:19 > response = self._make_request( 09:16:19 conn, 09:16:19 method, 09:16:19 url, 09:16:19 timeout=timeout_obj, 09:16:19 body=body, 09:16:19 headers=headers, 09:16:19 chunked=chunked, 09:16:19 retries=retries, 09:16:19 response_conn=response_conn, 09:16:19 preload_content=preload_content, 09:16:19 decode_content=decode_content, 09:16:19 **response_kw, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 09:16:19 conn.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 09:16:19 self.endheaders() 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 09:16:19 self._send_output(message_body, encode_chunked=encode_chunked) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 09:16:19 self.send(msg) 09:16:19 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 09:16:19 self.connect() 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 09:16:19 self.sock = self._new_conn() 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 09:16:19 def _new_conn(self) -> socket.socket: 09:16:19 """Establish a socket connection and set nodelay settings on it. 09:16:19 09:16:19 :return: New socket connection. 09:16:19 """ 09:16:19 try: 09:16:19 sock = connection.create_connection( 09:16:19 (self._dns_host, self.port), 09:16:19 self.timeout, 09:16:19 source_address=self.source_address, 09:16:19 socket_options=self.socket_options, 09:16:19 ) 09:16:19 except socket.gaierror as e: 09:16:19 raise NameResolutionError(self.host, self, e) from e 09:16:19 except SocketTimeout as e: 09:16:19 raise ConnectTimeoutError( 09:16:19 self, 09:16:19 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 09:16:19 ) from e 09:16:19 09:16:19 except OSError as e: 09:16:19 > raise NewConnectionError( 09:16:19 self, f"Failed to establish a new connection: {e}" 09:16:19 ) from e 09:16:19 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 09:16:19 09:16:19 The above exception was the direct cause of the following exception: 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 > resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 09:16:19 retries = retries.increment( 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 09:16:19 method = 'GET' 09:16:19 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 09:16:19 response = None 09:16:19 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 09:16:19 _pool = 09:16:19 _stacktrace = 09:16:19 09:16:19 def increment( 09:16:19 self, 09:16:19 method: str | None = None, 09:16:19 url: str | None = None, 09:16:19 response: BaseHTTPResponse | None = None, 09:16:19 error: Exception | None = None, 09:16:19 _pool: ConnectionPool | None = None, 09:16:19 _stacktrace: TracebackType | None = None, 09:16:19 ) -> Self: 09:16:19 """Return a new Retry object with incremented retry counters. 09:16:19 09:16:19 :param response: A response object, or None, if the server did not 09:16:19 return a response. 09:16:19 :type response: :class:`~urllib3.response.BaseHTTPResponse` 09:16:19 :param Exception error: An error encountered during the request, or 09:16:19 None if the response was received successfully. 09:16:19 09:16:19 :return: A new ``Retry`` object. 09:16:19 """ 09:16:19 if self.total is False and error: 09:16:19 # Disabled, indicate to re-raise the error. 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 09:16:19 total = self.total 09:16:19 if total is not None: 09:16:19 total -= 1 09:16:19 09:16:19 connect = self.connect 09:16:19 read = self.read 09:16:19 redirect = self.redirect 09:16:19 status_count = self.status 09:16:19 other = self.other 09:16:19 cause = "unknown" 09:16:19 status = None 09:16:19 redirect_location = None 09:16:19 09:16:19 if error and self._is_connection_error(error): 09:16:19 # Connect retry? 09:16:19 if connect is False: 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif connect is not None: 09:16:19 connect -= 1 09:16:19 09:16:19 elif error and self._is_read_error(error): 09:16:19 # Read retry? 09:16:19 if read is False or method is None or not self._is_method_retryable(method): 09:16:19 raise reraise(type(error), error, _stacktrace) 09:16:19 elif read is not None: 09:16:19 read -= 1 09:16:19 09:16:19 elif error: 09:16:19 # Other retry? 09:16:19 if other is not None: 09:16:19 other -= 1 09:16:19 09:16:19 elif response and response.get_redirect_location(): 09:16:19 # Redirect retry? 09:16:19 if redirect is not None: 09:16:19 redirect -= 1 09:16:19 cause = "too many redirects" 09:16:19 response_redirect_location = response.get_redirect_location() 09:16:19 if response_redirect_location: 09:16:19 redirect_location = response_redirect_location 09:16:19 status = response.status 09:16:19 09:16:19 else: 09:16:19 # Incrementing because of a server error like a 500 in 09:16:19 # status_forcelist and the given method is in the allowed_methods 09:16:19 cause = ResponseError.GENERIC_ERROR 09:16:19 if response and response.status: 09:16:19 if status_count is not None: 09:16:19 status_count -= 1 09:16:19 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 09:16:19 status = response.status 09:16:19 09:16:19 history = self.history + ( 09:16:19 RequestHistory(method, url, error, status, redirect_location), 09:16:19 ) 09:16:19 09:16:19 new_retry = self.new( 09:16:19 total=total, 09:16:19 connect=connect, 09:16:19 read=read, 09:16:19 redirect=redirect, 09:16:19 status=status_count, 09:16:19 other=other, 09:16:19 history=history, 09:16:19 ) 09:16:19 09:16:19 if new_retry.is_exhausted(): 09:16:19 reason = error or ResponseError(cause) 09:16:19 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 09:16:19 09:16:19 During handling of the above exception, another exception occurred: 09:16:19 09:16:19 self = 09:16:19 09:16:19 def test_21_rdm_device_not_connected(self): 09:16:19 > response = test_utils.get_portmapping_node_attr("ROADMA01", "node-info", None) 09:16:19 09:16:19 transportpce_tests/1.2.1/test01_portmapping.py:223: 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 09:16:19 response = get_request(target_url) 09:16:19 transportpce_tests/common/test_utils.py:116: in get_request 09:16:19 return requests.request( 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 09:16:19 return session.request(method=method, url=url, **kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 09:16:19 resp = self.send(prep, **send_kwargs) 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 09:16:19 r = adapter.send(request, **kwargs) 09:16:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:19 09:16:19 self = 09:16:19 request = , stream = False 09:16:19 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 09:16:19 proxies = OrderedDict() 09:16:19 09:16:19 def send( 09:16:19 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 09:16:19 ): 09:16:19 """Sends PreparedRequest object. Returns Response object. 09:16:19 09:16:19 :param request: The :class:`PreparedRequest ` being sent. 09:16:19 :param stream: (optional) Whether to stream the request content. 09:16:19 :param timeout: (optional) How long to wait for the server to send 09:16:19 data before giving up, as a float, or a :ref:`(connect timeout, 09:16:19 read timeout) ` tuple. 09:16:19 :type timeout: float or tuple or urllib3 Timeout object 09:16:19 :param verify: (optional) Either a boolean, in which case it controls whether 09:16:19 we verify the server's TLS certificate, or a string, in which case it 09:16:19 must be a path to a CA bundle to use 09:16:19 :param cert: (optional) Any user-provided SSL certificate to be trusted. 09:16:19 :param proxies: (optional) The proxies dictionary to apply to the request. 09:16:19 :rtype: requests.Response 09:16:19 """ 09:16:19 09:16:19 try: 09:16:19 conn = self.get_connection_with_tls_context( 09:16:19 request, verify, proxies=proxies, cert=cert 09:16:19 ) 09:16:19 except LocationValueError as e: 09:16:19 raise InvalidURL(e, request=request) 09:16:19 09:16:19 self.cert_verify(conn, request.url, verify, cert) 09:16:19 url = self.request_url(request, proxies) 09:16:19 self.add_headers( 09:16:19 request, 09:16:19 stream=stream, 09:16:19 timeout=timeout, 09:16:19 verify=verify, 09:16:19 cert=cert, 09:16:19 proxies=proxies, 09:16:19 ) 09:16:19 09:16:19 chunked = not (request.body is None or "Content-Length" in request.headers) 09:16:19 09:16:19 if isinstance(timeout, tuple): 09:16:19 try: 09:16:19 connect, read = timeout 09:16:19 timeout = TimeoutSauce(connect=connect, read=read) 09:16:19 except ValueError: 09:16:19 raise ValueError( 09:16:19 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 09:16:19 f"or a single float to set both timeouts to the same value." 09:16:19 ) 09:16:19 elif isinstance(timeout, TimeoutSauce): 09:16:19 pass 09:16:19 else: 09:16:19 timeout = TimeoutSauce(connect=timeout, read=timeout) 09:16:19 09:16:19 try: 09:16:19 resp = conn.urlopen( 09:16:19 method=request.method, 09:16:19 url=url, 09:16:19 body=request.body, 09:16:19 headers=request.headers, 09:16:19 redirect=False, 09:16:19 assert_same_host=False, 09:16:19 preload_content=False, 09:16:19 decode_content=False, 09:16:19 retries=self.max_retries, 09:16:19 timeout=timeout, 09:16:19 chunked=chunked, 09:16:19 ) 09:16:19 09:16:19 except (ProtocolError, OSError) as err: 09:16:19 raise ConnectionError(err, request=request) 09:16:19 09:16:19 except MaxRetryError as e: 09:16:19 if isinstance(e.reason, ConnectTimeoutError): 09:16:19 # TODO: Remove this in 3.0.0: see #2811 09:16:19 if not isinstance(e.reason, NewConnectionError): 09:16:19 raise ConnectTimeout(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, ResponseError): 09:16:19 raise RetryError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _ProxyError): 09:16:19 raise ProxyError(e, request=request) 09:16:19 09:16:19 if isinstance(e.reason, _SSLError): 09:16:19 # This branch is for urllib3 v1.22 and later. 09:16:19 raise SSLError(e, request=request) 09:16:19 09:16:19 > raise ConnectionError(e, request=request) 09:16:19 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')) 09:16:19 09:16:19 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 09:16:19 ----------------------------- Captured stdout call ----------------------------- 09:16:19 execution of test_21_rdm_device_not_connected 09:16:19 --------------------------- Captured stdout teardown --------------------------- 09:16:19 all processes killed 09:16:19 =========================== short test summary info ============================ 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_10_xpdr_portmapping_NETWORK1 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_11_xpdr_portmapping_NETWORK2 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_12_xpdr_portmapping_CLIENT1 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_13_xpdr_portmapping_CLIENT2 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_14_xpdr_portmapping_CLIENT3 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_15_xpdr_portmapping_CLIENT4 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_16_xpdr_device_disconnection 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_17_xpdr_device_disconnected 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_18_xpdr_device_not_connected 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_19_rdm_device_disconnection 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_20_rdm_device_disconnected 09:16:19 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_21_rdm_device_not_connected 09:16:19 12 failed, 9 passed in 454.23s (0:07:34) 09:16:19 tests121: exit 1 (454.62 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 pid=36427 09:16:38 ............ [100%] 09:16:51 12 passed in 43.03s 09:16:51 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 09:17:17 .............................................................. [100%] 09:19:27 62 passed in 155.40s (0:02:35) 09:19:27 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 09:19:59 ................................................ [100%] 09:21:43 48 passed in 135.48s (0:02:15) 09:21:43 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 09:22:08 ...................... [100%] 09:22:56 22 passed in 73.04s (0:01:13) 09:22:56 tests121: FAIL ✖ in 7 minutes 41.31 seconds 09:22:56 tests71: OK ✔ in 6 minutes 53.84 seconds 09:22:56 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 09:23:02 tests221: freeze> python -m pip freeze --all 09:23:02 tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:23:02 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 09:23:02 using environment variables from ./karaf221.env 09:23:02 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 09:23:38 ................................... [100%] 09:27:18 35 passed in 255.96s (0:04:15) 09:27:18 pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py 09:27:50 ...... [100%] 09:28:03 6 passed in 44.84s 09:28:03 pytest -q transportpce_tests/2.2.1/test03_topology.py 09:28:46 ............................................ [100%] 09:30:20 44 passed in 137.07s (0:02:17) 09:30:20 pytest -q transportpce_tests/2.2.1/test04_otn_topology.py 09:30:56 ............ [100%] 09:31:20 12 passed in 59.35s 09:31:20 pytest -q transportpce_tests/2.2.1/test05_flex_grid.py 09:31:46 ................ [100%] 09:33:15 16 passed in 114.85s (0:01:54) 09:33:15 pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py 09:33:45 ............................... [100%] 09:33:51 31 passed in 36.13s 09:33:51 pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py 09:34:27 .......................... [100%] 09:35:23 26 passed in 90.90s (0:01:30) 09:35:23 pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py 09:35:59 ...................... [100%] 09:37:03 22 passed in 100.24s (0:01:40) 09:37:03 pytest -q transportpce_tests/2.2.1/test09_olm.py 09:37:44 ........................................ [100%] 09:40:06 40 passed in 182.56s (0:03:02) 09:40:06 pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py 09:40:48 ........................................................................ [ 74%] 09:46:24 ......................... [100%] 09:48:16 97 passed in 490.40s (0:08:10) 09:48:17 pytest -q transportpce_tests/2.2.1/test12_end2end.py 09:48:57 ...................................................... [100%] 09:55:44 54 passed in 447.33s (0:07:27) 09:55:44 pytest -q transportpce_tests/2.2.1/test14_otn_switch_end2end.py 09:56:39 ........................................................................ [ 71%] 10:01:47 ............................. [100%] 10:06:57 101 passed in 672.36s (0:11:12) 10:06:57 pytest -q transportpce_tests/2.2.1/test15_otn_end2end_with_intermediate_switch.py 10:07:51 ........................................................................ [ 67%] 10:13:37 ................................... [100%] 10:16:58 107 passed in 600.97s (0:10:00) 10:16:58 tests221: OK ✔ in 54 minutes 1.92 seconds 10:16:58 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 10:17:04 tests_hybrid: freeze> python -m pip freeze --all 10:17:04 tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 10:17:04 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 10:17:04 using environment variables from ./karaf121.env 10:17:04 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 10:17:49 ................................................... [100%] 10:19:35 51 passed in 150.55s (0:02:30) 10:19:35 pytest -q transportpce_tests/hybrid/test02_B100G_end2end.py 10:20:16 ........................................................................ [ 66%] 10:24:37 ..................................... [100%] 10:26:43 109 passed in 427.57s (0:07:07) 10:26:43 pytest -q transportpce_tests/hybrid/test03_autonomous_reroute.py 10:27:31 ..................................................... [100%] 10:34:03 53 passed in 440.04s (0:07:20) 10:34:03 tests_hybrid: OK ✔ in 17 minutes 5.19 seconds 10:34:03 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 10:34:09 buildlighty: freeze> python -m pip freeze --all 10:34:09 buildlighty: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,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.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 10:34:09 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 10:34:09 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 10:34:28 [ERROR] COMPILATION ERROR : 10:34:28 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 10:34:28 symbol: class YangModuleInfo 10:34:28 location: package org.opendaylight.yangtools.binding 10:34:28 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 10:34:28 symbol: class YangModuleInfo 10:34:28 location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:34:28 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 10:34:28 symbol: class YangModuleInfo 10:34:28 location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:34:28 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 10:34:28 symbol: class YangModuleInfo 10:34:28 location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:34:28 [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: 10:34:28 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 10:34:28 [ERROR] symbol: class YangModuleInfo 10:34:28 [ERROR] location: package org.opendaylight.yangtools.binding 10:34:28 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 10:34:28 [ERROR] symbol: class YangModuleInfo 10:34:28 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:34:28 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 10:34:28 [ERROR] symbol: class YangModuleInfo 10:34:28 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:34:28 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 10:34:28 [ERROR] symbol: class YangModuleInfo 10:34:28 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:34:28 [ERROR] -> [Help 1] 10:34:28 [ERROR] 10:34:28 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 10:34:28 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 10:34:28 [ERROR] 10:34:28 [ERROR] For more information about the errors and possible solutions, please read the following articles: 10:34:28 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 10:34:28 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 10:34:28 buildlighty: exit 9 (19.35 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=60316 10:34:28 buildlighty: command failed but is marked ignore outcome so handling it as success 10:34:28 buildcontroller: OK (116.36=setup[8.88]+cmd[107.48] seconds) 10:34:28 testsPCE: OK (364.36=setup[127.02]+cmd[237.33] seconds) 10:34:28 sims: OK (15.09=setup[7.83]+cmd[7.26] seconds) 10:34:28 build_karaf_tests121: OK (78.91=setup[7.82]+cmd[71.09] seconds) 10:34:28 tests121: FAIL code 1 (461.31=setup[6.69]+cmd[454.62] seconds) 10:34:28 build_karaf_tests221: OK (84.84=setup[7.85]+cmd[76.99] seconds) 10:34:28 tests_tapi: FAIL code 1 (723.87=setup[16.89]+cmd[706.98] seconds) 10:34:28 tests221: OK (3241.92=setup[5.97]+cmd[3235.95] seconds) 10:34:28 build_karaf_tests71: OK (73.10=setup[13.50]+cmd[59.59] seconds) 10:34:28 tests71: OK (413.84=setup[5.97]+cmd[407.87] seconds) 10:34:28 build_karaf_tests_hybrid: OK (70.82=setup[22.67]+cmd[48.16] seconds) 10:34:28 tests_hybrid: OK (1025.19=setup[6.34]+cmd[1018.85] seconds) 10:34:28 buildlighty: OK (25.27=setup[5.92]+cmd[19.35] seconds) 10:34:28 docs: OK (36.84=setup[34.12]+cmd[2.72] seconds) 10:34:28 docs-linkcheck: OK (40.48=setup[33.99]+cmd[6.50] seconds) 10:34:28 checkbashisms: OK (2.89=setup[2.00]+cmd[0.01,0.06,0.83] seconds) 10:34:28 pre-commit: OK (46.26=setup[3.62]+cmd[0.01,0.01,35.36,7.25] seconds) 10:34:28 pylint: OK (26.41=setup[5.47]+cmd[20.94] seconds) 10:34:28 evaluation failed :( (5631.38 seconds) 10:34:28 + tox_status=255 10:34:28 + echo '---> Completed tox runs' 10:34:28 ---> Completed tox runs 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/build_karaf_tests121/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=build_karaf_tests121 10:34:28 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/build_karaf_tests221/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=build_karaf_tests221 10:34:28 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/build_karaf_tests71/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=build_karaf_tests71 10:34:28 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/build_karaf_tests_hybrid/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=build_karaf_tests_hybrid 10:34:28 + cp -r .tox/build_karaf_tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests_hybrid 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/buildcontroller/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=buildcontroller 10:34:28 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/buildlighty/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=buildlighty 10:34:28 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 10:34:28 + for i in .tox/*/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 ++ echo .tox/checkbashisms/log 10:34:28 + tox_env=checkbashisms 10:34:28 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/docs-linkcheck/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=docs-linkcheck 10:34:28 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/docs/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=docs 10:34:28 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/pre-commit/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=pre-commit 10:34:28 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/pylint/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=pylint 10:34:28 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/sims/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=sims 10:34:28 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/tests121/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=tests121 10:34:28 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests121 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/tests221/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=tests221 10:34:28 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 10:34:28 + for i in .tox/*/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 ++ echo .tox/tests71/log 10:34:28 + tox_env=tests71 10:34:28 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/testsPCE/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=testsPCE 10:34:28 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/tests_hybrid/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=tests_hybrid 10:34:28 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 10:34:28 + for i in .tox/*/log 10:34:28 ++ echo .tox/tests_tapi/log 10:34:28 ++ awk -F/ '{print $2}' 10:34:28 + tox_env=tests_tapi 10:34:28 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 10:34:28 + DOC_DIR=docs/_build/html 10:34:28 + [[ -d docs/_build/html ]] 10:34:28 + echo '---> Archiving generated docs' 10:34:28 ---> Archiving generated docs 10:34:28 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 10:34:28 + echo '---> tox-run.sh ends' 10:34:28 ---> tox-run.sh ends 10:34:28 + test 255 -eq 0 10:34:28 + exit 255 10:34:28 ++ '[' 1 = 1 ']' 10:34:28 ++ '[' -x /usr/bin/clear_console ']' 10:34:28 ++ /usr/bin/clear_console -q 10:34:28 Build step 'Execute shell' marked build as failure 10:34:28 $ ssh-agent -k 10:34:28 unset SSH_AUTH_SOCK; 10:34:28 unset SSH_AGENT_PID; 10:34:28 echo Agent pid 12584 killed; 10:34:29 [ssh-agent] Stopped. 10:34:29 [PostBuildScript] - [INFO] Executing post build scripts. 10:34:29 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16543305513711551379.sh 10:34:29 ---> sysstat.sh 10:34:29 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14697219613748483589.sh 10:34:29 ---> package-listing.sh 10:34:29 ++ facter osfamily 10:34:29 ++ tr '[:upper:]' '[:lower:]' 10:34:29 + OS_FAMILY=debian 10:34:29 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 10:34:29 + START_PACKAGES=/tmp/packages_start.txt 10:34:29 + END_PACKAGES=/tmp/packages_end.txt 10:34:29 + DIFF_PACKAGES=/tmp/packages_diff.txt 10:34:29 + PACKAGES=/tmp/packages_start.txt 10:34:29 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 10:34:29 + PACKAGES=/tmp/packages_end.txt 10:34:29 + case "${OS_FAMILY}" in 10:34:29 + dpkg -l 10:34:29 + grep '^ii' 10:34:29 + '[' -f /tmp/packages_start.txt ']' 10:34:29 + '[' -f /tmp/packages_end.txt ']' 10:34:29 + diff /tmp/packages_start.txt /tmp/packages_end.txt 10:34:29 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 10:34:29 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 10:34:29 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 10:34:29 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1280730642982373313.sh 10:34:29 ---> capture-instance-metadata.sh 10:34:30 Setup pyenv: 10:34:30 system 10:34:30 3.8.13 10:34:30 3.9.13 10:34:30 3.10.13 10:34:30 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:34:30 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-5ZTY from file:/tmp/.os_lf_venv 10:34:31 lf-activate-venv(): INFO: Installing: lftools 10:34:40 lf-activate-venv(): INFO: Adding /tmp/venv-5ZTY/bin to PATH 10:34:40 INFO: Running in OpenStack, capturing instance metadata 10:34:40 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11906994896756342820.sh 10:34:40 provisioning config files... 10:34:41 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #2003 10:34:41 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config1656418440664749674tmp 10:34:41 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 10:34:41 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 10:34:41 provisioning config files... 10:34:41 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 10:34:41 [EnvInject] - Injecting environment variables from a build step. 10:34:41 [EnvInject] - Injecting as environment variables the properties content 10:34:41 SERVER_ID=logs 10:34:41 10:34:41 [EnvInject] - Variables injected successfully. 10:34:41 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5387708314252463507.sh 10:34:41 ---> create-netrc.sh 10:34:41 WARN: Log server credential not found. 10:34:41 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6208970088666057789.sh 10:34:41 ---> python-tools-install.sh 10:34:41 Setup pyenv: 10:34:41 system 10:34:41 3.8.13 10:34:41 3.9.13 10:34:41 3.10.13 10:34:41 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:34:41 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-5ZTY from file:/tmp/.os_lf_venv 10:34:42 lf-activate-venv(): INFO: Installing: lftools 10:34:50 lf-activate-venv(): INFO: Adding /tmp/venv-5ZTY/bin to PATH 10:34:50 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins579661022603855224.sh 10:34:50 ---> sudo-logs.sh 10:34:50 Archiving 'sudo' log.. 10:34:50 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16077677898769713480.sh 10:34:50 ---> job-cost.sh 10:34:50 Setup pyenv: 10:34:50 system 10:34:50 3.8.13 10:34:50 3.9.13 10:34:50 3.10.13 10:34:50 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:34:51 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-5ZTY from file:/tmp/.os_lf_venv 10:34:51 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 10:34:56 lf-activate-venv(): INFO: Adding /tmp/venv-5ZTY/bin to PATH 10:34:56 INFO: No Stack... 10:34:56 INFO: Retrieving Pricing Info for: v3-standard-4 10:34:56 INFO: Archiving Costs 10:34:57 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins13860864990926879711.sh 10:34:57 ---> logs-deploy.sh 10:34:57 Setup pyenv: 10:34:57 system 10:34:57 3.8.13 10:34:57 3.9.13 10:34:57 3.10.13 10:34:57 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:34:57 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-5ZTY from file:/tmp/.os_lf_venv 10:34:58 lf-activate-venv(): INFO: Installing: lftools 10:35:06 lf-activate-venv(): INFO: Adding /tmp/venv-5ZTY/bin to PATH 10:35:07 WARNING: Nexus logging server not set 10:35:07 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/2003/ 10:35:07 INFO: archiving logs to S3 10:35:08 ---> uname -a: 10:35:08 Linux prd-ubuntu2004-docker-4c-16g-23743 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 10:35:08 10:35:08 10:35:08 ---> lscpu: 10:35:08 Architecture: x86_64 10:35:08 CPU op-mode(s): 32-bit, 64-bit 10:35:08 Byte Order: Little Endian 10:35:08 Address sizes: 40 bits physical, 48 bits virtual 10:35:08 CPU(s): 4 10:35:08 On-line CPU(s) list: 0-3 10:35:08 Thread(s) per core: 1 10:35:08 Core(s) per socket: 1 10:35:08 Socket(s): 4 10:35:08 NUMA node(s): 1 10:35:08 Vendor ID: AuthenticAMD 10:35:08 CPU family: 23 10:35:08 Model: 49 10:35:08 Model name: AMD EPYC-Rome Processor 10:35:08 Stepping: 0 10:35:08 CPU MHz: 2800.000 10:35:08 BogoMIPS: 5600.00 10:35:08 Virtualization: AMD-V 10:35:08 Hypervisor vendor: KVM 10:35:08 Virtualization type: full 10:35:08 L1d cache: 128 KiB 10:35:08 L1i cache: 128 KiB 10:35:08 L2 cache: 2 MiB 10:35:08 L3 cache: 64 MiB 10:35:08 NUMA node0 CPU(s): 0-3 10:35:08 Vulnerability Gather data sampling: Not affected 10:35:08 Vulnerability Itlb multihit: Not affected 10:35:08 Vulnerability L1tf: Not affected 10:35:08 Vulnerability Mds: Not affected 10:35:08 Vulnerability Meltdown: Not affected 10:35:08 Vulnerability Mmio stale data: Not affected 10:35:08 Vulnerability Retbleed: Vulnerable 10:35:08 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 10:35:08 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 10:35:08 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 10:35:08 Vulnerability Srbds: Not affected 10:35:08 Vulnerability Tsx async abort: Not affected 10:35:08 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 10:35:08 10:35:08 10:35:08 ---> nproc: 10:35:08 4 10:35:08 10:35:08 10:35:08 ---> df -h: 10:35:08 Filesystem Size Used Avail Use% Mounted on 10:35:08 udev 7.8G 0 7.8G 0% /dev 10:35:08 tmpfs 1.6G 1.1M 1.6G 1% /run 10:35:08 /dev/vda1 78G 17G 62G 21% / 10:35:08 tmpfs 7.9G 0 7.9G 0% /dev/shm 10:35:08 tmpfs 5.0M 0 5.0M 0% /run/lock 10:35:08 tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup 10:35:08 /dev/loop0 62M 62M 0 100% /snap/core20/1405 10:35:08 /dev/loop1 68M 68M 0 100% /snap/lxd/22753 10:35:08 /dev/vda15 105M 6.1M 99M 6% /boot/efi 10:35:08 tmpfs 1.6G 0 1.6G 0% /run/user/1001 10:35:08 /dev/loop3 39M 39M 0 100% /snap/snapd/21759 10:35:08 /dev/loop4 64M 64M 0 100% /snap/core20/2379 10:35:08 /dev/loop5 92M 92M 0 100% /snap/lxd/29619 10:35:08 10:35:08 10:35:08 ---> free -m: 10:35:08 total used free shared buff/cache available 10:35:08 Mem: 15997 677 5745 1 9573 14980 10:35:08 Swap: 1023 0 1023 10:35:08 10:35:08 10:35:08 ---> ip addr: 10:35:08 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 10:35:08 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 10:35:08 inet 127.0.0.1/8 scope host lo 10:35:08 valid_lft forever preferred_lft forever 10:35:08 inet6 ::1/128 scope host 10:35:08 valid_lft forever preferred_lft forever 10:35:08 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 10:35:08 link/ether fa:16:3e:e5:3a:28 brd ff:ff:ff:ff:ff:ff 10:35:08 inet 10.30.170.99/23 brd 10.30.171.255 scope global dynamic ens3 10:35:08 valid_lft 80589sec preferred_lft 80589sec 10:35:08 inet6 fe80::f816:3eff:fee5:3a28/64 scope link 10:35:08 valid_lft forever preferred_lft forever 10:35:08 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 10:35:08 link/ether 02:42:aa:c7:e7:32 brd ff:ff:ff:ff:ff:ff 10:35:08 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 10:35:08 valid_lft forever preferred_lft forever 10:35:08 10:35:08 10:35:08 ---> sar -b -r -n DEV: 10:35:08 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-23743) 09/18/24 _x86_64_ (4 CPU) 10:35:08 10:35:08 08:58:19 LINUX RESTART (4 CPU) 10:35:08 10:35:08 08:59:02 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 10:35:08 09:00:01 254.11 79.48 174.63 0.00 2482.29 8357.92 0.00 10:35:08 09:01:01 139.21 23.24 115.98 0.00 1854.41 19031.55 0.00 10:35:08 09:02:01 169.51 18.83 150.68 0.00 924.49 45647.05 0.00 10:35:08 09:03:01 84.50 1.30 83.20 0.00 64.13 35757.33 0.00 10:35:08 09:04:01 92.07 1.03 91.03 0.00 71.05 123231.06 0.00 10:35:08 09:05:02 156.31 15.38 140.93 0.00 4829.57 52438.21 0.00 10:35:08 09:06:01 114.30 0.76 113.54 0.00 38.63 32587.46 0.00 10:35:08 09:07:01 105.28 2.71 102.58 0.00 181.72 2038.02 0.00 10:35:08 09:08:01 73.64 0.12 73.53 0.00 11.86 1172.94 0.00 10:35:08 09:09:01 126.48 0.33 126.15 0.00 38.26 3320.38 0.00 10:35:08 09:10:01 93.37 0.02 93.35 0.00 0.27 8904.78 0.00 10:35:08 09:11:01 4.42 0.00 4.42 0.00 0.00 93.45 0.00 10:35:08 09:12:01 2.68 0.00 2.68 0.00 0.00 48.92 0.00 10:35:08 09:13:01 3.68 0.00 3.68 0.00 0.00 167.57 0.00 10:35:08 09:14:01 3.82 0.87 2.95 0.00 16.53 42.39 0.00 10:35:08 09:15:01 2.80 0.00 2.80 0.00 0.00 39.46 0.00 10:35:08 09:16:01 2.25 0.00 2.25 0.00 0.00 28.40 0.00 10:35:08 09:17:01 123.98 0.12 123.86 0.00 3.07 10354.54 0.00 10:35:08 09:18:01 54.95 0.02 54.93 0.00 0.13 1046.18 0.00 10:35:08 09:19:01 2.30 0.00 2.30 0.00 0.00 40.39 0.00 10:35:08 09:20:01 72.92 0.00 72.92 0.00 0.00 1064.09 0.00 10:35:08 09:21:01 2.37 0.00 2.37 0.00 0.00 50.92 0.00 10:35:08 09:22:01 23.87 0.00 23.87 0.00 0.00 376.40 0.00 10:35:08 09:23:01 62.46 0.02 62.44 0.00 0.13 1475.49 0.00 10:35:08 09:24:01 89.39 0.00 89.39 0.00 0.00 2866.91 0.00 10:35:08 09:25:01 2.60 0.00 2.60 0.00 0.00 53.32 0.00 10:35:08 09:26:01 1.33 0.00 1.33 0.00 0.00 17.07 0.00 10:35:08 09:27:01 2.07 0.00 2.07 0.00 0.00 26.79 0.00 10:35:08 09:28:01 74.42 0.00 74.42 0.00 0.00 1093.68 0.00 10:35:08 09:29:01 82.29 0.00 82.29 0.00 0.00 1202.20 0.00 10:35:08 09:30:01 2.03 0.00 2.03 0.00 0.00 43.86 0.00 10:35:08 09:31:01 79.49 0.00 79.49 0.00 0.00 1160.87 0.00 10:35:08 09:32:01 98.42 0.00 98.42 0.00 0.00 1747.84 0.00 10:35:08 09:33:01 2.20 0.00 2.20 0.00 0.00 35.33 0.00 10:35:08 09:34:01 99.95 0.00 99.95 0.00 0.00 1412.83 0.00 10:35:08 09:35:01 65.57 0.00 65.57 0.00 0.00 935.58 0.00 10:35:08 09:36:01 75.14 0.00 75.14 0.00 0.00 1098.22 0.00 10:35:08 09:37:01 2.95 0.00 2.95 0.00 0.00 56.12 0.00 10:35:08 09:38:01 73.04 0.00 73.04 0.00 0.00 1071.29 0.00 10:35:08 09:39:01 3.43 0.00 3.43 0.00 0.00 70.78 0.00 10:35:08 09:40:01 2.65 0.00 2.65 0.00 0.00 54.92 0.00 10:35:08 09:41:01 77.15 0.00 77.15 0.00 0.00 1131.41 0.00 10:35:08 09:42:01 2.17 0.00 2.17 0.00 0.00 60.52 0.00 10:35:08 09:43:01 2.22 0.00 2.22 0.00 0.00 33.06 0.00 10:35:08 09:44:01 2.12 0.00 2.12 0.00 0.00 41.99 0.00 10:35:08 09:45:01 2.65 0.00 2.65 0.00 0.00 49.19 0.00 10:35:08 09:46:01 2.55 0.00 2.55 0.00 0.00 53.72 0.00 10:35:08 09:47:01 2.53 0.00 2.53 0.00 0.00 44.39 0.00 10:35:08 09:48:01 2.70 0.00 2.70 0.00 0.00 48.39 0.00 10:35:08 09:49:01 63.97 0.00 63.97 0.00 0.00 958.37 0.00 10:35:08 09:50:01 2.18 0.00 2.18 0.00 0.00 65.59 0.00 10:35:08 09:51:01 2.92 0.00 2.92 0.00 0.00 60.92 0.00 10:35:08 09:52:01 1.93 0.00 1.93 0.00 0.00 37.59 0.00 10:35:08 09:53:01 2.60 0.00 2.60 0.00 0.00 58.79 0.00 10:35:08 09:54:01 1.95 0.00 1.95 0.00 0.00 42.26 0.00 10:35:08 09:55:01 2.60 0.00 2.60 0.00 0.00 54.92 0.00 10:35:08 09:56:01 16.60 0.00 16.60 0.00 0.00 301.95 0.00 10:35:08 09:57:01 51.69 0.00 51.69 0.00 0.00 759.21 0.00 10:35:08 09:58:01 2.22 0.00 2.22 0.00 0.00 53.32 0.00 10:35:08 09:59:01 2.55 0.00 2.55 0.00 0.00 67.72 0.00 10:35:08 10:00:01 2.03 0.00 2.03 0.00 0.00 37.86 0.00 10:35:08 10:01:01 3.08 0.00 3.08 0.00 0.00 55.32 0.00 10:35:08 10:02:01 2.50 0.00 2.50 0.00 0.00 54.52 0.00 10:35:08 10:03:01 2.87 0.00 2.87 0.00 0.00 56.26 0.00 10:35:08 10:04:02 2.47 0.00 2.47 0.00 0.00 45.99 0.00 10:35:08 10:05:01 2.27 0.00 2.27 0.00 0.00 31.05 0.00 10:35:08 10:06:01 1.68 0.00 1.68 0.00 0.00 23.33 0.00 10:35:08 10:07:01 15.75 0.00 15.75 0.00 0.00 254.22 0.00 10:35:08 10:08:01 70.84 0.00 70.84 0.00 0.00 1015.96 0.00 10:35:08 10:09:01 2.08 0.00 2.08 0.00 0.00 52.92 0.00 10:35:08 10:10:01 2.22 0.00 2.22 0.00 0.00 57.99 0.00 10:35:08 10:11:01 2.83 0.00 2.83 0.00 0.00 57.72 0.00 10:35:08 10:12:01 2.48 0.00 2.48 0.00 0.00 41.86 0.00 10:35:08 10:13:01 3.42 0.00 3.42 0.00 0.00 58.11 0.00 10:35:08 10:14:01 2.33 0.00 2.33 0.00 0.00 44.93 0.00 10:35:08 10:15:01 3.57 0.00 3.57 0.00 0.00 64.26 0.00 10:35:08 10:16:01 1.47 0.00 1.47 0.00 0.00 25.46 0.00 10:35:08 10:17:01 3.28 0.00 3.28 0.00 0.00 146.91 0.00 10:35:08 10:18:01 122.93 0.00 122.93 0.00 0.00 10062.99 0.00 10:35:08 10:19:01 3.10 0.00 3.10 0.00 0.00 110.25 0.00 10:35:08 10:20:01 25.16 0.00 25.16 0.00 0.00 605.50 0.00 10:35:08 10:21:01 51.14 0.00 51.14 0.00 0.00 745.34 0.00 10:35:08 10:22:01 1.95 0.00 1.95 0.00 0.00 35.46 0.00 10:35:08 10:23:01 3.12 0.00 3.12 0.00 0.00 55.86 0.00 10:35:08 10:24:01 2.28 0.00 2.28 0.00 0.00 41.06 0.00 10:35:08 10:25:01 3.33 0.00 3.33 0.00 0.00 60.39 0.00 10:35:08 10:26:01 1.70 0.00 1.70 0.00 0.00 39.46 0.00 10:35:08 10:27:01 24.74 0.00 24.74 0.00 0.00 395.20 0.00 10:35:08 10:28:01 49.28 0.00 49.28 0.00 0.00 728.95 0.00 10:35:08 10:29:01 3.43 0.00 3.43 0.00 0.00 171.70 0.00 10:35:08 10:30:01 3.07 0.00 3.07 0.00 0.00 79.19 0.00 10:35:08 10:31:01 4.03 0.00 4.03 0.00 0.00 87.99 0.00 10:35:08 10:32:01 1.73 0.00 1.73 0.00 0.00 21.46 0.00 10:35:08 10:33:01 2.22 0.00 2.22 0.00 0.00 27.60 0.00 10:35:08 10:34:01 1.53 0.00 1.53 0.00 0.00 18.26 0.00 10:35:08 10:35:01 49.33 6.93 42.39 0.00 285.29 7587.00 0.00 10:35:08 Average: 33.87 1.56 32.31 0.00 112.64 4033.21 0.00 10:35:08 10:35:08 08:59:02 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 10:35:08 09:00:01 13357668 15382008 597788 3.65 68816 2152792 1360084 7.80 850628 1896648 136080 10:35:08 09:01:01 11705564 14919780 1037396 6.33 112496 3219860 1917884 11.00 1475240 2820592 830840 10:35:08 09:02:01 10220500 14108092 1848220 11.28 142308 3805236 2531080 14.52 2348072 3373668 129352 10:35:08 09:03:01 7703080 13719476 2233552 13.63 178456 5802608 3048752 17.49 3264184 4873592 1167328 10:35:08 09:04:01 6601348 14423676 1530364 9.34 190860 7536096 2391648 13.72 3205268 5977668 127576 10:35:08 09:05:02 1862180 11187568 4753968 29.02 221108 8938080 6014364 34.51 6921892 6906096 570540 10:35:08 09:06:01 717668 10174160 5765856 35.20 226332 9057924 7339868 42.11 8025892 6932948 744 10:35:08 09:07:01 289552 8676300 7263004 44.34 224704 8007308 8234120 47.24 9355504 6042028 2044 10:35:08 09:08:01 1172228 9521916 6417060 39.17 227944 7967816 7391648 42.41 8513008 6003056 564 10:35:08 09:09:01 4891096 13483284 2458060 15.01 237876 8193928 3456848 19.83 4617188 6189272 219340 10:35:08 09:10:01 975208 9572284 6367096 38.87 240420 8195920 7357536 42.21 8542348 6167692 652 10:35:08 09:11:01 795964 9393584 6545564 39.96 240456 8196424 7471084 42.86 8721048 6167216 48 10:35:08 09:12:01 778844 9376744 6562432 40.06 240484 8196664 7471084 42.86 8737536 6167376 92 10:35:08 09:13:01 623768 9222108 6717036 41.00 240540 8197032 7523064 43.16 8889156 6167724 360 10:35:08 09:14:01 620232 9219256 6719568 41.02 240664 8197472 7559972 43.37 8890060 6167576 120 10:35:08 09:15:01 618620 9217676 6721112 41.03 240708 8197452 7559972 43.37 8893604 6167552 100 10:35:08 09:16:01 2360112 10959068 4980184 30.40 240744 8197296 5891948 33.80 7159720 6167400 24 10:35:08 09:17:01 5984960 14831492 1110984 6.78 249692 8424024 1972124 11.31 3392852 6316180 2704 10:35:08 09:18:01 4960560 13809176 2132508 13.02 251536 8424284 3025076 17.36 4421644 6306932 108 10:35:08 09:19:01 4905288 13754072 2187696 13.35 251568 8424424 3041160 17.45 4476752 6307016 144 10:35:08 09:20:01 4286184 13136752 2804808 17.12 253112 8424552 3631796 20.84 5105448 6295740 272 10:35:08 09:21:01 4164040 13015012 2926328 17.86 253140 8424912 3856452 22.13 5226544 6295952 112 10:35:08 09:22:01 5165292 14016692 1925268 11.75 253332 8425056 2777156 15.93 4229156 6295532 492 10:35:08 09:23:01 6416540 15334808 607424 3.71 257332 8482848 1456812 8.36 2928696 6344656 45788 10:35:08 09:24:01 3396068 12319844 3620968 22.10 258936 8485564 4471780 25.66 5926772 6354588 724 10:35:08 09:25:01 3391880 12315692 3625108 22.13 258940 8485592 4471780 25.66 5930172 6354600 56 10:35:08 09:26:01 3391652 12315468 3625304 22.13 258960 8485596 4487776 25.75 5930380 6354604 60 10:35:08 09:27:01 3391724 12315580 3625184 22.13 258976 8485600 4487776 25.75 5930996 6354608 80 10:35:08 09:28:01 4035868 12961148 2979892 18.19 260092 8485912 3847340 22.07 5294468 6349836 304 10:35:08 09:29:01 3038180 11964768 3975592 24.27 261004 8486264 5014940 28.77 6295760 6341608 208 10:35:08 09:30:01 2731880 11658712 4281564 26.14 261028 8486484 5115772 29.35 6604736 6341816 124 10:35:08 09:31:01 4867336 13795856 2145628 13.10 262428 8486712 2951480 16.93 4474840 6341188 144 10:35:08 09:32:01 4670420 13600276 2341088 14.29 263420 8487024 3155120 18.10 4670796 6340992 144 10:35:08 09:33:01 4664680 13594588 2346700 14.33 263432 8487044 3171168 18.19 4677076 6341004 124 10:35:08 09:34:01 5936736 14868068 1073844 6.56 264220 8487568 1888676 10.84 3410268 6341004 564 10:35:08 09:35:01 4801592 13733888 2207300 13.47 264832 8487908 3012308 17.28 4540152 6341344 156 10:35:08 09:36:01 4313120 13246604 2694276 16.45 265720 8488164 3572772 20.50 5024660 6341564 76 10:35:08 09:37:01 4122800 13056540 2884120 17.61 265744 8488396 3671144 21.06 5215400 6341792 104 10:35:08 09:38:01 2739400 11674164 4265888 26.04 266284 8488864 5146620 29.53 6596532 6342204 444 10:35:08 09:39:01 2572976 11508124 4431744 27.05 266288 8489244 5245052 30.09 6760540 6342576 444 10:35:08 09:40:01 2547280 11482736 4457080 27.21 266296 8489548 5261172 30.18 6785172 6342872 48 10:35:08 09:41:01 2713672 11649988 4289960 26.19 266744 8489896 5136016 29.47 6619848 6343212 440 10:35:08 09:42:01 2512036 11448736 4490900 27.41 266752 8490276 5250784 30.13 6820556 6343588 92 10:35:08 09:43:01 2521108 11457924 4481676 27.36 266760 8490380 5250784 30.13 6811008 6343696 116 10:35:08 09:44:01 2502240 11439212 4500360 27.47 266760 8490540 5266800 30.22 6828952 6343848 320 10:35:08 09:45:01 2487616 11424808 4514860 27.56 266764 8490744 5266800 30.22 6843004 6344060 176 10:35:08 09:46:01 2462116 11399800 4539832 27.71 266776 8491224 5282824 30.31 6867956 6344536 444 10:35:08 09:47:01 2437192 11374992 4564652 27.86 266776 8491324 5299280 30.40 6891368 6344636 108 10:35:08 09:48:01 2412896 11350936 4588644 28.01 266780 8491584 5348512 30.69 6916420 6344876 260 10:35:08 09:49:01 2805632 11744212 4195688 25.61 267080 8491720 5093804 29.22 6524044 6344836 376 10:35:08 09:50:01 2592784 11532032 4407504 26.91 267100 8492372 5241460 30.07 6737956 6345480 316 10:35:08 09:51:01 2553316 11493068 4446464 27.14 267116 8492856 5257484 30.16 6775684 6345964 312 10:35:08 09:52:01 2541288 11481424 4458092 27.21 267120 8493244 5257484 30.16 6785520 6346344 332 10:35:08 09:53:01 2526736 11467348 4472252 27.30 267124 8493708 5257484 30.16 6801844 6346816 48 10:35:08 09:54:01 2518672 11459740 4479812 27.35 267124 8494172 5257484 30.16 6809120 6347272 476 10:35:08 09:55:01 2482132 11423996 4515488 27.56 267128 8494960 5273472 30.26 6844116 6348060 664 10:35:08 09:56:01 5248084 14190396 1750848 10.69 267156 8495364 2881552 16.53 4087904 6348444 744 10:35:08 09:57:01 1173736 10116104 5822924 35.55 267520 8495048 6599444 37.86 8147576 6348120 652 10:35:08 09:58:01 990208 9932968 6005816 36.66 267532 8495428 6696996 38.42 8329396 6348496 564 10:35:08 09:59:01 947988 9891128 6047484 36.92 267556 8495776 6729680 38.61 8370916 6348852 48 10:35:08 10:00:01 935828 9879132 6059444 36.99 267576 8495916 6729680 38.61 8383204 6348984 176 10:35:08 10:01:01 905392 9849072 6089432 37.17 267604 8496260 6745720 38.70 8411920 6349328 564 10:35:08 10:02:01 894768 9838652 6099752 37.24 267608 8496448 6745720 38.70 8422968 6349516 316 10:35:08 10:03:01 871024 9815364 6123000 37.38 267636 8496868 6761712 38.79 8446072 6349932 460 10:35:08 10:04:02 832444 9776944 6161428 37.61 267648 8497008 6811800 39.08 8484992 6350076 264 10:35:08 10:05:01 823436 9768216 6170232 37.67 267660 8497012 6811800 39.08 8493696 6350080 324 10:35:08 10:06:01 822712 9767520 6170932 37.67 267692 8497012 6811800 39.08 8493520 6350080 260 10:35:08 10:07:01 6099212 15044132 897436 5.48 267728 8497008 1715040 9.84 3238004 6350024 388 10:35:08 10:08:01 1605604 10550920 5388060 32.89 267988 8497092 6457468 37.05 7716372 6350096 604 10:35:08 10:09:01 1246704 10192420 5746256 35.08 267996 8497468 6555200 37.61 8072492 6350464 380 10:35:08 10:10:01 1075412 10021740 5916716 36.12 268004 8498056 6687908 38.37 8242768 6351060 288 10:35:08 10:11:01 1056764 10003320 5935212 36.23 268012 8498272 6687908 38.37 8260512 6351272 272 10:35:08 10:12:01 1041052 9987724 5950796 36.33 268020 8498376 6687908 38.37 8275544 6351380 344 10:35:08 10:13:01 1033760 9980640 5957868 36.37 268036 8498568 6687908 38.37 8282852 6351572 124 10:35:08 10:14:01 1020648 9967732 5970692 36.45 268036 8498780 6687908 38.37 8295484 6351764 120 10:35:08 10:15:01 990784 9938072 6000364 36.63 268036 8498964 6737012 38.65 8324900 6351968 268 10:35:08 10:16:01 981752 9929264 6009052 36.68 268036 8499208 6753000 38.74 8332560 6352188 580 10:35:08 10:17:01 6378576 15353120 588236 3.59 269208 8522204 1409724 8.09 2931496 6374788 24752 10:35:08 10:18:01 2268052 11462820 4476176 27.32 274560 8726176 5250984 30.13 6869540 6521396 2132 10:35:08 10:19:01 2175144 11370064 4569056 27.89 274568 8726316 5317796 30.51 6964772 6521144 140 10:35:08 10:20:01 3897044 13092500 2847568 17.38 274668 8726580 4158492 23.86 5264608 6502900 896 10:35:08 10:21:01 2333832 11529988 4409032 26.91 275060 8726888 5179420 29.72 6827780 6499696 140 10:35:08 10:22:01 2315004 11511456 4427560 27.03 275060 8727180 5179420 29.72 6845652 6499844 144 10:35:08 10:23:01 2294868 11491600 4447404 27.15 275064 8727452 5179420 29.72 6865184 6500108 108 10:35:08 10:24:01 2288356 11485272 4453716 27.19 275068 8727632 5179420 29.72 6870736 6500288 84 10:35:08 10:25:01 2270604 11467812 4471160 27.29 275092 8727900 5196376 29.81 6886680 6500560 80 10:35:08 10:26:01 2241624 11439164 4499832 27.47 275092 8728228 5196376 29.81 6916524 6500864 136 10:35:08 10:27:01 4922472 14120248 1820520 11.11 275132 8728412 2777432 15.93 4257056 6489984 392 10:35:08 10:28:01 1668792 10866844 5071828 30.96 275384 8728400 5845188 33.54 7497792 6489896 208 10:35:08 10:29:01 1567692 10766332 5172272 31.57 275392 8728956 5927544 34.01 7597856 6490300 264 10:35:08 10:30:01 1508716 10708100 5230460 31.93 275396 8729692 5959616 34.19 7654564 6491032 132 10:35:08 10:31:01 1450480 10650524 5288020 32.28 275396 8730360 5975644 34.28 7713344 6491684 96 10:35:08 10:32:01 1450396 10650456 5288100 32.28 275396 8730364 5975644 34.28 7713072 6491700 40 10:35:08 10:33:01 1450072 10650132 5288424 32.28 275396 8730364 5975644 34.28 7712940 6491700 64 10:35:08 10:34:01 1450652 10650720 5287808 32.28 275396 8730376 5975644 34.28 7711484 6491708 100 10:35:08 10:35:01 5948360 15373620 567452 3.46 280784 8935160 1316580 7.55 3040544 6669012 18224 10:35:08 Average: 2961850 11688516 4252282 25.96 256305 8302386 5072440 29.10 6493675 6231957 34371 10:35:08 10:35:08 08:59:02 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 10:35:08 09:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:00:01 lo 0.47 0.47 0.05 0.05 0.00 0.00 0.00 0.00 10:35:08 09:00:01 ens3 86.95 65.04 786.24 15.53 0.00 0.00 0.00 0.00 10:35:08 09:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:01:01 lo 3.86 3.86 0.37 0.37 0.00 0.00 0.00 0.00 10:35:08 09:01:01 ens3 258.47 213.26 3828.74 25.88 0.00 0.00 0.00 0.00 10:35:08 09:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:02:01 lo 2.93 2.93 0.32 0.32 0.00 0.00 0.00 0.00 10:35:08 09:02:01 ens3 305.35 269.26 4400.55 27.92 0.00 0.00 0.00 0.00 10:35:08 09:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:03:01 lo 1.33 1.33 0.13 0.13 0.00 0.00 0.00 0.00 10:35:08 09:03:01 ens3 348.47 273.35 5117.48 25.91 0.00 0.00 0.00 0.00 10:35:08 09:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:04:01 lo 0.47 0.47 0.05 0.05 0.00 0.00 0.00 0.00 10:35:08 09:04:01 ens3 83.99 60.39 1761.11 5.37 0.00 0.00 0.00 0.00 10:35:08 09:05:02 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:05:02 lo 2.97 2.97 0.31 0.31 0.00 0.00 0.00 0.00 10:35:08 09:05:02 ens3 190.51 68.40 2720.72 5.82 0.00 0.00 0.00 0.00 10:35:08 09:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:06:01 lo 6.59 6.59 13.98 13.98 0.00 0.00 0.00 0.00 10:35:08 09:06:01 ens3 1.42 1.42 0.19 0.19 0.00 0.00 0.00 0.00 10:35:08 09:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:07:01 lo 52.54 52.54 39.81 39.81 0.00 0.00 0.00 0.00 10:35:08 09:07:01 ens3 1.88 1.76 0.31 0.27 0.00 0.00 0.00 0.00 10:35:08 09:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:08:01 lo 32.77 32.77 15.86 15.86 0.00 0.00 0.00 0.00 10:35:08 09:08:01 ens3 1.83 1.70 0.50 0.42 0.00 0.00 0.00 0.00 10:35:08 09:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:09:01 lo 10.75 10.75 3.48 3.48 0.00 0.00 0.00 0.00 10:35:08 09:09:01 ens3 2.43 2.52 1.00 0.84 0.00 0.00 0.00 0.00 10:35:08 09:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:10:01 lo 23.40 23.40 21.60 21.60 0.00 0.00 0.00 0.00 10:35:08 09:10:01 ens3 0.68 0.57 0.09 0.08 0.00 0.00 0.00 0.00 10:35:08 09:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:11:01 lo 19.50 19.50 12.51 12.51 0.00 0.00 0.00 0.00 10:35:08 09:11:01 ens3 0.50 0.42 0.09 0.08 0.00 0.00 0.00 0.00 10:35:08 09:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:12:01 lo 16.49 16.49 7.34 7.34 0.00 0.00 0.00 0.00 10:35:08 09:12:01 ens3 0.33 0.18 0.05 0.04 0.00 0.00 0.00 0.00 10:35:08 09:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:13:01 lo 24.83 24.83 8.83 8.83 0.00 0.00 0.00 0.00 10:35:08 09:13:01 ens3 1.02 0.57 0.16 0.11 0.00 0.00 0.00 0.00 10:35:08 09:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:14:01 lo 0.27 0.27 0.03 0.03 0.00 0.00 0.00 0.00 10:35:08 09:14:01 ens3 0.63 0.32 0.33 0.27 0.00 0.00 0.00 0.00 10:35:08 09:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:15:01 lo 0.48 0.48 0.04 0.04 0.00 0.00 0.00 0.00 10:35:08 09:15:01 ens3 0.82 0.35 0.36 0.21 0.00 0.00 0.00 0.00 10:35:08 09:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:16:01 lo 0.80 0.80 0.22 0.22 0.00 0.00 0.00 0.00 10:35:08 09:16:01 ens3 0.25 0.17 0.03 0.03 0.00 0.00 0.00 0.00 10:35:08 09:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:17:01 lo 10.90 10.90 15.76 15.76 0.00 0.00 0.00 0.00 10:35:08 09:17:01 ens3 14.98 13.58 3.63 8.83 0.00 0.00 0.00 0.00 10:35:08 09:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:18:01 lo 19.19 19.19 9.23 9.23 0.00 0.00 0.00 0.00 10:35:08 09:18:01 ens3 0.95 0.78 0.18 0.16 0.00 0.00 0.00 0.00 10:35:08 09:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:19:01 lo 25.86 25.86 8.53 8.53 0.00 0.00 0.00 0.00 10:35:08 09:19:01 ens3 1.38 1.15 0.37 0.28 0.00 0.00 0.00 0.00 10:35:08 09:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:20:01 lo 13.53 13.53 6.68 6.68 0.00 0.00 0.00 0.00 10:35:08 09:20:01 ens3 0.82 0.72 0.14 0.13 0.00 0.00 0.00 0.00 10:35:08 09:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:21:01 lo 37.39 37.39 15.26 15.26 0.00 0.00 0.00 0.00 10:35:08 09:21:01 ens3 2.07 1.03 0.34 0.21 0.00 0.00 0.00 0.00 10:35:08 09:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:22:01 lo 21.10 21.10 6.51 6.51 0.00 0.00 0.00 0.00 10:35:08 09:22:01 ens3 1.45 1.15 0.49 0.41 0.00 0.00 0.00 0.00 10:35:08 09:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:23:01 lo 26.41 26.41 11.58 11.58 0.00 0.00 0.00 0.00 10:35:08 09:23:01 ens3 2.03 2.28 0.87 0.78 0.00 0.00 0.00 0.00 10:35:08 09:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:24:01 lo 13.61 13.61 9.84 9.84 0.00 0.00 0.00 0.00 10:35:08 09:24:01 ens3 1.52 1.82 0.37 0.33 0.00 0.00 0.00 0.00 10:35:08 09:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:25:01 lo 1.88 1.88 0.24 0.24 0.00 0.00 0.00 0.00 10:35:08 09:25:01 ens3 0.50 0.48 0.07 0.07 0.00 0.00 0.00 0.00 10:35:08 09:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:26:01 lo 0.20 0.20 0.02 0.02 0.00 0.00 0.00 0.00 10:35:08 09:26:01 ens3 1.02 0.00 0.11 0.00 0.00 0.00 0.00 0.00 10:35:08 09:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:27:01 lo 0.33 0.33 0.02 0.02 0.00 0.00 0.00 0.00 10:35:08 09:27:01 ens3 0.95 0.68 0.57 0.45 0.00 0.00 0.00 0.00 10:35:08 09:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:28:01 lo 13.93 13.93 4.72 4.72 0.00 0.00 0.00 0.00 10:35:08 09:28:01 ens3 0.77 0.72 0.13 0.13 0.00 0.00 0.00 0.00 10:35:08 09:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:29:01 lo 9.63 9.63 4.09 4.09 0.00 0.00 0.00 0.00 10:35:08 09:29:01 ens3 1.48 0.83 0.25 0.18 0.00 0.00 0.00 0.00 10:35:08 09:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:30:01 lo 20.71 20.71 9.21 9.21 0.00 0.00 0.00 0.00 10:35:08 09:30:01 ens3 1.67 1.23 0.58 0.44 0.00 0.00 0.00 0.00 10:35:08 09:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:31:01 lo 6.32 6.32 6.41 6.41 0.00 0.00 0.00 0.00 10:35:08 09:31:01 ens3 1.57 0.70 0.22 0.12 0.00 0.00 0.00 0.00 10:35:08 09:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:32:01 lo 8.47 8.47 3.29 3.29 0.00 0.00 0.00 0.00 10:35:08 09:32:01 ens3 1.77 1.18 0.79 0.61 0.00 0.00 0.00 0.00 10:35:08 09:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:33:01 lo 3.93 3.93 0.92 0.92 0.00 0.00 0.00 0.00 10:35:08 09:33:01 ens3 1.25 0.48 0.16 0.09 0.00 0.00 0.00 0.00 10:35:08 09:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:34:01 lo 30.78 30.78 9.85 9.85 0.00 0.00 0.00 0.00 10:35:08 09:34:01 ens3 1.48 1.08 0.57 0.43 0.00 0.00 0.00 0.00 10:35:08 09:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:35:01 lo 15.95 15.95 11.38 11.38 0.00 0.00 0.00 0.00 10:35:08 09:35:01 ens3 2.15 0.70 0.31 0.13 0.00 0.00 0.00 0.00 10:35:08 09:36:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:36:01 lo 10.00 10.00 7.73 7.73 0.00 0.00 0.00 0.00 10:35:08 09:36:01 ens3 1.70 1.25 0.93 0.74 0.00 0.00 0.00 0.00 10:35:08 09:37:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:37:01 lo 19.68 19.68 14.98 14.98 0.00 0.00 0.00 0.00 10:35:08 09:37:01 ens3 0.98 0.80 0.18 0.16 0.00 0.00 0.00 0.00 10:35:08 09:38:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:38:01 lo 20.60 20.60 8.63 8.63 0.00 0.00 0.00 0.00 10:35:08 09:38:01 ens3 1.08 0.85 0.16 0.14 0.00 0.00 0.00 0.00 10:35:08 09:39:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:39:01 lo 33.36 33.36 11.25 11.25 0.00 0.00 0.00 0.00 10:35:08 09:39:01 ens3 1.52 0.83 0.55 0.37 0.00 0.00 0.00 0.00 10:35:08 09:40:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:40:01 lo 40.74 40.74 12.09 12.09 0.00 0.00 0.00 0.00 10:35:08 09:40:01 ens3 0.67 0.43 0.10 0.09 0.00 0.00 0.00 0.00 10:35:08 09:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:41:01 lo 17.03 17.03 15.30 15.30 0.00 0.00 0.00 0.00 10:35:08 09:41:01 ens3 1.68 0.97 0.43 0.31 0.00 0.00 0.00 0.00 10:35:08 09:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:42:01 lo 20.08 20.08 9.31 9.31 0.00 0.00 0.00 0.00 10:35:08 09:42:01 ens3 1.33 0.62 0.22 0.12 0.00 0.00 0.00 0.00 10:35:08 09:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:43:01 lo 7.98 7.98 4.62 4.62 0.00 0.00 0.00 0.00 10:35:08 09:43:01 ens3 0.75 0.50 0.11 0.09 0.00 0.00 0.00 0.00 10:35:08 09:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:44:01 lo 17.31 17.31 8.78 8.78 0.00 0.00 0.00 0.00 10:35:08 09:44:01 ens3 0.85 0.63 0.25 0.18 0.00 0.00 0.00 0.00 10:35:08 09:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:45:01 lo 19.91 19.91 7.36 7.36 0.00 0.00 0.00 0.00 10:35:08 09:45:01 ens3 0.80 0.80 0.13 0.13 0.00 0.00 0.00 0.00 10:35:08 09:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:46:01 lo 22.13 22.13 9.95 9.95 0.00 0.00 0.00 0.00 10:35:08 09:46:01 ens3 0.43 0.42 0.07 0.07 0.00 0.00 0.00 0.00 10:35:08 09:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:47:01 lo 13.78 13.78 5.49 5.49 0.00 0.00 0.00 0.00 10:35:08 09:47:01 ens3 0.72 0.73 0.11 0.12 0.00 0.00 0.00 0.00 10:35:08 09:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:48:01 lo 23.71 23.71 9.02 9.02 0.00 0.00 0.00 0.00 10:35:08 09:48:01 ens3 0.63 0.53 0.09 0.08 0.00 0.00 0.00 0.00 10:35:08 09:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:49:01 lo 18.05 18.05 8.16 8.16 0.00 0.00 0.00 0.00 10:35:08 09:49:01 ens3 2.10 1.23 0.31 0.22 0.00 0.00 0.00 0.00 10:35:08 09:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:50:01 lo 38.14 38.14 12.47 12.47 0.00 0.00 0.00 0.00 10:35:08 09:50:01 ens3 1.27 0.78 0.15 0.12 0.00 0.00 0.00 0.00 10:35:08 09:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:51:01 lo 46.01 46.01 13.38 13.38 0.00 0.00 0.00 0.00 10:35:08 09:51:01 ens3 0.62 0.55 0.09 0.08 0.00 0.00 0.00 0.00 10:35:08 09:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:52:01 lo 17.75 17.75 6.14 6.14 0.00 0.00 0.00 0.00 10:35:08 09:52:01 ens3 0.53 0.58 0.09 0.09 0.00 0.00 0.00 0.00 10:35:08 09:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:53:01 lo 33.21 33.21 9.72 9.72 0.00 0.00 0.00 0.00 10:35:08 09:53:01 ens3 0.50 0.45 0.07 0.06 0.00 0.00 0.00 0.00 10:35:08 09:54:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:54:01 lo 33.69 33.69 9.19 9.19 0.00 0.00 0.00 0.00 10:35:08 09:54:01 ens3 0.28 0.22 0.14 0.07 0.00 0.00 0.00 0.00 10:35:08 09:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:55:01 lo 55.06 55.06 17.80 17.80 0.00 0.00 0.00 0.00 10:35:08 09:55:01 ens3 0.32 0.13 0.03 0.01 0.00 0.00 0.00 0.00 10:35:08 09:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:56:01 lo 28.40 28.40 7.87 7.87 0.00 0.00 0.00 0.00 10:35:08 09:56:01 ens3 0.53 0.42 0.08 0.07 0.00 0.00 0.00 0.00 10:35:08 09:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:57:01 lo 22.38 22.38 22.52 22.52 0.00 0.00 0.00 0.00 10:35:08 09:57:01 ens3 0.85 0.68 0.11 0.10 0.00 0.00 0.00 0.00 10:35:08 09:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:58:01 lo 31.13 31.13 13.10 13.10 0.00 0.00 0.00 0.00 10:35:08 09:58:01 ens3 0.78 0.58 0.14 0.12 0.00 0.00 0.00 0.00 10:35:08 09:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 09:59:01 lo 19.31 19.31 8.20 8.20 0.00 0.00 0.00 0.00 10:35:08 09:59:01 ens3 0.77 0.55 0.23 0.15 0.00 0.00 0.00 0.00 10:35:08 10:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:00:01 lo 10.28 10.28 4.60 4.60 0.00 0.00 0.00 0.00 10:35:08 10:00:01 ens3 0.75 0.57 0.13 0.11 0.00 0.00 0.00 0.00 10:35:08 10:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:01:01 lo 37.36 37.36 14.61 14.61 0.00 0.00 0.00 0.00 10:35:08 10:01:01 ens3 0.75 0.62 0.14 0.12 0.00 0.00 0.00 0.00 10:35:08 10:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:02:01 lo 18.55 18.55 6.40 6.40 0.00 0.00 0.00 0.00 10:35:08 10:02:01 ens3 0.62 0.43 0.09 0.10 0.00 0.00 0.00 0.00 10:35:08 10:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:03:01 lo 21.78 21.78 8.85 8.85 0.00 0.00 0.00 0.00 10:35:08 10:03:01 ens3 0.55 0.38 0.08 0.09 0.00 0.00 0.00 0.00 10:35:08 10:04:02 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:04:02 lo 18.83 18.83 7.97 7.97 0.00 0.00 0.00 0.00 10:35:08 10:04:02 ens3 0.73 0.50 0.22 0.15 0.00 0.00 0.00 0.00 10:35:08 10:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:05:01 lo 0.73 0.73 0.07 0.07 0.00 0.00 0.00 0.00 10:35:08 10:05:01 ens3 79.87 52.94 52.88 51.58 0.00 0.00 0.00 0.00 10:35:08 10:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:06:01 lo 0.43 0.43 0.04 0.04 0.00 0.00 0.00 0.00 10:35:08 10:06:01 ens3 0.15 0.00 0.01 0.00 0.00 0.00 0.00 0.00 10:35:08 10:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:07:01 lo 2.23 2.23 0.21 0.21 0.00 0.00 0.00 0.00 10:35:08 10:07:01 ens3 0.52 0.40 0.07 0.06 0.00 0.00 0.00 0.00 10:35:08 10:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:08:01 lo 10.05 10.05 17.20 17.20 0.00 0.00 0.00 0.00 10:35:08 10:08:01 ens3 0.70 0.57 0.08 0.07 0.00 0.00 0.00 0.00 10:35:08 10:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:09:01 lo 31.89 31.89 12.17 12.17 0.00 0.00 0.00 0.00 10:35:08 10:09:01 ens3 1.03 0.83 0.29 0.21 0.00 0.00 0.00 0.00 10:35:08 10:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:10:01 lo 28.95 28.95 13.46 13.46 0.00 0.00 0.00 0.00 10:35:08 10:10:01 ens3 0.40 0.27 0.06 0.05 0.00 0.00 0.00 0.00 10:35:08 10:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:11:01 lo 12.05 12.05 8.24 8.24 0.00 0.00 0.00 0.00 10:35:08 10:11:01 ens3 0.67 0.42 0.10 0.08 0.00 0.00 0.00 0.00 10:35:08 10:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:12:01 lo 15.75 15.75 7.40 7.40 0.00 0.00 0.00 0.00 10:35:08 10:12:01 ens3 0.75 0.60 0.14 0.12 0.00 0.00 0.00 0.00 10:35:08 10:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:13:01 lo 14.95 14.95 9.50 9.50 0.00 0.00 0.00 0.00 10:35:08 10:13:01 ens3 0.60 0.45 0.10 0.08 0.00 0.00 0.00 0.00 10:35:08 10:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:14:01 lo 10.83 10.83 5.91 5.91 0.00 0.00 0.00 0.00 10:35:08 10:14:01 ens3 0.95 0.43 0.24 0.13 0.00 0.00 0.00 0.00 10:35:08 10:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:15:01 lo 23.06 23.06 12.72 12.72 0.00 0.00 0.00 0.00 10:35:08 10:15:01 ens3 1.02 0.82 0.38 0.31 0.00 0.00 0.00 0.00 10:35:08 10:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:16:01 lo 21.85 21.85 8.79 8.79 0.00 0.00 0.00 0.00 10:35:08 10:16:01 ens3 0.27 0.13 0.03 0.02 0.00 0.00 0.00 0.00 10:35:08 10:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:17:01 lo 20.31 20.31 7.57 7.57 0.00 0.00 0.00 0.00 10:35:08 10:17:01 ens3 1.27 1.32 0.46 0.40 0.00 0.00 0.00 0.00 10:35:08 10:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:18:01 lo 34.43 34.43 32.40 32.40 0.00 0.00 0.00 0.00 10:35:08 10:18:01 ens3 1.32 1.35 0.48 0.43 0.00 0.00 0.00 0.00 10:35:08 10:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:19:01 lo 18.25 18.25 9.12 9.12 0.00 0.00 0.00 0.00 10:35:08 10:19:01 ens3 1.40 1.23 0.33 0.30 0.00 0.00 0.00 0.00 10:35:08 10:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:20:01 lo 21.61 21.61 6.28 6.28 0.00 0.00 0.00 0.00 10:35:08 10:20:01 ens3 0.72 0.65 0.17 0.11 0.00 0.00 0.00 0.00 10:35:08 10:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:21:01 lo 34.93 34.93 17.93 17.93 0.00 0.00 0.00 0.00 10:35:08 10:21:01 ens3 0.95 0.87 0.17 0.16 0.00 0.00 0.00 0.00 10:35:08 10:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:22:01 lo 11.36 11.36 4.90 4.90 0.00 0.00 0.00 0.00 10:35:08 10:22:01 ens3 0.87 0.67 0.16 0.14 0.00 0.00 0.00 0.00 10:35:08 10:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:23:01 lo 24.95 24.95 9.61 9.61 0.00 0.00 0.00 0.00 10:35:08 10:23:01 ens3 0.80 0.33 0.11 0.06 0.00 0.00 0.00 0.00 10:35:08 10:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:24:01 lo 19.06 19.06 7.61 7.61 0.00 0.00 0.00 0.00 10:35:08 10:24:01 ens3 1.42 1.12 0.60 0.45 0.00 0.00 0.00 0.00 10:35:08 10:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:25:01 lo 27.98 27.98 8.70 8.70 0.00 0.00 0.00 0.00 10:35:08 10:25:01 ens3 0.47 0.42 0.08 0.08 0.00 0.00 0.00 0.00 10:35:08 10:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:26:01 lo 20.50 20.50 7.98 7.98 0.00 0.00 0.00 0.00 10:35:08 10:26:01 ens3 0.67 0.50 0.11 0.10 0.00 0.00 0.00 0.00 10:35:08 10:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:27:01 lo 37.22 37.22 11.96 11.96 0.00 0.00 0.00 0.00 10:35:08 10:27:01 ens3 0.98 0.88 0.18 0.17 0.00 0.00 0.00 0.00 10:35:08 10:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:28:01 lo 41.14 41.14 20.88 20.88 0.00 0.00 0.00 0.00 10:35:08 10:28:01 ens3 0.83 0.67 0.12 0.11 0.00 0.00 0.00 0.00 10:35:08 10:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:29:01 lo 42.18 42.18 15.21 15.21 0.00 0.00 0.00 0.00 10:35:08 10:29:01 ens3 0.98 0.88 0.24 0.22 0.00 0.00 0.00 0.00 10:35:08 10:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:30:01 lo 57.42 57.42 19.95 19.95 0.00 0.00 0.00 0.00 10:35:08 10:30:01 ens3 0.42 0.27 0.11 0.05 0.00 0.00 0.00 0.00 10:35:08 10:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:31:01 lo 74.84 74.84 24.58 24.58 0.00 0.00 0.00 0.00 10:35:08 10:31:01 ens3 0.67 0.53 0.11 0.10 0.00 0.00 0.00 0.00 10:35:08 10:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:32:01 lo 0.12 0.12 0.01 0.01 0.00 0.00 0.00 0.00 10:35:08 10:32:01 ens3 1.07 0.28 0.33 0.21 0.00 0.00 0.00 0.00 10:35:08 10:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:33:01 lo 0.40 0.40 0.04 0.04 0.00 0.00 0.00 0.00 10:35:08 10:33:01 ens3 0.65 0.47 0.31 0.26 0.00 0.00 0.00 0.00 10:35:08 10:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:34:01 lo 0.37 0.37 0.03 0.03 0.00 0.00 0.00 0.00 10:35:08 10:34:01 ens3 0.35 0.23 0.15 0.08 0.00 0.00 0.00 0.00 10:35:08 10:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 10:35:01 lo 1.27 1.27 0.12 0.12 0.00 0.00 0.00 0.00 10:35:08 10:35:01 ens3 163.67 135.08 1964.63 21.14 0.00 0.00 0.00 0.00 10:35:08 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:35:08 Average: lo 19.36 19.36 8.90 8.90 0.00 0.00 0.00 0.00 10:35:08 Average: ens3 16.84 12.64 215.40 2.12 0.00 0.00 0.00 0.00 10:35:08 10:35:08 10:35:08 ---> sar -P ALL: 10:35:08 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-23743) 09/18/24 _x86_64_ (4 CPU) 10:35:08 10:35:08 08:58:19 LINUX RESTART (4 CPU) 10:35:08 10:35:08 08:59:02 CPU %user %nice %system %iowait %steal %idle 10:35:08 09:00:01 all 13.14 12.11 8.98 4.87 0.11 60.79 10:35:08 09:00:01 0 12.42 13.98 9.97 2.70 0.14 60.80 10:35:08 09:00:01 1 10.27 10.93 9.14 4.86 0.09 64.70 10:35:08 09:00:01 2 16.00 11.48 7.96 7.58 0.12 56.86 10:35:08 09:00:01 3 13.87 12.04 8.86 4.34 0.10 60.78 10:35:08 09:01:01 all 37.89 0.00 3.53 5.68 0.09 52.82 10:35:08 09:01:01 0 32.14 0.00 3.32 7.01 0.08 57.45 10:35:08 09:01:01 1 40.46 0.00 3.61 2.68 0.08 53.17 10:35:08 09:01:01 2 32.13 0.00 3.01 6.87 0.07 57.92 10:35:08 09:01:01 3 46.81 0.00 4.16 6.15 0.12 42.75 10:35:08 09:02:01 all 77.60 0.00 2.74 3.24 0.13 16.29 10:35:08 09:02:01 0 77.48 0.00 2.81 6.08 0.12 13.52 10:35:08 09:02:01 1 70.82 0.00 2.29 0.82 0.13 25.94 10:35:08 09:02:01 2 81.04 0.00 3.16 3.31 0.13 12.36 10:35:08 09:02:01 3 81.10 0.00 2.72 2.73 0.13 13.32 10:35:08 09:03:01 all 54.31 0.00 3.17 3.64 0.10 38.77 10:35:08 09:03:01 0 50.28 0.00 2.33 3.75 0.12 43.52 10:35:08 09:03:01 1 43.94 0.00 2.96 2.71 0.10 50.28 10:35:08 09:03:01 2 47.89 0.00 2.83 4.78 0.08 44.42 10:35:08 09:03:01 3 75.15 0.00 4.58 3.33 0.12 16.83 10:35:08 09:04:01 all 40.76 0.00 2.54 39.23 0.13 17.34 10:35:08 09:04:01 0 45.10 0.00 3.13 47.56 0.13 4.08 10:35:08 09:04:01 1 41.20 0.00 2.49 42.54 0.12 13.65 10:35:08 09:04:01 2 38.70 0.00 2.75 57.96 0.12 0.47 10:35:08 09:04:01 3 38.03 0.00 1.80 8.83 0.13 51.21 10:35:08 09:05:02 all 73.56 0.00 3.85 13.08 0.14 9.37 10:35:08 09:05:02 0 76.48 0.00 3.56 10.39 0.13 9.43 10:35:08 09:05:02 1 73.54 0.00 3.67 10.71 0.17 11.91 10:35:08 09:05:02 2 70.88 0.00 3.68 19.46 0.13 5.84 10:35:08 09:05:02 3 73.32 0.00 4.50 11.78 0.12 10.29 10:35:08 09:06:01 all 72.40 0.00 2.56 1.33 0.14 23.57 10:35:08 09:06:01 0 72.66 0.00 2.90 0.77 0.14 23.54 10:35:08 09:06:01 1 74.31 0.00 2.40 0.17 0.14 22.99 10:35:08 09:06:01 2 72.78 0.00 2.33 1.82 0.14 22.93 10:35:08 09:06:01 3 69.85 0.00 2.61 2.56 0.15 24.84 10:35:08 09:07:01 all 49.15 0.00 1.55 0.74 0.12 48.45 10:35:08 09:07:01 0 47.75 0.00 1.19 0.07 0.10 50.89 10:35:08 09:07:01 1 54.00 0.00 1.72 0.79 0.12 43.38 10:35:08 09:07:01 2 49.02 0.00 1.69 1.79 0.12 47.38 10:35:08 09:07:01 3 45.82 0.00 1.61 0.30 0.13 52.14 10:35:08 09:08:01 all 25.73 0.00 1.19 0.36 0.10 72.62 10:35:08 09:08:01 0 28.34 0.00 0.84 0.00 0.10 70.72 10:35:08 09:08:01 1 25.30 0.00 0.97 0.08 0.10 73.54 10:35:08 09:08:01 2 23.26 0.00 1.74 1.32 0.10 73.58 10:35:08 09:08:01 3 26.01 0.00 1.20 0.05 0.08 72.65 10:35:08 09:09:01 all 80.16 0.00 2.93 0.17 0.13 16.60 10:35:08 09:09:01 0 78.97 0.00 2.77 0.18 0.13 17.94 10:35:08 09:09:01 1 80.51 0.00 2.65 0.15 0.12 16.57 10:35:08 09:09:01 2 80.63 0.00 3.41 0.35 0.13 15.48 10:35:08 09:09:01 3 80.53 0.00 2.89 0.00 0.15 16.43 10:35:08 09:10:01 all 51.88 0.00 1.51 0.47 0.09 46.05 10:35:08 09:10:01 0 50.17 0.00 1.38 0.02 0.10 48.34 10:35:08 09:10:01 1 52.27 0.00 1.54 1.31 0.10 44.78 10:35:08 09:10:01 2 52.83 0.00 1.58 0.20 0.08 45.31 10:35:08 09:10:01 3 52.23 0.00 1.54 0.35 0.08 45.80 10:35:08 10:35:08 09:10:01 CPU %user %nice %system %iowait %steal %idle 10:35:08 09:11:01 all 8.50 0.00 0.42 0.02 0.09 90.97 10:35:08 09:11:01 0 8.73 0.00 0.35 0.00 0.08 90.84 10:35:08 09:11:01 1 8.45 0.00 0.45 0.02 0.08 91.00 10:35:08 09:11:01 2 9.07 0.00 0.42 0.05 0.08 90.37 10:35:08 09:11:01 3 7.76 0.00 0.47 0.00 0.10 91.67 10:35:08 09:12:01 all 3.73 0.00 0.36 0.04 0.06 95.81 10:35:08 09:12:01 0 3.94 0.00 0.38 0.00 0.07 95.61 10:35:08 09:12:01 1 4.17 0.00 0.37 0.08 0.07 95.31 10:35:08 09:12:01 2 3.35 0.00 0.34 0.07 0.05 96.19 10:35:08 09:12:01 3 3.44 0.00 0.37 0.00 0.05 96.14 10:35:08 09:13:01 all 5.49 0.00 0.42 0.03 0.07 93.99 10:35:08 09:13:01 0 5.51 0.00 0.47 0.00 0.05 93.97 10:35:08 09:13:01 1 6.28 0.00 0.42 0.02 0.07 93.22 10:35:08 09:13:01 2 5.07 0.00 0.32 0.08 0.08 94.45 10:35:08 09:13:01 3 5.12 0.00 0.49 0.00 0.07 94.32 10:35:08 09:14:01 all 0.55 0.00 0.31 0.02 0.07 99.06 10:35:08 09:14:01 0 0.48 0.00 0.22 0.00 0.08 99.21 10:35:08 09:14:01 1 0.45 0.00 0.39 0.05 0.07 99.04 10:35:08 09:14:01 2 0.64 0.00 0.35 0.02 0.07 98.92 10:35:08 09:14:01 3 0.60 0.00 0.27 0.00 0.07 99.06 10:35:08 09:15:01 all 0.74 0.00 0.29 0.01 0.07 98.89 10:35:08 09:15:01 0 0.80 0.00 0.17 0.00 0.05 98.98 10:35:08 09:15:01 1 0.74 0.00 0.37 0.02 0.10 98.77 10:35:08 09:15:01 2 0.79 0.00 0.30 0.03 0.05 98.83 10:35:08 09:15:01 3 0.62 0.00 0.33 0.00 0.07 98.98 10:35:08 09:16:01 all 0.81 0.00 0.34 0.01 0.06 98.77 10:35:08 09:16:01 0 0.65 0.00 0.30 0.00 0.07 98.98 10:35:08 09:16:01 1 0.82 0.00 0.27 0.03 0.05 98.82 10:35:08 09:16:01 2 1.04 0.00 0.34 0.02 0.07 98.54 10:35:08 09:16:01 3 0.74 0.00 0.47 0.00 0.07 98.73 10:35:08 09:17:01 all 51.97 0.00 1.87 0.66 0.10 45.39 10:35:08 09:17:01 0 58.27 0.00 1.86 0.07 0.10 39.70 10:35:08 09:17:01 1 48.41 0.00 1.66 1.04 0.10 48.80 10:35:08 09:17:01 2 48.10 0.00 2.05 1.16 0.12 48.58 10:35:08 09:17:01 3 53.10 0.00 1.92 0.38 0.10 44.49 10:35:08 09:18:01 all 20.69 0.00 0.73 0.29 0.08 78.21 10:35:08 09:18:01 0 21.58 0.00 0.62 0.00 0.07 77.74 10:35:08 09:18:01 1 22.01 0.00 0.73 0.05 0.08 77.13 10:35:08 09:18:01 2 18.54 0.00 0.71 0.83 0.10 79.81 10:35:08 09:18:01 3 20.62 0.00 0.85 0.30 0.08 78.14 10:35:08 09:19:01 all 3.22 0.00 0.30 0.02 0.06 96.41 10:35:08 09:19:01 0 2.69 0.00 0.27 0.00 0.07 96.98 10:35:08 09:19:01 1 4.13 0.00 0.25 0.00 0.05 95.58 10:35:08 09:19:01 2 3.00 0.00 0.37 0.07 0.07 96.50 10:35:08 09:19:01 3 3.05 0.00 0.30 0.00 0.07 96.59 10:35:08 09:20:01 all 35.00 0.00 1.18 0.28 0.09 63.45 10:35:08 09:20:01 0 35.66 0.00 1.33 0.10 0.08 62.83 10:35:08 09:20:01 1 32.68 0.00 1.54 0.37 0.10 65.31 10:35:08 09:20:01 2 36.97 0.00 0.67 0.62 0.10 61.64 10:35:08 09:20:01 3 34.69 0.00 1.17 0.02 0.08 64.03 10:35:08 09:21:01 all 8.26 0.00 0.36 0.02 0.07 91.29 10:35:08 09:21:01 0 8.93 0.00 0.33 0.03 0.07 90.64 10:35:08 09:21:01 1 7.90 0.00 0.27 0.00 0.07 91.76 10:35:08 09:21:01 2 8.16 0.00 0.43 0.03 0.08 91.29 10:35:08 09:21:01 3 8.07 0.00 0.40 0.00 0.07 91.46 10:35:08 10:35:08 09:21:01 CPU %user %nice %system %iowait %steal %idle 10:35:08 09:22:01 all 24.67 0.00 0.88 0.01 0.07 74.37 10:35:08 09:22:01 0 24.69 0.00 0.92 0.00 0.07 74.32 10:35:08 09:22:01 1 22.91 0.00 0.79 0.00 0.08 76.22 10:35:08 09:22:01 2 26.13 0.00 1.04 0.03 0.07 72.73 10:35:08 09:22:01 3 24.93 0.00 0.79 0.00 0.07 74.22 10:35:08 09:23:01 all 12.81 0.00 0.58 0.30 0.07 86.24 10:35:08 09:23:01 0 11.94 0.00 0.64 0.33 0.07 87.02 10:35:08 09:23:01 1 10.53 0.00 0.47 0.10 0.07 88.83 10:35:08 09:23:01 2 17.44 0.00 0.79 0.52 0.07 81.18 10:35:08 09:23:01 3 11.35 0.00 0.44 0.25 0.07 87.90 10:35:08 09:24:01 all 42.75 0.00 1.36 0.32 0.09 55.49 10:35:08 09:24:01 0 43.30 0.00 1.11 0.42 0.10 55.07 10:35:08 09:24:01 1 37.61 0.00 1.31 0.15 0.08 60.85 10:35:08 09:24:01 2 46.65 0.00 1.22 0.03 0.08 52.02 10:35:08 09:24:01 3 43.44 0.00 1.80 0.67 0.08 54.01 10:35:08 09:25:01 all 0.64 0.00 0.13 0.01 0.05 99.17 10:35:08 09:25:01 0 0.55 0.00 0.15 0.00 0.03 99.26 10:35:08 09:25:01 1 0.79 0.00 0.23 0.02 0.05 98.91 10:35:08 09:25:01 2 0.62 0.00 0.08 0.02 0.05 99.23 10:35:08 09:25:01 3 0.59 0.00 0.07 0.00 0.05 99.30 10:35:08 09:26:01 all 0.38 0.00 0.17 0.01 0.04 99.40 10:35:08 09:26:01 0 0.53 0.00 0.23 0.00 0.07 99.16 10:35:08 09:26:01 1 0.42 0.00 0.20 0.02 0.05 99.31 10:35:08 09:26:01 2 0.18 0.00 0.10 0.02 0.02 99.68 10:35:08 09:26:01 3 0.37 0.00 0.15 0.00 0.03 99.45 10:35:08 09:27:01 all 0.33 0.00 0.16 0.01 0.05 99.45 10:35:08 09:27:01 0 0.67 0.00 0.32 0.00 0.07 98.95 10:35:08 09:27:01 1 0.18 0.00 0.07 0.02 0.03 99.70 10:35:08 09:27:01 2 0.18 0.00 0.13 0.02 0.05 99.62 10:35:08 09:27:01 3 0.28 0.00 0.12 0.00 0.05 99.55 10:35:08 09:28:01 all 35.56 0.00 1.28 0.28 0.08 62.80 10:35:08 09:28:01 0 36.71 0.00 1.40 0.08 0.08 61.72 10:35:08 09:28:01 1 33.69 0.00 1.17 0.28 0.08 64.77 10:35:08 09:28:01 2 35.94 0.00 1.34 0.64 0.08 62.01 10:35:08 09:28:01 3 35.91 0.00 1.21 0.10 0.08 62.69 10:35:08 09:29:01 all 46.25 0.00 1.39 0.26 0.10 52.01 10:35:08 09:29:01 0 47.62 0.00 2.00 0.45 0.10 49.83 10:35:08 09:29:01 1 45.63 0.00 1.10 0.03 0.08 53.16 10:35:08 09:29:01 2 48.65 0.00 1.40 0.55 0.10 49.30 10:35:08 09:29:01 3 43.09 0.00 1.05 0.02 0.10 55.74 10:35:08 09:30:01 all 5.93 0.00 0.36 0.01 0.07 93.63 10:35:08 09:30:01 0 6.20 0.00 0.42 0.00 0.08 93.30 10:35:08 09:30:01 1 5.08 0.00 0.32 0.00 0.07 94.53 10:35:08 09:30:01 2 5.70 0.00 0.33 0.03 0.07 93.86 10:35:08 09:30:01 3 6.72 0.00 0.35 0.02 0.07 92.85 10:35:08 09:31:01 all 28.92 0.00 1.06 0.34 0.08 69.61 10:35:08 09:31:01 0 26.06 0.00 1.19 0.07 0.08 72.60 10:35:08 09:31:01 1 31.26 0.00 0.70 0.02 0.07 67.95 10:35:08 09:31:01 2 28.45 0.00 1.19 1.27 0.07 69.02 10:35:08 09:31:01 3 29.89 0.00 1.17 0.00 0.08 68.86 10:35:08 09:32:01 all 30.26 0.00 1.06 0.32 0.09 68.27 10:35:08 09:32:01 0 30.76 0.00 0.98 0.00 0.08 68.18 10:35:08 09:32:01 1 30.42 0.00 1.04 1.21 0.08 67.25 10:35:08 09:32:01 2 29.89 0.00 1.05 0.05 0.10 68.90 10:35:08 09:32:01 3 29.96 0.00 1.15 0.03 0.08 68.77 10:35:08 10:35:08 09:32:01 CPU %user %nice %system %iowait %steal %idle 10:35:08 09:33:01 all 1.71 0.00 0.13 0.01 0.05 98.10 10:35:08 09:33:01 0 3.09 0.00 0.08 0.00 0.05 96.78 10:35:08 09:33:01 1 1.07 0.00 0.15 0.03 0.05 98.70 10:35:08 09:33:01 2 1.43 0.00 0.17 0.02 0.05 98.34 10:35:08 09:33:01 3 1.24 0.00 0.12 0.00 0.05 98.60 10:35:08 09:34:01 all 53.05 0.00 1.68 0.32 0.10 44.85 10:35:08 09:34:01 0 51.65 0.00 1.40 0.07 0.10 46.79 10:35:08 09:34:01 1 53.14 0.00 1.74 0.33 0.10 44.69 10:35:08 09:34:01 2 51.90 0.00 1.46 0.15 0.10 46.39 10:35:08 09:34:01 3 55.55 0.00 2.12 0.74 0.10 41.50 10:35:08 09:35:01 all 20.33 0.00 0.71 0.24 0.08 78.64 10:35:08 09:35:01 0 20.59 0.00 0.53 0.00 0.07 78.81 10:35:08 09:35:01 1 20.16 0.00 0.82 0.38 0.08 78.56 10:35:08 09:35:01 2 18.99 0.00 0.69 0.03 0.07 80.22 10:35:08 09:35:01 3 21.56 0.00 0.82 0.55 0.08 76.99 10:35:08 09:36:01 all 35.14 0.00 1.23 0.29 0.10 63.25 10:35:08 09:36:01 0 35.49 0.00 1.20 0.02 0.08 63.21 10:35:08 09:36:01 1 34.43 0.00 1.27 0.23 0.10 63.96 10:35:08 09:36:01 2 33.66 0.00 1.16 0.05 0.10 65.03 10:35:08 09:36:01 3 36.96 0.00 1.29 0.87 0.10 60.79 10:35:08 09:37:01 all 9.47 0.00 0.33 0.03 0.06 90.11 10:35:08 09:37:01 0 8.56 0.00 0.40 0.03 0.07 90.94 10:35:08 09:37:01 1 9.18 0.00 0.30 0.02 0.05 90.46 10:35:08 09:37:01 2 9.50 0.00 0.25 0.00 0.07 90.18 10:35:08 09:37:01 3 10.64 0.00 0.38 0.05 0.07 88.86 10:35:08 09:38:01 all 49.81 0.00 1.70 0.25 0.11 48.13 10:35:08 09:38:01 0 44.97 0.00 1.54 0.00 0.10 53.39 10:35:08 09:38:01 1 53.39 0.00 2.31 0.10 0.12 44.08 10:35:08 09:38:01 2 51.02 0.00 1.27 0.40 0.12 47.20 10:35:08 09:38:01 3 49.88 0.00 1.69 0.52 0.12 47.79 10:35:08 09:39:01 all 6.81 0.00 0.42 0.01 0.06 92.70 10:35:08 09:39:01 0 7.18 0.00 0.45 0.00 0.08 92.29 10:35:08 09:39:01 1 6.86 0.00 0.38 0.02 0.05 92.69 10:35:08 09:39:01 2 6.62 0.00 0.43 0.00 0.07 92.88 10:35:08 09:39:01 3 6.58 0.00 0.40 0.02 0.05 92.95 10:35:08 09:40:01 all 4.45 0.00 0.43 0.02 0.05 95.05 10:35:08 09:40:01 0 4.86 0.00 0.43 0.02 0.05 94.64 10:35:08 09:40:01 1 4.25 0.00 0.37 0.05 0.03 95.30 10:35:08 09:40:01 2 4.16 0.00 0.35 0.00 0.05 95.44 10:35:08 09:40:01 3 4.52 0.00 0.56 0.00 0.08 94.83 10:35:08 09:41:01 all 50.80 0.00 1.50 0.32 0.10 47.28 10:35:08 09:41:01 0 47.64 0.00 1.28 0.00 0.10 50.98 10:35:08 09:41:01 1 53.37 0.00 1.79 1.27 0.10 43.47 10:35:08 09:41:01 2 51.46 0.00 1.72 0.02 0.10 46.69 10:35:08 09:41:01 3 50.70 0.00 1.22 0.00 0.08 48.00 10:35:08 09:42:01 all 7.29 0.00 0.28 0.02 0.05 92.36 10:35:08 09:42:01 0 7.96 0.00 0.30 0.02 0.05 91.68 10:35:08 09:42:01 1 7.01 0.00 0.35 0.05 0.07 92.52 10:35:08 09:42:01 2 6.99 0.00 0.25 0.00 0.05 92.71 10:35:08 09:42:01 3 7.19 0.00 0.23 0.00 0.05 92.52 10:35:08 09:43:01 all 1.77 0.00 0.21 0.01 0.05 97.95 10:35:08 09:43:01 0 1.80 0.00 0.17 0.00 0.05 97.99 10:35:08 09:43:01 1 1.77 0.00 0.22 0.03 0.07 97.91 10:35:08 09:43:01 2 1.97 0.00 0.25 0.00 0.07 97.71 10:35:08 09:43:01 3 1.55 0.00 0.22 0.00 0.03 98.19 10:35:08 10:35:08 09:43:01 CPU %user %nice %system %iowait %steal %idle 10:35:08 09:44:01 all 2.61 0.00 0.22 0.01 0.05 97.11 10:35:08 09:44:01 0 2.15 0.00 0.25 0.00 0.03 97.57 10:35:08 09:44:01 1 2.96 0.00 0.28 0.03 0.08 96.64 10:35:08 09:44:01 2 2.27 0.00 0.20 0.00 0.05 97.48 10:35:08 09:44:01 3 3.06 0.00 0.15 0.00 0.05 96.73 10:35:08 09:45:01 all 1.99 0.00 0.22 0.02 0.06 97.71 10:35:08 09:45:01 0 2.01 0.00 0.27 0.00 0.07 97.66 10:35:08 09:45:01 1 2.05 0.00 0.17 0.07 0.03 97.68 10:35:08 09:45:01 2 1.98 0.00 0.18 0.00 0.07 97.77 10:35:08 09:45:01 3 1.92 0.00 0.27 0.00 0.07 97.74 10:35:08 09:46:01 all 2.67 0.00 0.26 0.01 0.05 97.00 10:35:08 09:46:01 0 2.73 0.00 0.30 0.00 0.05 96.92 10:35:08 09:46:01 1 2.41 0.00 0.27 0.05 0.05 97.23 10:35:08 09:46:01 2 2.66 0.00 0.20 0.00 0.05 97.09 10:35:08 09:46:01 3 2.89 0.00 0.29 0.00 0.07 96.76 10:35:08 09:47:01 all 1.64 0.00 0.18 0.02 0.05 98.12 10:35:08 09:47:01 0 1.71 0.00 0.23 0.03 0.05 97.98 10:35:08 09:47:01 1 1.74 0.00 0.17 0.03 0.05 98.01 10:35:08 09:47:01 2 1.29 0.00 0.07 0.00 0.03 98.61 10:35:08 09:47:01 3 1.81 0.00 0.25 0.00 0.05 97.89 10:35:08 09:48:01 all 1.86 0.00 0.27 0.01 0.05 97.81 10:35:08 09:48:01 0 2.04 0.00 0.18 0.03 0.03 97.71 10:35:08 09:48:01 1 1.87 0.00 0.27 0.02 0.05 97.80 10:35:08 09:48:01 2 1.91 0.00 0.34 0.00 0.05 97.70 10:35:08 09:48:01 3 1.62 0.00 0.30 0.00 0.05 98.03 10:35:08 09:49:01 all 48.62 0.00 1.54 0.31 0.10 49.43 10:35:08 09:49:01 0 51.36 0.00 1.64 0.35 0.08 46.56 10:35:08 09:49:01 1 46.55 0.00 1.36 0.89 0.12 51.08 10:35:08 09:49:01 2 44.54 0.00 1.93 0.02 0.10 53.41 10:35:08 09:49:01 3 51.99 0.00 1.22 0.00 0.10 46.69 10:35:08 09:50:01 all 8.45 0.00 0.32 0.02 0.06 91.15 10:35:08 09:50:01 0 8.47 0.00 0.23 0.02 0.05 91.23 10:35:08 09:50:01 1 8.37 0.00 0.32 0.03 0.05 91.23 10:35:08 09:50:01 2 8.22 0.00 0.37 0.02 0.07 91.33 10:35:08 09:50:01 3 8.76 0.00 0.35 0.00 0.07 90.82 10:35:08 09:51:01 all 4.59 0.00 0.25 0.02 0.06 95.08 10:35:08 09:51:01 0 4.49 0.00 0.23 0.05 0.07 95.16 10:35:08 09:51:01 1 4.43 0.00 0.25 0.03 0.05 95.23 10:35:08 09:51:01 2 4.67 0.00 0.22 0.00 0.05 95.06 10:35:08 09:51:01 3 4.75 0.00 0.30 0.00 0.07 94.88 10:35:08 09:52:01 all 2.34 0.00 0.16 0.01 0.05 97.44 10:35:08 09:52:01 0 2.03 0.00 0.20 0.02 0.05 97.70 10:35:08 09:52:01 1 2.18 0.00 0.12 0.02 0.05 97.63 10:35:08 09:52:01 2 1.99 0.00 0.18 0.00 0.05 97.78 10:35:08 09:52:01 3 3.16 0.00 0.15 0.00 0.05 96.64 10:35:08 09:53:01 all 2.98 0.00 0.20 0.01 0.05 96.76 10:35:08 09:53:01 0 3.49 0.00 0.20 0.02 0.05 96.25 10:35:08 09:53:01 1 2.51 0.00 0.18 0.02 0.03 97.26 10:35:08 09:53:01 2 2.43 0.00 0.15 0.00 0.05 97.37 10:35:08 09:53:01 3 3.47 0.00 0.28 0.02 0.07 96.16 10:35:08 09:54:01 all 1.96 0.00 0.18 0.02 0.04 97.81 10:35:08 09:54:01 0 2.06 0.00 0.15 0.02 0.03 97.74 10:35:08 09:54:01 1 1.92 0.00 0.18 0.03 0.03 97.83 10:35:08 09:54:01 2 1.99 0.00 0.22 0.02 0.05 97.72 10:35:08 09:54:01 3 1.87 0.00 0.15 0.00 0.05 97.93 10:35:08 10:35:08 09:54:01 CPU %user %nice %system %iowait %steal %idle 10:35:08 09:55:01 all 3.96 0.00 0.27 0.01 0.06 95.69 10:35:08 09:55:01 0 3.88 0.00 0.33 0.03 0.07 95.68 10:35:08 09:55:01 1 4.30 0.00 0.25 0.02 0.07 95.36 10:35:08 09:55:01 2 4.04 0.00 0.28 0.00 0.05 95.63 10:35:08 09:55:01 3 3.63 0.00 0.22 0.00 0.07 96.09 10:35:08 09:56:01 all 23.90 0.00 0.92 0.05 0.09 75.04 10:35:08 09:56:01 0 25.27 0.00 0.88 0.02 0.08 73.75 10:35:08 09:56:01 1 23.23 0.00 1.04 0.03 0.10 75.60 10:35:08 09:56:01 2 22.57 0.00 1.04 0.17 0.10 76.12 10:35:08 09:56:01 3 24.51 0.00 0.70 0.00 0.08 74.70 10:35:08 09:57:01 all 43.61 0.00 1.40 0.23 0.10 54.66 10:35:08 09:57:01 0 43.30 0.00 1.05 0.00 0.10 55.55 10:35:08 09:57:01 1 44.83 0.00 1.25 0.59 0.10 53.23 10:35:08 09:57:01 2 43.44 0.00 1.09 0.00 0.10 55.38 10:35:08 09:57:01 3 42.88 0.00 2.18 0.35 0.12 54.47 10:35:08 09:58:01 all 8.00 0.00 0.41 0.03 0.05 91.50 10:35:08 09:58:01 0 7.85 0.00 0.47 0.00 0.07 91.61 10:35:08 09:58:01 1 7.48 0.00 0.52 0.07 0.05 91.88 10:35:08 09:58:01 2 8.23 0.00 0.37 0.05 0.05 91.31 10:35:08 09:58:01 3 8.45 0.00 0.29 0.00 0.05 91.21 10:35:08 09:59:01 all 4.70 0.00 0.33 0.01 0.08 94.88 10:35:08 09:59:01 0 5.32 0.00 0.47 0.00 0.07 94.15 10:35:08 09:59:01 1 4.89 0.00 0.33 0.03 0.08 94.65 10:35:08 09:59:01 2 3.90 0.00 0.27 0.00 0.08 95.75 10:35:08 09:59:01 3 4.68 0.00 0.27 0.00 0.08 94.97 10:35:08 10:00:01 all 2.60 0.00 0.26 0.01 0.05 97.07 10:35:08 10:00:01 0 2.42 0.00 0.30 0.03 0.05 97.19 10:35:08 10:00:01 1 2.29 0.00 0.23 0.02 0.05 97.41 10:35:08 10:00:01 2 3.12 0.00 0.37 0.00 0.08 96.43 10:35:08 10:00:01 3 2.56 0.00 0.15 0.00 0.03 97.26 10:35:08 10:01:01 all 4.69 0.00 0.35 0.04 0.05 94.87 10:35:08 10:01:01 0 5.21 0.00 0.46 0.13 0.05 94.15 10:35:08 10:01:01 1 4.30 0.00 0.23 0.03 0.03 95.40 10:35:08 10:01:01 2 4.57 0.00 0.30 0.00 0.05 95.08 10:35:08 10:01:01 3 4.67 0.00 0.40 0.00 0.07 94.86 10:35:08 10:02:01 all 1.71 0.00 0.33 0.01 0.05 97.89 10:35:08 10:02:01 0 1.61 0.00 0.27 0.03 0.05 98.04 10:35:08 10:02:01 1 1.62 0.00 0.32 0.02 0.03 98.01 10:35:08 10:02:01 2 1.87 0.00 0.32 0.00 0.05 97.76 10:35:08 10:02:01 3 1.75 0.00 0.43 0.00 0.05 97.76 10:35:08 10:03:01 all 2.54 0.00 0.30 0.03 0.06 97.06 10:35:08 10:03:01 0 2.36 0.00 0.30 0.03 0.07 97.24 10:35:08 10:03:01 1 2.37 0.00 0.33 0.05 0.07 97.18 10:35:08 10:03:01 2 3.05 0.00 0.33 0.02 0.07 96.54 10:35:08 10:03:01 3 2.40 0.00 0.25 0.00 0.05 97.30 10:35:08 10:04:02 all 2.11 0.00 0.30 0.01 0.05 97.53 10:35:08 10:04:02 0 2.42 0.00 0.18 0.00 0.05 97.34 10:35:08 10:04:02 1 1.67 0.00 0.18 0.03 0.03 98.08 10:35:08 10:04:02 2 2.21 0.00 0.30 0.02 0.07 97.40 10:35:08 10:04:02 3 2.14 0.00 0.52 0.00 0.07 97.28 10:35:08 10:05:01 all 1.34 0.00 0.30 0.01 0.06 98.30 10:35:08 10:05:01 0 0.71 0.00 0.24 0.03 0.05 98.96 10:35:08 10:05:01 1 1.28 0.00 0.48 0.02 0.07 98.16 10:35:08 10:05:01 2 1.47 0.00 0.24 0.00 0.05 98.25 10:35:08 10:05:01 3 1.89 0.00 0.24 0.00 0.05 97.82 10:35:08 10:35:08 10:05:01 CPU %user %nice %system %iowait %steal %idle 10:35:08 10:06:01 all 0.84 0.00 0.20 0.02 0.06 98.88 10:35:08 10:06:01 0 0.44 0.00 0.13 0.07 0.07 99.30 10:35:08 10:06:01 1 0.47 0.00 0.15 0.02 0.05 99.32 10:35:08 10:06:01 2 1.95 0.00 0.31 0.00 0.07 97.67 10:35:08 10:06:01 3 0.48 0.00 0.22 0.00 0.07 99.23 10:35:08 10:07:01 all 5.53 0.00 0.57 0.01 0.07 93.82 10:35:08 10:07:01 0 4.92 0.00 0.80 0.03 0.07 94.18 10:35:08 10:07:01 1 5.82 0.00 0.57 0.02 0.07 93.53 10:35:08 10:07:01 2 5.13 0.00 0.39 0.00 0.07 94.41 10:35:08 10:07:01 3 6.24 0.00 0.53 0.00 0.08 93.15 10:35:08 10:08:01 all 54.56 0.00 1.48 0.28 0.11 43.57 10:35:08 10:08:01 0 57.85 0.00 1.64 0.10 0.12 40.29 10:35:08 10:08:01 1 46.40 0.00 1.49 0.73 0.12 51.26 10:35:08 10:08:01 2 57.74 0.00 1.55 0.23 0.12 40.35 10:35:08 10:08:01 3 56.31 0.00 1.22 0.05 0.10 42.32 10:35:08 10:09:01 all 10.05 0.00 0.30 0.25 0.07 89.33 10:35:08 10:09:01 0 9.60 0.00 0.39 0.05 0.08 89.88 10:35:08 10:09:01 1 10.31 0.00 0.32 0.95 0.07 88.36 10:35:08 10:09:01 2 10.51 0.00 0.20 0.00 0.07 89.22 10:35:08 10:09:01 3 9.77 0.00 0.30 0.00 0.07 89.87 10:35:08 10:10:01 all 7.64 0.00 0.30 0.01 0.05 92.00 10:35:08 10:10:01 0 7.89 0.00 0.32 0.00 0.05 91.74 10:35:08 10:10:01 1 7.01 0.00 0.23 0.03 0.03 92.69 10:35:08 10:10:01 2 8.43 0.00 0.34 0.00 0.07 91.17 10:35:08 10:10:01 3 7.25 0.00 0.30 0.00 0.05 92.40 10:35:08 10:11:01 all 2.81 0.00 0.19 0.01 0.06 96.93 10:35:08 10:11:01 0 2.85 0.00 0.17 0.00 0.05 96.93 10:35:08 10:11:01 1 2.86 0.00 0.17 0.03 0.07 96.87 10:35:08 10:11:01 2 2.83 0.00 0.25 0.00 0.07 96.85 10:35:08 10:11:01 3 2.68 0.00 0.18 0.02 0.05 97.07 10:35:08 10:12:01 all 2.09 0.00 0.16 0.01 0.05 97.69 10:35:08 10:12:01 0 1.97 0.00 0.13 0.02 0.03 97.85 10:35:08 10:12:01 1 1.98 0.00 0.18 0.02 0.05 97.77 10:35:08 10:12:01 2 2.38 0.00 0.12 0.00 0.07 97.44 10:35:08 10:12:01 3 2.03 0.00 0.18 0.02 0.07 97.70 10:35:08 10:13:01 all 1.93 0.00 0.21 0.02 0.05 97.79 10:35:08 10:13:01 0 1.98 0.00 0.15 0.05 0.05 97.77 10:35:08 10:13:01 1 1.71 0.00 0.23 0.03 0.07 97.96 10:35:08 10:13:01 2 1.57 0.00 0.15 0.00 0.03 98.24 10:35:08 10:13:01 3 2.45 0.00 0.32 0.00 0.05 97.18 10:35:08 10:14:01 all 1.51 0.00 0.16 0.02 0.05 98.26 10:35:08 10:14:01 0 1.33 0.00 0.15 0.02 0.05 98.46 10:35:08 10:14:01 1 1.42 0.00 0.18 0.03 0.05 98.31 10:35:08 10:14:01 2 1.14 0.00 0.22 0.02 0.05 98.58 10:35:08 10:14:01 3 2.13 0.00 0.10 0.00 0.05 97.72 10:35:08 10:15:01 all 2.23 0.00 0.18 0.01 0.06 97.51 10:35:08 10:15:01 0 2.12 0.00 0.22 0.02 0.05 97.60 10:35:08 10:15:01 1 2.04 0.00 0.18 0.03 0.07 97.67 10:35:08 10:15:01 2 2.58 0.00 0.17 0.00 0.07 97.18 10:35:08 10:15:01 3 2.19 0.00 0.15 0.00 0.07 97.59 10:35:08 10:16:01 all 1.94 0.00 0.17 0.01 0.05 97.83 10:35:08 10:16:01 0 1.89 0.00 0.23 0.02 0.07 97.79 10:35:08 10:16:01 1 1.83 0.00 0.12 0.03 0.03 97.98 10:35:08 10:16:01 2 2.09 0.00 0.15 0.00 0.05 97.71 10:35:08 10:16:01 3 1.96 0.00 0.17 0.00 0.05 97.82 10:35:08 10:35:08 10:16:01 CPU %user %nice %system %iowait %steal %idle 10:35:08 10:17:01 all 2.75 0.00 0.39 0.06 0.08 96.72 10:35:08 10:17:01 0 1.96 0.00 0.48 0.03 0.07 97.46 10:35:08 10:17:01 1 5.04 0.00 0.33 0.20 0.08 94.35 10:35:08 10:17:01 2 1.84 0.00 0.30 0.00 0.07 97.79 10:35:08 10:17:01 3 2.15 0.00 0.45 0.00 0.08 97.31 10:35:08 10:18:01 all 60.30 0.00 1.82 0.79 0.10 36.99 10:35:08 10:18:01 0 58.19 0.00 1.14 0.89 0.10 39.69 10:35:08 10:18:01 1 65.00 0.00 2.44 0.57 0.10 31.88 10:35:08 10:18:01 2 57.98 0.00 1.80 1.53 0.10 38.59 10:35:08 10:18:01 3 60.00 0.00 1.91 0.18 0.12 37.79 10:35:08 10:19:01 all 3.39 0.00 0.17 0.02 0.07 96.35 10:35:08 10:19:01 0 3.52 0.00 0.17 0.03 0.07 96.21 10:35:08 10:19:01 1 3.74 0.00 0.18 0.02 0.07 95.99 10:35:08 10:19:01 2 3.23 0.00 0.17 0.03 0.08 96.48 10:35:08 10:19:01 3 3.06 0.00 0.17 0.00 0.07 96.71 10:35:08 10:20:01 all 32.00 0.00 1.07 0.03 0.08 66.82 10:35:08 10:20:01 0 31.38 0.00 0.79 0.02 0.08 67.73 10:35:08 10:20:01 1 31.58 0.00 0.97 0.00 0.07 67.38 10:35:08 10:20:01 2 32.78 0.00 1.32 0.03 0.08 65.78 10:35:08 10:20:01 3 32.24 0.00 1.19 0.08 0.08 66.40 10:35:08 10:21:01 all 27.10 0.00 0.68 0.31 0.08 71.84 10:35:08 10:21:01 0 28.97 0.00 0.65 0.02 0.08 70.27 10:35:08 10:21:01 1 27.82 0.00 0.47 0.00 0.07 71.64 10:35:08 10:21:01 2 26.87 0.00 1.00 1.10 0.08 70.94 10:35:08 10:21:01 3 24.72 0.00 0.58 0.10 0.08 74.51 10:35:08 10:22:01 all 2.65 0.00 0.16 0.01 0.07 97.11 10:35:08 10:22:01 0 2.64 0.00 0.18 0.02 0.07 97.09 10:35:08 10:22:01 1 2.68 0.00 0.17 0.00 0.07 97.08 10:35:08 10:22:01 2 2.81 0.00 0.20 0.00 0.08 96.91 10:35:08 10:22:01 3 2.48 0.00 0.10 0.02 0.05 97.35 10:35:08 10:23:01 all 3.61 0.00 0.17 0.01 0.05 96.16 10:35:08 10:23:01 0 3.12 0.00 0.29 0.02 0.07 96.51 10:35:08 10:23:01 1 4.93 0.00 0.15 0.00 0.05 94.87 10:35:08 10:23:01 2 3.08 0.00 0.15 0.02 0.03 96.72 10:35:08 10:23:01 3 3.28 0.00 0.08 0.02 0.07 96.55 10:35:08 10:24:01 all 2.13 0.00 0.18 0.01 0.05 97.63 10:35:08 10:24:01 0 2.85 0.00 0.20 0.02 0.07 96.87 10:35:08 10:24:01 1 1.65 0.00 0.25 0.00 0.05 98.04 10:35:08 10:24:01 2 1.86 0.00 0.17 0.03 0.05 97.89 10:35:08 10:24:01 3 2.16 0.00 0.08 0.00 0.03 97.73 10:35:08 10:25:01 all 2.56 0.00 0.18 0.02 0.05 97.19 10:35:08 10:25:01 0 2.64 0.00 0.18 0.05 0.05 97.08 10:35:08 10:25:01 1 2.58 0.00 0.20 0.00 0.07 97.15 10:35:08 10:25:01 2 2.48 0.00 0.13 0.02 0.05 97.32 10:35:08 10:25:01 3 2.53 0.00 0.20 0.00 0.05 97.21 10:35:08 10:26:01 all 2.26 0.00 0.17 0.02 0.05 97.50 10:35:08 10:26:01 0 1.99 0.00 0.22 0.03 0.07 97.69 10:35:08 10:26:01 1 3.20 0.00 0.12 0.00 0.05 96.64 10:35:08 10:26:01 2 2.04 0.00 0.18 0.03 0.05 97.69 10:35:08 10:26:01 3 1.79 0.00 0.15 0.00 0.05 98.01 10:35:08 10:27:01 all 24.32 0.00 0.89 0.05 0.08 74.66 10:35:08 10:27:01 0 23.64 0.00 1.04 0.02 0.08 75.22 10:35:08 10:27:01 1 23.65 0.00 0.97 0.10 0.08 75.19 10:35:08 10:27:01 2 25.12 0.00 0.80 0.08 0.10 73.89 10:35:08 10:27:01 3 24.87 0.00 0.74 0.00 0.07 74.33 10:35:08 10:35:08 10:27:01 CPU %user %nice %system %iowait %steal %idle 10:35:08 10:28:01 all 41.88 0.00 1.17 0.28 0.09 56.58 10:35:08 10:28:01 0 43.68 0.00 1.59 0.00 0.08 54.64 10:35:08 10:28:01 1 43.35 0.00 1.04 0.02 0.08 55.51 10:35:08 10:28:01 2 41.51 0.00 0.97 0.87 0.08 56.57 10:35:08 10:28:01 3 38.97 0.00 1.07 0.25 0.10 59.61 10:35:08 10:29:01 all 7.55 0.00 0.30 0.03 0.07 92.05 10:35:08 10:29:01 0 7.44 0.00 0.18 0.05 0.05 92.28 10:35:08 10:29:01 1 8.65 0.00 0.36 0.00 0.07 90.92 10:35:08 10:29:01 2 7.40 0.00 0.33 0.00 0.08 92.18 10:35:08 10:29:01 3 6.70 0.00 0.32 0.08 0.07 92.84 10:35:08 10:30:01 all 6.32 0.00 0.32 0.02 0.07 93.27 10:35:08 10:30:01 0 6.22 0.00 0.37 0.03 0.07 93.31 10:35:08 10:30:01 1 6.75 0.00 0.33 0.00 0.07 92.85 10:35:08 10:30:01 2 6.01 0.00 0.25 0.05 0.07 93.62 10:35:08 10:30:01 3 6.30 0.00 0.34 0.00 0.07 93.30 10:35:08 10:31:01 all 5.78 0.00 0.37 0.03 0.06 93.76 10:35:08 10:31:01 0 5.39 0.00 0.45 0.07 0.07 94.02 10:35:08 10:31:01 1 5.94 0.00 0.33 0.00 0.07 93.66 10:35:08 10:31:01 2 5.77 0.00 0.30 0.00 0.05 93.88 10:35:08 10:31:01 3 6.03 0.00 0.39 0.03 0.07 93.48 10:35:08 10:32:01 all 0.83 0.00 0.13 0.01 0.05 98.98 10:35:08 10:32:01 0 0.47 0.00 0.12 0.00 0.03 99.38 10:35:08 10:32:01 1 2.02 0.00 0.17 0.00 0.07 97.75 10:35:08 10:32:01 2 0.42 0.00 0.10 0.00 0.05 99.43 10:35:08 10:32:01 3 0.42 0.00 0.13 0.03 0.03 99.38 10:35:08 10:33:01 all 0.29 0.00 0.15 0.00 0.06 99.49 10:35:08 10:33:01 0 0.25 0.00 0.15 0.00 0.05 99.55 10:35:08 10:33:01 1 0.24 0.00 0.12 0.00 0.07 99.58 10:35:08 10:33:01 2 0.30 0.00 0.13 0.00 0.07 99.50 10:35:08 10:33:01 3 0.38 0.00 0.22 0.00 0.07 99.33 10:35:08 10:34:01 all 0.42 0.00 0.16 0.01 0.05 99.36 10:35:08 10:34:01 0 0.52 0.00 0.20 0.00 0.07 99.21 10:35:08 10:34:01 1 0.44 0.00 0.20 0.02 0.07 99.28 10:35:08 10:34:01 2 0.45 0.00 0.10 0.02 0.03 99.40 10:35:08 10:34:01 3 0.27 0.00 0.15 0.00 0.05 99.53 10:35:08 10:35:01 all 28.23 0.00 1.62 0.53 0.08 69.54 10:35:08 10:35:01 0 23.37 0.00 1.38 0.57 0.07 74.61 10:35:08 10:35:01 1 20.45 0.00 1.63 1.23 0.07 76.62 10:35:08 10:35:01 2 43.16 0.00 1.95 0.27 0.10 54.52 10:35:08 10:35:01 3 26.09 0.00 1.50 0.07 0.07 72.28 10:35:08 Average: all 17.79 0.12 0.84 0.85 0.07 80.32 10:35:08 Average: 0 17.77 0.14 0.84 0.87 0.07 80.31 10:35:08 Average: 1 17.52 0.11 0.83 0.82 0.07 80.64 10:35:08 Average: 2 17.81 0.12 0.83 1.22 0.07 79.95 10:35:08 Average: 3 18.08 0.12 0.87 0.48 0.07 80.38 10:35:08 10:35:08 10:35:08