07:56:37 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/113593 07:56:37 Running as SYSTEM 07:56:37 [EnvInject] - Loading node environment variables. 07:56:37 Building remotely on prd-ubuntu2004-docker-4c-16g-25219 (ubuntu2004-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-scandium 07:56:38 [ssh-agent] Looking for ssh-agent implementation... 07:56:38 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:56:38 $ ssh-agent 07:56:38 SSH_AUTH_SOCK=/tmp/ssh-1n1rpiVsDHnQ/agent.13085 07:56:38 SSH_AGENT_PID=13087 07:56:38 [ssh-agent] Started. 07:56:38 Running ssh-add (command line suppressed) 07:56:38 Identity added: /w/workspace/transportpce-tox-verify-scandium@tmp/private_key_4255522343319533075.key (/w/workspace/transportpce-tox-verify-scandium@tmp/private_key_4255522343319533075.key) 07:56:38 [ssh-agent] Using credentials jenkins (jenkins-ssh) 07:56:38 The recommended git tool is: NONE 07:56:41 using credential jenkins-ssh 07:56:41 Wiping out workspace first. 07:56:41 Cloning the remote Git repository 07:56:41 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 07:56:41 > git init /w/workspace/transportpce-tox-verify-scandium # timeout=10 07:56:41 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 07:56:41 > git --version # timeout=10 07:56:41 > git --version # 'git version 2.25.1' 07:56:41 using GIT_SSH to set credentials jenkins-ssh 07:56:41 Verifying host key using known hosts file 07:56:41 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 07:56:41 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 07:56:44 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 07:56:44 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 07:56:45 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 07:56:45 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 07:56:45 using GIT_SSH to set credentials jenkins-ssh 07:56:45 Verifying host key using known hosts file 07:56:45 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 07:56:45 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/93/113593/5 # timeout=10 07:56:45 > git rev-parse b0f8bdd27c3c7c9df46db3d67db62520a94d19ef^{commit} # timeout=10 07:56:45 Checking out Revision b0f8bdd27c3c7c9df46db3d67db62520a94d19ef (refs/changes/93/113593/5) 07:56:45 > git config core.sparsecheckout # timeout=10 07:56:45 > git checkout -f b0f8bdd27c3c7c9df46db3d67db62520a94d19ef # timeout=10 07:56:48 Commit message: "Bump netconf to 8.0.2" 07:56:48 > git rev-parse FETCH_HEAD^{commit} # timeout=10 07:56:49 > git rev-list --no-walk d6d346d568042c620ef10f0c8d49618b7bbb83b6 # timeout=10 07:56:49 > git remote # timeout=10 07:56:49 > git submodule init # timeout=10 07:56:49 > git submodule sync # timeout=10 07:56:49 > git config --get remote.origin.url # timeout=10 07:56:49 > git submodule init # timeout=10 07:56:49 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 07:56:49 ERROR: No submodules found. 07:56:49 provisioning config files... 07:56:49 copy managed file [npmrc] to file:/home/jenkins/.npmrc 07:56:49 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 07:56:49 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins6359823424129299859.sh 07:56:49 ---> python-tools-install.sh 07:56:49 Setup pyenv: 07:56:49 * system (set by /opt/pyenv/version) 07:56:49 * 3.8.13 (set by /opt/pyenv/version) 07:56:49 * 3.9.13 (set by /opt/pyenv/version) 07:56:49 * 3.10.13 (set by /opt/pyenv/version) 07:56:49 * 3.11.7 (set by /opt/pyenv/version) 07:56:54 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-rCHz 07:56:54 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 07:56:57 lf-activate-venv(): INFO: Installing: lftools 07:57:26 lf-activate-venv(): INFO: Adding /tmp/venv-rCHz/bin to PATH 07:57:26 Generating Requirements File 07:57:49 Python 3.11.7 07:57:49 pip 24.2 from /tmp/venv-rCHz/lib/python3.11/site-packages/pip (python 3.11) 07:57:49 appdirs==1.4.4 07:57:49 argcomplete==3.5.0 07:57:49 aspy.yaml==1.3.0 07:57:49 attrs==24.2.0 07:57:49 autopage==0.5.2 07:57:49 beautifulsoup4==4.12.3 07:57:49 boto3==1.35.24 07:57:49 botocore==1.35.24 07:57:49 bs4==0.0.2 07:57:49 cachetools==5.5.0 07:57:49 certifi==2024.8.30 07:57:49 cffi==1.17.1 07:57:49 cfgv==3.4.0 07:57:49 chardet==5.2.0 07:57:49 charset-normalizer==3.3.2 07:57:49 click==8.1.7 07:57:49 cliff==4.7.0 07:57:49 cmd2==2.4.3 07:57:49 cryptography==3.3.2 07:57:49 debtcollector==3.0.0 07:57:49 decorator==5.1.1 07:57:49 defusedxml==0.7.1 07:57:49 Deprecated==1.2.14 07:57:49 distlib==0.3.8 07:57:49 dnspython==2.6.1 07:57:49 docker==4.2.2 07:57:49 dogpile.cache==1.3.3 07:57:49 durationpy==0.7 07:57:49 email_validator==2.2.0 07:57:49 filelock==3.16.1 07:57:49 future==1.0.0 07:57:49 gitdb==4.0.11 07:57:49 GitPython==3.1.43 07:57:49 google-auth==2.35.0 07:57:49 httplib2==0.22.0 07:57:49 identify==2.6.1 07:57:49 idna==3.10 07:57:49 importlib-resources==1.5.0 07:57:49 iso8601==2.1.0 07:57:49 Jinja2==3.1.4 07:57:49 jmespath==1.0.1 07:57:49 jsonpatch==1.33 07:57:49 jsonpointer==3.0.0 07:57:49 jsonschema==4.23.0 07:57:49 jsonschema-specifications==2023.12.1 07:57:49 keystoneauth1==5.8.0 07:57:49 kubernetes==31.0.0 07:57:49 lftools==0.37.10 07:57:49 lxml==5.3.0 07:57:49 MarkupSafe==2.1.5 07:57:49 msgpack==1.1.0 07:57:49 multi_key_dict==2.0.3 07:57:49 munch==4.0.0 07:57:49 netaddr==1.3.0 07:57:49 netifaces==0.11.0 07:57:49 niet==1.4.2 07:57:49 nodeenv==1.9.1 07:57:49 oauth2client==4.1.3 07:57:49 oauthlib==3.2.2 07:57:49 openstacksdk==4.0.0 07:57:49 os-client-config==2.1.0 07:57:49 os-service-types==1.7.0 07:57:49 osc-lib==3.1.0 07:57:49 oslo.config==9.6.0 07:57:49 oslo.context==5.6.0 07:57:49 oslo.i18n==6.4.0 07:57:49 oslo.log==6.1.2 07:57:49 oslo.serialization==5.5.0 07:57:49 oslo.utils==7.3.0 07:57:49 packaging==24.1 07:57:49 pbr==6.1.0 07:57:49 platformdirs==4.3.6 07:57:49 prettytable==3.11.0 07:57:49 pyasn1==0.6.1 07:57:49 pyasn1_modules==0.4.1 07:57:49 pycparser==2.22 07:57:49 pygerrit2==2.0.15 07:57:49 PyGithub==2.4.0 07:57:49 PyJWT==2.9.0 07:57:49 PyNaCl==1.5.0 07:57:49 pyparsing==2.4.7 07:57:49 pyperclip==1.9.0 07:57:49 pyrsistent==0.20.0 07:57:49 python-cinderclient==9.6.0 07:57:49 python-dateutil==2.9.0.post0 07:57:49 python-heatclient==4.0.0 07:57:49 python-jenkins==1.8.2 07:57:49 python-keystoneclient==5.5.0 07:57:49 python-magnumclient==4.7.0 07:57:49 python-openstackclient==7.1.2 07:57:49 python-swiftclient==4.6.0 07:57:49 PyYAML==6.0.2 07:57:49 referencing==0.35.1 07:57:49 requests==2.32.3 07:57:49 requests-oauthlib==2.0.0 07:57:49 requestsexceptions==1.4.0 07:57:49 rfc3986==2.0.0 07:57:49 rpds-py==0.20.0 07:57:49 rsa==4.9 07:57:49 ruamel.yaml==0.18.6 07:57:49 ruamel.yaml.clib==0.2.8 07:57:49 s3transfer==0.10.2 07:57:49 simplejson==3.19.3 07:57:49 six==1.16.0 07:57:49 smmap==5.0.1 07:57:49 soupsieve==2.6 07:57:49 stevedore==5.3.0 07:57:49 tabulate==0.9.0 07:57:49 toml==0.10.2 07:57:49 tomlkit==0.13.2 07:57:49 tqdm==4.66.5 07:57:49 typing_extensions==4.12.2 07:57:49 tzdata==2024.1 07:57:49 urllib3==1.26.20 07:57:49 virtualenv==20.26.5 07:57:49 wcwidth==0.2.13 07:57:49 websocket-client==1.8.0 07:57:49 wrapt==1.16.0 07:57:49 xdg==6.0.0 07:57:49 xmltodict==0.13.0 07:57:49 yq==3.4.3 07:57:49 [EnvInject] - Injecting environment variables from a build step. 07:57:49 [EnvInject] - Injecting as environment variables the properties content 07:57:49 PYTHON=python3 07:57:49 07:57:49 [EnvInject] - Variables injected successfully. 07:57:49 [transportpce-tox-verify-scandium] $ /bin/bash -l /tmp/jenkins3102843901408866973.sh 07:57:49 ---> tox-install.sh 07:57:49 + source /home/jenkins/lf-env.sh 07:57:49 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 07:57:49 ++ mktemp -d /tmp/venv-XXXX 07:57:49 + lf_venv=/tmp/venv-OSkH 07:57:49 + local venv_file=/tmp/.os_lf_venv 07:57:49 + local python=python3 07:57:49 + local options 07:57:49 + local set_path=true 07:57:49 + local install_args= 07:57:49 ++ 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 07:57:49 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 07:57:49 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 07:57:49 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 07:57:49 + true 07:57:49 + case $1 in 07:57:49 + venv_file=/tmp/.toxenv 07:57:49 + shift 2 07:57:49 + true 07:57:49 + case $1 in 07:57:49 + shift 07:57:49 + break 07:57:49 + case $python in 07:57:49 + local pkg_list= 07:57:49 + [[ -d /opt/pyenv ]] 07:57:49 + echo 'Setup pyenv:' 07:57:49 Setup pyenv: 07:57:49 + export PYENV_ROOT=/opt/pyenv 07:57:49 + PYENV_ROOT=/opt/pyenv 07:57:49 + 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 07:57:49 + 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 07:57:49 + pyenv versions 07:57:49 system 07:57:49 3.8.13 07:57:49 3.9.13 07:57:49 3.10.13 07:57:49 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-scandium/.python-version) 07:57:49 + command -v pyenv 07:57:49 ++ pyenv init - --no-rehash 07:57:50 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 07:57:50 for i in ${!paths[@]}; do 07:57:50 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 07:57:50 fi; done; 07:57:50 echo "${paths[*]}"'\'')" 07:57:50 export PATH="/opt/pyenv/shims:${PATH}" 07:57:50 export PYENV_SHELL=bash 07:57:50 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 07:57:50 pyenv() { 07:57:50 local command 07:57:50 command="${1:-}" 07:57:50 if [ "$#" -gt 0 ]; then 07:57:50 shift 07:57:50 fi 07:57:50 07:57:50 case "$command" in 07:57:50 rehash|shell) 07:57:50 eval "$(pyenv "sh-$command" "$@")" 07:57:50 ;; 07:57:50 *) 07:57:50 command pyenv "$command" "$@" 07:57:50 ;; 07:57:50 esac 07:57:50 }' 07:57:50 +++ bash --norc -ec 'IFS=:; paths=($PATH); 07:57:50 for i in ${!paths[@]}; do 07:57:50 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 07:57:50 fi; done; 07:57:50 echo "${paths[*]}"' 07:57:50 ++ 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 07:57:50 ++ 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 07:57:50 ++ 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 07:57:50 ++ export PYENV_SHELL=bash 07:57:50 ++ PYENV_SHELL=bash 07:57:50 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 07:57:50 +++ complete -F _pyenv pyenv 07:57:50 ++ lf-pyver python3 07:57:50 ++ local py_version_xy=python3 07:57:50 ++ local py_version_xyz= 07:57:50 ++ pyenv versions 07:57:50 ++ local command 07:57:50 ++ command=versions 07:57:50 ++ '[' 1 -gt 0 ']' 07:57:50 ++ shift 07:57:50 ++ case "$command" in 07:57:50 ++ command pyenv versions 07:57:50 ++ pyenv versions 07:57:50 ++ awk '{ print $1 }' 07:57:50 ++ sed 's/^[ *]* //' 07:57:50 ++ grep -E '^[0-9.]*[0-9]$' 07:57:50 ++ [[ ! -s /tmp/.pyenv_versions ]] 07:57:50 +++ grep '^3' /tmp/.pyenv_versions 07:57:50 +++ sort -V 07:57:50 +++ tail -n 1 07:57:50 ++ py_version_xyz=3.11.7 07:57:50 ++ [[ -z 3.11.7 ]] 07:57:50 ++ echo 3.11.7 07:57:50 ++ return 0 07:57:50 + pyenv local 3.11.7 07:57:50 + local command 07:57:50 + command=local 07:57:50 + '[' 2 -gt 0 ']' 07:57:50 + shift 07:57:50 + case "$command" in 07:57:50 + command pyenv local 3.11.7 07:57:50 + pyenv local 3.11.7 07:57:50 + for arg in "$@" 07:57:50 + case $arg in 07:57:50 + pkg_list+='tox ' 07:57:50 + for arg in "$@" 07:57:50 + case $arg in 07:57:50 + pkg_list+='virtualenv ' 07:57:50 + for arg in "$@" 07:57:50 + case $arg in 07:57:50 + pkg_list+='urllib3~=1.26.15 ' 07:57:50 + [[ -f /tmp/.toxenv ]] 07:57:50 + [[ ! -f /tmp/.toxenv ]] 07:57:50 + [[ -n '' ]] 07:57:50 + python3 -m venv /tmp/venv-OSkH 07:57:54 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-OSkH' 07:57:54 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-OSkH 07:57:54 + echo /tmp/venv-OSkH 07:57:54 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 07:57:54 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 07:57:54 + /tmp/venv-OSkH/bin/python3 -m pip install --upgrade --quiet pip virtualenv 07:57:57 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 07:57:57 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 07:57:57 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 07:57:57 + /tmp/venv-OSkH/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 07:58:01 + type python3 07:58:01 + true 07:58:01 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-OSkH/bin to PATH' 07:58:01 lf-activate-venv(): INFO: Adding /tmp/venv-OSkH/bin to PATH 07:58:01 + PATH=/tmp/venv-OSkH/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 07:58:01 + return 0 07:58:01 + python3 --version 07:58:01 Python 3.11.7 07:58:01 + python3 -m pip --version 07:58:02 pip 24.2 from /tmp/venv-OSkH/lib/python3.11/site-packages/pip (python 3.11) 07:58:02 + python3 -m pip freeze 07:58:02 cachetools==5.5.0 07:58:02 chardet==5.2.0 07:58:02 colorama==0.4.6 07:58:02 distlib==0.3.8 07:58:02 filelock==3.16.1 07:58:02 packaging==24.1 07:58:02 platformdirs==4.3.6 07:58:02 pluggy==1.5.0 07:58:02 pyproject-api==1.8.0 07:58:02 tox==4.20.0 07:58:02 urllib3==1.26.20 07:58:02 virtualenv==20.26.5 07:58:02 [transportpce-tox-verify-scandium] $ /bin/sh -xe /tmp/jenkins3983515608907909598.sh 07:58:02 [EnvInject] - Injecting environment variables from a build step. 07:58:02 [EnvInject] - Injecting as environment variables the properties content 07:58:02 PARALLEL=True 07:58:02 07:58:02 [EnvInject] - Variables injected successfully. 07:58:02 [transportpce-tox-verify-scandium] $ /bin/bash -l /tmp/jenkins11588276321198972868.sh 07:58:02 ---> tox-run.sh 07:58:02 + 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 07:58:02 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-scandium/archives/tox 07:58:02 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-scandium/archives/docs 07:58:02 + mkdir -p /w/workspace/transportpce-tox-verify-scandium/archives/tox 07:58:02 + cd /w/workspace/transportpce-tox-verify-scandium/. 07:58:02 + source /home/jenkins/lf-env.sh 07:58:02 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 07:58:02 ++ mktemp -d /tmp/venv-XXXX 07:58:02 + lf_venv=/tmp/venv-BkNC 07:58:02 + local venv_file=/tmp/.os_lf_venv 07:58:02 + local python=python3 07:58:02 + local options 07:58:02 + local set_path=true 07:58:02 + local install_args= 07:58:02 ++ 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 07:58:02 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 07:58:02 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 07:58:02 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 07:58:02 + true 07:58:02 + case $1 in 07:58:02 + venv_file=/tmp/.toxenv 07:58:02 + shift 2 07:58:02 + true 07:58:02 + case $1 in 07:58:02 + shift 07:58:02 + break 07:58:02 + case $python in 07:58:02 + local pkg_list= 07:58:02 + [[ -d /opt/pyenv ]] 07:58:02 + echo 'Setup pyenv:' 07:58:02 Setup pyenv: 07:58:02 + export PYENV_ROOT=/opt/pyenv 07:58:02 + PYENV_ROOT=/opt/pyenv 07:58:02 + 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 07:58:02 + 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 07:58:02 + pyenv versions 07:58:02 system 07:58:02 3.8.13 07:58:02 3.9.13 07:58:02 3.10.13 07:58:02 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-scandium/.python-version) 07:58:02 + command -v pyenv 07:58:02 ++ pyenv init - --no-rehash 07:58:02 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 07:58:02 for i in ${!paths[@]}; do 07:58:02 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 07:58:02 fi; done; 07:58:02 echo "${paths[*]}"'\'')" 07:58:02 export PATH="/opt/pyenv/shims:${PATH}" 07:58:02 export PYENV_SHELL=bash 07:58:02 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 07:58:02 pyenv() { 07:58:02 local command 07:58:02 command="${1:-}" 07:58:02 if [ "$#" -gt 0 ]; then 07:58:02 shift 07:58:02 fi 07:58:02 07:58:02 case "$command" in 07:58:02 rehash|shell) 07:58:02 eval "$(pyenv "sh-$command" "$@")" 07:58:02 ;; 07:58:02 *) 07:58:02 command pyenv "$command" "$@" 07:58:02 ;; 07:58:02 esac 07:58:02 }' 07:58:02 +++ bash --norc -ec 'IFS=:; paths=($PATH); 07:58:02 for i in ${!paths[@]}; do 07:58:02 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 07:58:02 fi; done; 07:58:02 echo "${paths[*]}"' 07:58:02 ++ 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 07:58:02 ++ 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 07:58:02 ++ 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 07:58:02 ++ export PYENV_SHELL=bash 07:58:02 ++ PYENV_SHELL=bash 07:58:02 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 07:58:02 +++ complete -F _pyenv pyenv 07:58:02 ++ lf-pyver python3 07:58:02 ++ local py_version_xy=python3 07:58:02 ++ local py_version_xyz= 07:58:02 ++ pyenv versions 07:58:02 ++ local command 07:58:02 ++ command=versions 07:58:02 ++ sed 's/^[ *]* //' 07:58:02 ++ '[' 1 -gt 0 ']' 07:58:02 ++ shift 07:58:02 ++ case "$command" in 07:58:02 ++ command pyenv versions 07:58:02 ++ pyenv versions 07:58:02 ++ awk '{ print $1 }' 07:58:02 ++ grep -E '^[0-9.]*[0-9]$' 07:58:02 ++ [[ ! -s /tmp/.pyenv_versions ]] 07:58:02 +++ grep '^3' /tmp/.pyenv_versions 07:58:02 +++ sort -V 07:58:02 +++ tail -n 1 07:58:02 ++ py_version_xyz=3.11.7 07:58:02 ++ [[ -z 3.11.7 ]] 07:58:02 ++ echo 3.11.7 07:58:02 ++ return 0 07:58:02 + pyenv local 3.11.7 07:58:02 + local command 07:58:02 + command=local 07:58:02 + '[' 2 -gt 0 ']' 07:58:02 + shift 07:58:02 + case "$command" in 07:58:02 + command pyenv local 3.11.7 07:58:02 + pyenv local 3.11.7 07:58:02 + for arg in "$@" 07:58:02 + case $arg in 07:58:02 + pkg_list+='tox ' 07:58:02 + for arg in "$@" 07:58:02 + case $arg in 07:58:02 + pkg_list+='virtualenv ' 07:58:02 + for arg in "$@" 07:58:02 + case $arg in 07:58:02 + pkg_list+='urllib3~=1.26.15 ' 07:58:02 + [[ -f /tmp/.toxenv ]] 07:58:02 ++ cat /tmp/.toxenv 07:58:02 + lf_venv=/tmp/venv-OSkH 07:58:02 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-OSkH from' file:/tmp/.toxenv 07:58:02 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-OSkH from file:/tmp/.toxenv 07:58:02 + /tmp/venv-OSkH/bin/python3 -m pip install --upgrade --quiet pip virtualenv 07:58:03 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 07:58:03 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 07:58:03 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 07:58:03 + /tmp/venv-OSkH/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 07:58:04 + type python3 07:58:04 + true 07:58:04 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-OSkH/bin to PATH' 07:58:04 lf-activate-venv(): INFO: Adding /tmp/venv-OSkH/bin to PATH 07:58:04 + PATH=/tmp/venv-OSkH/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 07:58:04 + return 0 07:58:04 + [[ -d /opt/pyenv ]] 07:58:04 + echo '---> Setting up pyenv' 07:58:04 ---> Setting up pyenv 07:58:04 + export PYENV_ROOT=/opt/pyenv 07:58:04 + PYENV_ROOT=/opt/pyenv 07:58:04 + export PATH=/opt/pyenv/bin:/tmp/venv-OSkH/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 07:58:04 + PATH=/opt/pyenv/bin:/tmp/venv-OSkH/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 07:58:04 ++ pwd 07:58:04 + PYTHONPATH=/w/workspace/transportpce-tox-verify-scandium 07:58:04 + export PYTHONPATH 07:58:04 + export TOX_TESTENV_PASSENV=PYTHONPATH 07:58:04 + TOX_TESTENV_PASSENV=PYTHONPATH 07:58:04 + tox --version 07:58:04 4.20.0 from /tmp/venv-OSkH/lib/python3.11/site-packages/tox/__init__.py 07:58:04 + PARALLEL=True 07:58:04 + TOX_OPTIONS_LIST= 07:58:04 + [[ -n '' ]] 07:58:04 + case ${PARALLEL,,} in 07:58:04 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 07:58:04 + tox --parallel auto --parallel-live 07:58:04 + tee -a /w/workspace/transportpce-tox-verify-scandium/archives/tox/tox.log 07:58:06 checkbashisms: freeze> python -m pip freeze --all 07:58:06 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 07:58:06 docs: install_deps> python -I -m pip install -r docs/requirements.txt 07:58:06 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 07:58:06 checkbashisms: pip==24.2,setuptools==75.1.0,wheel==0.44.0 07:58:06 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./fixCIcentOS8reposMirrors.sh 07:58:06 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-scandium/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)' 07:58:06 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-scandium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 07:58:07 script ./reflectwarn.sh does not appear to have a #! interpreter line; 07:58:07 you may get strange results 07:58:08 checkbashisms: OK ✔ in 2.73 seconds 07:58:08 pre-commit: install_deps> python -I -m pip install pre-commit 07:58:10 pre-commit: freeze> python -m pip freeze --all 07:58:10 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 07:58:10 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./fixCIcentOS8reposMirrors.sh 07:58:10 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-scandium/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)' 07:58:10 /usr/bin/cpan 07:58:10 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-scandium/tests> pre-commit run --all-files --show-diff-on-failure 07:58:11 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 07:58:11 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 07:58:11 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 07:58:11 buildcontroller: freeze> python -m pip freeze --all 07:58:12 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 07:58:12 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 07:58:12 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./build_controller.sh 07:58:12 + update-java-alternatives -l 07:58:12 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 07:58:12 java-1.12.0-openjdk-amd64 1211 /usr/lib/jvm/java-1.12.0-openjdk-amd64 07:58:12 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 07:58:12 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 07:58:12 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64 07:58:12 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 07:58:12 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 07:58:12 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 07:58:12 java -version 07:58:12 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 07:58:12 + JAVA_VER=21 07:58:12 + echo 21 07:58:12 21 07:58:12 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 07:58:12 + javac -version 07:58:13 21 07:58:13 ok, java is 21 or newer 07:58:13 + JAVAC_VER=21 07:58:13 + echo 21 07:58:13 + [ 21 -ge 21 ] 07:58:13 + [ 21 -ge 21 ] 07:58:13 + echo ok, java is 21 or newer 07:58:13 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz -P /tmp 07:58:13 2024-09-21 07:58:13 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] 07:58:13 + sudo mkdir -p /opt 07:58:13 + sudo tar xf /tmp/apache-maven-3.9.8-bin.tar.gz -C /opt 07:58:13 + sudo ln -s /opt/apache-maven-3.9.8 /opt/maven 07:58:13 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 07:58:13 + mvn --version 07:58:13 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 07:58:13 [INFO] Once installed this environment will be reused. 07:58:13 [INFO] This may take a few minutes... 07:58:13 Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) 07:58:13 Maven home: /opt/maven 07:58:13 Java version: 21.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 07:58:13 Default locale: en, platform encoding: UTF-8 07:58:13 OS name: "linux", version: "5.4.0-190-generic", arch: "amd64", family: "unix" 07:58:13 NOTE: Picked up JDK_JAVA_OPTIONS: 07:58:13 --add-opens=java.base/java.io=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.lang=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.net=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.nio=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.nio.file=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.util=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.util.jar=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.util.stream=ALL-UNNAMED 07:58:13 --add-opens=java.base/java.util.zip=ALL-UNNAMED 07:58:13 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 07:58:13 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 07:58:13 -Xlog:disable 07:58:17 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 07:58:17 [INFO] Once installed this environment will be reused. 07:58:17 [INFO] This may take a few minutes... 07:58:24 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 07:58:24 [INFO] Once installed this environment will be reused. 07:58:24 [INFO] This may take a few minutes... 07:58:31 docs-linkcheck: freeze> python -m pip freeze --all 07:58:31 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 07:58:31 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-scandium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-scandium/docs/_build/linkcheck 07:58:32 [INFO] Installing environment for https://github.com/perltidy/perltidy. 07:58:32 [INFO] Once installed this environment will be reused. 07:58:32 [INFO] This may take a few minutes... 07:58:32 /w/workspace/transportpce-tox-verify-scandium/.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. 07:58:32 warnings.warn(deprecation_msg, RemovedInSphinx80Warning, stacklevel=1) 07:58:32 docs: freeze> python -m pip freeze --all 07:58:33 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 07:58:33 docs: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-scandium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-scandium/docs/_build/html 07:58:36 docs: OK ✔ in 31.4 seconds 07:58:36 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 07:58:41 docs-linkcheck: OK ✔ in 32.45 seconds 07:58:41 pylint: freeze> python -m pip freeze --all 07:58:41 pylint: astroid==3.3.3,dill==0.3.8,isort==5.13.2,mccabe==0.7.0,pip==24.2,platformdirs==4.3.6,pylint==3.3.0,setuptools==75.1.0,tomlkit==0.13.2,wheel==0.44.0 07:58:41 pylint: commands[0] /w/workspace/transportpce-tox-verify-scandium/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}$' '{}' + 07:58:45 trim trailing whitespace.................................................Passed 07:58:46 Tabs remover.............................................................Passed 07:58:46 autopep8.................................................................Passed 07:58:50 perltidy.................................................................Passed 07:58:51 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-scandium/tests> pre-commit run gitlint-ci --hook-stage manual 07:58:51 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 07:58:51 [INFO] Once installed this environment will be reused. 07:58:51 [INFO] This may take a few minutes... 07:59:02 07:59:02 ------------------------------------ 07:59:02 Your code has been rated at 10.00/10 07:59:02 07:59:04 gitlint..................................................................Passed 07:59:54 pylint: OK ✔ in 27.78 seconds 07:59:54 pre-commit: OK ✔ in 56.77 seconds 07:59:54 buildcontroller: OK ✔ in 1 minute 48.8 seconds 07:59:54 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 07:59:54 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 07:59:54 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 07:59:54 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 08:00:00 build_karaf_tests121: freeze> python -m pip freeze --all 08:00:00 build_karaf_tests221: freeze> python -m pip freeze --all 08:00:00 sims: freeze> python -m pip freeze --all 08:00:00 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 08:00:00 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./build_karaf_for_tests.sh 08:00:00 NOTE: Picked up JDK_JAVA_OPTIONS: 08:00:00 --add-opens=java.base/java.io=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.lang=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.net=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.nio=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.util=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:00:00 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:00:00 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:00:00 -Xlog:disable 08:00:00 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 08:00:00 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./build_karaf_for_tests.sh 08:00:00 NOTE: Picked up JDK_JAVA_OPTIONS: 08:00:00 --add-opens=java.base/java.io=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.lang=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.net=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.nio=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.util=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:00:00 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:00:00 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:00:00 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:00:00 -Xlog:disable 08:00:00 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 08:00:00 sims: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./install_lightynode.sh 08:00:00 Using lighynode version 20.1.0.2 08:00:00 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 08:00:05 sims: OK ✔ in 11.71 seconds 08:00:05 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 08:00:18 build_karaf_tests71: freeze> python -m pip freeze --all 08:00:19 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 08:00:19 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./build_karaf_for_tests.sh 08:00:19 NOTE: Picked up JDK_JAVA_OPTIONS: 08:00:19 --add-opens=java.base/java.io=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.lang=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.net=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.nio=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.util=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:00:19 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:00:19 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:00:19 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:00:19 -Xlog:disable 08:01:19 build_karaf_tests221: OK ✔ in 1 minute 24.07 seconds 08:01:19 build_karaf_tests121: OK ✔ in 1 minute 24.26 seconds 08:01:19 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 08:01:19 build_karaf_tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 08:01:37 build_karaf_tests_hybrid: freeze> python -m pip freeze --all 08:01:37 tests_tapi: freeze> python -m pip freeze --all 08:01:37 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 08:01:37 build_karaf_tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./build_karaf_for_tests.sh 08:01:37 NOTE: Picked up JDK_JAVA_OPTIONS: 08:01:37 --add-opens=java.base/java.io=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.lang=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.net=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.nio=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.util=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:01:37 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:01:37 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:01:37 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:01:37 -Xlog:disable 08:01:38 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 08:01:38 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./launch_tests.sh tapi 08:01:38 using environment variables from ./karaf221.env 08:01:38 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 08:02:17 build_karaf_tests71: OK ✔ in 1 minute 59.59 seconds 08:02:17 testsPCE: freeze> python -m pip freeze --all 08:02:17 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 08:02:17 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./launch_tests.sh pce 08:02:17 pytest -q transportpce_tests/pce/test01_pce.py 08:03:11 .................................................. [100%] 08:04:15 20 passed in 117.89s (0:01:57) 08:04:15 pytest -q transportpce_tests/pce/test02_pce_400G.py 08:04:20 ................ [100%] 08:04:53 9 passed in 38.22s 08:04:53 pytest -q transportpce_tests/pce/test03_gnpy.py 08:05:04 ................. [100%] 08:05:31 8 passed in 37.61s 08:05:31 pytest -q transportpce_tests/pce/test04_pce_bug_fix.py 08:06:02 ... [100%] 08:06:07 3 passed in 35.49s 08:06:07 build_karaf_tests_hybrid: OK ✔ in 1 minute 5.02 seconds 08:06:07 testsPCE: OK ✔ in 6 minutes 13.66 seconds 08:06:07 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 08:06:13 tests121: freeze> python -m pip freeze --all 08:06:13 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 08:06:13 tests121: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./launch_tests.sh 1.2.1 08:06:13 using environment variables from ./karaf121.env 08:06:13 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 08:08:24 .... [100%] 08:08:29 50 passed in 410.91s (0:06:50) 08:08:29 pytest -q transportpce_tests/tapi/test02_full_topology.py 08:09:27 ....F.FFFF.......F................... [100%] 08:12:55 =================================== FAILURES =================================== 08:12:55 _____________ TransportPCEtesting.test_12_check_openroadm_topology _____________ 08:12:55 08:12:55 self = 08:12:55 08:12:55 def test_12_check_openroadm_topology(self): 08:12:55 response = test_utils.get_ietf_network_request('openroadm-topology', 'config') 08:12:55 self.assertEqual(response['status_code'], requests.codes.ok) 08:12:55 > self.assertEqual(len(response['network'][0]['node']), 13, 'There should be 13 openroadm nodes') 08:12:55 E AssertionError: 14 != 13 : There should be 13 openroadm nodes 08:12:55 08:12:55 transportpce_tests/tapi/test02_full_topology.py:272: AssertionError 08:12:55 =========================== short test summary info ============================ 08:12:55 FAILED transportpce_tests/tapi/test02_full_topology.py::TransportPCEtesting::test_12_check_openroadm_topology 08:12:55 1 failed, 29 passed in 266.23s (0:04:26) 08:12:55 tests_tapi: exit 1 (677.60 seconds) /w/workspace/transportpce-tox-verify-scandium/tests> ./launch_tests.sh tapi pid=30863 08:12:55 tests_tapi: FAIL ✖ in 11 minutes 37.48 seconds 08:12:55 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 08:12:59 .Ftests71: freeze> python -m pip freeze --all 08:13:01 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 08:13:01 tests71: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./launch_tests.sh 7.1 08:13:01 using environment variables from ./karaf71.env 08:13:01 pytest -q transportpce_tests/7.1/test01_portmapping.py 08:13:02 FFFFFFFFFFFF [100%] 08:13:17 =================================== FAILURES =================================== 08:13:17 _________ TransportPCEPortMappingTesting.test_02_rdm_device_connected __________ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_02_rdm_device_connected(self): 08:13:17 response = test_utils.check_device_connection("ROADMA01") 08:13:17 > self.assertEqual(response['status_code'], requests.codes.ok) 08:13:17 E AssertionError: 409 != 200 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:54: AssertionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_02_rdm_device_connected 08:13:17 _________ TransportPCEPortMappingTesting.test_03_rdm_portmapping_info __________ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_03_rdm_portmapping_info(self): 08:13:17 response = test_utils.get_portmapping_node_attr("ROADMA01", "node-info", None) 08:13:17 > self.assertEqual(response['status_code'], requests.codes.ok) 08:13:17 E AssertionError: 409 != 200 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:60: AssertionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_03_rdm_portmapping_info 08:13:17 _____ TransportPCEPortMappingTesting.test_04_rdm_portmapping_DEG1_TTP_TXRX _____ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_04_rdm_portmapping_DEG1_TTP_TXRX(self): 08:13:17 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "DEG1-TTP-TXRX") 08:13:17 > self.assertEqual(response['status_code'], requests.codes.ok) 08:13:17 E AssertionError: 409 != 200 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:73: AssertionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_04_rdm_portmapping_DEG1_TTP_TXRX 08:13:17 _____ TransportPCEPortMappingTesting.test_05_rdm_portmapping_SRG1_PP7_TXRX _____ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_05_rdm_portmapping_SRG1_PP7_TXRX(self): 08:13:17 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "SRG1-PP7-TXRX") 08:13:17 > self.assertEqual(response['status_code'], requests.codes.ok) 08:13:17 E AssertionError: 409 != 200 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:82: AssertionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_05_rdm_portmapping_SRG1_PP7_TXRX 08:13:17 _____ TransportPCEPortMappingTesting.test_06_rdm_portmapping_SRG3_PP1_TXRX _____ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_06_rdm_portmapping_SRG3_PP1_TXRX(self): 08:13:17 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "SRG3-PP1-TXRX") 08:13:17 > self.assertEqual(response['status_code'], requests.codes.ok) 08:13:17 E AssertionError: 409 != 200 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:91: AssertionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_06_rdm_portmapping_SRG3_PP1_TXRX 08:13:17 _________ TransportPCEPortMappingTesting.test_09_xpdr_portmapping_info _________ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 > sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:17 raise err 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:17 socket_options = [(6, 1, 1)] 08:13:17 08:13:17 def create_connection( 08:13:17 address: tuple[str, int], 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 source_address: tuple[str, int] | None = None, 08:13:17 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:17 ) -> socket.socket: 08:13:17 """Connect to *address* and return the socket object. 08:13:17 08:13:17 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:17 port)``) and return the socket object. Passing the optional 08:13:17 *timeout* parameter will set the timeout on the socket instance 08:13:17 before attempting to connect. If no *timeout* is supplied, the 08:13:17 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:17 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:17 for the socket to bind as a source address before making the connection. 08:13:17 An host of '' or port 0 tells the OS to use the default. 08:13:17 """ 08:13:17 08:13:17 host, port = address 08:13:17 if host.startswith("["): 08:13:17 host = host.strip("[]") 08:13:17 err = None 08:13:17 08:13:17 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:17 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:17 # The original create_connection function always returns all records. 08:13:17 family = allowed_gai_family() 08:13:17 08:13:17 try: 08:13:17 host.encode("idna") 08:13:17 except UnicodeError: 08:13:17 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:17 08:13:17 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:17 af, socktype, proto, canonname, sa = res 08:13:17 sock = None 08:13:17 try: 08:13:17 sock = socket.socket(af, socktype, proto) 08:13:17 08:13:17 # If provided, set socket level options before connecting. 08:13:17 _set_socket_options(sock, socket_options) 08:13:17 08:13:17 if timeout is not _DEFAULT_TIMEOUT: 08:13:17 sock.settimeout(timeout) 08:13:17 if source_address: 08:13:17 sock.bind(source_address) 08:13:17 > sock.connect(sa) 08:13:17 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:13:17 body = None 08:13:17 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:17 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 redirect = False, assert_same_host = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:17 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:17 decode_content = False, response_kw = {} 08:13:17 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info', query=None, fragment=None) 08:13:17 destination_scheme = None, conn = None, release_this_conn = True 08:13:17 http_tunnel_required = False, err = None, clean_exit = False 08:13:17 08:13:17 def urlopen( # type: ignore[override] 08:13:17 self, 08:13:17 method: str, 08:13:17 url: str, 08:13:17 body: _TYPE_BODY | None = None, 08:13:17 headers: typing.Mapping[str, str] | None = None, 08:13:17 retries: Retry | bool | int | None = None, 08:13:17 redirect: bool = True, 08:13:17 assert_same_host: bool = True, 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 pool_timeout: int | None = None, 08:13:17 release_conn: bool | None = None, 08:13:17 chunked: bool = False, 08:13:17 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:17 preload_content: bool = True, 08:13:17 decode_content: bool = True, 08:13:17 **response_kw: typing.Any, 08:13:17 ) -> BaseHTTPResponse: 08:13:17 """ 08:13:17 Get a connection from the pool and perform an HTTP request. This is the 08:13:17 lowest level call for making a request, so you'll need to specify all 08:13:17 the raw details. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 More commonly, it's appropriate to use a convenience method 08:13:17 such as :meth:`request`. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 `release_conn` will only behave as expected if 08:13:17 `preload_content=False` because we want to make 08:13:17 `preload_content=False` the default behaviour someday soon without 08:13:17 breaking backwards compatibility. 08:13:17 08:13:17 :param method: 08:13:17 HTTP request method (such as GET, POST, PUT, etc.) 08:13:17 08:13:17 :param url: 08:13:17 The URL to perform the request on. 08:13:17 08:13:17 :param body: 08:13:17 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:17 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:17 08:13:17 :param headers: 08:13:17 Dictionary of custom headers to send, such as User-Agent, 08:13:17 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:17 these headers completely replace any pool-specific headers. 08:13:17 08:13:17 :param retries: 08:13:17 Configure the number of retries to allow before raising a 08:13:17 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:17 08:13:17 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:17 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:17 over different types of retries. 08:13:17 Pass an integer number to retry connection errors that many times, 08:13:17 but no other types of errors. Pass zero to never retry. 08:13:17 08:13:17 If ``False``, then retries are disabled and any exception is raised 08:13:17 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:17 the redirect response will be returned. 08:13:17 08:13:17 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:17 08:13:17 :param redirect: 08:13:17 If True, automatically handle redirects (status codes 301, 302, 08:13:17 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:17 will disable redirect, too. 08:13:17 08:13:17 :param assert_same_host: 08:13:17 If ``True``, will make sure that the host of the pool requests is 08:13:17 consistent else will raise HostChangedError. When ``False``, you can 08:13:17 use the pool on an HTTP proxy and request foreign hosts. 08:13:17 08:13:17 :param timeout: 08:13:17 If specified, overrides the default timeout for this one 08:13:17 request. It may be a float (in seconds) or an instance of 08:13:17 :class:`urllib3.util.Timeout`. 08:13:17 08:13:17 :param pool_timeout: 08:13:17 If set and the pool is set to block=True, then this method will 08:13:17 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:17 connection is available within the time period. 08:13:17 08:13:17 :param bool preload_content: 08:13:17 If True, the response's body will be preloaded into memory. 08:13:17 08:13:17 :param bool decode_content: 08:13:17 If True, will attempt to decode the body based on the 08:13:17 'content-encoding' header. 08:13:17 08:13:17 :param release_conn: 08:13:17 If False, then the urlopen call will not release the connection 08:13:17 back into the pool once a response is received (but will release if 08:13:17 you read the entire contents of the response such as when 08:13:17 `preload_content=True`). This is useful if you're not preloading 08:13:17 the response's content immediately. You will need to call 08:13:17 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:17 back into the pool. If None, it takes the value of ``preload_content`` 08:13:17 which defaults to ``True``. 08:13:17 08:13:17 :param bool chunked: 08:13:17 If True, urllib3 will send the body using chunked transfer 08:13:17 encoding. Otherwise, urllib3 will send the body using the standard 08:13:17 content-length form. Defaults to False. 08:13:17 08:13:17 :param int body_pos: 08:13:17 Position to seek to in file-like body in the event of a retry or 08:13:17 redirect. Typically this won't need to be set because urllib3 will 08:13:17 auto-populate the value when needed. 08:13:17 """ 08:13:17 parsed_url = parse_url(url) 08:13:17 destination_scheme = parsed_url.scheme 08:13:17 08:13:17 if headers is None: 08:13:17 headers = self.headers 08:13:17 08:13:17 if not isinstance(retries, Retry): 08:13:17 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:17 08:13:17 if release_conn is None: 08:13:17 release_conn = preload_content 08:13:17 08:13:17 # Check host 08:13:17 if assert_same_host and not self.is_same_host(url): 08:13:17 raise HostChangedError(self, url, retries) 08:13:17 08:13:17 # Ensure that the URL we're connecting to is properly encoded 08:13:17 if url.startswith("/"): 08:13:17 url = to_str(_encode_target(url)) 08:13:17 else: 08:13:17 url = to_str(parsed_url.url) 08:13:17 08:13:17 conn = None 08:13:17 08:13:17 # Track whether `conn` needs to be released before 08:13:17 # returning/raising/recursing. Update this variable if necessary, and 08:13:17 # leave `release_conn` constant throughout the function. That way, if 08:13:17 # the function recurses, the original value of `release_conn` will be 08:13:17 # passed down into the recursive call, and its value will be respected. 08:13:17 # 08:13:17 # See issue #651 [1] for details. 08:13:17 # 08:13:17 # [1] 08:13:17 release_this_conn = release_conn 08:13:17 08:13:17 http_tunnel_required = connection_requires_http_tunnel( 08:13:17 self.proxy, self.proxy_config, destination_scheme 08:13:17 ) 08:13:17 08:13:17 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:17 # have to copy the headers dict so we can safely change it without those 08:13:17 # changes being reflected in anyone else's copy. 08:13:17 if not http_tunnel_required: 08:13:17 headers = headers.copy() # type: ignore[attr-defined] 08:13:17 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:17 08:13:17 # Must keep the exception bound to a separate variable or else Python 3 08:13:17 # complains about UnboundLocalError. 08:13:17 err = None 08:13:17 08:13:17 # Keep track of whether we cleanly exited the except block. This 08:13:17 # ensures we do proper cleanup in finally. 08:13:17 clean_exit = False 08:13:17 08:13:17 # Rewind body position, if needed. Record current position 08:13:17 # for future rewinds in the event of a redirect/retry. 08:13:17 body_pos = set_file_position(body, body_pos) 08:13:17 08:13:17 try: 08:13:17 # Request a connection from the queue. 08:13:17 timeout_obj = self._get_timeout(timeout) 08:13:17 conn = self._get_conn(timeout=pool_timeout) 08:13:17 08:13:17 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:17 08:13:17 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:17 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:17 try: 08:13:17 self._prepare_proxy(conn) 08:13:17 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:17 self._raise_timeout( 08:13:17 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:17 ) 08:13:17 raise 08:13:17 08:13:17 # If we're going to release the connection in ``finally:``, then 08:13:17 # the response doesn't need to know about the connection. Otherwise 08:13:17 # it will also try to release it and we'll have a double-release 08:13:17 # mess. 08:13:17 response_conn = conn if not release_conn else None 08:13:17 08:13:17 # Make the request on the HTTPConnection object 08:13:17 > response = self._make_request( 08:13:17 conn, 08:13:17 method, 08:13:17 url, 08:13:17 timeout=timeout_obj, 08:13:17 body=body, 08:13:17 headers=headers, 08:13:17 chunked=chunked, 08:13:17 retries=retries, 08:13:17 response_conn=response_conn, 08:13:17 preload_content=preload_content, 08:13:17 decode_content=decode_content, 08:13:17 **response_kw, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:17 conn.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:17 self.endheaders() 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:17 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:17 self.send(msg) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:17 self.connect() 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:17 self.sock = self._new_conn() 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 except socket.gaierror as e: 08:13:17 raise NameResolutionError(self.host, self, e) from e 08:13:17 except SocketTimeout as e: 08:13:17 raise ConnectTimeoutError( 08:13:17 self, 08:13:17 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:17 ) from e 08:13:17 08:13:17 except OSError as e: 08:13:17 > raise NewConnectionError( 08:13:17 self, f"Failed to establish a new connection: {e}" 08:13:17 ) from e 08:13:17 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 > resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:17 retries = retries.increment( 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:13:17 response = None 08:13:17 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:17 _pool = 08:13:17 _stacktrace = 08:13:17 08:13:17 def increment( 08:13:17 self, 08:13:17 method: str | None = None, 08:13:17 url: str | None = None, 08:13:17 response: BaseHTTPResponse | None = None, 08:13:17 error: Exception | None = None, 08:13:17 _pool: ConnectionPool | None = None, 08:13:17 _stacktrace: TracebackType | None = None, 08:13:17 ) -> Self: 08:13:17 """Return a new Retry object with incremented retry counters. 08:13:17 08:13:17 :param response: A response object, or None, if the server did not 08:13:17 return a response. 08:13:17 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:17 :param Exception error: An error encountered during the request, or 08:13:17 None if the response was received successfully. 08:13:17 08:13:17 :return: A new ``Retry`` object. 08:13:17 """ 08:13:17 if self.total is False and error: 08:13:17 # Disabled, indicate to re-raise the error. 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 08:13:17 total = self.total 08:13:17 if total is not None: 08:13:17 total -= 1 08:13:17 08:13:17 connect = self.connect 08:13:17 read = self.read 08:13:17 redirect = self.redirect 08:13:17 status_count = self.status 08:13:17 other = self.other 08:13:17 cause = "unknown" 08:13:17 status = None 08:13:17 redirect_location = None 08:13:17 08:13:17 if error and self._is_connection_error(error): 08:13:17 # Connect retry? 08:13:17 if connect is False: 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif connect is not None: 08:13:17 connect -= 1 08:13:17 08:13:17 elif error and self._is_read_error(error): 08:13:17 # Read retry? 08:13:17 if read is False or method is None or not self._is_method_retryable(method): 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif read is not None: 08:13:17 read -= 1 08:13:17 08:13:17 elif error: 08:13:17 # Other retry? 08:13:17 if other is not None: 08:13:17 other -= 1 08:13:17 08:13:17 elif response and response.get_redirect_location(): 08:13:17 # Redirect retry? 08:13:17 if redirect is not None: 08:13:17 redirect -= 1 08:13:17 cause = "too many redirects" 08:13:17 response_redirect_location = response.get_redirect_location() 08:13:17 if response_redirect_location: 08:13:17 redirect_location = response_redirect_location 08:13:17 status = response.status 08:13:17 08:13:17 else: 08:13:17 # Incrementing because of a server error like a 500 in 08:13:17 # status_forcelist and the given method is in the allowed_methods 08:13:17 cause = ResponseError.GENERIC_ERROR 08:13:17 if response and response.status: 08:13:17 if status_count is not None: 08:13:17 status_count -= 1 08:13:17 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:17 status = response.status 08:13:17 08:13:17 history = self.history + ( 08:13:17 RequestHistory(method, url, error, status, redirect_location), 08:13:17 ) 08:13:17 08:13:17 new_retry = self.new( 08:13:17 total=total, 08:13:17 connect=connect, 08:13:17 read=read, 08:13:17 redirect=redirect, 08:13:17 status=status_count, 08:13:17 other=other, 08:13:17 history=history, 08:13:17 ) 08:13:17 08:13:17 if new_retry.is_exhausted(): 08:13:17 reason = error or ResponseError(cause) 08:13:17 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:17 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:17 08:13:17 During handling of the above exception, another exception occurred: 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_09_xpdr_portmapping_info(self): 08:13:17 > response = test_utils.get_portmapping_node_attr("XPDRA01", "node-info", None) 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:109: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:17 response = get_request(target_url) 08:13:17 transportpce_tests/common/test_utils.py:116: in get_request 08:13:17 return requests.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:17 return session.request(method=method, url=url, **kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:17 resp = self.send(prep, **send_kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:17 r = adapter.send(request, **kwargs) 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 except (ProtocolError, OSError) as err: 08:13:17 raise ConnectionError(err, request=request) 08:13:17 08:13:17 except MaxRetryError as e: 08:13:17 if isinstance(e.reason, ConnectTimeoutError): 08:13:17 # TODO: Remove this in 3.0.0: see #2811 08:13:17 if not isinstance(e.reason, NewConnectionError): 08:13:17 raise ConnectTimeout(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, ResponseError): 08:13:17 raise RetryError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _ProxyError): 08:13:17 raise ProxyError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _SSLError): 08:13:17 # This branch is for urllib3 v1.22 and later. 08:13:17 raise SSLError(e, request=request) 08:13:17 08:13:17 > raise ConnectionError(e, request=request) 08:13:17 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_09_xpdr_portmapping_info 08:13:17 _______ TransportPCEPortMappingTesting.test_10_xpdr_portmapping_NETWORK1 _______ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 > sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:17 raise err 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:17 socket_options = [(6, 1, 1)] 08:13:17 08:13:17 def create_connection( 08:13:17 address: tuple[str, int], 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 source_address: tuple[str, int] | None = None, 08:13:17 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:17 ) -> socket.socket: 08:13:17 """Connect to *address* and return the socket object. 08:13:17 08:13:17 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:17 port)``) and return the socket object. Passing the optional 08:13:17 *timeout* parameter will set the timeout on the socket instance 08:13:17 before attempting to connect. If no *timeout* is supplied, the 08:13:17 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:17 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:17 for the socket to bind as a source address before making the connection. 08:13:17 An host of '' or port 0 tells the OS to use the default. 08:13:17 """ 08:13:17 08:13:17 host, port = address 08:13:17 if host.startswith("["): 08:13:17 host = host.strip("[]") 08:13:17 err = None 08:13:17 08:13:17 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:17 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:17 # The original create_connection function always returns all records. 08:13:17 family = allowed_gai_family() 08:13:17 08:13:17 try: 08:13:17 host.encode("idna") 08:13:17 except UnicodeError: 08:13:17 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:17 08:13:17 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:17 af, socktype, proto, canonname, sa = res 08:13:17 sock = None 08:13:17 try: 08:13:17 sock = socket.socket(af, socktype, proto) 08:13:17 08:13:17 # If provided, set socket level options before connecting. 08:13:17 _set_socket_options(sock, socket_options) 08:13:17 08:13:17 if timeout is not _DEFAULT_TIMEOUT: 08:13:17 sock.settimeout(timeout) 08:13:17 if source_address: 08:13:17 sock.bind(source_address) 08:13:17 > sock.connect(sa) 08:13:17 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1' 08:13:17 body = None 08:13:17 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:17 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 redirect = False, assert_same_host = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:17 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:17 decode_content = False, response_kw = {} 08:13:17 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1', query=None, fragment=None) 08:13:17 destination_scheme = None, conn = None, release_this_conn = True 08:13:17 http_tunnel_required = False, err = None, clean_exit = False 08:13:17 08:13:17 def urlopen( # type: ignore[override] 08:13:17 self, 08:13:17 method: str, 08:13:17 url: str, 08:13:17 body: _TYPE_BODY | None = None, 08:13:17 headers: typing.Mapping[str, str] | None = None, 08:13:17 retries: Retry | bool | int | None = None, 08:13:17 redirect: bool = True, 08:13:17 assert_same_host: bool = True, 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 pool_timeout: int | None = None, 08:13:17 release_conn: bool | None = None, 08:13:17 chunked: bool = False, 08:13:17 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:17 preload_content: bool = True, 08:13:17 decode_content: bool = True, 08:13:17 **response_kw: typing.Any, 08:13:17 ) -> BaseHTTPResponse: 08:13:17 """ 08:13:17 Get a connection from the pool and perform an HTTP request. This is the 08:13:17 lowest level call for making a request, so you'll need to specify all 08:13:17 the raw details. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 More commonly, it's appropriate to use a convenience method 08:13:17 such as :meth:`request`. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 `release_conn` will only behave as expected if 08:13:17 `preload_content=False` because we want to make 08:13:17 `preload_content=False` the default behaviour someday soon without 08:13:17 breaking backwards compatibility. 08:13:17 08:13:17 :param method: 08:13:17 HTTP request method (such as GET, POST, PUT, etc.) 08:13:17 08:13:17 :param url: 08:13:17 The URL to perform the request on. 08:13:17 08:13:17 :param body: 08:13:17 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:17 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:17 08:13:17 :param headers: 08:13:17 Dictionary of custom headers to send, such as User-Agent, 08:13:17 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:17 these headers completely replace any pool-specific headers. 08:13:17 08:13:17 :param retries: 08:13:17 Configure the number of retries to allow before raising a 08:13:17 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:17 08:13:17 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:17 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:17 over different types of retries. 08:13:17 Pass an integer number to retry connection errors that many times, 08:13:17 but no other types of errors. Pass zero to never retry. 08:13:17 08:13:17 If ``False``, then retries are disabled and any exception is raised 08:13:17 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:17 the redirect response will be returned. 08:13:17 08:13:17 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:17 08:13:17 :param redirect: 08:13:17 If True, automatically handle redirects (status codes 301, 302, 08:13:17 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:17 will disable redirect, too. 08:13:17 08:13:17 :param assert_same_host: 08:13:17 If ``True``, will make sure that the host of the pool requests is 08:13:17 consistent else will raise HostChangedError. When ``False``, you can 08:13:17 use the pool on an HTTP proxy and request foreign hosts. 08:13:17 08:13:17 :param timeout: 08:13:17 If specified, overrides the default timeout for this one 08:13:17 request. It may be a float (in seconds) or an instance of 08:13:17 :class:`urllib3.util.Timeout`. 08:13:17 08:13:17 :param pool_timeout: 08:13:17 If set and the pool is set to block=True, then this method will 08:13:17 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:17 connection is available within the time period. 08:13:17 08:13:17 :param bool preload_content: 08:13:17 If True, the response's body will be preloaded into memory. 08:13:17 08:13:17 :param bool decode_content: 08:13:17 If True, will attempt to decode the body based on the 08:13:17 'content-encoding' header. 08:13:17 08:13:17 :param release_conn: 08:13:17 If False, then the urlopen call will not release the connection 08:13:17 back into the pool once a response is received (but will release if 08:13:17 you read the entire contents of the response such as when 08:13:17 `preload_content=True`). This is useful if you're not preloading 08:13:17 the response's content immediately. You will need to call 08:13:17 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:17 back into the pool. If None, it takes the value of ``preload_content`` 08:13:17 which defaults to ``True``. 08:13:17 08:13:17 :param bool chunked: 08:13:17 If True, urllib3 will send the body using chunked transfer 08:13:17 encoding. Otherwise, urllib3 will send the body using the standard 08:13:17 content-length form. Defaults to False. 08:13:17 08:13:17 :param int body_pos: 08:13:17 Position to seek to in file-like body in the event of a retry or 08:13:17 redirect. Typically this won't need to be set because urllib3 will 08:13:17 auto-populate the value when needed. 08:13:17 """ 08:13:17 parsed_url = parse_url(url) 08:13:17 destination_scheme = parsed_url.scheme 08:13:17 08:13:17 if headers is None: 08:13:17 headers = self.headers 08:13:17 08:13:17 if not isinstance(retries, Retry): 08:13:17 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:17 08:13:17 if release_conn is None: 08:13:17 release_conn = preload_content 08:13:17 08:13:17 # Check host 08:13:17 if assert_same_host and not self.is_same_host(url): 08:13:17 raise HostChangedError(self, url, retries) 08:13:17 08:13:17 # Ensure that the URL we're connecting to is properly encoded 08:13:17 if url.startswith("/"): 08:13:17 url = to_str(_encode_target(url)) 08:13:17 else: 08:13:17 url = to_str(parsed_url.url) 08:13:17 08:13:17 conn = None 08:13:17 08:13:17 # Track whether `conn` needs to be released before 08:13:17 # returning/raising/recursing. Update this variable if necessary, and 08:13:17 # leave `release_conn` constant throughout the function. That way, if 08:13:17 # the function recurses, the original value of `release_conn` will be 08:13:17 # passed down into the recursive call, and its value will be respected. 08:13:17 # 08:13:17 # See issue #651 [1] for details. 08:13:17 # 08:13:17 # [1] 08:13:17 release_this_conn = release_conn 08:13:17 08:13:17 http_tunnel_required = connection_requires_http_tunnel( 08:13:17 self.proxy, self.proxy_config, destination_scheme 08:13:17 ) 08:13:17 08:13:17 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:17 # have to copy the headers dict so we can safely change it without those 08:13:17 # changes being reflected in anyone else's copy. 08:13:17 if not http_tunnel_required: 08:13:17 headers = headers.copy() # type: ignore[attr-defined] 08:13:17 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:17 08:13:17 # Must keep the exception bound to a separate variable or else Python 3 08:13:17 # complains about UnboundLocalError. 08:13:17 err = None 08:13:17 08:13:17 # Keep track of whether we cleanly exited the except block. This 08:13:17 # ensures we do proper cleanup in finally. 08:13:17 clean_exit = False 08:13:17 08:13:17 # Rewind body position, if needed. Record current position 08:13:17 # for future rewinds in the event of a redirect/retry. 08:13:17 body_pos = set_file_position(body, body_pos) 08:13:17 08:13:17 try: 08:13:17 # Request a connection from the queue. 08:13:17 timeout_obj = self._get_timeout(timeout) 08:13:17 conn = self._get_conn(timeout=pool_timeout) 08:13:17 08:13:17 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:17 08:13:17 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:17 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:17 try: 08:13:17 self._prepare_proxy(conn) 08:13:17 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:17 self._raise_timeout( 08:13:17 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:17 ) 08:13:17 raise 08:13:17 08:13:17 # If we're going to release the connection in ``finally:``, then 08:13:17 # the response doesn't need to know about the connection. Otherwise 08:13:17 # it will also try to release it and we'll have a double-release 08:13:17 # mess. 08:13:17 response_conn = conn if not release_conn else None 08:13:17 08:13:17 # Make the request on the HTTPConnection object 08:13:17 > response = self._make_request( 08:13:17 conn, 08:13:17 method, 08:13:17 url, 08:13:17 timeout=timeout_obj, 08:13:17 body=body, 08:13:17 headers=headers, 08:13:17 chunked=chunked, 08:13:17 retries=retries, 08:13:17 response_conn=response_conn, 08:13:17 preload_content=preload_content, 08:13:17 decode_content=decode_content, 08:13:17 **response_kw, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:17 conn.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:17 self.endheaders() 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:17 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:17 self.send(msg) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:17 self.connect() 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:17 self.sock = self._new_conn() 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 except socket.gaierror as e: 08:13:17 raise NameResolutionError(self.host, self, e) from e 08:13:17 except SocketTimeout as e: 08:13:17 raise ConnectTimeoutError( 08:13:17 self, 08:13:17 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:17 ) from e 08:13:17 08:13:17 except OSError as e: 08:13:17 > raise NewConnectionError( 08:13:17 self, f"Failed to establish a new connection: {e}" 08:13:17 ) from e 08:13:17 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 > resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:17 retries = retries.increment( 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1' 08:13:17 response = None 08:13:17 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:17 _pool = 08:13:17 _stacktrace = 08:13:17 08:13:17 def increment( 08:13:17 self, 08:13:17 method: str | None = None, 08:13:17 url: str | None = None, 08:13:17 response: BaseHTTPResponse | None = None, 08:13:17 error: Exception | None = None, 08:13:17 _pool: ConnectionPool | None = None, 08:13:17 _stacktrace: TracebackType | None = None, 08:13:17 ) -> Self: 08:13:17 """Return a new Retry object with incremented retry counters. 08:13:17 08:13:17 :param response: A response object, or None, if the server did not 08:13:17 return a response. 08:13:17 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:17 :param Exception error: An error encountered during the request, or 08:13:17 None if the response was received successfully. 08:13:17 08:13:17 :return: A new ``Retry`` object. 08:13:17 """ 08:13:17 if self.total is False and error: 08:13:17 # Disabled, indicate to re-raise the error. 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 08:13:17 total = self.total 08:13:17 if total is not None: 08:13:17 total -= 1 08:13:17 08:13:17 connect = self.connect 08:13:17 read = self.read 08:13:17 redirect = self.redirect 08:13:17 status_count = self.status 08:13:17 other = self.other 08:13:17 cause = "unknown" 08:13:17 status = None 08:13:17 redirect_location = None 08:13:17 08:13:17 if error and self._is_connection_error(error): 08:13:17 # Connect retry? 08:13:17 if connect is False: 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif connect is not None: 08:13:17 connect -= 1 08:13:17 08:13:17 elif error and self._is_read_error(error): 08:13:17 # Read retry? 08:13:17 if read is False or method is None or not self._is_method_retryable(method): 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif read is not None: 08:13:17 read -= 1 08:13:17 08:13:17 elif error: 08:13:17 # Other retry? 08:13:17 if other is not None: 08:13:17 other -= 1 08:13:17 08:13:17 elif response and response.get_redirect_location(): 08:13:17 # Redirect retry? 08:13:17 if redirect is not None: 08:13:17 redirect -= 1 08:13:17 cause = "too many redirects" 08:13:17 response_redirect_location = response.get_redirect_location() 08:13:17 if response_redirect_location: 08:13:17 redirect_location = response_redirect_location 08:13:17 status = response.status 08:13:17 08:13:17 else: 08:13:17 # Incrementing because of a server error like a 500 in 08:13:17 # status_forcelist and the given method is in the allowed_methods 08:13:17 cause = ResponseError.GENERIC_ERROR 08:13:17 if response and response.status: 08:13:17 if status_count is not None: 08:13:17 status_count -= 1 08:13:17 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:17 status = response.status 08:13:17 08:13:17 history = self.history + ( 08:13:17 RequestHistory(method, url, error, status, redirect_location), 08:13:17 ) 08:13:17 08:13:17 new_retry = self.new( 08:13:17 total=total, 08:13:17 connect=connect, 08:13:17 read=read, 08:13:17 redirect=redirect, 08:13:17 status=status_count, 08:13:17 other=other, 08:13:17 history=history, 08:13:17 ) 08:13:17 08:13:17 if new_retry.is_exhausted(): 08:13:17 reason = error or ResponseError(cause) 08:13:17 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:17 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:17 08:13:17 During handling of the above exception, another exception occurred: 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_10_xpdr_portmapping_NETWORK1(self): 08:13:17 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-NETWORK1") 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:122: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:17 response = get_request(target_url) 08:13:17 transportpce_tests/common/test_utils.py:116: in get_request 08:13:17 return requests.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:17 return session.request(method=method, url=url, **kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:17 resp = self.send(prep, **send_kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:17 r = adapter.send(request, **kwargs) 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 except (ProtocolError, OSError) as err: 08:13:17 raise ConnectionError(err, request=request) 08:13:17 08:13:17 except MaxRetryError as e: 08:13:17 if isinstance(e.reason, ConnectTimeoutError): 08:13:17 # TODO: Remove this in 3.0.0: see #2811 08:13:17 if not isinstance(e.reason, NewConnectionError): 08:13:17 raise ConnectTimeout(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, ResponseError): 08:13:17 raise RetryError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _ProxyError): 08:13:17 raise ProxyError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _SSLError): 08:13:17 # This branch is for urllib3 v1.22 and later. 08:13:17 raise SSLError(e, request=request) 08:13:17 08:13:17 > raise ConnectionError(e, request=request) 08:13:17 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_10_xpdr_portmapping_NETWORK1 08:13:17 _______ TransportPCEPortMappingTesting.test_11_xpdr_portmapping_NETWORK2 _______ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 > sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:17 raise err 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:17 socket_options = [(6, 1, 1)] 08:13:17 08:13:17 def create_connection( 08:13:17 address: tuple[str, int], 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 source_address: tuple[str, int] | None = None, 08:13:17 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:17 ) -> socket.socket: 08:13:17 """Connect to *address* and return the socket object. 08:13:17 08:13:17 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:17 port)``) and return the socket object. Passing the optional 08:13:17 *timeout* parameter will set the timeout on the socket instance 08:13:17 before attempting to connect. If no *timeout* is supplied, the 08:13:17 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:17 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:17 for the socket to bind as a source address before making the connection. 08:13:17 An host of '' or port 0 tells the OS to use the default. 08:13:17 """ 08:13:17 08:13:17 host, port = address 08:13:17 if host.startswith("["): 08:13:17 host = host.strip("[]") 08:13:17 err = None 08:13:17 08:13:17 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:17 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:17 # The original create_connection function always returns all records. 08:13:17 family = allowed_gai_family() 08:13:17 08:13:17 try: 08:13:17 host.encode("idna") 08:13:17 except UnicodeError: 08:13:17 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:17 08:13:17 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:17 af, socktype, proto, canonname, sa = res 08:13:17 sock = None 08:13:17 try: 08:13:17 sock = socket.socket(af, socktype, proto) 08:13:17 08:13:17 # If provided, set socket level options before connecting. 08:13:17 _set_socket_options(sock, socket_options) 08:13:17 08:13:17 if timeout is not _DEFAULT_TIMEOUT: 08:13:17 sock.settimeout(timeout) 08:13:17 if source_address: 08:13:17 sock.bind(source_address) 08:13:17 > sock.connect(sa) 08:13:17 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2' 08:13:17 body = None 08:13:17 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:17 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 redirect = False, assert_same_host = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:17 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:17 decode_content = False, response_kw = {} 08:13:17 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2', query=None, fragment=None) 08:13:17 destination_scheme = None, conn = None, release_this_conn = True 08:13:17 http_tunnel_required = False, err = None, clean_exit = False 08:13:17 08:13:17 def urlopen( # type: ignore[override] 08:13:17 self, 08:13:17 method: str, 08:13:17 url: str, 08:13:17 body: _TYPE_BODY | None = None, 08:13:17 headers: typing.Mapping[str, str] | None = None, 08:13:17 retries: Retry | bool | int | None = None, 08:13:17 redirect: bool = True, 08:13:17 assert_same_host: bool = True, 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 pool_timeout: int | None = None, 08:13:17 release_conn: bool | None = None, 08:13:17 chunked: bool = False, 08:13:17 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:17 preload_content: bool = True, 08:13:17 decode_content: bool = True, 08:13:17 **response_kw: typing.Any, 08:13:17 ) -> BaseHTTPResponse: 08:13:17 """ 08:13:17 Get a connection from the pool and perform an HTTP request. This is the 08:13:17 lowest level call for making a request, so you'll need to specify all 08:13:17 the raw details. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 More commonly, it's appropriate to use a convenience method 08:13:17 such as :meth:`request`. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 `release_conn` will only behave as expected if 08:13:17 `preload_content=False` because we want to make 08:13:17 `preload_content=False` the default behaviour someday soon without 08:13:17 breaking backwards compatibility. 08:13:17 08:13:17 :param method: 08:13:17 HTTP request method (such as GET, POST, PUT, etc.) 08:13:17 08:13:17 :param url: 08:13:17 The URL to perform the request on. 08:13:17 08:13:17 :param body: 08:13:17 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:17 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:17 08:13:17 :param headers: 08:13:17 Dictionary of custom headers to send, such as User-Agent, 08:13:17 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:17 these headers completely replace any pool-specific headers. 08:13:17 08:13:17 :param retries: 08:13:17 Configure the number of retries to allow before raising a 08:13:17 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:17 08:13:17 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:17 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:17 over different types of retries. 08:13:17 Pass an integer number to retry connection errors that many times, 08:13:17 but no other types of errors. Pass zero to never retry. 08:13:17 08:13:17 If ``False``, then retries are disabled and any exception is raised 08:13:17 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:17 the redirect response will be returned. 08:13:17 08:13:17 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:17 08:13:17 :param redirect: 08:13:17 If True, automatically handle redirects (status codes 301, 302, 08:13:17 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:17 will disable redirect, too. 08:13:17 08:13:17 :param assert_same_host: 08:13:17 If ``True``, will make sure that the host of the pool requests is 08:13:17 consistent else will raise HostChangedError. When ``False``, you can 08:13:17 use the pool on an HTTP proxy and request foreign hosts. 08:13:17 08:13:17 :param timeout: 08:13:17 If specified, overrides the default timeout for this one 08:13:17 request. It may be a float (in seconds) or an instance of 08:13:17 :class:`urllib3.util.Timeout`. 08:13:17 08:13:17 :param pool_timeout: 08:13:17 If set and the pool is set to block=True, then this method will 08:13:17 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:17 connection is available within the time period. 08:13:17 08:13:17 :param bool preload_content: 08:13:17 If True, the response's body will be preloaded into memory. 08:13:17 08:13:17 :param bool decode_content: 08:13:17 If True, will attempt to decode the body based on the 08:13:17 'content-encoding' header. 08:13:17 08:13:17 :param release_conn: 08:13:17 If False, then the urlopen call will not release the connection 08:13:17 back into the pool once a response is received (but will release if 08:13:17 you read the entire contents of the response such as when 08:13:17 `preload_content=True`). This is useful if you're not preloading 08:13:17 the response's content immediately. You will need to call 08:13:17 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:17 back into the pool. If None, it takes the value of ``preload_content`` 08:13:17 which defaults to ``True``. 08:13:17 08:13:17 :param bool chunked: 08:13:17 If True, urllib3 will send the body using chunked transfer 08:13:17 encoding. Otherwise, urllib3 will send the body using the standard 08:13:17 content-length form. Defaults to False. 08:13:17 08:13:17 :param int body_pos: 08:13:17 Position to seek to in file-like body in the event of a retry or 08:13:17 redirect. Typically this won't need to be set because urllib3 will 08:13:17 auto-populate the value when needed. 08:13:17 """ 08:13:17 parsed_url = parse_url(url) 08:13:17 destination_scheme = parsed_url.scheme 08:13:17 08:13:17 if headers is None: 08:13:17 headers = self.headers 08:13:17 08:13:17 if not isinstance(retries, Retry): 08:13:17 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:17 08:13:17 if release_conn is None: 08:13:17 release_conn = preload_content 08:13:17 08:13:17 # Check host 08:13:17 if assert_same_host and not self.is_same_host(url): 08:13:17 raise HostChangedError(self, url, retries) 08:13:17 08:13:17 # Ensure that the URL we're connecting to is properly encoded 08:13:17 if url.startswith("/"): 08:13:17 url = to_str(_encode_target(url)) 08:13:17 else: 08:13:17 url = to_str(parsed_url.url) 08:13:17 08:13:17 conn = None 08:13:17 08:13:17 # Track whether `conn` needs to be released before 08:13:17 # returning/raising/recursing. Update this variable if necessary, and 08:13:17 # leave `release_conn` constant throughout the function. That way, if 08:13:17 # the function recurses, the original value of `release_conn` will be 08:13:17 # passed down into the recursive call, and its value will be respected. 08:13:17 # 08:13:17 # See issue #651 [1] for details. 08:13:17 # 08:13:17 # [1] 08:13:17 release_this_conn = release_conn 08:13:17 08:13:17 http_tunnel_required = connection_requires_http_tunnel( 08:13:17 self.proxy, self.proxy_config, destination_scheme 08:13:17 ) 08:13:17 08:13:17 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:17 # have to copy the headers dict so we can safely change it without those 08:13:17 # changes being reflected in anyone else's copy. 08:13:17 if not http_tunnel_required: 08:13:17 headers = headers.copy() # type: ignore[attr-defined] 08:13:17 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:17 08:13:17 # Must keep the exception bound to a separate variable or else Python 3 08:13:17 # complains about UnboundLocalError. 08:13:17 err = None 08:13:17 08:13:17 # Keep track of whether we cleanly exited the except block. This 08:13:17 # ensures we do proper cleanup in finally. 08:13:17 clean_exit = False 08:13:17 08:13:17 # Rewind body position, if needed. Record current position 08:13:17 # for future rewinds in the event of a redirect/retry. 08:13:17 body_pos = set_file_position(body, body_pos) 08:13:17 08:13:17 try: 08:13:17 # Request a connection from the queue. 08:13:17 timeout_obj = self._get_timeout(timeout) 08:13:17 conn = self._get_conn(timeout=pool_timeout) 08:13:17 08:13:17 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:17 08:13:17 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:17 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:17 try: 08:13:17 self._prepare_proxy(conn) 08:13:17 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:17 self._raise_timeout( 08:13:17 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:17 ) 08:13:17 raise 08:13:17 08:13:17 # If we're going to release the connection in ``finally:``, then 08:13:17 # the response doesn't need to know about the connection. Otherwise 08:13:17 # it will also try to release it and we'll have a double-release 08:13:17 # mess. 08:13:17 response_conn = conn if not release_conn else None 08:13:17 08:13:17 # Make the request on the HTTPConnection object 08:13:17 > response = self._make_request( 08:13:17 conn, 08:13:17 method, 08:13:17 url, 08:13:17 timeout=timeout_obj, 08:13:17 body=body, 08:13:17 headers=headers, 08:13:17 chunked=chunked, 08:13:17 retries=retries, 08:13:17 response_conn=response_conn, 08:13:17 preload_content=preload_content, 08:13:17 decode_content=decode_content, 08:13:17 **response_kw, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:17 conn.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:17 self.endheaders() 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:17 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:17 self.send(msg) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:17 self.connect() 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:17 self.sock = self._new_conn() 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 except socket.gaierror as e: 08:13:17 raise NameResolutionError(self.host, self, e) from e 08:13:17 except SocketTimeout as e: 08:13:17 raise ConnectTimeoutError( 08:13:17 self, 08:13:17 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:17 ) from e 08:13:17 08:13:17 except OSError as e: 08:13:17 > raise NewConnectionError( 08:13:17 self, f"Failed to establish a new connection: {e}" 08:13:17 ) from e 08:13:17 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 > resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:17 retries = retries.increment( 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2' 08:13:17 response = None 08:13:17 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:17 _pool = 08:13:17 _stacktrace = 08:13:17 08:13:17 def increment( 08:13:17 self, 08:13:17 method: str | None = None, 08:13:17 url: str | None = None, 08:13:17 response: BaseHTTPResponse | None = None, 08:13:17 error: Exception | None = None, 08:13:17 _pool: ConnectionPool | None = None, 08:13:17 _stacktrace: TracebackType | None = None, 08:13:17 ) -> Self: 08:13:17 """Return a new Retry object with incremented retry counters. 08:13:17 08:13:17 :param response: A response object, or None, if the server did not 08:13:17 return a response. 08:13:17 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:17 :param Exception error: An error encountered during the request, or 08:13:17 None if the response was received successfully. 08:13:17 08:13:17 :return: A new ``Retry`` object. 08:13:17 """ 08:13:17 if self.total is False and error: 08:13:17 # Disabled, indicate to re-raise the error. 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 08:13:17 total = self.total 08:13:17 if total is not None: 08:13:17 total -= 1 08:13:17 08:13:17 connect = self.connect 08:13:17 read = self.read 08:13:17 redirect = self.redirect 08:13:17 status_count = self.status 08:13:17 other = self.other 08:13:17 cause = "unknown" 08:13:17 status = None 08:13:17 redirect_location = None 08:13:17 08:13:17 if error and self._is_connection_error(error): 08:13:17 # Connect retry? 08:13:17 if connect is False: 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif connect is not None: 08:13:17 connect -= 1 08:13:17 08:13:17 elif error and self._is_read_error(error): 08:13:17 # Read retry? 08:13:17 if read is False or method is None or not self._is_method_retryable(method): 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif read is not None: 08:13:17 read -= 1 08:13:17 08:13:17 elif error: 08:13:17 # Other retry? 08:13:17 if other is not None: 08:13:17 other -= 1 08:13:17 08:13:17 elif response and response.get_redirect_location(): 08:13:17 # Redirect retry? 08:13:17 if redirect is not None: 08:13:17 redirect -= 1 08:13:17 cause = "too many redirects" 08:13:17 response_redirect_location = response.get_redirect_location() 08:13:17 if response_redirect_location: 08:13:17 redirect_location = response_redirect_location 08:13:17 status = response.status 08:13:17 08:13:17 else: 08:13:17 # Incrementing because of a server error like a 500 in 08:13:17 # status_forcelist and the given method is in the allowed_methods 08:13:17 cause = ResponseError.GENERIC_ERROR 08:13:17 if response and response.status: 08:13:17 if status_count is not None: 08:13:17 status_count -= 1 08:13:17 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:17 status = response.status 08:13:17 08:13:17 history = self.history + ( 08:13:17 RequestHistory(method, url, error, status, redirect_location), 08:13:17 ) 08:13:17 08:13:17 new_retry = self.new( 08:13:17 total=total, 08:13:17 connect=connect, 08:13:17 read=read, 08:13:17 redirect=redirect, 08:13:17 status=status_count, 08:13:17 other=other, 08:13:17 history=history, 08:13:17 ) 08:13:17 08:13:17 if new_retry.is_exhausted(): 08:13:17 reason = error or ResponseError(cause) 08:13:17 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:17 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:17 08:13:17 During handling of the above exception, another exception occurred: 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_11_xpdr_portmapping_NETWORK2(self): 08:13:17 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-NETWORK2") 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:133: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:17 response = get_request(target_url) 08:13:17 transportpce_tests/common/test_utils.py:116: in get_request 08:13:17 return requests.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:17 return session.request(method=method, url=url, **kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:17 resp = self.send(prep, **send_kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:17 r = adapter.send(request, **kwargs) 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 except (ProtocolError, OSError) as err: 08:13:17 raise ConnectionError(err, request=request) 08:13:17 08:13:17 except MaxRetryError as e: 08:13:17 if isinstance(e.reason, ConnectTimeoutError): 08:13:17 # TODO: Remove this in 3.0.0: see #2811 08:13:17 if not isinstance(e.reason, NewConnectionError): 08:13:17 raise ConnectTimeout(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, ResponseError): 08:13:17 raise RetryError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _ProxyError): 08:13:17 raise ProxyError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _SSLError): 08:13:17 # This branch is for urllib3 v1.22 and later. 08:13:17 raise SSLError(e, request=request) 08:13:17 08:13:17 > raise ConnectionError(e, request=request) 08:13:17 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_11_xpdr_portmapping_NETWORK2 08:13:17 _______ TransportPCEPortMappingTesting.test_12_xpdr_portmapping_CLIENT1 ________ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 > sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:17 raise err 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:17 socket_options = [(6, 1, 1)] 08:13:17 08:13:17 def create_connection( 08:13:17 address: tuple[str, int], 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 source_address: tuple[str, int] | None = None, 08:13:17 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:17 ) -> socket.socket: 08:13:17 """Connect to *address* and return the socket object. 08:13:17 08:13:17 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:17 port)``) and return the socket object. Passing the optional 08:13:17 *timeout* parameter will set the timeout on the socket instance 08:13:17 before attempting to connect. If no *timeout* is supplied, the 08:13:17 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:17 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:17 for the socket to bind as a source address before making the connection. 08:13:17 An host of '' or port 0 tells the OS to use the default. 08:13:17 """ 08:13:17 08:13:17 host, port = address 08:13:17 if host.startswith("["): 08:13:17 host = host.strip("[]") 08:13:17 err = None 08:13:17 08:13:17 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:17 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:17 # The original create_connection function always returns all records. 08:13:17 family = allowed_gai_family() 08:13:17 08:13:17 try: 08:13:17 host.encode("idna") 08:13:17 except UnicodeError: 08:13:17 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:17 08:13:17 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:17 af, socktype, proto, canonname, sa = res 08:13:17 sock = None 08:13:17 try: 08:13:17 sock = socket.socket(af, socktype, proto) 08:13:17 08:13:17 # If provided, set socket level options before connecting. 08:13:17 _set_socket_options(sock, socket_options) 08:13:17 08:13:17 if timeout is not _DEFAULT_TIMEOUT: 08:13:17 sock.settimeout(timeout) 08:13:17 if source_address: 08:13:17 sock.bind(source_address) 08:13:17 > sock.connect(sa) 08:13:17 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1' 08:13:17 body = None 08:13:17 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:17 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 redirect = False, assert_same_host = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:17 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:17 decode_content = False, response_kw = {} 08:13:17 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1', query=None, fragment=None) 08:13:17 destination_scheme = None, conn = None, release_this_conn = True 08:13:17 http_tunnel_required = False, err = None, clean_exit = False 08:13:17 08:13:17 def urlopen( # type: ignore[override] 08:13:17 self, 08:13:17 method: str, 08:13:17 url: str, 08:13:17 body: _TYPE_BODY | None = None, 08:13:17 headers: typing.Mapping[str, str] | None = None, 08:13:17 retries: Retry | bool | int | None = None, 08:13:17 redirect: bool = True, 08:13:17 assert_same_host: bool = True, 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 pool_timeout: int | None = None, 08:13:17 release_conn: bool | None = None, 08:13:17 chunked: bool = False, 08:13:17 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:17 preload_content: bool = True, 08:13:17 decode_content: bool = True, 08:13:17 **response_kw: typing.Any, 08:13:17 ) -> BaseHTTPResponse: 08:13:17 """ 08:13:17 Get a connection from the pool and perform an HTTP request. This is the 08:13:17 lowest level call for making a request, so you'll need to specify all 08:13:17 the raw details. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 More commonly, it's appropriate to use a convenience method 08:13:17 such as :meth:`request`. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 `release_conn` will only behave as expected if 08:13:17 `preload_content=False` because we want to make 08:13:17 `preload_content=False` the default behaviour someday soon without 08:13:17 breaking backwards compatibility. 08:13:17 08:13:17 :param method: 08:13:17 HTTP request method (such as GET, POST, PUT, etc.) 08:13:17 08:13:17 :param url: 08:13:17 The URL to perform the request on. 08:13:17 08:13:17 :param body: 08:13:17 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:17 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:17 08:13:17 :param headers: 08:13:17 Dictionary of custom headers to send, such as User-Agent, 08:13:17 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:17 these headers completely replace any pool-specific headers. 08:13:17 08:13:17 :param retries: 08:13:17 Configure the number of retries to allow before raising a 08:13:17 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:17 08:13:17 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:17 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:17 over different types of retries. 08:13:17 Pass an integer number to retry connection errors that many times, 08:13:17 but no other types of errors. Pass zero to never retry. 08:13:17 08:13:17 If ``False``, then retries are disabled and any exception is raised 08:13:17 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:17 the redirect response will be returned. 08:13:17 08:13:17 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:17 08:13:17 :param redirect: 08:13:17 If True, automatically handle redirects (status codes 301, 302, 08:13:17 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:17 will disable redirect, too. 08:13:17 08:13:17 :param assert_same_host: 08:13:17 If ``True``, will make sure that the host of the pool requests is 08:13:17 consistent else will raise HostChangedError. When ``False``, you can 08:13:17 use the pool on an HTTP proxy and request foreign hosts. 08:13:17 08:13:17 :param timeout: 08:13:17 If specified, overrides the default timeout for this one 08:13:17 request. It may be a float (in seconds) or an instance of 08:13:17 :class:`urllib3.util.Timeout`. 08:13:17 08:13:17 :param pool_timeout: 08:13:17 If set and the pool is set to block=True, then this method will 08:13:17 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:17 connection is available within the time period. 08:13:17 08:13:17 :param bool preload_content: 08:13:17 If True, the response's body will be preloaded into memory. 08:13:17 08:13:17 :param bool decode_content: 08:13:17 If True, will attempt to decode the body based on the 08:13:17 'content-encoding' header. 08:13:17 08:13:17 :param release_conn: 08:13:17 If False, then the urlopen call will not release the connection 08:13:17 back into the pool once a response is received (but will release if 08:13:17 you read the entire contents of the response such as when 08:13:17 `preload_content=True`). This is useful if you're not preloading 08:13:17 the response's content immediately. You will need to call 08:13:17 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:17 back into the pool. If None, it takes the value of ``preload_content`` 08:13:17 which defaults to ``True``. 08:13:17 08:13:17 :param bool chunked: 08:13:17 If True, urllib3 will send the body using chunked transfer 08:13:17 encoding. Otherwise, urllib3 will send the body using the standard 08:13:17 content-length form. Defaults to False. 08:13:17 08:13:17 :param int body_pos: 08:13:17 Position to seek to in file-like body in the event of a retry or 08:13:17 redirect. Typically this won't need to be set because urllib3 will 08:13:17 auto-populate the value when needed. 08:13:17 """ 08:13:17 parsed_url = parse_url(url) 08:13:17 destination_scheme = parsed_url.scheme 08:13:17 08:13:17 if headers is None: 08:13:17 headers = self.headers 08:13:17 08:13:17 if not isinstance(retries, Retry): 08:13:17 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:17 08:13:17 if release_conn is None: 08:13:17 release_conn = preload_content 08:13:17 08:13:17 # Check host 08:13:17 if assert_same_host and not self.is_same_host(url): 08:13:17 raise HostChangedError(self, url, retries) 08:13:17 08:13:17 # Ensure that the URL we're connecting to is properly encoded 08:13:17 if url.startswith("/"): 08:13:17 url = to_str(_encode_target(url)) 08:13:17 else: 08:13:17 url = to_str(parsed_url.url) 08:13:17 08:13:17 conn = None 08:13:17 08:13:17 # Track whether `conn` needs to be released before 08:13:17 # returning/raising/recursing. Update this variable if necessary, and 08:13:17 # leave `release_conn` constant throughout the function. That way, if 08:13:17 # the function recurses, the original value of `release_conn` will be 08:13:17 # passed down into the recursive call, and its value will be respected. 08:13:17 # 08:13:17 # See issue #651 [1] for details. 08:13:17 # 08:13:17 # [1] 08:13:17 release_this_conn = release_conn 08:13:17 08:13:17 http_tunnel_required = connection_requires_http_tunnel( 08:13:17 self.proxy, self.proxy_config, destination_scheme 08:13:17 ) 08:13:17 08:13:17 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:17 # have to copy the headers dict so we can safely change it without those 08:13:17 # changes being reflected in anyone else's copy. 08:13:17 if not http_tunnel_required: 08:13:17 headers = headers.copy() # type: ignore[attr-defined] 08:13:17 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:17 08:13:17 # Must keep the exception bound to a separate variable or else Python 3 08:13:17 # complains about UnboundLocalError. 08:13:17 err = None 08:13:17 08:13:17 # Keep track of whether we cleanly exited the except block. This 08:13:17 # ensures we do proper cleanup in finally. 08:13:17 clean_exit = False 08:13:17 08:13:17 # Rewind body position, if needed. Record current position 08:13:17 # for future rewinds in the event of a redirect/retry. 08:13:17 body_pos = set_file_position(body, body_pos) 08:13:17 08:13:17 try: 08:13:17 # Request a connection from the queue. 08:13:17 timeout_obj = self._get_timeout(timeout) 08:13:17 conn = self._get_conn(timeout=pool_timeout) 08:13:17 08:13:17 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:17 08:13:17 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:17 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:17 try: 08:13:17 self._prepare_proxy(conn) 08:13:17 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:17 self._raise_timeout( 08:13:17 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:17 ) 08:13:17 raise 08:13:17 08:13:17 # If we're going to release the connection in ``finally:``, then 08:13:17 # the response doesn't need to know about the connection. Otherwise 08:13:17 # it will also try to release it and we'll have a double-release 08:13:17 # mess. 08:13:17 response_conn = conn if not release_conn else None 08:13:17 08:13:17 # Make the request on the HTTPConnection object 08:13:17 > response = self._make_request( 08:13:17 conn, 08:13:17 method, 08:13:17 url, 08:13:17 timeout=timeout_obj, 08:13:17 body=body, 08:13:17 headers=headers, 08:13:17 chunked=chunked, 08:13:17 retries=retries, 08:13:17 response_conn=response_conn, 08:13:17 preload_content=preload_content, 08:13:17 decode_content=decode_content, 08:13:17 **response_kw, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:17 conn.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:17 self.endheaders() 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:17 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:17 self.send(msg) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:17 self.connect() 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:17 self.sock = self._new_conn() 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 except socket.gaierror as e: 08:13:17 raise NameResolutionError(self.host, self, e) from e 08:13:17 except SocketTimeout as e: 08:13:17 raise ConnectTimeoutError( 08:13:17 self, 08:13:17 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:17 ) from e 08:13:17 08:13:17 except OSError as e: 08:13:17 > raise NewConnectionError( 08:13:17 self, f"Failed to establish a new connection: {e}" 08:13:17 ) from e 08:13:17 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 > resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:17 retries = retries.increment( 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1' 08:13:17 response = None 08:13:17 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:17 _pool = 08:13:17 _stacktrace = 08:13:17 08:13:17 def increment( 08:13:17 self, 08:13:17 method: str | None = None, 08:13:17 url: str | None = None, 08:13:17 response: BaseHTTPResponse | None = None, 08:13:17 error: Exception | None = None, 08:13:17 _pool: ConnectionPool | None = None, 08:13:17 _stacktrace: TracebackType | None = None, 08:13:17 ) -> Self: 08:13:17 """Return a new Retry object with incremented retry counters. 08:13:17 08:13:17 :param response: A response object, or None, if the server did not 08:13:17 return a response. 08:13:17 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:17 :param Exception error: An error encountered during the request, or 08:13:17 None if the response was received successfully. 08:13:17 08:13:17 :return: A new ``Retry`` object. 08:13:17 """ 08:13:17 if self.total is False and error: 08:13:17 # Disabled, indicate to re-raise the error. 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 08:13:17 total = self.total 08:13:17 if total is not None: 08:13:17 total -= 1 08:13:17 08:13:17 connect = self.connect 08:13:17 read = self.read 08:13:17 redirect = self.redirect 08:13:17 status_count = self.status 08:13:17 other = self.other 08:13:17 cause = "unknown" 08:13:17 status = None 08:13:17 redirect_location = None 08:13:17 08:13:17 if error and self._is_connection_error(error): 08:13:17 # Connect retry? 08:13:17 if connect is False: 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif connect is not None: 08:13:17 connect -= 1 08:13:17 08:13:17 elif error and self._is_read_error(error): 08:13:17 # Read retry? 08:13:17 if read is False or method is None or not self._is_method_retryable(method): 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif read is not None: 08:13:17 read -= 1 08:13:17 08:13:17 elif error: 08:13:17 # Other retry? 08:13:17 if other is not None: 08:13:17 other -= 1 08:13:17 08:13:17 elif response and response.get_redirect_location(): 08:13:17 # Redirect retry? 08:13:17 if redirect is not None: 08:13:17 redirect -= 1 08:13:17 cause = "too many redirects" 08:13:17 response_redirect_location = response.get_redirect_location() 08:13:17 if response_redirect_location: 08:13:17 redirect_location = response_redirect_location 08:13:17 status = response.status 08:13:17 08:13:17 else: 08:13:17 # Incrementing because of a server error like a 500 in 08:13:17 # status_forcelist and the given method is in the allowed_methods 08:13:17 cause = ResponseError.GENERIC_ERROR 08:13:17 if response and response.status: 08:13:17 if status_count is not None: 08:13:17 status_count -= 1 08:13:17 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:17 status = response.status 08:13:17 08:13:17 history = self.history + ( 08:13:17 RequestHistory(method, url, error, status, redirect_location), 08:13:17 ) 08:13:17 08:13:17 new_retry = self.new( 08:13:17 total=total, 08:13:17 connect=connect, 08:13:17 read=read, 08:13:17 redirect=redirect, 08:13:17 status=status_count, 08:13:17 other=other, 08:13:17 history=history, 08:13:17 ) 08:13:17 08:13:17 if new_retry.is_exhausted(): 08:13:17 reason = error or ResponseError(cause) 08:13:17 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:17 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:17 08:13:17 During handling of the above exception, another exception occurred: 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_12_xpdr_portmapping_CLIENT1(self): 08:13:17 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT1") 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:144: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:17 response = get_request(target_url) 08:13:17 transportpce_tests/common/test_utils.py:116: in get_request 08:13:17 return requests.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:17 return session.request(method=method, url=url, **kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:17 resp = self.send(prep, **send_kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:17 r = adapter.send(request, **kwargs) 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 except (ProtocolError, OSError) as err: 08:13:17 raise ConnectionError(err, request=request) 08:13:17 08:13:17 except MaxRetryError as e: 08:13:17 if isinstance(e.reason, ConnectTimeoutError): 08:13:17 # TODO: Remove this in 3.0.0: see #2811 08:13:17 if not isinstance(e.reason, NewConnectionError): 08:13:17 raise ConnectTimeout(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, ResponseError): 08:13:17 raise RetryError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _ProxyError): 08:13:17 raise ProxyError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _SSLError): 08:13:17 # This branch is for urllib3 v1.22 and later. 08:13:17 raise SSLError(e, request=request) 08:13:17 08:13:17 > raise ConnectionError(e, request=request) 08:13:17 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_12_xpdr_portmapping_CLIENT1 08:13:17 _______ TransportPCEPortMappingTesting.test_13_xpdr_portmapping_CLIENT2 ________ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 > sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:17 raise err 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:17 socket_options = [(6, 1, 1)] 08:13:17 08:13:17 def create_connection( 08:13:17 address: tuple[str, int], 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 source_address: tuple[str, int] | None = None, 08:13:17 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:17 ) -> socket.socket: 08:13:17 """Connect to *address* and return the socket object. 08:13:17 08:13:17 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:17 port)``) and return the socket object. Passing the optional 08:13:17 *timeout* parameter will set the timeout on the socket instance 08:13:17 before attempting to connect. If no *timeout* is supplied, the 08:13:17 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:17 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:17 for the socket to bind as a source address before making the connection. 08:13:17 An host of '' or port 0 tells the OS to use the default. 08:13:17 """ 08:13:17 08:13:17 host, port = address 08:13:17 if host.startswith("["): 08:13:17 host = host.strip("[]") 08:13:17 err = None 08:13:17 08:13:17 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:17 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:17 # The original create_connection function always returns all records. 08:13:17 family = allowed_gai_family() 08:13:17 08:13:17 try: 08:13:17 host.encode("idna") 08:13:17 except UnicodeError: 08:13:17 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:17 08:13:17 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:17 af, socktype, proto, canonname, sa = res 08:13:17 sock = None 08:13:17 try: 08:13:17 sock = socket.socket(af, socktype, proto) 08:13:17 08:13:17 # If provided, set socket level options before connecting. 08:13:17 _set_socket_options(sock, socket_options) 08:13:17 08:13:17 if timeout is not _DEFAULT_TIMEOUT: 08:13:17 sock.settimeout(timeout) 08:13:17 if source_address: 08:13:17 sock.bind(source_address) 08:13:17 > sock.connect(sa) 08:13:17 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2' 08:13:17 body = None 08:13:17 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:17 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 redirect = False, assert_same_host = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:17 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:17 decode_content = False, response_kw = {} 08:13:17 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2', query=None, fragment=None) 08:13:17 destination_scheme = None, conn = None, release_this_conn = True 08:13:17 http_tunnel_required = False, err = None, clean_exit = False 08:13:17 08:13:17 def urlopen( # type: ignore[override] 08:13:17 self, 08:13:17 method: str, 08:13:17 url: str, 08:13:17 body: _TYPE_BODY | None = None, 08:13:17 headers: typing.Mapping[str, str] | None = None, 08:13:17 retries: Retry | bool | int | None = None, 08:13:17 redirect: bool = True, 08:13:17 assert_same_host: bool = True, 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 pool_timeout: int | None = None, 08:13:17 release_conn: bool | None = None, 08:13:17 chunked: bool = False, 08:13:17 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:17 preload_content: bool = True, 08:13:17 decode_content: bool = True, 08:13:17 **response_kw: typing.Any, 08:13:17 ) -> BaseHTTPResponse: 08:13:17 """ 08:13:17 Get a connection from the pool and perform an HTTP request. This is the 08:13:17 lowest level call for making a request, so you'll need to specify all 08:13:17 the raw details. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 More commonly, it's appropriate to use a convenience method 08:13:17 such as :meth:`request`. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 `release_conn` will only behave as expected if 08:13:17 `preload_content=False` because we want to make 08:13:17 `preload_content=False` the default behaviour someday soon without 08:13:17 breaking backwards compatibility. 08:13:17 08:13:17 :param method: 08:13:17 HTTP request method (such as GET, POST, PUT, etc.) 08:13:17 08:13:17 :param url: 08:13:17 The URL to perform the request on. 08:13:17 08:13:17 :param body: 08:13:17 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:17 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:17 08:13:17 :param headers: 08:13:17 Dictionary of custom headers to send, such as User-Agent, 08:13:17 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:17 these headers completely replace any pool-specific headers. 08:13:17 08:13:17 :param retries: 08:13:17 Configure the number of retries to allow before raising a 08:13:17 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:17 08:13:17 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:17 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:17 over different types of retries. 08:13:17 Pass an integer number to retry connection errors that many times, 08:13:17 but no other types of errors. Pass zero to never retry. 08:13:17 08:13:17 If ``False``, then retries are disabled and any exception is raised 08:13:17 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:17 the redirect response will be returned. 08:13:17 08:13:17 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:17 08:13:17 :param redirect: 08:13:17 If True, automatically handle redirects (status codes 301, 302, 08:13:17 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:17 will disable redirect, too. 08:13:17 08:13:17 :param assert_same_host: 08:13:17 If ``True``, will make sure that the host of the pool requests is 08:13:17 consistent else will raise HostChangedError. When ``False``, you can 08:13:17 use the pool on an HTTP proxy and request foreign hosts. 08:13:17 08:13:17 :param timeout: 08:13:17 If specified, overrides the default timeout for this one 08:13:17 request. It may be a float (in seconds) or an instance of 08:13:17 :class:`urllib3.util.Timeout`. 08:13:17 08:13:17 :param pool_timeout: 08:13:17 If set and the pool is set to block=True, then this method will 08:13:17 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:17 connection is available within the time period. 08:13:17 08:13:17 :param bool preload_content: 08:13:17 If True, the response's body will be preloaded into memory. 08:13:17 08:13:17 :param bool decode_content: 08:13:17 If True, will attempt to decode the body based on the 08:13:17 'content-encoding' header. 08:13:17 08:13:17 :param release_conn: 08:13:17 If False, then the urlopen call will not release the connection 08:13:17 back into the pool once a response is received (but will release if 08:13:17 you read the entire contents of the response such as when 08:13:17 `preload_content=True`). This is useful if you're not preloading 08:13:17 the response's content immediately. You will need to call 08:13:17 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:17 back into the pool. If None, it takes the value of ``preload_content`` 08:13:17 which defaults to ``True``. 08:13:17 08:13:17 :param bool chunked: 08:13:17 If True, urllib3 will send the body using chunked transfer 08:13:17 encoding. Otherwise, urllib3 will send the body using the standard 08:13:17 content-length form. Defaults to False. 08:13:17 08:13:17 :param int body_pos: 08:13:17 Position to seek to in file-like body in the event of a retry or 08:13:17 redirect. Typically this won't need to be set because urllib3 will 08:13:17 auto-populate the value when needed. 08:13:17 """ 08:13:17 parsed_url = parse_url(url) 08:13:17 destination_scheme = parsed_url.scheme 08:13:17 08:13:17 if headers is None: 08:13:17 headers = self.headers 08:13:17 08:13:17 if not isinstance(retries, Retry): 08:13:17 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:17 08:13:17 if release_conn is None: 08:13:17 release_conn = preload_content 08:13:17 08:13:17 # Check host 08:13:17 if assert_same_host and not self.is_same_host(url): 08:13:17 raise HostChangedError(self, url, retries) 08:13:17 08:13:17 # Ensure that the URL we're connecting to is properly encoded 08:13:17 if url.startswith("/"): 08:13:17 url = to_str(_encode_target(url)) 08:13:17 else: 08:13:17 url = to_str(parsed_url.url) 08:13:17 08:13:17 conn = None 08:13:17 08:13:17 # Track whether `conn` needs to be released before 08:13:17 # returning/raising/recursing. Update this variable if necessary, and 08:13:17 # leave `release_conn` constant throughout the function. That way, if 08:13:17 # the function recurses, the original value of `release_conn` will be 08:13:17 # passed down into the recursive call, and its value will be respected. 08:13:17 # 08:13:17 # See issue #651 [1] for details. 08:13:17 # 08:13:17 # [1] 08:13:17 release_this_conn = release_conn 08:13:17 08:13:17 http_tunnel_required = connection_requires_http_tunnel( 08:13:17 self.proxy, self.proxy_config, destination_scheme 08:13:17 ) 08:13:17 08:13:17 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:17 # have to copy the headers dict so we can safely change it without those 08:13:17 # changes being reflected in anyone else's copy. 08:13:17 if not http_tunnel_required: 08:13:17 headers = headers.copy() # type: ignore[attr-defined] 08:13:17 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:17 08:13:17 # Must keep the exception bound to a separate variable or else Python 3 08:13:17 # complains about UnboundLocalError. 08:13:17 err = None 08:13:17 08:13:17 # Keep track of whether we cleanly exited the except block. This 08:13:17 # ensures we do proper cleanup in finally. 08:13:17 clean_exit = False 08:13:17 08:13:17 # Rewind body position, if needed. Record current position 08:13:17 # for future rewinds in the event of a redirect/retry. 08:13:17 body_pos = set_file_position(body, body_pos) 08:13:17 08:13:17 try: 08:13:17 # Request a connection from the queue. 08:13:17 timeout_obj = self._get_timeout(timeout) 08:13:17 conn = self._get_conn(timeout=pool_timeout) 08:13:17 08:13:17 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:17 08:13:17 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:17 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:17 try: 08:13:17 self._prepare_proxy(conn) 08:13:17 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:17 self._raise_timeout( 08:13:17 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:17 ) 08:13:17 raise 08:13:17 08:13:17 # If we're going to release the connection in ``finally:``, then 08:13:17 # the response doesn't need to know about the connection. Otherwise 08:13:17 # it will also try to release it and we'll have a double-release 08:13:17 # mess. 08:13:17 response_conn = conn if not release_conn else None 08:13:17 08:13:17 # Make the request on the HTTPConnection object 08:13:17 > response = self._make_request( 08:13:17 conn, 08:13:17 method, 08:13:17 url, 08:13:17 timeout=timeout_obj, 08:13:17 body=body, 08:13:17 headers=headers, 08:13:17 chunked=chunked, 08:13:17 retries=retries, 08:13:17 response_conn=response_conn, 08:13:17 preload_content=preload_content, 08:13:17 decode_content=decode_content, 08:13:17 **response_kw, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:17 conn.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:17 self.endheaders() 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:17 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:17 self.send(msg) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:17 self.connect() 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:17 self.sock = self._new_conn() 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 except socket.gaierror as e: 08:13:17 raise NameResolutionError(self.host, self, e) from e 08:13:17 except SocketTimeout as e: 08:13:17 raise ConnectTimeoutError( 08:13:17 self, 08:13:17 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:17 ) from e 08:13:17 08:13:17 except OSError as e: 08:13:17 > raise NewConnectionError( 08:13:17 self, f"Failed to establish a new connection: {e}" 08:13:17 ) from e 08:13:17 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 > resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:17 retries = retries.increment( 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2' 08:13:17 response = None 08:13:17 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:17 _pool = 08:13:17 _stacktrace = 08:13:17 08:13:17 def increment( 08:13:17 self, 08:13:17 method: str | None = None, 08:13:17 url: str | None = None, 08:13:17 response: BaseHTTPResponse | None = None, 08:13:17 error: Exception | None = None, 08:13:17 _pool: ConnectionPool | None = None, 08:13:17 _stacktrace: TracebackType | None = None, 08:13:17 ) -> Self: 08:13:17 """Return a new Retry object with incremented retry counters. 08:13:17 08:13:17 :param response: A response object, or None, if the server did not 08:13:17 return a response. 08:13:17 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:17 :param Exception error: An error encountered during the request, or 08:13:17 None if the response was received successfully. 08:13:17 08:13:17 :return: A new ``Retry`` object. 08:13:17 """ 08:13:17 if self.total is False and error: 08:13:17 # Disabled, indicate to re-raise the error. 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 08:13:17 total = self.total 08:13:17 if total is not None: 08:13:17 total -= 1 08:13:17 08:13:17 connect = self.connect 08:13:17 read = self.read 08:13:17 redirect = self.redirect 08:13:17 status_count = self.status 08:13:17 other = self.other 08:13:17 cause = "unknown" 08:13:17 status = None 08:13:17 redirect_location = None 08:13:17 08:13:17 if error and self._is_connection_error(error): 08:13:17 # Connect retry? 08:13:17 if connect is False: 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif connect is not None: 08:13:17 connect -= 1 08:13:17 08:13:17 elif error and self._is_read_error(error): 08:13:17 # Read retry? 08:13:17 if read is False or method is None or not self._is_method_retryable(method): 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif read is not None: 08:13:17 read -= 1 08:13:17 08:13:17 elif error: 08:13:17 # Other retry? 08:13:17 if other is not None: 08:13:17 other -= 1 08:13:17 08:13:17 elif response and response.get_redirect_location(): 08:13:17 # Redirect retry? 08:13:17 if redirect is not None: 08:13:17 redirect -= 1 08:13:17 cause = "too many redirects" 08:13:17 response_redirect_location = response.get_redirect_location() 08:13:17 if response_redirect_location: 08:13:17 redirect_location = response_redirect_location 08:13:17 status = response.status 08:13:17 08:13:17 else: 08:13:17 # Incrementing because of a server error like a 500 in 08:13:17 # status_forcelist and the given method is in the allowed_methods 08:13:17 cause = ResponseError.GENERIC_ERROR 08:13:17 if response and response.status: 08:13:17 if status_count is not None: 08:13:17 status_count -= 1 08:13:17 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:17 status = response.status 08:13:17 08:13:17 history = self.history + ( 08:13:17 RequestHistory(method, url, error, status, redirect_location), 08:13:17 ) 08:13:17 08:13:17 new_retry = self.new( 08:13:17 total=total, 08:13:17 connect=connect, 08:13:17 read=read, 08:13:17 redirect=redirect, 08:13:17 status=status_count, 08:13:17 other=other, 08:13:17 history=history, 08:13:17 ) 08:13:17 08:13:17 if new_retry.is_exhausted(): 08:13:17 reason = error or ResponseError(cause) 08:13:17 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:17 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:17 08:13:17 During handling of the above exception, another exception occurred: 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_13_xpdr_portmapping_CLIENT2(self): 08:13:17 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT2") 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:156: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:17 response = get_request(target_url) 08:13:17 transportpce_tests/common/test_utils.py:116: in get_request 08:13:17 return requests.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:17 return session.request(method=method, url=url, **kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:17 resp = self.send(prep, **send_kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:17 r = adapter.send(request, **kwargs) 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 except (ProtocolError, OSError) as err: 08:13:17 raise ConnectionError(err, request=request) 08:13:17 08:13:17 except MaxRetryError as e: 08:13:17 if isinstance(e.reason, ConnectTimeoutError): 08:13:17 # TODO: Remove this in 3.0.0: see #2811 08:13:17 if not isinstance(e.reason, NewConnectionError): 08:13:17 raise ConnectTimeout(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, ResponseError): 08:13:17 raise RetryError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _ProxyError): 08:13:17 raise ProxyError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _SSLError): 08:13:17 # This branch is for urllib3 v1.22 and later. 08:13:17 raise SSLError(e, request=request) 08:13:17 08:13:17 > raise ConnectionError(e, request=request) 08:13:17 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_13_xpdr_portmapping_CLIENT2 08:13:17 _______ TransportPCEPortMappingTesting.test_14_xpdr_portmapping_CLIENT3 ________ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 > sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:17 raise err 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:17 socket_options = [(6, 1, 1)] 08:13:17 08:13:17 def create_connection( 08:13:17 address: tuple[str, int], 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 source_address: tuple[str, int] | None = None, 08:13:17 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:17 ) -> socket.socket: 08:13:17 """Connect to *address* and return the socket object. 08:13:17 08:13:17 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:17 port)``) and return the socket object. Passing the optional 08:13:17 *timeout* parameter will set the timeout on the socket instance 08:13:17 before attempting to connect. If no *timeout* is supplied, the 08:13:17 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:17 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:17 for the socket to bind as a source address before making the connection. 08:13:17 An host of '' or port 0 tells the OS to use the default. 08:13:17 """ 08:13:17 08:13:17 host, port = address 08:13:17 if host.startswith("["): 08:13:17 host = host.strip("[]") 08:13:17 err = None 08:13:17 08:13:17 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:17 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:17 # The original create_connection function always returns all records. 08:13:17 family = allowed_gai_family() 08:13:17 08:13:17 try: 08:13:17 host.encode("idna") 08:13:17 except UnicodeError: 08:13:17 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:17 08:13:17 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:17 af, socktype, proto, canonname, sa = res 08:13:17 sock = None 08:13:17 try: 08:13:17 sock = socket.socket(af, socktype, proto) 08:13:17 08:13:17 # If provided, set socket level options before connecting. 08:13:17 _set_socket_options(sock, socket_options) 08:13:17 08:13:17 if timeout is not _DEFAULT_TIMEOUT: 08:13:17 sock.settimeout(timeout) 08:13:17 if source_address: 08:13:17 sock.bind(source_address) 08:13:17 > sock.connect(sa) 08:13:17 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3' 08:13:17 body = None 08:13:17 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:17 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 redirect = False, assert_same_host = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:17 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:17 decode_content = False, response_kw = {} 08:13:17 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3', query=None, fragment=None) 08:13:17 destination_scheme = None, conn = None, release_this_conn = True 08:13:17 http_tunnel_required = False, err = None, clean_exit = False 08:13:17 08:13:17 def urlopen( # type: ignore[override] 08:13:17 self, 08:13:17 method: str, 08:13:17 url: str, 08:13:17 body: _TYPE_BODY | None = None, 08:13:17 headers: typing.Mapping[str, str] | None = None, 08:13:17 retries: Retry | bool | int | None = None, 08:13:17 redirect: bool = True, 08:13:17 assert_same_host: bool = True, 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 pool_timeout: int | None = None, 08:13:17 release_conn: bool | None = None, 08:13:17 chunked: bool = False, 08:13:17 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:17 preload_content: bool = True, 08:13:17 decode_content: bool = True, 08:13:17 **response_kw: typing.Any, 08:13:17 ) -> BaseHTTPResponse: 08:13:17 """ 08:13:17 Get a connection from the pool and perform an HTTP request. This is the 08:13:17 lowest level call for making a request, so you'll need to specify all 08:13:17 the raw details. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 More commonly, it's appropriate to use a convenience method 08:13:17 such as :meth:`request`. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 `release_conn` will only behave as expected if 08:13:17 `preload_content=False` because we want to make 08:13:17 `preload_content=False` the default behaviour someday soon without 08:13:17 breaking backwards compatibility. 08:13:17 08:13:17 :param method: 08:13:17 HTTP request method (such as GET, POST, PUT, etc.) 08:13:17 08:13:17 :param url: 08:13:17 The URL to perform the request on. 08:13:17 08:13:17 :param body: 08:13:17 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:17 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:17 08:13:17 :param headers: 08:13:17 Dictionary of custom headers to send, such as User-Agent, 08:13:17 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:17 these headers completely replace any pool-specific headers. 08:13:17 08:13:17 :param retries: 08:13:17 Configure the number of retries to allow before raising a 08:13:17 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:17 08:13:17 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:17 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:17 over different types of retries. 08:13:17 Pass an integer number to retry connection errors that many times, 08:13:17 but no other types of errors. Pass zero to never retry. 08:13:17 08:13:17 If ``False``, then retries are disabled and any exception is raised 08:13:17 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:17 the redirect response will be returned. 08:13:17 08:13:17 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:17 08:13:17 :param redirect: 08:13:17 If True, automatically handle redirects (status codes 301, 302, 08:13:17 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:17 will disable redirect, too. 08:13:17 08:13:17 :param assert_same_host: 08:13:17 If ``True``, will make sure that the host of the pool requests is 08:13:17 consistent else will raise HostChangedError. When ``False``, you can 08:13:17 use the pool on an HTTP proxy and request foreign hosts. 08:13:17 08:13:17 :param timeout: 08:13:17 If specified, overrides the default timeout for this one 08:13:17 request. It may be a float (in seconds) or an instance of 08:13:17 :class:`urllib3.util.Timeout`. 08:13:17 08:13:17 :param pool_timeout: 08:13:17 If set and the pool is set to block=True, then this method will 08:13:17 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:17 connection is available within the time period. 08:13:17 08:13:17 :param bool preload_content: 08:13:17 If True, the response's body will be preloaded into memory. 08:13:17 08:13:17 :param bool decode_content: 08:13:17 If True, will attempt to decode the body based on the 08:13:17 'content-encoding' header. 08:13:17 08:13:17 :param release_conn: 08:13:17 If False, then the urlopen call will not release the connection 08:13:17 back into the pool once a response is received (but will release if 08:13:17 you read the entire contents of the response such as when 08:13:17 `preload_content=True`). This is useful if you're not preloading 08:13:17 the response's content immediately. You will need to call 08:13:17 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:17 back into the pool. If None, it takes the value of ``preload_content`` 08:13:17 which defaults to ``True``. 08:13:17 08:13:17 :param bool chunked: 08:13:17 If True, urllib3 will send the body using chunked transfer 08:13:17 encoding. Otherwise, urllib3 will send the body using the standard 08:13:17 content-length form. Defaults to False. 08:13:17 08:13:17 :param int body_pos: 08:13:17 Position to seek to in file-like body in the event of a retry or 08:13:17 redirect. Typically this won't need to be set because urllib3 will 08:13:17 auto-populate the value when needed. 08:13:17 """ 08:13:17 parsed_url = parse_url(url) 08:13:17 destination_scheme = parsed_url.scheme 08:13:17 08:13:17 if headers is None: 08:13:17 headers = self.headers 08:13:17 08:13:17 if not isinstance(retries, Retry): 08:13:17 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:17 08:13:17 if release_conn is None: 08:13:17 release_conn = preload_content 08:13:17 08:13:17 # Check host 08:13:17 if assert_same_host and not self.is_same_host(url): 08:13:17 raise HostChangedError(self, url, retries) 08:13:17 08:13:17 # Ensure that the URL we're connecting to is properly encoded 08:13:17 if url.startswith("/"): 08:13:17 url = to_str(_encode_target(url)) 08:13:17 else: 08:13:17 url = to_str(parsed_url.url) 08:13:17 08:13:17 conn = None 08:13:17 08:13:17 # Track whether `conn` needs to be released before 08:13:17 # returning/raising/recursing. Update this variable if necessary, and 08:13:17 # leave `release_conn` constant throughout the function. That way, if 08:13:17 # the function recurses, the original value of `release_conn` will be 08:13:17 # passed down into the recursive call, and its value will be respected. 08:13:17 # 08:13:17 # See issue #651 [1] for details. 08:13:17 # 08:13:17 # [1] 08:13:17 release_this_conn = release_conn 08:13:17 08:13:17 http_tunnel_required = connection_requires_http_tunnel( 08:13:17 self.proxy, self.proxy_config, destination_scheme 08:13:17 ) 08:13:17 08:13:17 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:17 # have to copy the headers dict so we can safely change it without those 08:13:17 # changes being reflected in anyone else's copy. 08:13:17 if not http_tunnel_required: 08:13:17 headers = headers.copy() # type: ignore[attr-defined] 08:13:17 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:17 08:13:17 # Must keep the exception bound to a separate variable or else Python 3 08:13:17 # complains about UnboundLocalError. 08:13:17 err = None 08:13:17 08:13:17 # Keep track of whether we cleanly exited the except block. This 08:13:17 # ensures we do proper cleanup in finally. 08:13:17 clean_exit = False 08:13:17 08:13:17 # Rewind body position, if needed. Record current position 08:13:17 # for future rewinds in the event of a redirect/retry. 08:13:17 body_pos = set_file_position(body, body_pos) 08:13:17 08:13:17 try: 08:13:17 # Request a connection from the queue. 08:13:17 timeout_obj = self._get_timeout(timeout) 08:13:17 conn = self._get_conn(timeout=pool_timeout) 08:13:17 08:13:17 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:17 08:13:17 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:17 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:17 try: 08:13:17 self._prepare_proxy(conn) 08:13:17 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:17 self._raise_timeout( 08:13:17 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:17 ) 08:13:17 raise 08:13:17 08:13:17 # If we're going to release the connection in ``finally:``, then 08:13:17 # the response doesn't need to know about the connection. Otherwise 08:13:17 # it will also try to release it and we'll have a double-release 08:13:17 # mess. 08:13:17 response_conn = conn if not release_conn else None 08:13:17 08:13:17 # Make the request on the HTTPConnection object 08:13:17 > response = self._make_request( 08:13:17 conn, 08:13:17 method, 08:13:17 url, 08:13:17 timeout=timeout_obj, 08:13:17 body=body, 08:13:17 headers=headers, 08:13:17 chunked=chunked, 08:13:17 retries=retries, 08:13:17 response_conn=response_conn, 08:13:17 preload_content=preload_content, 08:13:17 decode_content=decode_content, 08:13:17 **response_kw, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:17 conn.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:17 self.endheaders() 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:17 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:17 self.send(msg) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:17 self.connect() 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:17 self.sock = self._new_conn() 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 except socket.gaierror as e: 08:13:17 raise NameResolutionError(self.host, self, e) from e 08:13:17 except SocketTimeout as e: 08:13:17 raise ConnectTimeoutError( 08:13:17 self, 08:13:17 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:17 ) from e 08:13:17 08:13:17 except OSError as e: 08:13:17 > raise NewConnectionError( 08:13:17 self, f"Failed to establish a new connection: {e}" 08:13:17 ) from e 08:13:17 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 > resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:17 retries = retries.increment( 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3' 08:13:17 response = None 08:13:17 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:17 _pool = 08:13:17 _stacktrace = 08:13:17 08:13:17 def increment( 08:13:17 self, 08:13:17 method: str | None = None, 08:13:17 url: str | None = None, 08:13:17 response: BaseHTTPResponse | None = None, 08:13:17 error: Exception | None = None, 08:13:17 _pool: ConnectionPool | None = None, 08:13:17 _stacktrace: TracebackType | None = None, 08:13:17 ) -> Self: 08:13:17 """Return a new Retry object with incremented retry counters. 08:13:17 08:13:17 :param response: A response object, or None, if the server did not 08:13:17 return a response. 08:13:17 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:17 :param Exception error: An error encountered during the request, or 08:13:17 None if the response was received successfully. 08:13:17 08:13:17 :return: A new ``Retry`` object. 08:13:17 """ 08:13:17 if self.total is False and error: 08:13:17 # Disabled, indicate to re-raise the error. 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 08:13:17 total = self.total 08:13:17 if total is not None: 08:13:17 total -= 1 08:13:17 08:13:17 connect = self.connect 08:13:17 read = self.read 08:13:17 redirect = self.redirect 08:13:17 status_count = self.status 08:13:17 other = self.other 08:13:17 cause = "unknown" 08:13:17 status = None 08:13:17 redirect_location = None 08:13:17 08:13:17 if error and self._is_connection_error(error): 08:13:17 # Connect retry? 08:13:17 if connect is False: 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif connect is not None: 08:13:17 connect -= 1 08:13:17 08:13:17 elif error and self._is_read_error(error): 08:13:17 # Read retry? 08:13:17 if read is False or method is None or not self._is_method_retryable(method): 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif read is not None: 08:13:17 read -= 1 08:13:17 08:13:17 elif error: 08:13:17 # Other retry? 08:13:17 if other is not None: 08:13:17 other -= 1 08:13:17 08:13:17 elif response and response.get_redirect_location(): 08:13:17 # Redirect retry? 08:13:17 if redirect is not None: 08:13:17 redirect -= 1 08:13:17 cause = "too many redirects" 08:13:17 response_redirect_location = response.get_redirect_location() 08:13:17 if response_redirect_location: 08:13:17 redirect_location = response_redirect_location 08:13:17 status = response.status 08:13:17 08:13:17 else: 08:13:17 # Incrementing because of a server error like a 500 in 08:13:17 # status_forcelist and the given method is in the allowed_methods 08:13:17 cause = ResponseError.GENERIC_ERROR 08:13:17 if response and response.status: 08:13:17 if status_count is not None: 08:13:17 status_count -= 1 08:13:17 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:17 status = response.status 08:13:17 08:13:17 history = self.history + ( 08:13:17 RequestHistory(method, url, error, status, redirect_location), 08:13:17 ) 08:13:17 08:13:17 new_retry = self.new( 08:13:17 total=total, 08:13:17 connect=connect, 08:13:17 read=read, 08:13:17 redirect=redirect, 08:13:17 status=status_count, 08:13:17 other=other, 08:13:17 history=history, 08:13:17 ) 08:13:17 08:13:17 if new_retry.is_exhausted(): 08:13:17 reason = error or ResponseError(cause) 08:13:17 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:17 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:17 08:13:17 During handling of the above exception, another exception occurred: 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_14_xpdr_portmapping_CLIENT3(self): 08:13:17 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT3") 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:168: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:17 response = get_request(target_url) 08:13:17 transportpce_tests/common/test_utils.py:116: in get_request 08:13:17 return requests.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:17 return session.request(method=method, url=url, **kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:17 resp = self.send(prep, **send_kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:17 r = adapter.send(request, **kwargs) 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 except (ProtocolError, OSError) as err: 08:13:17 raise ConnectionError(err, request=request) 08:13:17 08:13:17 except MaxRetryError as e: 08:13:17 if isinstance(e.reason, ConnectTimeoutError): 08:13:17 # TODO: Remove this in 3.0.0: see #2811 08:13:17 if not isinstance(e.reason, NewConnectionError): 08:13:17 raise ConnectTimeout(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, ResponseError): 08:13:17 raise RetryError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _ProxyError): 08:13:17 raise ProxyError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _SSLError): 08:13:17 # This branch is for urllib3 v1.22 and later. 08:13:17 raise SSLError(e, request=request) 08:13:17 08:13:17 > raise ConnectionError(e, request=request) 08:13:17 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_14_xpdr_portmapping_CLIENT3 08:13:17 _______ TransportPCEPortMappingTesting.test_15_xpdr_portmapping_CLIENT4 ________ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 > sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:17 raise err 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:17 socket_options = [(6, 1, 1)] 08:13:17 08:13:17 def create_connection( 08:13:17 address: tuple[str, int], 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 source_address: tuple[str, int] | None = None, 08:13:17 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:17 ) -> socket.socket: 08:13:17 """Connect to *address* and return the socket object. 08:13:17 08:13:17 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:17 port)``) and return the socket object. Passing the optional 08:13:17 *timeout* parameter will set the timeout on the socket instance 08:13:17 before attempting to connect. If no *timeout* is supplied, the 08:13:17 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:17 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:17 for the socket to bind as a source address before making the connection. 08:13:17 An host of '' or port 0 tells the OS to use the default. 08:13:17 """ 08:13:17 08:13:17 host, port = address 08:13:17 if host.startswith("["): 08:13:17 host = host.strip("[]") 08:13:17 err = None 08:13:17 08:13:17 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:17 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:17 # The original create_connection function always returns all records. 08:13:17 family = allowed_gai_family() 08:13:17 08:13:17 try: 08:13:17 host.encode("idna") 08:13:17 except UnicodeError: 08:13:17 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:17 08:13:17 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:17 af, socktype, proto, canonname, sa = res 08:13:17 sock = None 08:13:17 try: 08:13:17 sock = socket.socket(af, socktype, proto) 08:13:17 08:13:17 # If provided, set socket level options before connecting. 08:13:17 _set_socket_options(sock, socket_options) 08:13:17 08:13:17 if timeout is not _DEFAULT_TIMEOUT: 08:13:17 sock.settimeout(timeout) 08:13:17 if source_address: 08:13:17 sock.bind(source_address) 08:13:17 > sock.connect(sa) 08:13:17 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4' 08:13:17 body = None 08:13:17 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:17 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 redirect = False, assert_same_host = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:17 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:17 decode_content = False, response_kw = {} 08:13:17 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4', query=None, fragment=None) 08:13:17 destination_scheme = None, conn = None, release_this_conn = True 08:13:17 http_tunnel_required = False, err = None, clean_exit = False 08:13:17 08:13:17 def urlopen( # type: ignore[override] 08:13:17 self, 08:13:17 method: str, 08:13:17 url: str, 08:13:17 body: _TYPE_BODY | None = None, 08:13:17 headers: typing.Mapping[str, str] | None = None, 08:13:17 retries: Retry | bool | int | None = None, 08:13:17 redirect: bool = True, 08:13:17 assert_same_host: bool = True, 08:13:17 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:17 pool_timeout: int | None = None, 08:13:17 release_conn: bool | None = None, 08:13:17 chunked: bool = False, 08:13:17 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:17 preload_content: bool = True, 08:13:17 decode_content: bool = True, 08:13:17 **response_kw: typing.Any, 08:13:17 ) -> BaseHTTPResponse: 08:13:17 """ 08:13:17 Get a connection from the pool and perform an HTTP request. This is the 08:13:17 lowest level call for making a request, so you'll need to specify all 08:13:17 the raw details. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 More commonly, it's appropriate to use a convenience method 08:13:17 such as :meth:`request`. 08:13:17 08:13:17 .. note:: 08:13:17 08:13:17 `release_conn` will only behave as expected if 08:13:17 `preload_content=False` because we want to make 08:13:17 `preload_content=False` the default behaviour someday soon without 08:13:17 breaking backwards compatibility. 08:13:17 08:13:17 :param method: 08:13:17 HTTP request method (such as GET, POST, PUT, etc.) 08:13:17 08:13:17 :param url: 08:13:17 The URL to perform the request on. 08:13:17 08:13:17 :param body: 08:13:17 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:17 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:17 08:13:17 :param headers: 08:13:17 Dictionary of custom headers to send, such as User-Agent, 08:13:17 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:17 these headers completely replace any pool-specific headers. 08:13:17 08:13:17 :param retries: 08:13:17 Configure the number of retries to allow before raising a 08:13:17 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:17 08:13:17 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:17 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:17 over different types of retries. 08:13:17 Pass an integer number to retry connection errors that many times, 08:13:17 but no other types of errors. Pass zero to never retry. 08:13:17 08:13:17 If ``False``, then retries are disabled and any exception is raised 08:13:17 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:17 the redirect response will be returned. 08:13:17 08:13:17 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:17 08:13:17 :param redirect: 08:13:17 If True, automatically handle redirects (status codes 301, 302, 08:13:17 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:17 will disable redirect, too. 08:13:17 08:13:17 :param assert_same_host: 08:13:17 If ``True``, will make sure that the host of the pool requests is 08:13:17 consistent else will raise HostChangedError. When ``False``, you can 08:13:17 use the pool on an HTTP proxy and request foreign hosts. 08:13:17 08:13:17 :param timeout: 08:13:17 If specified, overrides the default timeout for this one 08:13:17 request. It may be a float (in seconds) or an instance of 08:13:17 :class:`urllib3.util.Timeout`. 08:13:17 08:13:17 :param pool_timeout: 08:13:17 If set and the pool is set to block=True, then this method will 08:13:17 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:17 connection is available within the time period. 08:13:17 08:13:17 :param bool preload_content: 08:13:17 If True, the response's body will be preloaded into memory. 08:13:17 08:13:17 :param bool decode_content: 08:13:17 If True, will attempt to decode the body based on the 08:13:17 'content-encoding' header. 08:13:17 08:13:17 :param release_conn: 08:13:17 If False, then the urlopen call will not release the connection 08:13:17 back into the pool once a response is received (but will release if 08:13:17 you read the entire contents of the response such as when 08:13:17 `preload_content=True`). This is useful if you're not preloading 08:13:17 the response's content immediately. You will need to call 08:13:17 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:17 back into the pool. If None, it takes the value of ``preload_content`` 08:13:17 which defaults to ``True``. 08:13:17 08:13:17 :param bool chunked: 08:13:17 If True, urllib3 will send the body using chunked transfer 08:13:17 encoding. Otherwise, urllib3 will send the body using the standard 08:13:17 content-length form. Defaults to False. 08:13:17 08:13:17 :param int body_pos: 08:13:17 Position to seek to in file-like body in the event of a retry or 08:13:17 redirect. Typically this won't need to be set because urllib3 will 08:13:17 auto-populate the value when needed. 08:13:17 """ 08:13:17 parsed_url = parse_url(url) 08:13:17 destination_scheme = parsed_url.scheme 08:13:17 08:13:17 if headers is None: 08:13:17 headers = self.headers 08:13:17 08:13:17 if not isinstance(retries, Retry): 08:13:17 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:17 08:13:17 if release_conn is None: 08:13:17 release_conn = preload_content 08:13:17 08:13:17 # Check host 08:13:17 if assert_same_host and not self.is_same_host(url): 08:13:17 raise HostChangedError(self, url, retries) 08:13:17 08:13:17 # Ensure that the URL we're connecting to is properly encoded 08:13:17 if url.startswith("/"): 08:13:17 url = to_str(_encode_target(url)) 08:13:17 else: 08:13:17 url = to_str(parsed_url.url) 08:13:17 08:13:17 conn = None 08:13:17 08:13:17 # Track whether `conn` needs to be released before 08:13:17 # returning/raising/recursing. Update this variable if necessary, and 08:13:17 # leave `release_conn` constant throughout the function. That way, if 08:13:17 # the function recurses, the original value of `release_conn` will be 08:13:17 # passed down into the recursive call, and its value will be respected. 08:13:17 # 08:13:17 # See issue #651 [1] for details. 08:13:17 # 08:13:17 # [1] 08:13:17 release_this_conn = release_conn 08:13:17 08:13:17 http_tunnel_required = connection_requires_http_tunnel( 08:13:17 self.proxy, self.proxy_config, destination_scheme 08:13:17 ) 08:13:17 08:13:17 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:17 # have to copy the headers dict so we can safely change it without those 08:13:17 # changes being reflected in anyone else's copy. 08:13:17 if not http_tunnel_required: 08:13:17 headers = headers.copy() # type: ignore[attr-defined] 08:13:17 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:17 08:13:17 # Must keep the exception bound to a separate variable or else Python 3 08:13:17 # complains about UnboundLocalError. 08:13:17 err = None 08:13:17 08:13:17 # Keep track of whether we cleanly exited the except block. This 08:13:17 # ensures we do proper cleanup in finally. 08:13:17 clean_exit = False 08:13:17 08:13:17 # Rewind body position, if needed. Record current position 08:13:17 # for future rewinds in the event of a redirect/retry. 08:13:17 body_pos = set_file_position(body, body_pos) 08:13:17 08:13:17 try: 08:13:17 # Request a connection from the queue. 08:13:17 timeout_obj = self._get_timeout(timeout) 08:13:17 conn = self._get_conn(timeout=pool_timeout) 08:13:17 08:13:17 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:17 08:13:17 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:17 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:17 try: 08:13:17 self._prepare_proxy(conn) 08:13:17 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:17 self._raise_timeout( 08:13:17 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:17 ) 08:13:17 raise 08:13:17 08:13:17 # If we're going to release the connection in ``finally:``, then 08:13:17 # the response doesn't need to know about the connection. Otherwise 08:13:17 # it will also try to release it and we'll have a double-release 08:13:17 # mess. 08:13:17 response_conn = conn if not release_conn else None 08:13:17 08:13:17 # Make the request on the HTTPConnection object 08:13:17 > response = self._make_request( 08:13:17 conn, 08:13:17 method, 08:13:17 url, 08:13:17 timeout=timeout_obj, 08:13:17 body=body, 08:13:17 headers=headers, 08:13:17 chunked=chunked, 08:13:17 retries=retries, 08:13:17 response_conn=response_conn, 08:13:17 preload_content=preload_content, 08:13:17 decode_content=decode_content, 08:13:17 **response_kw, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:17 conn.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:17 self.endheaders() 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:17 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:17 self.send(msg) 08:13:17 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:17 self.connect() 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:17 self.sock = self._new_conn() 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:17 08:13:17 :return: New socket connection. 08:13:17 """ 08:13:17 try: 08:13:17 sock = connection.create_connection( 08:13:17 (self._dns_host, self.port), 08:13:17 self.timeout, 08:13:17 source_address=self.source_address, 08:13:17 socket_options=self.socket_options, 08:13:17 ) 08:13:17 except socket.gaierror as e: 08:13:17 raise NameResolutionError(self.host, self, e) from e 08:13:17 except SocketTimeout as e: 08:13:17 raise ConnectTimeoutError( 08:13:17 self, 08:13:17 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:17 ) from e 08:13:17 08:13:17 except OSError as e: 08:13:17 > raise NewConnectionError( 08:13:17 self, f"Failed to establish a new connection: {e}" 08:13:17 ) from e 08:13:17 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:17 08:13:17 The above exception was the direct cause of the following exception: 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 > resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:17 retries = retries.increment( 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:17 method = 'GET' 08:13:17 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4' 08:13:17 response = None 08:13:17 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:17 _pool = 08:13:17 _stacktrace = 08:13:17 08:13:17 def increment( 08:13:17 self, 08:13:17 method: str | None = None, 08:13:17 url: str | None = None, 08:13:17 response: BaseHTTPResponse | None = None, 08:13:17 error: Exception | None = None, 08:13:17 _pool: ConnectionPool | None = None, 08:13:17 _stacktrace: TracebackType | None = None, 08:13:17 ) -> Self: 08:13:17 """Return a new Retry object with incremented retry counters. 08:13:17 08:13:17 :param response: A response object, or None, if the server did not 08:13:17 return a response. 08:13:17 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:17 :param Exception error: An error encountered during the request, or 08:13:17 None if the response was received successfully. 08:13:17 08:13:17 :return: A new ``Retry`` object. 08:13:17 """ 08:13:17 if self.total is False and error: 08:13:17 # Disabled, indicate to re-raise the error. 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 08:13:17 total = self.total 08:13:17 if total is not None: 08:13:17 total -= 1 08:13:17 08:13:17 connect = self.connect 08:13:17 read = self.read 08:13:17 redirect = self.redirect 08:13:17 status_count = self.status 08:13:17 other = self.other 08:13:17 cause = "unknown" 08:13:17 status = None 08:13:17 redirect_location = None 08:13:17 08:13:17 if error and self._is_connection_error(error): 08:13:17 # Connect retry? 08:13:17 if connect is False: 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif connect is not None: 08:13:17 connect -= 1 08:13:17 08:13:17 elif error and self._is_read_error(error): 08:13:17 # Read retry? 08:13:17 if read is False or method is None or not self._is_method_retryable(method): 08:13:17 raise reraise(type(error), error, _stacktrace) 08:13:17 elif read is not None: 08:13:17 read -= 1 08:13:17 08:13:17 elif error: 08:13:17 # Other retry? 08:13:17 if other is not None: 08:13:17 other -= 1 08:13:17 08:13:17 elif response and response.get_redirect_location(): 08:13:17 # Redirect retry? 08:13:17 if redirect is not None: 08:13:17 redirect -= 1 08:13:17 cause = "too many redirects" 08:13:17 response_redirect_location = response.get_redirect_location() 08:13:17 if response_redirect_location: 08:13:17 redirect_location = response_redirect_location 08:13:17 status = response.status 08:13:17 08:13:17 else: 08:13:17 # Incrementing because of a server error like a 500 in 08:13:17 # status_forcelist and the given method is in the allowed_methods 08:13:17 cause = ResponseError.GENERIC_ERROR 08:13:17 if response and response.status: 08:13:17 if status_count is not None: 08:13:17 status_count -= 1 08:13:17 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:17 status = response.status 08:13:17 08:13:17 history = self.history + ( 08:13:17 RequestHistory(method, url, error, status, redirect_location), 08:13:17 ) 08:13:17 08:13:17 new_retry = self.new( 08:13:17 total=total, 08:13:17 connect=connect, 08:13:17 read=read, 08:13:17 redirect=redirect, 08:13:17 status=status_count, 08:13:17 other=other, 08:13:17 history=history, 08:13:17 ) 08:13:17 08:13:17 if new_retry.is_exhausted(): 08:13:17 reason = error or ResponseError(cause) 08:13:17 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:17 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:17 08:13:17 During handling of the above exception, another exception occurred: 08:13:17 08:13:17 self = 08:13:17 08:13:17 def test_15_xpdr_portmapping_CLIENT4(self): 08:13:17 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT4") 08:13:17 08:13:17 transportpce_tests/1.2.1/test01_portmapping.py:180: 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:17 response = get_request(target_url) 08:13:17 transportpce_tests/common/test_utils.py:116: in get_request 08:13:17 return requests.request( 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:17 return session.request(method=method, url=url, **kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:17 resp = self.send(prep, **send_kwargs) 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:17 r = adapter.send(request, **kwargs) 08:13:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:17 08:13:17 self = 08:13:17 request = , stream = False 08:13:17 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:17 proxies = OrderedDict() 08:13:17 08:13:17 def send( 08:13:17 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:17 ): 08:13:17 """Sends PreparedRequest object. Returns Response object. 08:13:17 08:13:17 :param request: The :class:`PreparedRequest ` being sent. 08:13:17 :param stream: (optional) Whether to stream the request content. 08:13:17 :param timeout: (optional) How long to wait for the server to send 08:13:17 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:17 read timeout) ` tuple. 08:13:17 :type timeout: float or tuple or urllib3 Timeout object 08:13:17 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:17 we verify the server's TLS certificate, or a string, in which case it 08:13:17 must be a path to a CA bundle to use 08:13:17 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:17 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:17 :rtype: requests.Response 08:13:17 """ 08:13:17 08:13:17 try: 08:13:17 conn = self.get_connection_with_tls_context( 08:13:17 request, verify, proxies=proxies, cert=cert 08:13:17 ) 08:13:17 except LocationValueError as e: 08:13:17 raise InvalidURL(e, request=request) 08:13:17 08:13:17 self.cert_verify(conn, request.url, verify, cert) 08:13:17 url = self.request_url(request, proxies) 08:13:17 self.add_headers( 08:13:17 request, 08:13:17 stream=stream, 08:13:17 timeout=timeout, 08:13:17 verify=verify, 08:13:17 cert=cert, 08:13:17 proxies=proxies, 08:13:17 ) 08:13:17 08:13:17 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:17 08:13:17 if isinstance(timeout, tuple): 08:13:17 try: 08:13:17 connect, read = timeout 08:13:17 timeout = TimeoutSauce(connect=connect, read=read) 08:13:17 except ValueError: 08:13:17 raise ValueError( 08:13:17 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:17 f"or a single float to set both timeouts to the same value." 08:13:17 ) 08:13:17 elif isinstance(timeout, TimeoutSauce): 08:13:17 pass 08:13:17 else: 08:13:17 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:17 08:13:17 try: 08:13:17 resp = conn.urlopen( 08:13:17 method=request.method, 08:13:17 url=url, 08:13:17 body=request.body, 08:13:17 headers=request.headers, 08:13:17 redirect=False, 08:13:17 assert_same_host=False, 08:13:17 preload_content=False, 08:13:17 decode_content=False, 08:13:17 retries=self.max_retries, 08:13:17 timeout=timeout, 08:13:17 chunked=chunked, 08:13:17 ) 08:13:17 08:13:17 except (ProtocolError, OSError) as err: 08:13:17 raise ConnectionError(err, request=request) 08:13:17 08:13:17 except MaxRetryError as e: 08:13:17 if isinstance(e.reason, ConnectTimeoutError): 08:13:17 # TODO: Remove this in 3.0.0: see #2811 08:13:17 if not isinstance(e.reason, NewConnectionError): 08:13:17 raise ConnectTimeout(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, ResponseError): 08:13:17 raise RetryError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _ProxyError): 08:13:17 raise ProxyError(e, request=request) 08:13:17 08:13:17 if isinstance(e.reason, _SSLError): 08:13:17 # This branch is for urllib3 v1.22 and later. 08:13:17 raise SSLError(e, request=request) 08:13:17 08:13:17 > raise ConnectionError(e, request=request) 08:13:17 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:17 08:13:17 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:17 ----------------------------- Captured stdout call ----------------------------- 08:13:17 execution of test_15_xpdr_portmapping_CLIENT4 08:13:17 _______ TransportPCEPortMappingTesting.test_16_xpdr_device_disconnection _______ 08:13:17 08:13:17 self = 08:13:17 08:13:17 def _new_conn(self) -> socket.socket: 08:13:17 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 > sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:18 raise err 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:18 socket_options = [(6, 1, 1)] 08:13:18 08:13:18 def create_connection( 08:13:18 address: tuple[str, int], 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 source_address: tuple[str, int] | None = None, 08:13:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:18 ) -> socket.socket: 08:13:18 """Connect to *address* and return the socket object. 08:13:18 08:13:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:18 port)``) and return the socket object. Passing the optional 08:13:18 *timeout* parameter will set the timeout on the socket instance 08:13:18 before attempting to connect. If no *timeout* is supplied, the 08:13:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:18 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:18 for the socket to bind as a source address before making the connection. 08:13:18 An host of '' or port 0 tells the OS to use the default. 08:13:18 """ 08:13:18 08:13:18 host, port = address 08:13:18 if host.startswith("["): 08:13:18 host = host.strip("[]") 08:13:18 err = None 08:13:18 08:13:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:18 # The original create_connection function always returns all records. 08:13:18 family = allowed_gai_family() 08:13:18 08:13:18 try: 08:13:18 host.encode("idna") 08:13:18 except UnicodeError: 08:13:18 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:18 08:13:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:18 af, socktype, proto, canonname, sa = res 08:13:18 sock = None 08:13:18 try: 08:13:18 sock = socket.socket(af, socktype, proto) 08:13:18 08:13:18 # If provided, set socket level options before connecting. 08:13:18 _set_socket_options(sock, socket_options) 08:13:18 08:13:18 if timeout is not _DEFAULT_TIMEOUT: 08:13:18 sock.settimeout(timeout) 08:13:18 if source_address: 08:13:18 sock.bind(source_address) 08:13:18 > sock.connect(sa) 08:13:18 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 method = 'DELETE' 08:13:18 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 08:13:18 body = None 08:13:18 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '0', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 redirect = False, assert_same_host = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:18 decode_content = False, response_kw = {} 08:13:18 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01', query=None, fragment=None) 08:13:18 destination_scheme = None, conn = None, release_this_conn = True 08:13:18 http_tunnel_required = False, err = None, clean_exit = False 08:13:18 08:13:18 def urlopen( # type: ignore[override] 08:13:18 self, 08:13:18 method: str, 08:13:18 url: str, 08:13:18 body: _TYPE_BODY | None = None, 08:13:18 headers: typing.Mapping[str, str] | None = None, 08:13:18 retries: Retry | bool | int | None = None, 08:13:18 redirect: bool = True, 08:13:18 assert_same_host: bool = True, 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 pool_timeout: int | None = None, 08:13:18 release_conn: bool | None = None, 08:13:18 chunked: bool = False, 08:13:18 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:18 preload_content: bool = True, 08:13:18 decode_content: bool = True, 08:13:18 **response_kw: typing.Any, 08:13:18 ) -> BaseHTTPResponse: 08:13:18 """ 08:13:18 Get a connection from the pool and perform an HTTP request. This is the 08:13:18 lowest level call for making a request, so you'll need to specify all 08:13:18 the raw details. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 More commonly, it's appropriate to use a convenience method 08:13:18 such as :meth:`request`. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 `release_conn` will only behave as expected if 08:13:18 `preload_content=False` because we want to make 08:13:18 `preload_content=False` the default behaviour someday soon without 08:13:18 breaking backwards compatibility. 08:13:18 08:13:18 :param method: 08:13:18 HTTP request method (such as GET, POST, PUT, etc.) 08:13:18 08:13:18 :param url: 08:13:18 The URL to perform the request on. 08:13:18 08:13:18 :param body: 08:13:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:18 08:13:18 :param headers: 08:13:18 Dictionary of custom headers to send, such as User-Agent, 08:13:18 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:18 these headers completely replace any pool-specific headers. 08:13:18 08:13:18 :param retries: 08:13:18 Configure the number of retries to allow before raising a 08:13:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:18 08:13:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:18 over different types of retries. 08:13:18 Pass an integer number to retry connection errors that many times, 08:13:18 but no other types of errors. Pass zero to never retry. 08:13:18 08:13:18 If ``False``, then retries are disabled and any exception is raised 08:13:18 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:18 the redirect response will be returned. 08:13:18 08:13:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:18 08:13:18 :param redirect: 08:13:18 If True, automatically handle redirects (status codes 301, 302, 08:13:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:18 will disable redirect, too. 08:13:18 08:13:18 :param assert_same_host: 08:13:18 If ``True``, will make sure that the host of the pool requests is 08:13:18 consistent else will raise HostChangedError. When ``False``, you can 08:13:18 use the pool on an HTTP proxy and request foreign hosts. 08:13:18 08:13:18 :param timeout: 08:13:18 If specified, overrides the default timeout for this one 08:13:18 request. It may be a float (in seconds) or an instance of 08:13:18 :class:`urllib3.util.Timeout`. 08:13:18 08:13:18 :param pool_timeout: 08:13:18 If set and the pool is set to block=True, then this method will 08:13:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:18 connection is available within the time period. 08:13:18 08:13:18 :param bool preload_content: 08:13:18 If True, the response's body will be preloaded into memory. 08:13:18 08:13:18 :param bool decode_content: 08:13:18 If True, will attempt to decode the body based on the 08:13:18 'content-encoding' header. 08:13:18 08:13:18 :param release_conn: 08:13:18 If False, then the urlopen call will not release the connection 08:13:18 back into the pool once a response is received (but will release if 08:13:18 you read the entire contents of the response such as when 08:13:18 `preload_content=True`). This is useful if you're not preloading 08:13:18 the response's content immediately. You will need to call 08:13:18 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:18 back into the pool. If None, it takes the value of ``preload_content`` 08:13:18 which defaults to ``True``. 08:13:18 08:13:18 :param bool chunked: 08:13:18 If True, urllib3 will send the body using chunked transfer 08:13:18 encoding. Otherwise, urllib3 will send the body using the standard 08:13:18 content-length form. Defaults to False. 08:13:18 08:13:18 :param int body_pos: 08:13:18 Position to seek to in file-like body in the event of a retry or 08:13:18 redirect. Typically this won't need to be set because urllib3 will 08:13:18 auto-populate the value when needed. 08:13:18 """ 08:13:18 parsed_url = parse_url(url) 08:13:18 destination_scheme = parsed_url.scheme 08:13:18 08:13:18 if headers is None: 08:13:18 headers = self.headers 08:13:18 08:13:18 if not isinstance(retries, Retry): 08:13:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:18 08:13:18 if release_conn is None: 08:13:18 release_conn = preload_content 08:13:18 08:13:18 # Check host 08:13:18 if assert_same_host and not self.is_same_host(url): 08:13:18 raise HostChangedError(self, url, retries) 08:13:18 08:13:18 # Ensure that the URL we're connecting to is properly encoded 08:13:18 if url.startswith("/"): 08:13:18 url = to_str(_encode_target(url)) 08:13:18 else: 08:13:18 url = to_str(parsed_url.url) 08:13:18 08:13:18 conn = None 08:13:18 08:13:18 # Track whether `conn` needs to be released before 08:13:18 # returning/raising/recursing. Update this variable if necessary, and 08:13:18 # leave `release_conn` constant throughout the function. That way, if 08:13:18 # the function recurses, the original value of `release_conn` will be 08:13:18 # passed down into the recursive call, and its value will be respected. 08:13:18 # 08:13:18 # See issue #651 [1] for details. 08:13:18 # 08:13:18 # [1] 08:13:18 release_this_conn = release_conn 08:13:18 08:13:18 http_tunnel_required = connection_requires_http_tunnel( 08:13:18 self.proxy, self.proxy_config, destination_scheme 08:13:18 ) 08:13:18 08:13:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:18 # have to copy the headers dict so we can safely change it without those 08:13:18 # changes being reflected in anyone else's copy. 08:13:18 if not http_tunnel_required: 08:13:18 headers = headers.copy() # type: ignore[attr-defined] 08:13:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:18 08:13:18 # Must keep the exception bound to a separate variable or else Python 3 08:13:18 # complains about UnboundLocalError. 08:13:18 err = None 08:13:18 08:13:18 # Keep track of whether we cleanly exited the except block. This 08:13:18 # ensures we do proper cleanup in finally. 08:13:18 clean_exit = False 08:13:18 08:13:18 # Rewind body position, if needed. Record current position 08:13:18 # for future rewinds in the event of a redirect/retry. 08:13:18 body_pos = set_file_position(body, body_pos) 08:13:18 08:13:18 try: 08:13:18 # Request a connection from the queue. 08:13:18 timeout_obj = self._get_timeout(timeout) 08:13:18 conn = self._get_conn(timeout=pool_timeout) 08:13:18 08:13:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:18 08:13:18 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:18 try: 08:13:18 self._prepare_proxy(conn) 08:13:18 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:18 self._raise_timeout( 08:13:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:18 ) 08:13:18 raise 08:13:18 08:13:18 # If we're going to release the connection in ``finally:``, then 08:13:18 # the response doesn't need to know about the connection. Otherwise 08:13:18 # it will also try to release it and we'll have a double-release 08:13:18 # mess. 08:13:18 response_conn = conn if not release_conn else None 08:13:18 08:13:18 # Make the request on the HTTPConnection object 08:13:18 > response = self._make_request( 08:13:18 conn, 08:13:18 method, 08:13:18 url, 08:13:18 timeout=timeout_obj, 08:13:18 body=body, 08:13:18 headers=headers, 08:13:18 chunked=chunked, 08:13:18 retries=retries, 08:13:18 response_conn=response_conn, 08:13:18 preload_content=preload_content, 08:13:18 decode_content=decode_content, 08:13:18 **response_kw, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:18 conn.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:18 self.endheaders() 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:18 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:18 self.send(msg) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:18 self.connect() 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:18 self.sock = self._new_conn() 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 except socket.gaierror as e: 08:13:18 raise NameResolutionError(self.host, self, e) from e 08:13:18 except SocketTimeout as e: 08:13:18 raise ConnectTimeoutError( 08:13:18 self, 08:13:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:18 ) from e 08:13:18 08:13:18 except OSError as e: 08:13:18 > raise NewConnectionError( 08:13:18 self, f"Failed to establish a new connection: {e}" 08:13:18 ) from e 08:13:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 > resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:18 retries = retries.increment( 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 method = 'DELETE' 08:13:18 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 08:13:18 response = None 08:13:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:18 _pool = 08:13:18 _stacktrace = 08:13:18 08:13:18 def increment( 08:13:18 self, 08:13:18 method: str | None = None, 08:13:18 url: str | None = None, 08:13:18 response: BaseHTTPResponse | None = None, 08:13:18 error: Exception | None = None, 08:13:18 _pool: ConnectionPool | None = None, 08:13:18 _stacktrace: TracebackType | None = None, 08:13:18 ) -> Self: 08:13:18 """Return a new Retry object with incremented retry counters. 08:13:18 08:13:18 :param response: A response object, or None, if the server did not 08:13:18 return a response. 08:13:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:18 :param Exception error: An error encountered during the request, or 08:13:18 None if the response was received successfully. 08:13:18 08:13:18 :return: A new ``Retry`` object. 08:13:18 """ 08:13:18 if self.total is False and error: 08:13:18 # Disabled, indicate to re-raise the error. 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 08:13:18 total = self.total 08:13:18 if total is not None: 08:13:18 total -= 1 08:13:18 08:13:18 connect = self.connect 08:13:18 read = self.read 08:13:18 redirect = self.redirect 08:13:18 status_count = self.status 08:13:18 other = self.other 08:13:18 cause = "unknown" 08:13:18 status = None 08:13:18 redirect_location = None 08:13:18 08:13:18 if error and self._is_connection_error(error): 08:13:18 # Connect retry? 08:13:18 if connect is False: 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif connect is not None: 08:13:18 connect -= 1 08:13:18 08:13:18 elif error and self._is_read_error(error): 08:13:18 # Read retry? 08:13:18 if read is False or method is None or not self._is_method_retryable(method): 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif read is not None: 08:13:18 read -= 1 08:13:18 08:13:18 elif error: 08:13:18 # Other retry? 08:13:18 if other is not None: 08:13:18 other -= 1 08:13:18 08:13:18 elif response and response.get_redirect_location(): 08:13:18 # Redirect retry? 08:13:18 if redirect is not None: 08:13:18 redirect -= 1 08:13:18 cause = "too many redirects" 08:13:18 response_redirect_location = response.get_redirect_location() 08:13:18 if response_redirect_location: 08:13:18 redirect_location = response_redirect_location 08:13:18 status = response.status 08:13:18 08:13:18 else: 08:13:18 # Incrementing because of a server error like a 500 in 08:13:18 # status_forcelist and the given method is in the allowed_methods 08:13:18 cause = ResponseError.GENERIC_ERROR 08:13:18 if response and response.status: 08:13:18 if status_count is not None: 08:13:18 status_count -= 1 08:13:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:18 status = response.status 08:13:18 08:13:18 history = self.history + ( 08:13:18 RequestHistory(method, url, error, status, redirect_location), 08:13:18 ) 08:13:18 08:13:18 new_retry = self.new( 08:13:18 total=total, 08:13:18 connect=connect, 08:13:18 read=read, 08:13:18 redirect=redirect, 08:13:18 status=status_count, 08:13:18 other=other, 08:13:18 history=history, 08:13:18 ) 08:13:18 08:13:18 if new_retry.is_exhausted(): 08:13:18 reason = error or ResponseError(cause) 08:13:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:18 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:18 08:13:18 During handling of the above exception, another exception occurred: 08:13:18 08:13:18 self = 08:13:18 08:13:18 def test_16_xpdr_device_disconnection(self): 08:13:18 > response = test_utils.unmount_device("XPDRA01") 08:13:18 08:13:18 transportpce_tests/1.2.1/test01_portmapping.py:191: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 transportpce_tests/common/test_utils.py:360: in unmount_device 08:13:18 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 08:13:18 transportpce_tests/common/test_utils.py:133: in delete_request 08:13:18 return requests.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:18 return session.request(method=method, url=url, **kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:18 resp = self.send(prep, **send_kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:18 r = adapter.send(request, **kwargs) 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 except (ProtocolError, OSError) as err: 08:13:18 raise ConnectionError(err, request=request) 08:13:18 08:13:18 except MaxRetryError as e: 08:13:18 if isinstance(e.reason, ConnectTimeoutError): 08:13:18 # TODO: Remove this in 3.0.0: see #2811 08:13:18 if not isinstance(e.reason, NewConnectionError): 08:13:18 raise ConnectTimeout(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, ResponseError): 08:13:18 raise RetryError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _ProxyError): 08:13:18 raise ProxyError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _SSLError): 08:13:18 # This branch is for urllib3 v1.22 and later. 08:13:18 raise SSLError(e, request=request) 08:13:18 08:13:18 > raise ConnectionError(e, request=request) 08:13:18 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:18 ----------------------------- Captured stdout call ----------------------------- 08:13:18 execution of test_16_xpdr_device_disconnection 08:13:18 _______ TransportPCEPortMappingTesting.test_17_xpdr_device_disconnected ________ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 > sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:18 raise err 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:18 socket_options = [(6, 1, 1)] 08:13:18 08:13:18 def create_connection( 08:13:18 address: tuple[str, int], 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 source_address: tuple[str, int] | None = None, 08:13:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:18 ) -> socket.socket: 08:13:18 """Connect to *address* and return the socket object. 08:13:18 08:13:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:18 port)``) and return the socket object. Passing the optional 08:13:18 *timeout* parameter will set the timeout on the socket instance 08:13:18 before attempting to connect. If no *timeout* is supplied, the 08:13:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:18 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:18 for the socket to bind as a source address before making the connection. 08:13:18 An host of '' or port 0 tells the OS to use the default. 08:13:18 """ 08:13:18 08:13:18 host, port = address 08:13:18 if host.startswith("["): 08:13:18 host = host.strip("[]") 08:13:18 err = None 08:13:18 08:13:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:18 # The original create_connection function always returns all records. 08:13:18 family = allowed_gai_family() 08:13:18 08:13:18 try: 08:13:18 host.encode("idna") 08:13:18 except UnicodeError: 08:13:18 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:18 08:13:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:18 af, socktype, proto, canonname, sa = res 08:13:18 sock = None 08:13:18 try: 08:13:18 sock = socket.socket(af, socktype, proto) 08:13:18 08:13:18 # If provided, set socket level options before connecting. 08:13:18 _set_socket_options(sock, socket_options) 08:13:18 08:13:18 if timeout is not _DEFAULT_TIMEOUT: 08:13:18 sock.settimeout(timeout) 08:13:18 if source_address: 08:13:18 sock.bind(source_address) 08:13:18 > sock.connect(sa) 08:13:18 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 method = 'GET' 08:13:18 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 08:13:18 body = None 08:13: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='} 08:13:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 redirect = False, assert_same_host = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:18 decode_content = False, response_kw = {} 08:13:18 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01', query='content=nonconfig', fragment=None) 08:13:18 destination_scheme = None, conn = None, release_this_conn = True 08:13:18 http_tunnel_required = False, err = None, clean_exit = False 08:13:18 08:13:18 def urlopen( # type: ignore[override] 08:13:18 self, 08:13:18 method: str, 08:13:18 url: str, 08:13:18 body: _TYPE_BODY | None = None, 08:13:18 headers: typing.Mapping[str, str] | None = None, 08:13:18 retries: Retry | bool | int | None = None, 08:13:18 redirect: bool = True, 08:13:18 assert_same_host: bool = True, 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 pool_timeout: int | None = None, 08:13:18 release_conn: bool | None = None, 08:13:18 chunked: bool = False, 08:13:18 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:18 preload_content: bool = True, 08:13:18 decode_content: bool = True, 08:13:18 **response_kw: typing.Any, 08:13:18 ) -> BaseHTTPResponse: 08:13:18 """ 08:13:18 Get a connection from the pool and perform an HTTP request. This is the 08:13:18 lowest level call for making a request, so you'll need to specify all 08:13:18 the raw details. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 More commonly, it's appropriate to use a convenience method 08:13:18 such as :meth:`request`. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 `release_conn` will only behave as expected if 08:13:18 `preload_content=False` because we want to make 08:13:18 `preload_content=False` the default behaviour someday soon without 08:13:18 breaking backwards compatibility. 08:13:18 08:13:18 :param method: 08:13:18 HTTP request method (such as GET, POST, PUT, etc.) 08:13:18 08:13:18 :param url: 08:13:18 The URL to perform the request on. 08:13:18 08:13:18 :param body: 08:13:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:18 08:13:18 :param headers: 08:13:18 Dictionary of custom headers to send, such as User-Agent, 08:13:18 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:18 these headers completely replace any pool-specific headers. 08:13:18 08:13:18 :param retries: 08:13:18 Configure the number of retries to allow before raising a 08:13:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:18 08:13:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:18 over different types of retries. 08:13:18 Pass an integer number to retry connection errors that many times, 08:13:18 but no other types of errors. Pass zero to never retry. 08:13:18 08:13:18 If ``False``, then retries are disabled and any exception is raised 08:13:18 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:18 the redirect response will be returned. 08:13:18 08:13:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:18 08:13:18 :param redirect: 08:13:18 If True, automatically handle redirects (status codes 301, 302, 08:13:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:18 will disable redirect, too. 08:13:18 08:13:18 :param assert_same_host: 08:13:18 If ``True``, will make sure that the host of the pool requests is 08:13:18 consistent else will raise HostChangedError. When ``False``, you can 08:13:18 use the pool on an HTTP proxy and request foreign hosts. 08:13:18 08:13:18 :param timeout: 08:13:18 If specified, overrides the default timeout for this one 08:13:18 request. It may be a float (in seconds) or an instance of 08:13:18 :class:`urllib3.util.Timeout`. 08:13:18 08:13:18 :param pool_timeout: 08:13:18 If set and the pool is set to block=True, then this method will 08:13:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:18 connection is available within the time period. 08:13:18 08:13:18 :param bool preload_content: 08:13:18 If True, the response's body will be preloaded into memory. 08:13:18 08:13:18 :param bool decode_content: 08:13:18 If True, will attempt to decode the body based on the 08:13:18 'content-encoding' header. 08:13:18 08:13:18 :param release_conn: 08:13:18 If False, then the urlopen call will not release the connection 08:13:18 back into the pool once a response is received (but will release if 08:13:18 you read the entire contents of the response such as when 08:13:18 `preload_content=True`). This is useful if you're not preloading 08:13:18 the response's content immediately. You will need to call 08:13:18 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:18 back into the pool. If None, it takes the value of ``preload_content`` 08:13:18 which defaults to ``True``. 08:13:18 08:13:18 :param bool chunked: 08:13:18 If True, urllib3 will send the body using chunked transfer 08:13:18 encoding. Otherwise, urllib3 will send the body using the standard 08:13:18 content-length form. Defaults to False. 08:13:18 08:13:18 :param int body_pos: 08:13:18 Position to seek to in file-like body in the event of a retry or 08:13:18 redirect. Typically this won't need to be set because urllib3 will 08:13:18 auto-populate the value when needed. 08:13:18 """ 08:13:18 parsed_url = parse_url(url) 08:13:18 destination_scheme = parsed_url.scheme 08:13:18 08:13:18 if headers is None: 08:13:18 headers = self.headers 08:13:18 08:13:18 if not isinstance(retries, Retry): 08:13:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:18 08:13:18 if release_conn is None: 08:13:18 release_conn = preload_content 08:13:18 08:13:18 # Check host 08:13:18 if assert_same_host and not self.is_same_host(url): 08:13:18 raise HostChangedError(self, url, retries) 08:13:18 08:13:18 # Ensure that the URL we're connecting to is properly encoded 08:13:18 if url.startswith("/"): 08:13:18 url = to_str(_encode_target(url)) 08:13:18 else: 08:13:18 url = to_str(parsed_url.url) 08:13:18 08:13:18 conn = None 08:13:18 08:13:18 # Track whether `conn` needs to be released before 08:13:18 # returning/raising/recursing. Update this variable if necessary, and 08:13:18 # leave `release_conn` constant throughout the function. That way, if 08:13:18 # the function recurses, the original value of `release_conn` will be 08:13:18 # passed down into the recursive call, and its value will be respected. 08:13:18 # 08:13:18 # See issue #651 [1] for details. 08:13:18 # 08:13:18 # [1] 08:13:18 release_this_conn = release_conn 08:13:18 08:13:18 http_tunnel_required = connection_requires_http_tunnel( 08:13:18 self.proxy, self.proxy_config, destination_scheme 08:13:18 ) 08:13:18 08:13:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:18 # have to copy the headers dict so we can safely change it without those 08:13:18 # changes being reflected in anyone else's copy. 08:13:18 if not http_tunnel_required: 08:13:18 headers = headers.copy() # type: ignore[attr-defined] 08:13:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:18 08:13:18 # Must keep the exception bound to a separate variable or else Python 3 08:13:18 # complains about UnboundLocalError. 08:13:18 err = None 08:13:18 08:13:18 # Keep track of whether we cleanly exited the except block. This 08:13:18 # ensures we do proper cleanup in finally. 08:13:18 clean_exit = False 08:13:18 08:13:18 # Rewind body position, if needed. Record current position 08:13:18 # for future rewinds in the event of a redirect/retry. 08:13:18 body_pos = set_file_position(body, body_pos) 08:13:18 08:13:18 try: 08:13:18 # Request a connection from the queue. 08:13:18 timeout_obj = self._get_timeout(timeout) 08:13:18 conn = self._get_conn(timeout=pool_timeout) 08:13:18 08:13:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:18 08:13:18 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:18 try: 08:13:18 self._prepare_proxy(conn) 08:13:18 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:18 self._raise_timeout( 08:13:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:18 ) 08:13:18 raise 08:13:18 08:13:18 # If we're going to release the connection in ``finally:``, then 08:13:18 # the response doesn't need to know about the connection. Otherwise 08:13:18 # it will also try to release it and we'll have a double-release 08:13:18 # mess. 08:13:18 response_conn = conn if not release_conn else None 08:13:18 08:13:18 # Make the request on the HTTPConnection object 08:13:18 > response = self._make_request( 08:13:18 conn, 08:13:18 method, 08:13:18 url, 08:13:18 timeout=timeout_obj, 08:13:18 body=body, 08:13:18 headers=headers, 08:13:18 chunked=chunked, 08:13:18 retries=retries, 08:13:18 response_conn=response_conn, 08:13:18 preload_content=preload_content, 08:13:18 decode_content=decode_content, 08:13:18 **response_kw, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:18 conn.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:18 self.endheaders() 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:18 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:18 self.send(msg) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:18 self.connect() 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:18 self.sock = self._new_conn() 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 except socket.gaierror as e: 08:13:18 raise NameResolutionError(self.host, self, e) from e 08:13:18 except SocketTimeout as e: 08:13:18 raise ConnectTimeoutError( 08:13:18 self, 08:13:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:18 ) from e 08:13:18 08:13:18 except OSError as e: 08:13:18 > raise NewConnectionError( 08:13:18 self, f"Failed to establish a new connection: {e}" 08:13:18 ) from e 08:13:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 > resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:18 retries = retries.increment( 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 method = 'GET' 08:13:18 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 08:13:18 response = None 08:13:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:18 _pool = 08:13:18 _stacktrace = 08:13:18 08:13:18 def increment( 08:13:18 self, 08:13:18 method: str | None = None, 08:13:18 url: str | None = None, 08:13:18 response: BaseHTTPResponse | None = None, 08:13:18 error: Exception | None = None, 08:13:18 _pool: ConnectionPool | None = None, 08:13:18 _stacktrace: TracebackType | None = None, 08:13:18 ) -> Self: 08:13:18 """Return a new Retry object with incremented retry counters. 08:13:18 08:13:18 :param response: A response object, or None, if the server did not 08:13:18 return a response. 08:13:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:18 :param Exception error: An error encountered during the request, or 08:13:18 None if the response was received successfully. 08:13:18 08:13:18 :return: A new ``Retry`` object. 08:13:18 """ 08:13:18 if self.total is False and error: 08:13:18 # Disabled, indicate to re-raise the error. 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 08:13:18 total = self.total 08:13:18 if total is not None: 08:13:18 total -= 1 08:13:18 08:13:18 connect = self.connect 08:13:18 read = self.read 08:13:18 redirect = self.redirect 08:13:18 status_count = self.status 08:13:18 other = self.other 08:13:18 cause = "unknown" 08:13:18 status = None 08:13:18 redirect_location = None 08:13:18 08:13:18 if error and self._is_connection_error(error): 08:13:18 # Connect retry? 08:13:18 if connect is False: 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif connect is not None: 08:13:18 connect -= 1 08:13:18 08:13:18 elif error and self._is_read_error(error): 08:13:18 # Read retry? 08:13:18 if read is False or method is None or not self._is_method_retryable(method): 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif read is not None: 08:13:18 read -= 1 08:13:18 08:13:18 elif error: 08:13:18 # Other retry? 08:13:18 if other is not None: 08:13:18 other -= 1 08:13:18 08:13:18 elif response and response.get_redirect_location(): 08:13:18 # Redirect retry? 08:13:18 if redirect is not None: 08:13:18 redirect -= 1 08:13:18 cause = "too many redirects" 08:13:18 response_redirect_location = response.get_redirect_location() 08:13:18 if response_redirect_location: 08:13:18 redirect_location = response_redirect_location 08:13:18 status = response.status 08:13:18 08:13:18 else: 08:13:18 # Incrementing because of a server error like a 500 in 08:13:18 # status_forcelist and the given method is in the allowed_methods 08:13:18 cause = ResponseError.GENERIC_ERROR 08:13:18 if response and response.status: 08:13:18 if status_count is not None: 08:13:18 status_count -= 1 08:13:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:18 status = response.status 08:13:18 08:13:18 history = self.history + ( 08:13:18 RequestHistory(method, url, error, status, redirect_location), 08:13:18 ) 08:13:18 08:13:18 new_retry = self.new( 08:13:18 total=total, 08:13:18 connect=connect, 08:13:18 read=read, 08:13:18 redirect=redirect, 08:13:18 status=status_count, 08:13:18 other=other, 08:13:18 history=history, 08:13:18 ) 08:13:18 08:13:18 if new_retry.is_exhausted(): 08:13:18 reason = error or ResponseError(cause) 08:13:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:18 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:18 08:13:18 During handling of the above exception, another exception occurred: 08:13:18 08:13:18 self = 08:13:18 08:13:18 def test_17_xpdr_device_disconnected(self): 08:13:18 > response = test_utils.check_device_connection("XPDRA01") 08:13:18 08:13:18 transportpce_tests/1.2.1/test01_portmapping.py:195: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 transportpce_tests/common/test_utils.py:371: in check_device_connection 08:13:18 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 08:13:18 transportpce_tests/common/test_utils.py:116: in get_request 08:13:18 return requests.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:18 return session.request(method=method, url=url, **kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:18 resp = self.send(prep, **send_kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:18 r = adapter.send(request, **kwargs) 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 except (ProtocolError, OSError) as err: 08:13:18 raise ConnectionError(err, request=request) 08:13:18 08:13:18 except MaxRetryError as e: 08:13:18 if isinstance(e.reason, ConnectTimeoutError): 08:13:18 # TODO: Remove this in 3.0.0: see #2811 08:13:18 if not isinstance(e.reason, NewConnectionError): 08:13:18 raise ConnectTimeout(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, ResponseError): 08:13:18 raise RetryError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _ProxyError): 08:13:18 raise ProxyError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _SSLError): 08:13:18 # This branch is for urllib3 v1.22 and later. 08:13:18 raise SSLError(e, request=request) 08:13:18 08:13:18 > raise ConnectionError(e, request=request) 08:13:18 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:18 ----------------------------- Captured stdout call ----------------------------- 08:13:18 execution of test_17_xpdr_device_disconnected 08:13:18 _______ TransportPCEPortMappingTesting.test_18_xpdr_device_not_connected _______ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 > sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:18 raise err 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:18 socket_options = [(6, 1, 1)] 08:13:18 08:13:18 def create_connection( 08:13:18 address: tuple[str, int], 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 source_address: tuple[str, int] | None = None, 08:13:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:18 ) -> socket.socket: 08:13:18 """Connect to *address* and return the socket object. 08:13:18 08:13:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:18 port)``) and return the socket object. Passing the optional 08:13:18 *timeout* parameter will set the timeout on the socket instance 08:13:18 before attempting to connect. If no *timeout* is supplied, the 08:13:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:18 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:18 for the socket to bind as a source address before making the connection. 08:13:18 An host of '' or port 0 tells the OS to use the default. 08:13:18 """ 08:13:18 08:13:18 host, port = address 08:13:18 if host.startswith("["): 08:13:18 host = host.strip("[]") 08:13:18 err = None 08:13:18 08:13:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:18 # The original create_connection function always returns all records. 08:13:18 family = allowed_gai_family() 08:13:18 08:13:18 try: 08:13:18 host.encode("idna") 08:13:18 except UnicodeError: 08:13:18 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:18 08:13:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:18 af, socktype, proto, canonname, sa = res 08:13:18 sock = None 08:13:18 try: 08:13:18 sock = socket.socket(af, socktype, proto) 08:13:18 08:13:18 # If provided, set socket level options before connecting. 08:13:18 _set_socket_options(sock, socket_options) 08:13:18 08:13:18 if timeout is not _DEFAULT_TIMEOUT: 08:13:18 sock.settimeout(timeout) 08:13:18 if source_address: 08:13:18 sock.bind(source_address) 08:13:18 > sock.connect(sa) 08:13:18 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 method = 'GET' 08:13:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:13:18 body = None 08:13: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='} 08:13:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 redirect = False, assert_same_host = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:18 decode_content = False, response_kw = {} 08:13:18 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info', query=None, fragment=None) 08:13:18 destination_scheme = None, conn = None, release_this_conn = True 08:13:18 http_tunnel_required = False, err = None, clean_exit = False 08:13:18 08:13:18 def urlopen( # type: ignore[override] 08:13:18 self, 08:13:18 method: str, 08:13:18 url: str, 08:13:18 body: _TYPE_BODY | None = None, 08:13:18 headers: typing.Mapping[str, str] | None = None, 08:13:18 retries: Retry | bool | int | None = None, 08:13:18 redirect: bool = True, 08:13:18 assert_same_host: bool = True, 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 pool_timeout: int | None = None, 08:13:18 release_conn: bool | None = None, 08:13:18 chunked: bool = False, 08:13:18 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:18 preload_content: bool = True, 08:13:18 decode_content: bool = True, 08:13:18 **response_kw: typing.Any, 08:13:18 ) -> BaseHTTPResponse: 08:13:18 """ 08:13:18 Get a connection from the pool and perform an HTTP request. This is the 08:13:18 lowest level call for making a request, so you'll need to specify all 08:13:18 the raw details. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 More commonly, it's appropriate to use a convenience method 08:13:18 such as :meth:`request`. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 `release_conn` will only behave as expected if 08:13:18 `preload_content=False` because we want to make 08:13:18 `preload_content=False` the default behaviour someday soon without 08:13:18 breaking backwards compatibility. 08:13:18 08:13:18 :param method: 08:13:18 HTTP request method (such as GET, POST, PUT, etc.) 08:13:18 08:13:18 :param url: 08:13:18 The URL to perform the request on. 08:13:18 08:13:18 :param body: 08:13:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:18 08:13:18 :param headers: 08:13:18 Dictionary of custom headers to send, such as User-Agent, 08:13:18 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:18 these headers completely replace any pool-specific headers. 08:13:18 08:13:18 :param retries: 08:13:18 Configure the number of retries to allow before raising a 08:13:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:18 08:13:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:18 over different types of retries. 08:13:18 Pass an integer number to retry connection errors that many times, 08:13:18 but no other types of errors. Pass zero to never retry. 08:13:18 08:13:18 If ``False``, then retries are disabled and any exception is raised 08:13:18 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:18 the redirect response will be returned. 08:13:18 08:13:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:18 08:13:18 :param redirect: 08:13:18 If True, automatically handle redirects (status codes 301, 302, 08:13:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:18 will disable redirect, too. 08:13:18 08:13:18 :param assert_same_host: 08:13:18 If ``True``, will make sure that the host of the pool requests is 08:13:18 consistent else will raise HostChangedError. When ``False``, you can 08:13:18 use the pool on an HTTP proxy and request foreign hosts. 08:13:18 08:13:18 :param timeout: 08:13:18 If specified, overrides the default timeout for this one 08:13:18 request. It may be a float (in seconds) or an instance of 08:13:18 :class:`urllib3.util.Timeout`. 08:13:18 08:13:18 :param pool_timeout: 08:13:18 If set and the pool is set to block=True, then this method will 08:13:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:18 connection is available within the time period. 08:13:18 08:13:18 :param bool preload_content: 08:13:18 If True, the response's body will be preloaded into memory. 08:13:18 08:13:18 :param bool decode_content: 08:13:18 If True, will attempt to decode the body based on the 08:13:18 'content-encoding' header. 08:13:18 08:13:18 :param release_conn: 08:13:18 If False, then the urlopen call will not release the connection 08:13:18 back into the pool once a response is received (but will release if 08:13:18 you read the entire contents of the response such as when 08:13:18 `preload_content=True`). This is useful if you're not preloading 08:13:18 the response's content immediately. You will need to call 08:13:18 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:18 back into the pool. If None, it takes the value of ``preload_content`` 08:13:18 which defaults to ``True``. 08:13:18 08:13:18 :param bool chunked: 08:13:18 If True, urllib3 will send the body using chunked transfer 08:13:18 encoding. Otherwise, urllib3 will send the body using the standard 08:13:18 content-length form. Defaults to False. 08:13:18 08:13:18 :param int body_pos: 08:13:18 Position to seek to in file-like body in the event of a retry or 08:13:18 redirect. Typically this won't need to be set because urllib3 will 08:13:18 auto-populate the value when needed. 08:13:18 """ 08:13:18 parsed_url = parse_url(url) 08:13:18 destination_scheme = parsed_url.scheme 08:13:18 08:13:18 if headers is None: 08:13:18 headers = self.headers 08:13:18 08:13:18 if not isinstance(retries, Retry): 08:13:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:18 08:13:18 if release_conn is None: 08:13:18 release_conn = preload_content 08:13:18 08:13:18 # Check host 08:13:18 if assert_same_host and not self.is_same_host(url): 08:13:18 raise HostChangedError(self, url, retries) 08:13:18 08:13:18 # Ensure that the URL we're connecting to is properly encoded 08:13:18 if url.startswith("/"): 08:13:18 url = to_str(_encode_target(url)) 08:13:18 else: 08:13:18 url = to_str(parsed_url.url) 08:13:18 08:13:18 conn = None 08:13:18 08:13:18 # Track whether `conn` needs to be released before 08:13:18 # returning/raising/recursing. Update this variable if necessary, and 08:13:18 # leave `release_conn` constant throughout the function. That way, if 08:13:18 # the function recurses, the original value of `release_conn` will be 08:13:18 # passed down into the recursive call, and its value will be respected. 08:13:18 # 08:13:18 # See issue #651 [1] for details. 08:13:18 # 08:13:18 # [1] 08:13:18 release_this_conn = release_conn 08:13:18 08:13:18 http_tunnel_required = connection_requires_http_tunnel( 08:13:18 self.proxy, self.proxy_config, destination_scheme 08:13:18 ) 08:13:18 08:13:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:18 # have to copy the headers dict so we can safely change it without those 08:13:18 # changes being reflected in anyone else's copy. 08:13:18 if not http_tunnel_required: 08:13:18 headers = headers.copy() # type: ignore[attr-defined] 08:13:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:18 08:13:18 # Must keep the exception bound to a separate variable or else Python 3 08:13:18 # complains about UnboundLocalError. 08:13:18 err = None 08:13:18 08:13:18 # Keep track of whether we cleanly exited the except block. This 08:13:18 # ensures we do proper cleanup in finally. 08:13:18 clean_exit = False 08:13:18 08:13:18 # Rewind body position, if needed. Record current position 08:13:18 # for future rewinds in the event of a redirect/retry. 08:13:18 body_pos = set_file_position(body, body_pos) 08:13:18 08:13:18 try: 08:13:18 # Request a connection from the queue. 08:13:18 timeout_obj = self._get_timeout(timeout) 08:13:18 conn = self._get_conn(timeout=pool_timeout) 08:13:18 08:13:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:18 08:13:18 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:18 try: 08:13:18 self._prepare_proxy(conn) 08:13:18 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:18 self._raise_timeout( 08:13:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:18 ) 08:13:18 raise 08:13:18 08:13:18 # If we're going to release the connection in ``finally:``, then 08:13:18 # the response doesn't need to know about the connection. Otherwise 08:13:18 # it will also try to release it and we'll have a double-release 08:13:18 # mess. 08:13:18 response_conn = conn if not release_conn else None 08:13:18 08:13:18 # Make the request on the HTTPConnection object 08:13:18 > response = self._make_request( 08:13:18 conn, 08:13:18 method, 08:13:18 url, 08:13:18 timeout=timeout_obj, 08:13:18 body=body, 08:13:18 headers=headers, 08:13:18 chunked=chunked, 08:13:18 retries=retries, 08:13:18 response_conn=response_conn, 08:13:18 preload_content=preload_content, 08:13:18 decode_content=decode_content, 08:13:18 **response_kw, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:18 conn.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:18 self.endheaders() 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:18 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:18 self.send(msg) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:18 self.connect() 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:18 self.sock = self._new_conn() 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 except socket.gaierror as e: 08:13:18 raise NameResolutionError(self.host, self, e) from e 08:13:18 except SocketTimeout as e: 08:13:18 raise ConnectTimeoutError( 08:13:18 self, 08:13:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:18 ) from e 08:13:18 08:13:18 except OSError as e: 08:13:18 > raise NewConnectionError( 08:13:18 self, f"Failed to establish a new connection: {e}" 08:13:18 ) from e 08:13:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 > resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:18 retries = retries.increment( 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 method = 'GET' 08:13:18 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:13:18 response = None 08:13:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:18 _pool = 08:13:18 _stacktrace = 08:13:18 08:13:18 def increment( 08:13:18 self, 08:13:18 method: str | None = None, 08:13:18 url: str | None = None, 08:13:18 response: BaseHTTPResponse | None = None, 08:13:18 error: Exception | None = None, 08:13:18 _pool: ConnectionPool | None = None, 08:13:18 _stacktrace: TracebackType | None = None, 08:13:18 ) -> Self: 08:13:18 """Return a new Retry object with incremented retry counters. 08:13:18 08:13:18 :param response: A response object, or None, if the server did not 08:13:18 return a response. 08:13:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:18 :param Exception error: An error encountered during the request, or 08:13:18 None if the response was received successfully. 08:13:18 08:13:18 :return: A new ``Retry`` object. 08:13:18 """ 08:13:18 if self.total is False and error: 08:13:18 # Disabled, indicate to re-raise the error. 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 08:13:18 total = self.total 08:13:18 if total is not None: 08:13:18 total -= 1 08:13:18 08:13:18 connect = self.connect 08:13:18 read = self.read 08:13:18 redirect = self.redirect 08:13:18 status_count = self.status 08:13:18 other = self.other 08:13:18 cause = "unknown" 08:13:18 status = None 08:13:18 redirect_location = None 08:13:18 08:13:18 if error and self._is_connection_error(error): 08:13:18 # Connect retry? 08:13:18 if connect is False: 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif connect is not None: 08:13:18 connect -= 1 08:13:18 08:13:18 elif error and self._is_read_error(error): 08:13:18 # Read retry? 08:13:18 if read is False or method is None or not self._is_method_retryable(method): 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif read is not None: 08:13:18 read -= 1 08:13:18 08:13:18 elif error: 08:13:18 # Other retry? 08:13:18 if other is not None: 08:13:18 other -= 1 08:13:18 08:13:18 elif response and response.get_redirect_location(): 08:13:18 # Redirect retry? 08:13:18 if redirect is not None: 08:13:18 redirect -= 1 08:13:18 cause = "too many redirects" 08:13:18 response_redirect_location = response.get_redirect_location() 08:13:18 if response_redirect_location: 08:13:18 redirect_location = response_redirect_location 08:13:18 status = response.status 08:13:18 08:13:18 else: 08:13:18 # Incrementing because of a server error like a 500 in 08:13:18 # status_forcelist and the given method is in the allowed_methods 08:13:18 cause = ResponseError.GENERIC_ERROR 08:13:18 if response and response.status: 08:13:18 if status_count is not None: 08:13:18 status_count -= 1 08:13:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:18 status = response.status 08:13:18 08:13:18 history = self.history + ( 08:13:18 RequestHistory(method, url, error, status, redirect_location), 08:13:18 ) 08:13:18 08:13:18 new_retry = self.new( 08:13:18 total=total, 08:13:18 connect=connect, 08:13:18 read=read, 08:13:18 redirect=redirect, 08:13:18 status=status_count, 08:13:18 other=other, 08:13:18 history=history, 08:13:18 ) 08:13:18 08:13:18 if new_retry.is_exhausted(): 08:13:18 reason = error or ResponseError(cause) 08:13:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:18 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:18 08:13:18 During handling of the above exception, another exception occurred: 08:13:18 08:13:18 self = 08:13:18 08:13:18 def test_18_xpdr_device_not_connected(self): 08:13:18 > response = test_utils.get_portmapping_node_attr("XPDRA01", "node-info", None) 08:13:18 08:13:18 transportpce_tests/1.2.1/test01_portmapping.py:203: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:18 response = get_request(target_url) 08:13:18 transportpce_tests/common/test_utils.py:116: in get_request 08:13:18 return requests.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:18 return session.request(method=method, url=url, **kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:18 resp = self.send(prep, **send_kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:18 r = adapter.send(request, **kwargs) 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 except (ProtocolError, OSError) as err: 08:13:18 raise ConnectionError(err, request=request) 08:13:18 08:13:18 except MaxRetryError as e: 08:13:18 if isinstance(e.reason, ConnectTimeoutError): 08:13:18 # TODO: Remove this in 3.0.0: see #2811 08:13:18 if not isinstance(e.reason, NewConnectionError): 08:13:18 raise ConnectTimeout(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, ResponseError): 08:13:18 raise RetryError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _ProxyError): 08:13:18 raise ProxyError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _SSLError): 08:13:18 # This branch is for urllib3 v1.22 and later. 08:13:18 raise SSLError(e, request=request) 08:13:18 08:13:18 > raise ConnectionError(e, request=request) 08:13:18 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:18 ----------------------------- Captured stdout call ----------------------------- 08:13:18 execution of test_18_xpdr_device_not_connected 08:13:18 _______ TransportPCEPortMappingTesting.test_19_rdm_device_disconnection ________ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 > sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:18 raise err 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:18 socket_options = [(6, 1, 1)] 08:13:18 08:13:18 def create_connection( 08:13:18 address: tuple[str, int], 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 source_address: tuple[str, int] | None = None, 08:13:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:18 ) -> socket.socket: 08:13:18 """Connect to *address* and return the socket object. 08:13:18 08:13:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:18 port)``) and return the socket object. Passing the optional 08:13:18 *timeout* parameter will set the timeout on the socket instance 08:13:18 before attempting to connect. If no *timeout* is supplied, the 08:13:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:18 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:18 for the socket to bind as a source address before making the connection. 08:13:18 An host of '' or port 0 tells the OS to use the default. 08:13:18 """ 08:13:18 08:13:18 host, port = address 08:13:18 if host.startswith("["): 08:13:18 host = host.strip("[]") 08:13:18 err = None 08:13:18 08:13:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:18 # The original create_connection function always returns all records. 08:13:18 family = allowed_gai_family() 08:13:18 08:13:18 try: 08:13:18 host.encode("idna") 08:13:18 except UnicodeError: 08:13:18 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:18 08:13:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:18 af, socktype, proto, canonname, sa = res 08:13:18 sock = None 08:13:18 try: 08:13:18 sock = socket.socket(af, socktype, proto) 08:13:18 08:13:18 # If provided, set socket level options before connecting. 08:13:18 _set_socket_options(sock, socket_options) 08:13:18 08:13:18 if timeout is not _DEFAULT_TIMEOUT: 08:13:18 sock.settimeout(timeout) 08:13:18 if source_address: 08:13:18 sock.bind(source_address) 08:13:18 > sock.connect(sa) 08:13:18 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 method = 'DELETE' 08:13:18 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 08:13:18 body = None 08:13:18 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '0', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:13:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 redirect = False, assert_same_host = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:18 decode_content = False, response_kw = {} 08:13:18 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01', query=None, fragment=None) 08:13:18 destination_scheme = None, conn = None, release_this_conn = True 08:13:18 http_tunnel_required = False, err = None, clean_exit = False 08:13:18 08:13:18 def urlopen( # type: ignore[override] 08:13:18 self, 08:13:18 method: str, 08:13:18 url: str, 08:13:18 body: _TYPE_BODY | None = None, 08:13:18 headers: typing.Mapping[str, str] | None = None, 08:13:18 retries: Retry | bool | int | None = None, 08:13:18 redirect: bool = True, 08:13:18 assert_same_host: bool = True, 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 pool_timeout: int | None = None, 08:13:18 release_conn: bool | None = None, 08:13:18 chunked: bool = False, 08:13:18 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:18 preload_content: bool = True, 08:13:18 decode_content: bool = True, 08:13:18 **response_kw: typing.Any, 08:13:18 ) -> BaseHTTPResponse: 08:13:18 """ 08:13:18 Get a connection from the pool and perform an HTTP request. This is the 08:13:18 lowest level call for making a request, so you'll need to specify all 08:13:18 the raw details. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 More commonly, it's appropriate to use a convenience method 08:13:18 such as :meth:`request`. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 `release_conn` will only behave as expected if 08:13:18 `preload_content=False` because we want to make 08:13:18 `preload_content=False` the default behaviour someday soon without 08:13:18 breaking backwards compatibility. 08:13:18 08:13:18 :param method: 08:13:18 HTTP request method (such as GET, POST, PUT, etc.) 08:13:18 08:13:18 :param url: 08:13:18 The URL to perform the request on. 08:13:18 08:13:18 :param body: 08:13:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:18 08:13:18 :param headers: 08:13:18 Dictionary of custom headers to send, such as User-Agent, 08:13:18 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:18 these headers completely replace any pool-specific headers. 08:13:18 08:13:18 :param retries: 08:13:18 Configure the number of retries to allow before raising a 08:13:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:18 08:13:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:18 over different types of retries. 08:13:18 Pass an integer number to retry connection errors that many times, 08:13:18 but no other types of errors. Pass zero to never retry. 08:13:18 08:13:18 If ``False``, then retries are disabled and any exception is raised 08:13:18 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:18 the redirect response will be returned. 08:13:18 08:13:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:18 08:13:18 :param redirect: 08:13:18 If True, automatically handle redirects (status codes 301, 302, 08:13:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:18 will disable redirect, too. 08:13:18 08:13:18 :param assert_same_host: 08:13:18 If ``True``, will make sure that the host of the pool requests is 08:13:18 consistent else will raise HostChangedError. When ``False``, you can 08:13:18 use the pool on an HTTP proxy and request foreign hosts. 08:13:18 08:13:18 :param timeout: 08:13:18 If specified, overrides the default timeout for this one 08:13:18 request. It may be a float (in seconds) or an instance of 08:13:18 :class:`urllib3.util.Timeout`. 08:13:18 08:13:18 :param pool_timeout: 08:13:18 If set and the pool is set to block=True, then this method will 08:13:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:18 connection is available within the time period. 08:13:18 08:13:18 :param bool preload_content: 08:13:18 If True, the response's body will be preloaded into memory. 08:13:18 08:13:18 :param bool decode_content: 08:13:18 If True, will attempt to decode the body based on the 08:13:18 'content-encoding' header. 08:13:18 08:13:18 :param release_conn: 08:13:18 If False, then the urlopen call will not release the connection 08:13:18 back into the pool once a response is received (but will release if 08:13:18 you read the entire contents of the response such as when 08:13:18 `preload_content=True`). This is useful if you're not preloading 08:13:18 the response's content immediately. You will need to call 08:13:18 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:18 back into the pool. If None, it takes the value of ``preload_content`` 08:13:18 which defaults to ``True``. 08:13:18 08:13:18 :param bool chunked: 08:13:18 If True, urllib3 will send the body using chunked transfer 08:13:18 encoding. Otherwise, urllib3 will send the body using the standard 08:13:18 content-length form. Defaults to False. 08:13:18 08:13:18 :param int body_pos: 08:13:18 Position to seek to in file-like body in the event of a retry or 08:13:18 redirect. Typically this won't need to be set because urllib3 will 08:13:18 auto-populate the value when needed. 08:13:18 """ 08:13:18 parsed_url = parse_url(url) 08:13:18 destination_scheme = parsed_url.scheme 08:13:18 08:13:18 if headers is None: 08:13:18 headers = self.headers 08:13:18 08:13:18 if not isinstance(retries, Retry): 08:13:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:18 08:13:18 if release_conn is None: 08:13:18 release_conn = preload_content 08:13:18 08:13:18 # Check host 08:13:18 if assert_same_host and not self.is_same_host(url): 08:13:18 raise HostChangedError(self, url, retries) 08:13:18 08:13:18 # Ensure that the URL we're connecting to is properly encoded 08:13:18 if url.startswith("/"): 08:13:18 url = to_str(_encode_target(url)) 08:13:18 else: 08:13:18 url = to_str(parsed_url.url) 08:13:18 08:13:18 conn = None 08:13:18 08:13:18 # Track whether `conn` needs to be released before 08:13:18 # returning/raising/recursing. Update this variable if necessary, and 08:13:18 # leave `release_conn` constant throughout the function. That way, if 08:13:18 # the function recurses, the original value of `release_conn` will be 08:13:18 # passed down into the recursive call, and its value will be respected. 08:13:18 # 08:13:18 # See issue #651 [1] for details. 08:13:18 # 08:13:18 # [1] 08:13:18 release_this_conn = release_conn 08:13:18 08:13:18 http_tunnel_required = connection_requires_http_tunnel( 08:13:18 self.proxy, self.proxy_config, destination_scheme 08:13:18 ) 08:13:18 08:13:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:18 # have to copy the headers dict so we can safely change it without those 08:13:18 # changes being reflected in anyone else's copy. 08:13:18 if not http_tunnel_required: 08:13:18 headers = headers.copy() # type: ignore[attr-defined] 08:13:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:18 08:13:18 # Must keep the exception bound to a separate variable or else Python 3 08:13:18 # complains about UnboundLocalError. 08:13:18 err = None 08:13:18 08:13:18 # Keep track of whether we cleanly exited the except block. This 08:13:18 # ensures we do proper cleanup in finally. 08:13:18 clean_exit = False 08:13:18 08:13:18 # Rewind body position, if needed. Record current position 08:13:18 # for future rewinds in the event of a redirect/retry. 08:13:18 body_pos = set_file_position(body, body_pos) 08:13:18 08:13:18 try: 08:13:18 # Request a connection from the queue. 08:13:18 timeout_obj = self._get_timeout(timeout) 08:13:18 conn = self._get_conn(timeout=pool_timeout) 08:13:18 08:13:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:18 08:13:18 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:18 try: 08:13:18 self._prepare_proxy(conn) 08:13:18 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:18 self._raise_timeout( 08:13:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:18 ) 08:13:18 raise 08:13:18 08:13:18 # If we're going to release the connection in ``finally:``, then 08:13:18 # the response doesn't need to know about the connection. Otherwise 08:13:18 # it will also try to release it and we'll have a double-release 08:13:18 # mess. 08:13:18 response_conn = conn if not release_conn else None 08:13:18 08:13:18 # Make the request on the HTTPConnection object 08:13:18 > response = self._make_request( 08:13:18 conn, 08:13:18 method, 08:13:18 url, 08:13:18 timeout=timeout_obj, 08:13:18 body=body, 08:13:18 headers=headers, 08:13:18 chunked=chunked, 08:13:18 retries=retries, 08:13:18 response_conn=response_conn, 08:13:18 preload_content=preload_content, 08:13:18 decode_content=decode_content, 08:13:18 **response_kw, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:18 conn.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:18 self.endheaders() 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:18 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:18 self.send(msg) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:18 self.connect() 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:18 self.sock = self._new_conn() 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 except socket.gaierror as e: 08:13:18 raise NameResolutionError(self.host, self, e) from e 08:13:18 except SocketTimeout as e: 08:13:18 raise ConnectTimeoutError( 08:13:18 self, 08:13:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:18 ) from e 08:13:18 08:13:18 except OSError as e: 08:13:18 > raise NewConnectionError( 08:13:18 self, f"Failed to establish a new connection: {e}" 08:13:18 ) from e 08:13:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 > resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:18 retries = retries.increment( 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 method = 'DELETE' 08:13:18 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 08:13:18 response = None 08:13:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:18 _pool = 08:13:18 _stacktrace = 08:13:18 08:13:18 def increment( 08:13:18 self, 08:13:18 method: str | None = None, 08:13:18 url: str | None = None, 08:13:18 response: BaseHTTPResponse | None = None, 08:13:18 error: Exception | None = None, 08:13:18 _pool: ConnectionPool | None = None, 08:13:18 _stacktrace: TracebackType | None = None, 08:13:18 ) -> Self: 08:13:18 """Return a new Retry object with incremented retry counters. 08:13:18 08:13:18 :param response: A response object, or None, if the server did not 08:13:18 return a response. 08:13:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:18 :param Exception error: An error encountered during the request, or 08:13:18 None if the response was received successfully. 08:13:18 08:13:18 :return: A new ``Retry`` object. 08:13:18 """ 08:13:18 if self.total is False and error: 08:13:18 # Disabled, indicate to re-raise the error. 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 08:13:18 total = self.total 08:13:18 if total is not None: 08:13:18 total -= 1 08:13:18 08:13:18 connect = self.connect 08:13:18 read = self.read 08:13:18 redirect = self.redirect 08:13:18 status_count = self.status 08:13:18 other = self.other 08:13:18 cause = "unknown" 08:13:18 status = None 08:13:18 redirect_location = None 08:13:18 08:13:18 if error and self._is_connection_error(error): 08:13:18 # Connect retry? 08:13:18 if connect is False: 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif connect is not None: 08:13:18 connect -= 1 08:13:18 08:13:18 elif error and self._is_read_error(error): 08:13:18 # Read retry? 08:13:18 if read is False or method is None or not self._is_method_retryable(method): 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif read is not None: 08:13:18 read -= 1 08:13:18 08:13:18 elif error: 08:13:18 # Other retry? 08:13:18 if other is not None: 08:13:18 other -= 1 08:13:18 08:13:18 elif response and response.get_redirect_location(): 08:13:18 # Redirect retry? 08:13:18 if redirect is not None: 08:13:18 redirect -= 1 08:13:18 cause = "too many redirects" 08:13:18 response_redirect_location = response.get_redirect_location() 08:13:18 if response_redirect_location: 08:13:18 redirect_location = response_redirect_location 08:13:18 status = response.status 08:13:18 08:13:18 else: 08:13:18 # Incrementing because of a server error like a 500 in 08:13:18 # status_forcelist and the given method is in the allowed_methods 08:13:18 cause = ResponseError.GENERIC_ERROR 08:13:18 if response and response.status: 08:13:18 if status_count is not None: 08:13:18 status_count -= 1 08:13:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:18 status = response.status 08:13:18 08:13:18 history = self.history + ( 08:13:18 RequestHistory(method, url, error, status, redirect_location), 08:13:18 ) 08:13:18 08:13:18 new_retry = self.new( 08:13:18 total=total, 08:13:18 connect=connect, 08:13:18 read=read, 08:13:18 redirect=redirect, 08:13:18 status=status_count, 08:13:18 other=other, 08:13:18 history=history, 08:13:18 ) 08:13:18 08:13:18 if new_retry.is_exhausted(): 08:13:18 reason = error or ResponseError(cause) 08:13:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:18 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:18 08:13:18 During handling of the above exception, another exception occurred: 08:13:18 08:13:18 self = 08:13:18 08:13:18 def test_19_rdm_device_disconnection(self): 08:13:18 > response = test_utils.unmount_device("ROADMA01") 08:13:18 08:13:18 transportpce_tests/1.2.1/test01_portmapping.py:211: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 transportpce_tests/common/test_utils.py:360: in unmount_device 08:13:18 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 08:13:18 transportpce_tests/common/test_utils.py:133: in delete_request 08:13:18 return requests.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:18 return session.request(method=method, url=url, **kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:18 resp = self.send(prep, **send_kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:18 r = adapter.send(request, **kwargs) 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 except (ProtocolError, OSError) as err: 08:13:18 raise ConnectionError(err, request=request) 08:13:18 08:13:18 except MaxRetryError as e: 08:13:18 if isinstance(e.reason, ConnectTimeoutError): 08:13:18 # TODO: Remove this in 3.0.0: see #2811 08:13:18 if not isinstance(e.reason, NewConnectionError): 08:13:18 raise ConnectTimeout(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, ResponseError): 08:13:18 raise RetryError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _ProxyError): 08:13:18 raise ProxyError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _SSLError): 08:13:18 # This branch is for urllib3 v1.22 and later. 08:13:18 raise SSLError(e, request=request) 08:13:18 08:13:18 > raise ConnectionError(e, request=request) 08:13:18 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:18 ----------------------------- Captured stdout call ----------------------------- 08:13:18 execution of test_19_rdm_device_disconnection 08:13:18 ________ TransportPCEPortMappingTesting.test_20_rdm_device_disconnected ________ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 > sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:18 raise err 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:18 socket_options = [(6, 1, 1)] 08:13:18 08:13:18 def create_connection( 08:13:18 address: tuple[str, int], 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 source_address: tuple[str, int] | None = None, 08:13:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:18 ) -> socket.socket: 08:13:18 """Connect to *address* and return the socket object. 08:13:18 08:13:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:18 port)``) and return the socket object. Passing the optional 08:13:18 *timeout* parameter will set the timeout on the socket instance 08:13:18 before attempting to connect. If no *timeout* is supplied, the 08:13:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:18 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:18 for the socket to bind as a source address before making the connection. 08:13:18 An host of '' or port 0 tells the OS to use the default. 08:13:18 """ 08:13:18 08:13:18 host, port = address 08:13:18 if host.startswith("["): 08:13:18 host = host.strip("[]") 08:13:18 err = None 08:13:18 08:13:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:18 # The original create_connection function always returns all records. 08:13:18 family = allowed_gai_family() 08:13:18 08:13:18 try: 08:13:18 host.encode("idna") 08:13:18 except UnicodeError: 08:13:18 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:18 08:13:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:18 af, socktype, proto, canonname, sa = res 08:13:18 sock = None 08:13:18 try: 08:13:18 sock = socket.socket(af, socktype, proto) 08:13:18 08:13:18 # If provided, set socket level options before connecting. 08:13:18 _set_socket_options(sock, socket_options) 08:13:18 08:13:18 if timeout is not _DEFAULT_TIMEOUT: 08:13:18 sock.settimeout(timeout) 08:13:18 if source_address: 08:13:18 sock.bind(source_address) 08:13:18 > sock.connect(sa) 08:13:18 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 method = 'GET' 08:13:18 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 08:13:18 body = None 08:13: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='} 08:13:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 redirect = False, assert_same_host = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:18 decode_content = False, response_kw = {} 08:13:18 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01', query='content=nonconfig', fragment=None) 08:13:18 destination_scheme = None, conn = None, release_this_conn = True 08:13:18 http_tunnel_required = False, err = None, clean_exit = False 08:13:18 08:13:18 def urlopen( # type: ignore[override] 08:13:18 self, 08:13:18 method: str, 08:13:18 url: str, 08:13:18 body: _TYPE_BODY | None = None, 08:13:18 headers: typing.Mapping[str, str] | None = None, 08:13:18 retries: Retry | bool | int | None = None, 08:13:18 redirect: bool = True, 08:13:18 assert_same_host: bool = True, 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 pool_timeout: int | None = None, 08:13:18 release_conn: bool | None = None, 08:13:18 chunked: bool = False, 08:13:18 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:18 preload_content: bool = True, 08:13:18 decode_content: bool = True, 08:13:18 **response_kw: typing.Any, 08:13:18 ) -> BaseHTTPResponse: 08:13:18 """ 08:13:18 Get a connection from the pool and perform an HTTP request. This is the 08:13:18 lowest level call for making a request, so you'll need to specify all 08:13:18 the raw details. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 More commonly, it's appropriate to use a convenience method 08:13:18 such as :meth:`request`. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 `release_conn` will only behave as expected if 08:13:18 `preload_content=False` because we want to make 08:13:18 `preload_content=False` the default behaviour someday soon without 08:13:18 breaking backwards compatibility. 08:13:18 08:13:18 :param method: 08:13:18 HTTP request method (such as GET, POST, PUT, etc.) 08:13:18 08:13:18 :param url: 08:13:18 The URL to perform the request on. 08:13:18 08:13:18 :param body: 08:13:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:18 08:13:18 :param headers: 08:13:18 Dictionary of custom headers to send, such as User-Agent, 08:13:18 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:18 these headers completely replace any pool-specific headers. 08:13:18 08:13:18 :param retries: 08:13:18 Configure the number of retries to allow before raising a 08:13:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:18 08:13:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:18 over different types of retries. 08:13:18 Pass an integer number to retry connection errors that many times, 08:13:18 but no other types of errors. Pass zero to never retry. 08:13:18 08:13:18 If ``False``, then retries are disabled and any exception is raised 08:13:18 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:18 the redirect response will be returned. 08:13:18 08:13:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:18 08:13:18 :param redirect: 08:13:18 If True, automatically handle redirects (status codes 301, 302, 08:13:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:18 will disable redirect, too. 08:13:18 08:13:18 :param assert_same_host: 08:13:18 If ``True``, will make sure that the host of the pool requests is 08:13:18 consistent else will raise HostChangedError. When ``False``, you can 08:13:18 use the pool on an HTTP proxy and request foreign hosts. 08:13:18 08:13:18 :param timeout: 08:13:18 If specified, overrides the default timeout for this one 08:13:18 request. It may be a float (in seconds) or an instance of 08:13:18 :class:`urllib3.util.Timeout`. 08:13:18 08:13:18 :param pool_timeout: 08:13:18 If set and the pool is set to block=True, then this method will 08:13:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:18 connection is available within the time period. 08:13:18 08:13:18 :param bool preload_content: 08:13:18 If True, the response's body will be preloaded into memory. 08:13:18 08:13:18 :param bool decode_content: 08:13:18 If True, will attempt to decode the body based on the 08:13:18 'content-encoding' header. 08:13:18 08:13:18 :param release_conn: 08:13:18 If False, then the urlopen call will not release the connection 08:13:18 back into the pool once a response is received (but will release if 08:13:18 you read the entire contents of the response such as when 08:13:18 `preload_content=True`). This is useful if you're not preloading 08:13:18 the response's content immediately. You will need to call 08:13:18 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:18 back into the pool. If None, it takes the value of ``preload_content`` 08:13:18 which defaults to ``True``. 08:13:18 08:13:18 :param bool chunked: 08:13:18 If True, urllib3 will send the body using chunked transfer 08:13:18 encoding. Otherwise, urllib3 will send the body using the standard 08:13:18 content-length form. Defaults to False. 08:13:18 08:13:18 :param int body_pos: 08:13:18 Position to seek to in file-like body in the event of a retry or 08:13:18 redirect. Typically this won't need to be set because urllib3 will 08:13:18 auto-populate the value when needed. 08:13:18 """ 08:13:18 parsed_url = parse_url(url) 08:13:18 destination_scheme = parsed_url.scheme 08:13:18 08:13:18 if headers is None: 08:13:18 headers = self.headers 08:13:18 08:13:18 if not isinstance(retries, Retry): 08:13:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:18 08:13:18 if release_conn is None: 08:13:18 release_conn = preload_content 08:13:18 08:13:18 # Check host 08:13:18 if assert_same_host and not self.is_same_host(url): 08:13:18 raise HostChangedError(self, url, retries) 08:13:18 08:13:18 # Ensure that the URL we're connecting to is properly encoded 08:13:18 if url.startswith("/"): 08:13:18 url = to_str(_encode_target(url)) 08:13:18 else: 08:13:18 url = to_str(parsed_url.url) 08:13:18 08:13:18 conn = None 08:13:18 08:13:18 # Track whether `conn` needs to be released before 08:13:18 # returning/raising/recursing. Update this variable if necessary, and 08:13:18 # leave `release_conn` constant throughout the function. That way, if 08:13:18 # the function recurses, the original value of `release_conn` will be 08:13:18 # passed down into the recursive call, and its value will be respected. 08:13:18 # 08:13:18 # See issue #651 [1] for details. 08:13:18 # 08:13:18 # [1] 08:13:18 release_this_conn = release_conn 08:13:18 08:13:18 http_tunnel_required = connection_requires_http_tunnel( 08:13:18 self.proxy, self.proxy_config, destination_scheme 08:13:18 ) 08:13:18 08:13:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:18 # have to copy the headers dict so we can safely change it without those 08:13:18 # changes being reflected in anyone else's copy. 08:13:18 if not http_tunnel_required: 08:13:18 headers = headers.copy() # type: ignore[attr-defined] 08:13:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:18 08:13:18 # Must keep the exception bound to a separate variable or else Python 3 08:13:18 # complains about UnboundLocalError. 08:13:18 err = None 08:13:18 08:13:18 # Keep track of whether we cleanly exited the except block. This 08:13:18 # ensures we do proper cleanup in finally. 08:13:18 clean_exit = False 08:13:18 08:13:18 # Rewind body position, if needed. Record current position 08:13:18 # for future rewinds in the event of a redirect/retry. 08:13:18 body_pos = set_file_position(body, body_pos) 08:13:18 08:13:18 try: 08:13:18 # Request a connection from the queue. 08:13:18 timeout_obj = self._get_timeout(timeout) 08:13:18 conn = self._get_conn(timeout=pool_timeout) 08:13:18 08:13:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:18 08:13:18 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:18 try: 08:13:18 self._prepare_proxy(conn) 08:13:18 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:18 self._raise_timeout( 08:13:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:18 ) 08:13:18 raise 08:13:18 08:13:18 # If we're going to release the connection in ``finally:``, then 08:13:18 # the response doesn't need to know about the connection. Otherwise 08:13:18 # it will also try to release it and we'll have a double-release 08:13:18 # mess. 08:13:18 response_conn = conn if not release_conn else None 08:13:18 08:13:18 # Make the request on the HTTPConnection object 08:13:18 > response = self._make_request( 08:13:18 conn, 08:13:18 method, 08:13:18 url, 08:13:18 timeout=timeout_obj, 08:13:18 body=body, 08:13:18 headers=headers, 08:13:18 chunked=chunked, 08:13:18 retries=retries, 08:13:18 response_conn=response_conn, 08:13:18 preload_content=preload_content, 08:13:18 decode_content=decode_content, 08:13:18 **response_kw, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:18 conn.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:18 self.endheaders() 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:18 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:18 self.send(msg) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:18 self.connect() 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:18 self.sock = self._new_conn() 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 except socket.gaierror as e: 08:13:18 raise NameResolutionError(self.host, self, e) from e 08:13:18 except SocketTimeout as e: 08:13:18 raise ConnectTimeoutError( 08:13:18 self, 08:13:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:18 ) from e 08:13:18 08:13:18 except OSError as e: 08:13:18 > raise NewConnectionError( 08:13:18 self, f"Failed to establish a new connection: {e}" 08:13:18 ) from e 08:13:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 > resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:18 retries = retries.increment( 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 method = 'GET' 08:13:18 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 08:13:18 response = None 08:13:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:18 _pool = 08:13:18 _stacktrace = 08:13:18 08:13:18 def increment( 08:13:18 self, 08:13:18 method: str | None = None, 08:13:18 url: str | None = None, 08:13:18 response: BaseHTTPResponse | None = None, 08:13:18 error: Exception | None = None, 08:13:18 _pool: ConnectionPool | None = None, 08:13:18 _stacktrace: TracebackType | None = None, 08:13:18 ) -> Self: 08:13:18 """Return a new Retry object with incremented retry counters. 08:13:18 08:13:18 :param response: A response object, or None, if the server did not 08:13:18 return a response. 08:13:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:18 :param Exception error: An error encountered during the request, or 08:13:18 None if the response was received successfully. 08:13:18 08:13:18 :return: A new ``Retry`` object. 08:13:18 """ 08:13:18 if self.total is False and error: 08:13:18 # Disabled, indicate to re-raise the error. 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 08:13:18 total = self.total 08:13:18 if total is not None: 08:13:18 total -= 1 08:13:18 08:13:18 connect = self.connect 08:13:18 read = self.read 08:13:18 redirect = self.redirect 08:13:18 status_count = self.status 08:13:18 other = self.other 08:13:18 cause = "unknown" 08:13:18 status = None 08:13:18 redirect_location = None 08:13:18 08:13:18 if error and self._is_connection_error(error): 08:13:18 # Connect retry? 08:13:18 if connect is False: 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif connect is not None: 08:13:18 connect -= 1 08:13:18 08:13:18 elif error and self._is_read_error(error): 08:13:18 # Read retry? 08:13:18 if read is False or method is None or not self._is_method_retryable(method): 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif read is not None: 08:13:18 read -= 1 08:13:18 08:13:18 elif error: 08:13:18 # Other retry? 08:13:18 if other is not None: 08:13:18 other -= 1 08:13:18 08:13:18 elif response and response.get_redirect_location(): 08:13:18 # Redirect retry? 08:13:18 if redirect is not None: 08:13:18 redirect -= 1 08:13:18 cause = "too many redirects" 08:13:18 response_redirect_location = response.get_redirect_location() 08:13:18 if response_redirect_location: 08:13:18 redirect_location = response_redirect_location 08:13:18 status = response.status 08:13:18 08:13:18 else: 08:13:18 # Incrementing because of a server error like a 500 in 08:13:18 # status_forcelist and the given method is in the allowed_methods 08:13:18 cause = ResponseError.GENERIC_ERROR 08:13:18 if response and response.status: 08:13:18 if status_count is not None: 08:13:18 status_count -= 1 08:13:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:18 status = response.status 08:13:18 08:13:18 history = self.history + ( 08:13:18 RequestHistory(method, url, error, status, redirect_location), 08:13:18 ) 08:13:18 08:13:18 new_retry = self.new( 08:13:18 total=total, 08:13:18 connect=connect, 08:13:18 read=read, 08:13:18 redirect=redirect, 08:13:18 status=status_count, 08:13:18 other=other, 08:13:18 history=history, 08:13:18 ) 08:13:18 08:13:18 if new_retry.is_exhausted(): 08:13:18 reason = error or ResponseError(cause) 08:13:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:18 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:18 08:13:18 During handling of the above exception, another exception occurred: 08:13:18 08:13:18 self = 08:13:18 08:13:18 def test_20_rdm_device_disconnected(self): 08:13:18 > response = test_utils.check_device_connection("ROADMA01") 08:13:18 08:13:18 transportpce_tests/1.2.1/test01_portmapping.py:215: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 transportpce_tests/common/test_utils.py:371: in check_device_connection 08:13:18 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 08:13:18 transportpce_tests/common/test_utils.py:116: in get_request 08:13:18 return requests.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:18 return session.request(method=method, url=url, **kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:18 resp = self.send(prep, **send_kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:18 r = adapter.send(request, **kwargs) 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 except (ProtocolError, OSError) as err: 08:13:18 raise ConnectionError(err, request=request) 08:13:18 08:13:18 except MaxRetryError as e: 08:13:18 if isinstance(e.reason, ConnectTimeoutError): 08:13:18 # TODO: Remove this in 3.0.0: see #2811 08:13:18 if not isinstance(e.reason, NewConnectionError): 08:13:18 raise ConnectTimeout(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, ResponseError): 08:13:18 raise RetryError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _ProxyError): 08:13:18 raise ProxyError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _SSLError): 08:13:18 # This branch is for urllib3 v1.22 and later. 08:13:18 raise SSLError(e, request=request) 08:13:18 08:13:18 > raise ConnectionError(e, request=request) 08:13:18 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:18 ----------------------------- Captured stdout call ----------------------------- 08:13:18 execution of test_20_rdm_device_disconnected 08:13:18 _______ TransportPCEPortMappingTesting.test_21_rdm_device_not_connected ________ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 > sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:13:18 raise err 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 address = ('localhost', 8182), timeout = 10, source_address = None 08:13:18 socket_options = [(6, 1, 1)] 08:13:18 08:13:18 def create_connection( 08:13:18 address: tuple[str, int], 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 source_address: tuple[str, int] | None = None, 08:13:18 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:13:18 ) -> socket.socket: 08:13:18 """Connect to *address* and return the socket object. 08:13:18 08:13:18 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:13:18 port)``) and return the socket object. Passing the optional 08:13:18 *timeout* parameter will set the timeout on the socket instance 08:13:18 before attempting to connect. If no *timeout* is supplied, the 08:13:18 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:13:18 is used. If *source_address* is set it must be a tuple of (host, port) 08:13:18 for the socket to bind as a source address before making the connection. 08:13:18 An host of '' or port 0 tells the OS to use the default. 08:13:18 """ 08:13:18 08:13:18 host, port = address 08:13:18 if host.startswith("["): 08:13:18 host = host.strip("[]") 08:13:18 err = None 08:13:18 08:13:18 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:13:18 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:13:18 # The original create_connection function always returns all records. 08:13:18 family = allowed_gai_family() 08:13:18 08:13:18 try: 08:13:18 host.encode("idna") 08:13:18 except UnicodeError: 08:13:18 raise LocationParseError(f"'{host}', label empty or too long") from None 08:13:18 08:13:18 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:13:18 af, socktype, proto, canonname, sa = res 08:13:18 sock = None 08:13:18 try: 08:13:18 sock = socket.socket(af, socktype, proto) 08:13:18 08:13:18 # If provided, set socket level options before connecting. 08:13:18 _set_socket_options(sock, socket_options) 08:13:18 08:13:18 if timeout is not _DEFAULT_TIMEOUT: 08:13:18 sock.settimeout(timeout) 08:13:18 if source_address: 08:13:18 sock.bind(source_address) 08:13:18 > sock.connect(sa) 08:13:18 E ConnectionRefusedError: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 method = 'GET' 08:13:18 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 08:13:18 body = None 08:13: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='} 08:13:18 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 redirect = False, assert_same_host = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:13:18 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:13:18 decode_content = False, response_kw = {} 08:13:18 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info', query=None, fragment=None) 08:13:18 destination_scheme = None, conn = None, release_this_conn = True 08:13:18 http_tunnel_required = False, err = None, clean_exit = False 08:13:18 08:13:18 def urlopen( # type: ignore[override] 08:13:18 self, 08:13:18 method: str, 08:13:18 url: str, 08:13:18 body: _TYPE_BODY | None = None, 08:13:18 headers: typing.Mapping[str, str] | None = None, 08:13:18 retries: Retry | bool | int | None = None, 08:13:18 redirect: bool = True, 08:13:18 assert_same_host: bool = True, 08:13:18 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:13:18 pool_timeout: int | None = None, 08:13:18 release_conn: bool | None = None, 08:13:18 chunked: bool = False, 08:13:18 body_pos: _TYPE_BODY_POSITION | None = None, 08:13:18 preload_content: bool = True, 08:13:18 decode_content: bool = True, 08:13:18 **response_kw: typing.Any, 08:13:18 ) -> BaseHTTPResponse: 08:13:18 """ 08:13:18 Get a connection from the pool and perform an HTTP request. This is the 08:13:18 lowest level call for making a request, so you'll need to specify all 08:13:18 the raw details. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 More commonly, it's appropriate to use a convenience method 08:13:18 such as :meth:`request`. 08:13:18 08:13:18 .. note:: 08:13:18 08:13:18 `release_conn` will only behave as expected if 08:13:18 `preload_content=False` because we want to make 08:13:18 `preload_content=False` the default behaviour someday soon without 08:13:18 breaking backwards compatibility. 08:13:18 08:13:18 :param method: 08:13:18 HTTP request method (such as GET, POST, PUT, etc.) 08:13:18 08:13:18 :param url: 08:13:18 The URL to perform the request on. 08:13:18 08:13:18 :param body: 08:13:18 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:13:18 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:13:18 08:13:18 :param headers: 08:13:18 Dictionary of custom headers to send, such as User-Agent, 08:13:18 If-None-Match, etc. If None, pool headers are used. If provided, 08:13:18 these headers completely replace any pool-specific headers. 08:13:18 08:13:18 :param retries: 08:13:18 Configure the number of retries to allow before raising a 08:13:18 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:13:18 08:13:18 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:13:18 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:13:18 over different types of retries. 08:13:18 Pass an integer number to retry connection errors that many times, 08:13:18 but no other types of errors. Pass zero to never retry. 08:13:18 08:13:18 If ``False``, then retries are disabled and any exception is raised 08:13:18 immediately. Also, instead of raising a MaxRetryError on redirects, 08:13:18 the redirect response will be returned. 08:13:18 08:13:18 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:13:18 08:13:18 :param redirect: 08:13:18 If True, automatically handle redirects (status codes 301, 302, 08:13:18 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:13:18 will disable redirect, too. 08:13:18 08:13:18 :param assert_same_host: 08:13:18 If ``True``, will make sure that the host of the pool requests is 08:13:18 consistent else will raise HostChangedError. When ``False``, you can 08:13:18 use the pool on an HTTP proxy and request foreign hosts. 08:13:18 08:13:18 :param timeout: 08:13:18 If specified, overrides the default timeout for this one 08:13:18 request. It may be a float (in seconds) or an instance of 08:13:18 :class:`urllib3.util.Timeout`. 08:13:18 08:13:18 :param pool_timeout: 08:13:18 If set and the pool is set to block=True, then this method will 08:13:18 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:13:18 connection is available within the time period. 08:13:18 08:13:18 :param bool preload_content: 08:13:18 If True, the response's body will be preloaded into memory. 08:13:18 08:13:18 :param bool decode_content: 08:13:18 If True, will attempt to decode the body based on the 08:13:18 'content-encoding' header. 08:13:18 08:13:18 :param release_conn: 08:13:18 If False, then the urlopen call will not release the connection 08:13:18 back into the pool once a response is received (but will release if 08:13:18 you read the entire contents of the response such as when 08:13:18 `preload_content=True`). This is useful if you're not preloading 08:13:18 the response's content immediately. You will need to call 08:13:18 ``r.release_conn()`` on the response ``r`` to return the connection 08:13:18 back into the pool. If None, it takes the value of ``preload_content`` 08:13:18 which defaults to ``True``. 08:13:18 08:13:18 :param bool chunked: 08:13:18 If True, urllib3 will send the body using chunked transfer 08:13:18 encoding. Otherwise, urllib3 will send the body using the standard 08:13:18 content-length form. Defaults to False. 08:13:18 08:13:18 :param int body_pos: 08:13:18 Position to seek to in file-like body in the event of a retry or 08:13:18 redirect. Typically this won't need to be set because urllib3 will 08:13:18 auto-populate the value when needed. 08:13:18 """ 08:13:18 parsed_url = parse_url(url) 08:13:18 destination_scheme = parsed_url.scheme 08:13:18 08:13:18 if headers is None: 08:13:18 headers = self.headers 08:13:18 08:13:18 if not isinstance(retries, Retry): 08:13:18 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:13:18 08:13:18 if release_conn is None: 08:13:18 release_conn = preload_content 08:13:18 08:13:18 # Check host 08:13:18 if assert_same_host and not self.is_same_host(url): 08:13:18 raise HostChangedError(self, url, retries) 08:13:18 08:13:18 # Ensure that the URL we're connecting to is properly encoded 08:13:18 if url.startswith("/"): 08:13:18 url = to_str(_encode_target(url)) 08:13:18 else: 08:13:18 url = to_str(parsed_url.url) 08:13:18 08:13:18 conn = None 08:13:18 08:13:18 # Track whether `conn` needs to be released before 08:13:18 # returning/raising/recursing. Update this variable if necessary, and 08:13:18 # leave `release_conn` constant throughout the function. That way, if 08:13:18 # the function recurses, the original value of `release_conn` will be 08:13:18 # passed down into the recursive call, and its value will be respected. 08:13:18 # 08:13:18 # See issue #651 [1] for details. 08:13:18 # 08:13:18 # [1] 08:13:18 release_this_conn = release_conn 08:13:18 08:13:18 http_tunnel_required = connection_requires_http_tunnel( 08:13:18 self.proxy, self.proxy_config, destination_scheme 08:13:18 ) 08:13:18 08:13:18 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:13:18 # have to copy the headers dict so we can safely change it without those 08:13:18 # changes being reflected in anyone else's copy. 08:13:18 if not http_tunnel_required: 08:13:18 headers = headers.copy() # type: ignore[attr-defined] 08:13:18 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:13:18 08:13:18 # Must keep the exception bound to a separate variable or else Python 3 08:13:18 # complains about UnboundLocalError. 08:13:18 err = None 08:13:18 08:13:18 # Keep track of whether we cleanly exited the except block. This 08:13:18 # ensures we do proper cleanup in finally. 08:13:18 clean_exit = False 08:13:18 08:13:18 # Rewind body position, if needed. Record current position 08:13:18 # for future rewinds in the event of a redirect/retry. 08:13:18 body_pos = set_file_position(body, body_pos) 08:13:18 08:13:18 try: 08:13:18 # Request a connection from the queue. 08:13:18 timeout_obj = self._get_timeout(timeout) 08:13:18 conn = self._get_conn(timeout=pool_timeout) 08:13:18 08:13:18 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:13:18 08:13:18 # Is this a closed/new connection that requires CONNECT tunnelling? 08:13:18 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:13:18 try: 08:13:18 self._prepare_proxy(conn) 08:13:18 except (BaseSSLError, OSError, SocketTimeout) as e: 08:13:18 self._raise_timeout( 08:13:18 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:13:18 ) 08:13:18 raise 08:13:18 08:13:18 # If we're going to release the connection in ``finally:``, then 08:13:18 # the response doesn't need to know about the connection. Otherwise 08:13:18 # it will also try to release it and we'll have a double-release 08:13:18 # mess. 08:13:18 response_conn = conn if not release_conn else None 08:13:18 08:13:18 # Make the request on the HTTPConnection object 08:13:18 > response = self._make_request( 08:13:18 conn, 08:13:18 method, 08:13:18 url, 08:13:18 timeout=timeout_obj, 08:13:18 body=body, 08:13:18 headers=headers, 08:13:18 chunked=chunked, 08:13:18 retries=retries, 08:13:18 response_conn=response_conn, 08:13:18 preload_content=preload_content, 08:13:18 decode_content=decode_content, 08:13:18 **response_kw, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:13:18 conn.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:13:18 self.endheaders() 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:13:18 self._send_output(message_body, encode_chunked=encode_chunked) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:13:18 self.send(msg) 08:13:18 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:13:18 self.connect() 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:13:18 self.sock = self._new_conn() 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 08:13:18 def _new_conn(self) -> socket.socket: 08:13:18 """Establish a socket connection and set nodelay settings on it. 08:13:18 08:13:18 :return: New socket connection. 08:13:18 """ 08:13:18 try: 08:13:18 sock = connection.create_connection( 08:13:18 (self._dns_host, self.port), 08:13:18 self.timeout, 08:13:18 source_address=self.source_address, 08:13:18 socket_options=self.socket_options, 08:13:18 ) 08:13:18 except socket.gaierror as e: 08:13:18 raise NameResolutionError(self.host, self, e) from e 08:13:18 except SocketTimeout as e: 08:13:18 raise ConnectTimeoutError( 08:13:18 self, 08:13:18 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:13:18 ) from e 08:13:18 08:13:18 except OSError as e: 08:13:18 > raise NewConnectionError( 08:13:18 self, f"Failed to establish a new connection: {e}" 08:13:18 ) from e 08:13:18 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:13:18 08:13:18 The above exception was the direct cause of the following exception: 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 > resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:13:18 retries = retries.increment( 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:13:18 method = 'GET' 08:13:18 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 08:13:18 response = None 08:13:18 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:13:18 _pool = 08:13:18 _stacktrace = 08:13:18 08:13:18 def increment( 08:13:18 self, 08:13:18 method: str | None = None, 08:13:18 url: str | None = None, 08:13:18 response: BaseHTTPResponse | None = None, 08:13:18 error: Exception | None = None, 08:13:18 _pool: ConnectionPool | None = None, 08:13:18 _stacktrace: TracebackType | None = None, 08:13:18 ) -> Self: 08:13:18 """Return a new Retry object with incremented retry counters. 08:13:18 08:13:18 :param response: A response object, or None, if the server did not 08:13:18 return a response. 08:13:18 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:13:18 :param Exception error: An error encountered during the request, or 08:13:18 None if the response was received successfully. 08:13:18 08:13:18 :return: A new ``Retry`` object. 08:13:18 """ 08:13:18 if self.total is False and error: 08:13:18 # Disabled, indicate to re-raise the error. 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 08:13:18 total = self.total 08:13:18 if total is not None: 08:13:18 total -= 1 08:13:18 08:13:18 connect = self.connect 08:13:18 read = self.read 08:13:18 redirect = self.redirect 08:13:18 status_count = self.status 08:13:18 other = self.other 08:13:18 cause = "unknown" 08:13:18 status = None 08:13:18 redirect_location = None 08:13:18 08:13:18 if error and self._is_connection_error(error): 08:13:18 # Connect retry? 08:13:18 if connect is False: 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif connect is not None: 08:13:18 connect -= 1 08:13:18 08:13:18 elif error and self._is_read_error(error): 08:13:18 # Read retry? 08:13:18 if read is False or method is None or not self._is_method_retryable(method): 08:13:18 raise reraise(type(error), error, _stacktrace) 08:13:18 elif read is not None: 08:13:18 read -= 1 08:13:18 08:13:18 elif error: 08:13:18 # Other retry? 08:13:18 if other is not None: 08:13:18 other -= 1 08:13:18 08:13:18 elif response and response.get_redirect_location(): 08:13:18 # Redirect retry? 08:13:18 if redirect is not None: 08:13:18 redirect -= 1 08:13:18 cause = "too many redirects" 08:13:18 response_redirect_location = response.get_redirect_location() 08:13:18 if response_redirect_location: 08:13:18 redirect_location = response_redirect_location 08:13:18 status = response.status 08:13:18 08:13:18 else: 08:13:18 # Incrementing because of a server error like a 500 in 08:13:18 # status_forcelist and the given method is in the allowed_methods 08:13:18 cause = ResponseError.GENERIC_ERROR 08:13:18 if response and response.status: 08:13:18 if status_count is not None: 08:13:18 status_count -= 1 08:13:18 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:13:18 status = response.status 08:13:18 08:13:18 history = self.history + ( 08:13:18 RequestHistory(method, url, error, status, redirect_location), 08:13:18 ) 08:13:18 08:13:18 new_retry = self.new( 08:13:18 total=total, 08:13:18 connect=connect, 08:13:18 read=read, 08:13:18 redirect=redirect, 08:13:18 status=status_count, 08:13:18 other=other, 08:13:18 history=history, 08:13:18 ) 08:13:18 08:13:18 if new_retry.is_exhausted(): 08:13:18 reason = error or ResponseError(cause) 08:13:18 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:13:18 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:13:18 08:13:18 During handling of the above exception, another exception occurred: 08:13:18 08:13:18 self = 08:13:18 08:13:18 def test_21_rdm_device_not_connected(self): 08:13:18 > response = test_utils.get_portmapping_node_attr("ROADMA01", "node-info", None) 08:13:18 08:13:18 transportpce_tests/1.2.1/test01_portmapping.py:223: 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 transportpce_tests/common/test_utils.py:473: in get_portmapping_node_attr 08:13:18 response = get_request(target_url) 08:13:18 transportpce_tests/common/test_utils.py:116: in get_request 08:13:18 return requests.request( 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:13:18 return session.request(method=method, url=url, **kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:13:18 resp = self.send(prep, **send_kwargs) 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:13:18 r = adapter.send(request, **kwargs) 08:13:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:13:18 08:13:18 self = 08:13:18 request = , stream = False 08:13:18 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:13:18 proxies = OrderedDict() 08:13:18 08:13:18 def send( 08:13:18 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:13:18 ): 08:13:18 """Sends PreparedRequest object. Returns Response object. 08:13:18 08:13:18 :param request: The :class:`PreparedRequest ` being sent. 08:13:18 :param stream: (optional) Whether to stream the request content. 08:13:18 :param timeout: (optional) How long to wait for the server to send 08:13:18 data before giving up, as a float, or a :ref:`(connect timeout, 08:13:18 read timeout) ` tuple. 08:13:18 :type timeout: float or tuple or urllib3 Timeout object 08:13:18 :param verify: (optional) Either a boolean, in which case it controls whether 08:13:18 we verify the server's TLS certificate, or a string, in which case it 08:13:18 must be a path to a CA bundle to use 08:13:18 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:13:18 :param proxies: (optional) The proxies dictionary to apply to the request. 08:13:18 :rtype: requests.Response 08:13:18 """ 08:13:18 08:13:18 try: 08:13:18 conn = self.get_connection_with_tls_context( 08:13:18 request, verify, proxies=proxies, cert=cert 08:13:18 ) 08:13:18 except LocationValueError as e: 08:13:18 raise InvalidURL(e, request=request) 08:13:18 08:13:18 self.cert_verify(conn, request.url, verify, cert) 08:13:18 url = self.request_url(request, proxies) 08:13:18 self.add_headers( 08:13:18 request, 08:13:18 stream=stream, 08:13:18 timeout=timeout, 08:13:18 verify=verify, 08:13:18 cert=cert, 08:13:18 proxies=proxies, 08:13:18 ) 08:13:18 08:13:18 chunked = not (request.body is None or "Content-Length" in request.headers) 08:13:18 08:13:18 if isinstance(timeout, tuple): 08:13:18 try: 08:13:18 connect, read = timeout 08:13:18 timeout = TimeoutSauce(connect=connect, read=read) 08:13:18 except ValueError: 08:13:18 raise ValueError( 08:13:18 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:13:18 f"or a single float to set both timeouts to the same value." 08:13:18 ) 08:13:18 elif isinstance(timeout, TimeoutSauce): 08:13:18 pass 08:13:18 else: 08:13:18 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:13:18 08:13:18 try: 08:13:18 resp = conn.urlopen( 08:13:18 method=request.method, 08:13:18 url=url, 08:13:18 body=request.body, 08:13:18 headers=request.headers, 08:13:18 redirect=False, 08:13:18 assert_same_host=False, 08:13:18 preload_content=False, 08:13:18 decode_content=False, 08:13:18 retries=self.max_retries, 08:13:18 timeout=timeout, 08:13:18 chunked=chunked, 08:13:18 ) 08:13:18 08:13:18 except (ProtocolError, OSError) as err: 08:13:18 raise ConnectionError(err, request=request) 08:13:18 08:13:18 except MaxRetryError as e: 08:13:18 if isinstance(e.reason, ConnectTimeoutError): 08:13:18 # TODO: Remove this in 3.0.0: see #2811 08:13:18 if not isinstance(e.reason, NewConnectionError): 08:13:18 raise ConnectTimeout(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, ResponseError): 08:13:18 raise RetryError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _ProxyError): 08:13:18 raise ProxyError(e, request=request) 08:13:18 08:13:18 if isinstance(e.reason, _SSLError): 08:13:18 # This branch is for urllib3 v1.22 and later. 08:13:18 raise SSLError(e, request=request) 08:13:18 08:13:18 > raise ConnectionError(e, request=request) 08:13:18 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:13:18 08:13:18 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:13:18 ----------------------------- Captured stdout call ----------------------------- 08:13:18 execution of test_21_rdm_device_not_connected 08:13:18 --------------------------- Captured stdout teardown --------------------------- 08:13:18 all processes killed 08:13:18 =========================== short test summary info ============================ 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_02_rdm_device_connected 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_03_rdm_portmapping_info 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_04_rdm_portmapping_DEG1_TTP_TXRX 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_05_rdm_portmapping_SRG1_PP7_TXRX 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_06_rdm_portmapping_SRG3_PP1_TXRX 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_09_xpdr_portmapping_info 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_10_xpdr_portmapping_NETWORK1 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_11_xpdr_portmapping_NETWORK2 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_12_xpdr_portmapping_CLIENT1 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_13_xpdr_portmapping_CLIENT2 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_14_xpdr_portmapping_CLIENT3 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_15_xpdr_portmapping_CLIENT4 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_16_xpdr_device_disconnection 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_17_xpdr_device_disconnected 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_18_xpdr_device_not_connected 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_19_rdm_device_disconnection 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_20_rdm_device_disconnected 08:13:18 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_21_rdm_device_not_connected 08:13:18 18 failed, 3 passed in 424.89s (0:07:04) 08:13:18 tests121: exit 1 (425.35 seconds) /w/workspace/transportpce-tox-verify-scandium/tests> ./launch_tests.sh 1.2.1 pid=35457 08:13:31 ............ [100%] 08:13:44 12 passed in 42.50s 08:13:44 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 08:14:09 .............................................................. [100%] 08:16:19 62 passed in 154.61s (0:02:34) 08:16:19 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 08:16:49 ................................................ [100%] 08:18:33 48 passed in 133.63s (0:02:13) 08:18:33 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 08:18:58 ...................... [100%] 08:19:45 22 passed in 72.06s (0:01:12) 08:19:45 tests121: FAIL ✖ in 7 minutes 11.22 seconds 08:19:45 tests71: OK ✔ in 6 minutes 50.02 seconds 08:19:45 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 08:19:51 tests221: freeze> python -m pip freeze --all 08:19:51 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 08:19:51 tests221: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./launch_tests.sh 2.2.1 08:19:51 using environment variables from ./karaf221.env 08:19:51 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 08:20:28 ................................... [100%] 08:24:07 35 passed in 255.90s (0:04:15) 08:24:07 pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py 08:24:38 ...... [100%] 08:24:52 6 passed in 44.22s 08:24:52 pytest -q transportpce_tests/2.2.1/test03_topology.py 08:25:34 ............................................ [100%] 08:27:08 44 passed in 135.71s (0:02:15) 08:27:08 pytest -q transportpce_tests/2.2.1/test04_otn_topology.py 08:27:43 ............ [100%] 08:28:07 12 passed in 58.92s 08:28:07 pytest -q transportpce_tests/2.2.1/test05_flex_grid.py 08:28:32 ................ [100%] 08:30:01 16 passed in 113.47s (0:01:53) 08:30:01 pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py 08:30:30 ............................... [100%] 08:33:36 31 passed in 215.51s (0:03:35) 08:33:36 pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py 08:34:12 .......................... [100%] 08:35:07 26 passed in 90.67s (0:01:30) 08:35:07 pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py 08:35:43 ...................... [100%] 08:36:46 22 passed in 99.06s (0:01:39) 08:36:47 pytest -q transportpce_tests/2.2.1/test09_olm.py 08:37:27 ........................................ [100%] 08:39:49 40 passed in 182.60s (0:03:02) 08:39:49 pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py 08:40:32 ........................................................................ [ 74%] 08:46:08 ......................... [100%] 08:48:00 97 passed in 490.00s (0:08:09) 08:48:00 pytest -q transportpce_tests/2.2.1/test12_end2end.py 08:48:40 ...................................................... [100%] 08:55:27 54 passed in 447.10s (0:07:27) 08:55:27 pytest -q transportpce_tests/2.2.1/test14_otn_switch_end2end.py 08:56:21 ........................................................................ [ 71%] 09:01:30 ............................. [100%] 09:03:39 101 passed in 491.83s (0:08:11) 09:03:39 pytest -q transportpce_tests/2.2.1/test15_otn_end2end_with_intermediate_switch.py 09:04:32 ........................................................................ [ 67%] 09:10:18 ................................... [100%] 09:13:39 107 passed in 599.84s (0:09:59) 09:13:39 tests221: OK ✔ in 53 minutes 53.93 seconds 09:13:39 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 09:13:45 tests_hybrid: freeze> python -m pip freeze --all 09:13:45 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:13:45 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-scandium/tests> ./launch_tests.sh hybrid 09:13:45 using environment variables from ./karaf121.env 09:13:45 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 09:14:30 ................................................... [100%] 09:16:16 51 passed in 150.57s (0:02:30) 09:16:16 pytest -q transportpce_tests/hybrid/test02_B100G_end2end.py 09:16:57 ........................................................................ [ 66%] 09:21:17 ..................................... [100%] 09:26:23 109 passed in 607.09s (0:10:07) 09:26:23 pytest -q transportpce_tests/hybrid/test03_autonomous_reroute.py 09:27:10 ..................................................... [100%] 09:33:42 53 passed in 438.19s (0:07:18) 09:33:42 tests_hybrid: OK ✔ in 20 minutes 2.84 seconds 09:33:42 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-scandium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-scandium/tests/test-requirements.txt 09:33:47 buildlighty: freeze> python -m pip freeze --all 09:33:48 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 09:33:48 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-scandium/lighty> ./build.sh 09:33:48 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 09:34:03 [ERROR] COMPILATION ERROR : 09:34:03 [ERROR] /w/workspace/transportpce-tox-verify-scandium/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 09:34:03 symbol: class YangModuleInfo 09:34:03 location: package org.opendaylight.yangtools.binding 09:34:03 [ERROR] /w/workspace/transportpce-tox-verify-scandium/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 09:34:03 symbol: class YangModuleInfo 09:34:03 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:34:03 [ERROR] /w/workspace/transportpce-tox-verify-scandium/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 09:34:03 symbol: class YangModuleInfo 09:34:03 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:34:03 [ERROR] /w/workspace/transportpce-tox-verify-scandium/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 09:34:03 symbol: class YangModuleInfo 09:34:03 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:34:03 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project tpce: Compilation failure: Compilation failure: 09:34:03 [ERROR] /w/workspace/transportpce-tox-verify-scandium/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 09:34:03 [ERROR] symbol: class YangModuleInfo 09:34:03 [ERROR] location: package org.opendaylight.yangtools.binding 09:34:03 [ERROR] /w/workspace/transportpce-tox-verify-scandium/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 09:34:03 [ERROR] symbol: class YangModuleInfo 09:34:03 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:34:03 [ERROR] /w/workspace/transportpce-tox-verify-scandium/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 09:34:03 [ERROR] symbol: class YangModuleInfo 09:34:03 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:34:03 [ERROR] /w/workspace/transportpce-tox-verify-scandium/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 09:34:03 [ERROR] symbol: class YangModuleInfo 09:34:03 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:34:03 [ERROR] -> [Help 1] 09:34:03 [ERROR] 09:34:03 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 09:34:03 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 09:34:03 [ERROR] 09:34:03 [ERROR] For more information about the errors and possible solutions, please read the following articles: 09:34:03 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 09:34:03 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 09:34:03 buildlighty: exit 9 (15.81 seconds) /w/workspace/transportpce-tox-verify-scandium/lighty> ./build.sh pid=60165 09:34:03 buildlighty: command failed but is marked ignore outcome so handling it as success 09:34:03 buildcontroller: OK (108.80=setup[7.06]+cmd[101.73] seconds) 09:34:03 testsPCE: OK (373.66=setup[143.45]+cmd[230.21] seconds) 09:34:03 sims: OK (11.71=setup[7.03]+cmd[4.68] seconds) 09:34:03 build_karaf_tests121: OK (84.26=setup[6.96]+cmd[77.30] seconds) 09:34:03 tests121: FAIL code 1 (431.22=setup[5.87]+cmd[425.35] seconds) 09:34:03 build_karaf_tests221: OK (84.07=setup[6.99]+cmd[77.08] seconds) 09:34:03 tests_tapi: FAIL code 1 (697.48=setup[19.89]+cmd[677.60] seconds) 09:34:03 tests221: OK (3233.93=setup[6.15]+cmd[3227.78] seconds) 09:34:03 build_karaf_tests71: OK (119.59=setup[13.60]+cmd[105.99] seconds) 09:34:03 tests71: OK (410.02=setup[6.30]+cmd[403.72] seconds) 09:34:03 build_karaf_tests_hybrid: OK (65.02=setup[20.00]+cmd[45.01] seconds) 09:34:03 tests_hybrid: OK (1202.84=setup[6.30]+cmd[1196.53] seconds) 09:34:03 buildlighty: OK (21.51=setup[5.70]+cmd[15.81] seconds) 09:34:03 docs: OK (31.40=setup[27.77]+cmd[3.63] seconds) 09:34:03 docs-linkcheck: OK (32.45=setup[26.74]+cmd[5.71] seconds) 09:34:03 checkbashisms: OK (2.73=setup[1.82]+cmd[0.02,0.05,0.84] seconds) 09:34:03 pre-commit: OK (56.76=setup[3.02]+cmd[0.00,0.01,40.60,13.14] seconds) 09:34:03 pylint: OK (27.78=setup[5.07]+cmd[22.71] seconds) 09:34:03 evaluation failed :( (5758.91 seconds) 09:34:03 + tox_status=255 09:34:03 + echo '---> Completed tox runs' 09:34:03 ---> Completed tox runs 09:34:03 + for i in .tox/*/log 09:34:03 ++ echo .tox/build_karaf_tests121/log 09:34:03 ++ awk -F/ '{print $2}' 09:34:03 + tox_env=build_karaf_tests121 09:34:03 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/build_karaf_tests121 09:34:03 + for i in .tox/*/log 09:34:03 ++ echo .tox/build_karaf_tests221/log 09:34:03 ++ awk -F/ '{print $2}' 09:34:03 + tox_env=build_karaf_tests221 09:34:03 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/build_karaf_tests221 09:34:03 + for i in .tox/*/log 09:34:03 ++ echo .tox/build_karaf_tests71/log 09:34:03 ++ awk -F/ '{print $2}' 09:34:03 + tox_env=build_karaf_tests71 09:34:03 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/build_karaf_tests71 09:34:03 + for i in .tox/*/log 09:34:03 ++ echo .tox/build_karaf_tests_hybrid/log 09:34:03 ++ awk -F/ '{print $2}' 09:34:03 + tox_env=build_karaf_tests_hybrid 09:34:03 + cp -r .tox/build_karaf_tests_hybrid/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/build_karaf_tests_hybrid 09:34:03 + for i in .tox/*/log 09:34:03 ++ echo .tox/buildcontroller/log 09:34:03 ++ awk -F/ '{print $2}' 09:34:03 + tox_env=buildcontroller 09:34:03 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/buildcontroller 09:34:03 + for i in .tox/*/log 09:34:03 ++ echo .tox/buildlighty/log 09:34:03 ++ awk -F/ '{print $2}' 09:34:03 + tox_env=buildlighty 09:34:04 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/buildlighty 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/checkbashisms/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=checkbashisms 09:34:04 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/checkbashisms 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/docs-linkcheck/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=docs-linkcheck 09:34:04 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/docs-linkcheck 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/docs/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=docs 09:34:04 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/docs 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/pre-commit/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=pre-commit 09:34:04 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/pre-commit 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/pylint/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=pylint 09:34:04 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/pylint 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/sims/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=sims 09:34:04 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/sims 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/tests121/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=tests121 09:34:04 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/tests121 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/tests221/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=tests221 09:34:04 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/tests221 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/tests71/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=tests71 09:34:04 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/tests71 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/testsPCE/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=testsPCE 09:34:04 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/testsPCE 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/tests_hybrid/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=tests_hybrid 09:34:04 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/tests_hybrid 09:34:04 + for i in .tox/*/log 09:34:04 ++ echo .tox/tests_tapi/log 09:34:04 ++ awk -F/ '{print $2}' 09:34:04 + tox_env=tests_tapi 09:34:04 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-scandium/archives/tox/tests_tapi 09:34:04 + DOC_DIR=docs/_build/html 09:34:04 + [[ -d docs/_build/html ]] 09:34:04 + echo '---> Archiving generated docs' 09:34:04 ---> Archiving generated docs 09:34:04 + mv docs/_build/html /w/workspace/transportpce-tox-verify-scandium/archives/docs 09:34:04 + echo '---> tox-run.sh ends' 09:34:04 ---> tox-run.sh ends 09:34:04 + test 255 -eq 0 09:34:04 + exit 255 09:34:04 ++ '[' 1 = 1 ']' 09:34:04 ++ '[' -x /usr/bin/clear_console ']' 09:34:04 ++ /usr/bin/clear_console -q 09:34:04 Build step 'Execute shell' marked build as failure 09:34:04 $ ssh-agent -k 09:34:04 unset SSH_AUTH_SOCK; 09:34:04 unset SSH_AGENT_PID; 09:34:04 echo Agent pid 13087 killed; 09:34:04 [ssh-agent] Stopped. 09:34:04 [PostBuildScript] - [INFO] Executing post build scripts. 09:34:04 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins16583790862032634528.sh 09:34:04 ---> sysstat.sh 09:34:05 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins16314913148905788210.sh 09:34:05 ---> package-listing.sh 09:34:05 ++ facter osfamily 09:34:05 ++ tr '[:upper:]' '[:lower:]' 09:34:05 + OS_FAMILY=debian 09:34:05 + workspace=/w/workspace/transportpce-tox-verify-scandium 09:34:05 + START_PACKAGES=/tmp/packages_start.txt 09:34:05 + END_PACKAGES=/tmp/packages_end.txt 09:34:05 + DIFF_PACKAGES=/tmp/packages_diff.txt 09:34:05 + PACKAGES=/tmp/packages_start.txt 09:34:05 + '[' /w/workspace/transportpce-tox-verify-scandium ']' 09:34:05 + PACKAGES=/tmp/packages_end.txt 09:34:05 + case "${OS_FAMILY}" in 09:34:05 + grep '^ii' 09:34:05 + dpkg -l 09:34:05 + '[' -f /tmp/packages_start.txt ']' 09:34:05 + '[' -f /tmp/packages_end.txt ']' 09:34:05 + diff /tmp/packages_start.txt /tmp/packages_end.txt 09:34:05 + '[' /w/workspace/transportpce-tox-verify-scandium ']' 09:34:05 + mkdir -p /w/workspace/transportpce-tox-verify-scandium/archives/ 09:34:05 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-scandium/archives/ 09:34:05 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins1412589307539116459.sh 09:34:05 ---> capture-instance-metadata.sh 09:34:05 Setup pyenv: 09:34:05 system 09:34:05 3.8.13 09:34:05 3.9.13 09:34:05 3.10.13 09:34:05 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-scandium/.python-version) 09:34:05 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-rCHz from file:/tmp/.os_lf_venv 09:34:06 lf-activate-venv(): INFO: Installing: lftools 09:34:15 lf-activate-venv(): INFO: Adding /tmp/venv-rCHz/bin to PATH 09:34:15 INFO: Running in OpenStack, capturing instance metadata 09:34:16 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins8647304100684893588.sh 09:34:16 provisioning config files... 09:34:16 Could not find credentials [logs] for transportpce-tox-verify-scandium #15 09:34:16 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-scandium@tmp/config1747340449546964200tmp 09:34:16 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 09:34:16 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 09:34:16 provisioning config files... 09:34:17 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 09:34:17 [EnvInject] - Injecting environment variables from a build step. 09:34:17 [EnvInject] - Injecting as environment variables the properties content 09:34:17 SERVER_ID=logs 09:34:17 09:34:17 [EnvInject] - Variables injected successfully. 09:34:17 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins1342586118296302829.sh 09:34:17 ---> create-netrc.sh 09:34:17 WARN: Log server credential not found. 09:34:17 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins3268685090516259242.sh 09:34:17 ---> python-tools-install.sh 09:34:17 Setup pyenv: 09:34:17 system 09:34:17 3.8.13 09:34:17 3.9.13 09:34:17 3.10.13 09:34:17 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-scandium/.python-version) 09:34:17 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-rCHz from file:/tmp/.os_lf_venv 09:34:18 lf-activate-venv(): INFO: Installing: lftools 09:34:27 lf-activate-venv(): INFO: Adding /tmp/venv-rCHz/bin to PATH 09:34:27 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins17542587792406922026.sh 09:34:27 ---> sudo-logs.sh 09:34:27 Archiving 'sudo' log.. 09:34:27 [transportpce-tox-verify-scandium] $ /bin/bash /tmp/jenkins12227416703480697890.sh 09:34:27 ---> job-cost.sh 09:34:27 Setup pyenv: 09:34:27 system 09:34:27 3.8.13 09:34:27 3.9.13 09:34:27 3.10.13 09:34:27 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-scandium/.python-version) 09:34:27 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-rCHz from file:/tmp/.os_lf_venv 09:34:28 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 09:34:33 lf-activate-venv(): INFO: Adding /tmp/venv-rCHz/bin to PATH 09:34:33 INFO: No Stack... 09:34:33 INFO: Retrieving Pricing Info for: v3-standard-4 09:34:33 INFO: Archiving Costs 09:34:34 [transportpce-tox-verify-scandium] $ /bin/bash -l /tmp/jenkins7538457368240930023.sh 09:34:34 ---> logs-deploy.sh 09:34:34 Setup pyenv: 09:34:34 system 09:34:34 3.8.13 09:34:34 3.9.13 09:34:34 3.10.13 09:34:34 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-scandium/.python-version) 09:34:34 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-rCHz from file:/tmp/.os_lf_venv 09:34:35 lf-activate-venv(): INFO: Installing: lftools 09:34:43 lf-activate-venv(): INFO: Adding /tmp/venv-rCHz/bin to PATH 09:34:43 WARNING: Nexus logging server not set 09:34:43 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-scandium/15/ 09:34:43 INFO: archiving logs to S3 09:34:45 ---> uname -a: 09:34:45 Linux prd-ubuntu2004-docker-4c-16g-25219 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 09:34:45 09:34:45 09:34:45 ---> lscpu: 09:34:45 Architecture: x86_64 09:34:45 CPU op-mode(s): 32-bit, 64-bit 09:34:45 Byte Order: Little Endian 09:34:45 Address sizes: 40 bits physical, 48 bits virtual 09:34:45 CPU(s): 4 09:34:45 On-line CPU(s) list: 0-3 09:34:45 Thread(s) per core: 1 09:34:45 Core(s) per socket: 1 09:34:45 Socket(s): 4 09:34:45 NUMA node(s): 1 09:34:45 Vendor ID: AuthenticAMD 09:34:45 CPU family: 23 09:34:45 Model: 49 09:34:45 Model name: AMD EPYC-Rome Processor 09:34:45 Stepping: 0 09:34:45 CPU MHz: 2799.998 09:34:45 BogoMIPS: 5599.99 09:34:45 Virtualization: AMD-V 09:34:45 Hypervisor vendor: KVM 09:34:45 Virtualization type: full 09:34:45 L1d cache: 128 KiB 09:34:45 L1i cache: 128 KiB 09:34:45 L2 cache: 2 MiB 09:34:45 L3 cache: 64 MiB 09:34:45 NUMA node0 CPU(s): 0-3 09:34:45 Vulnerability Gather data sampling: Not affected 09:34:45 Vulnerability Itlb multihit: Not affected 09:34:45 Vulnerability L1tf: Not affected 09:34:45 Vulnerability Mds: Not affected 09:34:45 Vulnerability Meltdown: Not affected 09:34:45 Vulnerability Mmio stale data: Not affected 09:34:45 Vulnerability Retbleed: Vulnerable 09:34:45 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 09:34:45 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 09:34:45 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 09:34:45 Vulnerability Srbds: Not affected 09:34:45 Vulnerability Tsx async abort: Not affected 09:34:45 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt nrip_save umip rdpid arch_capabilities 09:34:45 09:34:45 09:34:45 ---> nproc: 09:34:45 4 09:34:45 09:34:45 09:34:45 ---> df -h: 09:34:45 Filesystem Size Used Avail Use% Mounted on 09:34:45 udev 7.8G 0 7.8G 0% /dev 09:34:45 tmpfs 1.6G 1.1M 1.6G 1% /run 09:34:45 /dev/vda1 78G 17G 62G 21% / 09:34:45 tmpfs 7.9G 0 7.9G 0% /dev/shm 09:34:45 tmpfs 5.0M 0 5.0M 0% /run/lock 09:34:45 tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup 09:34:45 /dev/loop0 68M 68M 0 100% /snap/lxd/22753 09:34:45 /dev/loop1 62M 62M 0 100% /snap/core20/1405 09:34:45 /dev/vda15 105M 6.1M 99M 6% /boot/efi 09:34:45 tmpfs 1.6G 0 1.6G 0% /run/user/1001 09:34:45 /dev/loop3 39M 39M 0 100% /snap/snapd/21759 09:34:45 /dev/loop4 64M 64M 0 100% /snap/core20/2379 09:34:45 /dev/loop5 92M 92M 0 100% /snap/lxd/29619 09:34:45 09:34:45 09:34:45 ---> free -m: 09:34:45 total used free shared buff/cache available 09:34:45 Mem: 15997 710 6805 0 8481 14948 09:34:45 Swap: 1023 0 1023 09:34:45 09:34:45 09:34:45 ---> ip addr: 09:34:45 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 09:34:45 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 09:34:45 inet 127.0.0.1/8 scope host lo 09:34:45 valid_lft forever preferred_lft forever 09:34:45 inet6 ::1/128 scope host 09:34:45 valid_lft forever preferred_lft forever 09:34:45 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 09:34:45 link/ether fa:16:3e:0e:b0:1e brd ff:ff:ff:ff:ff:ff 09:34:45 inet 10.30.171.178/23 brd 10.30.171.255 scope global dynamic ens3 09:34:45 valid_lft 80471sec preferred_lft 80471sec 09:34:45 inet6 fe80::f816:3eff:fe0e:b01e/64 scope link 09:34:45 valid_lft forever preferred_lft forever 09:34:45 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 09:34:45 link/ether 02:42:30:93:5f:3c brd ff:ff:ff:ff:ff:ff 09:34:45 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 09:34:45 valid_lft forever preferred_lft forever 09:34:45 09:34:45 09:34:45 ---> sar -b -r -n DEV: 09:34:45 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-25219) 09/21/24 _x86_64_ (4 CPU) 09:34:45 09:34:45 07:55:59 LINUX RESTART (4 CPU) 09:34:45 09:34:45 07:56:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 09:34:45 07:57:01 340.39 168.87 171.52 0.00 11952.27 51196.40 0.00 09:34:45 07:58:01 122.78 41.26 81.52 0.00 1326.45 18259.64 0.00 09:34:45 07:59:01 246.28 40.59 205.68 0.00 2651.42 53229.00 0.00 09:34:45 08:00:01 62.34 2.35 59.99 0.00 174.10 28521.11 0.00 09:34:45 08:01:06 72.24 0.19 72.05 0.00 10.64 54480.92 0.00 09:34:45 08:02:01 176.33 13.03 163.30 0.00 5015.17 133538.15 0.00 09:34:45 08:03:01 130.51 5.28 125.22 0.00 357.08 55266.24 0.00 09:34:45 08:04:01 117.45 1.72 115.74 0.00 54.75 14586.91 0.00 09:34:45 08:05:01 90.10 1.67 88.44 0.00 195.57 8724.01 0.00 09:34:45 08:06:01 123.13 0.03 123.10 0.00 1.07 4624.03 0.00 09:34:45 08:07:01 61.77 3.12 58.66 0.00 468.19 9274.72 0.00 09:34:45 08:08:01 2.60 0.02 2.58 0.00 0.13 68.12 0.00 09:34:45 08:09:01 39.12 0.37 38.75 0.00 19.19 829.72 0.00 09:34:45 08:10:01 60.41 0.00 60.41 0.00 0.00 980.10 0.00 09:34:45 08:11:01 3.07 0.00 3.07 0.00 0.00 64.52 0.00 09:34:45 08:12:01 4.57 0.92 3.65 0.00 22.13 63.86 0.00 09:34:45 08:13:01 12.68 0.27 12.41 0.00 26.66 1149.54 0.00 09:34:45 08:14:01 120.63 0.02 120.61 0.00 0.13 9766.77 0.00 09:34:45 08:15:01 44.56 0.00 44.56 0.00 0.00 647.49 0.00 09:34:45 08:16:01 1.73 0.00 1.73 0.00 0.00 31.99 0.00 09:34:45 08:17:01 69.51 0.05 69.46 0.00 1.07 1024.73 0.00 09:34:45 08:18:01 2.90 0.00 2.90 0.00 0.00 55.19 0.00 09:34:45 08:19:01 65.81 0.00 65.81 0.00 0.00 968.51 0.00 09:34:45 08:20:01 23.95 0.00 23.95 0.00 0.00 1352.17 0.00 09:34:45 08:21:02 54.66 0.00 54.66 0.00 0.00 2224.70 0.00 09:34:45 08:22:01 1.61 0.00 1.61 0.00 0.00 22.23 0.00 09:34:45 08:23:01 2.08 0.00 2.08 0.00 0.00 25.46 0.00 09:34:45 08:24:01 1.42 0.00 1.42 0.00 0.00 18.13 0.00 09:34:45 08:25:01 91.70 0.00 91.70 0.00 0.00 1362.97 0.00 09:34:45 08:26:01 53.76 0.02 53.74 0.00 0.13 782.27 0.00 09:34:45 08:27:01 3.72 0.00 3.72 0.00 0.00 62.39 0.00 09:34:45 08:28:01 76.90 0.00 76.90 0.00 0.00 1121.41 0.00 09:34:45 08:29:01 76.02 0.00 76.02 0.00 0.00 1104.08 0.00 09:34:45 08:30:01 1.70 0.00 1.70 0.00 0.00 26.26 0.00 09:34:45 08:31:01 78.24 0.03 78.20 0.00 0.53 1143.28 0.00 09:34:45 08:32:01 1.43 0.00 1.43 0.00 0.00 19.20 0.00 09:34:45 08:33:01 1.50 0.00 1.50 0.00 0.00 20.13 0.00 09:34:45 08:34:01 69.06 0.00 69.06 0.00 0.00 992.90 0.00 09:34:45 08:35:01 2.83 0.00 2.83 0.00 0.00 56.26 0.00 09:34:45 08:36:01 76.80 0.00 76.80 0.00 0.00 1119.28 0.00 09:34:45 08:37:01 17.39 0.00 17.39 0.00 0.00 295.63 0.00 09:34:45 08:38:01 56.67 0.00 56.67 0.00 0.00 809.07 0.00 09:34:45 08:39:01 1.77 0.00 1.77 0.00 0.00 39.85 0.00 09:34:45 08:40:01 15.98 0.00 15.98 0.00 0.00 274.49 0.00 09:34:45 08:41:01 51.16 0.00 51.16 0.00 0.00 751.34 0.00 09:34:45 08:42:01 1.77 0.00 1.77 0.00 0.00 34.39 0.00 09:34:45 08:43:01 2.28 0.00 2.28 0.00 0.00 43.33 0.00 09:34:45 08:44:01 2.33 0.00 2.33 0.00 0.00 41.19 0.00 09:34:45 08:45:01 2.48 0.00 2.48 0.00 0.00 55.72 0.00 09:34:45 08:46:01 2.02 0.00 2.02 0.00 0.00 38.13 0.00 09:34:45 08:47:01 2.43 0.00 2.43 0.00 0.00 36.26 0.00 09:34:45 08:48:01 1.88 0.00 1.88 0.00 0.00 43.59 0.00 09:34:45 08:49:01 72.37 0.00 72.37 0.00 0.00 1063.42 0.00 09:34:45 08:50:01 2.32 0.00 2.32 0.00 0.00 57.32 0.00 09:34:45 08:51:01 2.85 0.00 2.85 0.00 0.00 52.52 0.00 09:34:45 08:52:01 2.20 0.00 2.20 0.00 0.00 56.79 0.00 09:34:45 08:53:01 3.05 0.00 3.05 0.00 0.00 61.72 0.00 09:34:45 08:54:01 1.58 0.00 1.58 0.00 0.00 37.19 0.00 09:34:45 08:55:01 2.17 0.00 2.17 0.00 0.00 63.72 0.00 09:34:45 08:56:01 17.06 0.00 17.06 0.00 0.00 295.28 0.00 09:34:45 08:57:01 59.59 0.00 59.59 0.00 0.00 853.46 0.00 09:34:45 08:58:01 2.55 0.00 2.55 0.00 0.00 59.18 0.00 09:34:45 08:59:01 2.32 0.00 2.32 0.00 0.00 45.99 0.00 09:34:45 09:00:01 2.25 0.00 2.25 0.00 0.00 41.99 0.00 09:34:45 09:01:01 1.85 0.00 1.85 0.00 0.00 38.39 0.00 09:34:45 09:02:01 2.73 0.00 2.73 0.00 0.00 62.39 0.00 09:34:45 09:03:01 2.38 0.00 2.38 0.00 0.00 45.73 0.00 09:34:45 09:04:01 15.83 0.00 15.83 0.00 0.00 265.42 0.00 09:34:45 09:05:01 54.77 0.00 54.77 0.00 0.00 798.40 0.00 09:34:45 09:06:01 2.38 0.00 2.38 0.00 0.00 54.92 0.00 09:34:45 09:07:01 3.70 0.00 3.70 0.00 0.00 71.31 0.00 09:34:45 09:08:01 1.83 0.00 1.83 0.00 0.00 34.66 0.00 09:34:45 09:09:01 2.75 0.00 2.75 0.00 0.00 49.73 0.00 09:34:45 09:10:01 2.52 0.00 2.52 0.00 0.00 40.66 0.00 09:34:45 09:11:01 1.95 0.00 1.95 0.00 0.00 36.53 0.00 09:34:45 09:12:01 2.00 0.00 2.00 0.00 0.00 35.99 0.00 09:34:45 09:13:01 2.78 0.00 2.78 0.00 0.00 60.26 0.00 09:34:45 09:14:01 14.98 0.05 14.93 0.00 0.40 1176.60 0.00 09:34:45 09:15:01 102.53 0.00 102.53 0.00 0.00 8928.91 0.00 09:34:45 09:16:01 3.52 0.00 3.52 0.00 0.00 99.85 0.00 09:34:45 09:17:01 70.32 0.00 70.32 0.00 0.00 1154.34 0.00 09:34:45 09:18:01 2.65 0.00 2.65 0.00 0.00 55.19 0.00 09:34:45 09:19:01 3.20 0.00 3.20 0.00 0.00 52.66 0.00 09:34:45 09:20:01 2.50 0.00 2.50 0.00 0.00 46.39 0.00 09:34:45 09:21:01 2.28 0.00 2.28 0.00 0.00 39.19 0.00 09:34:45 09:22:01 2.47 0.00 2.47 0.00 0.00 56.38 0.00 09:34:45 09:23:01 2.85 0.00 2.85 0.00 0.00 51.99 0.00 09:34:45 09:24:01 2.32 0.00 2.32 0.00 0.00 32.39 0.00 09:34:45 09:25:01 2.15 0.00 2.15 0.00 0.00 26.93 0.00 09:34:45 09:26:01 1.58 0.00 1.58 0.00 0.00 19.86 0.00 09:34:45 09:27:01 23.76 0.00 23.76 0.00 0.00 381.54 0.00 09:34:45 09:28:01 53.97 0.00 53.97 0.00 0.00 874.25 0.00 09:34:45 09:29:01 10.10 6.93 3.17 0.00 444.73 257.29 0.00 09:34:45 09:30:01 4.23 0.00 4.23 0.00 0.00 131.44 0.00 09:34:45 09:31:01 3.18 0.00 3.18 0.00 0.00 60.12 0.00 09:34:45 09:32:01 1.97 0.00 1.97 0.00 0.00 23.60 0.00 09:34:45 09:33:01 2.22 0.00 2.22 0.00 0.00 30.13 0.00 09:34:45 09:34:01 13.63 3.67 9.97 0.00 74.79 1037.03 0.00 09:34:45 Average: 34.01 2.95 31.05 0.00 228.48 4831.55 0.00 09:34:45 09:34:45 07:56:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 09:34:45 07:57:01 13618652 15427416 568824 3.47 49568 1970416 1312860 7.53 768768 1748236 67576 09:34:45 07:58:01 13306628 15493984 480680 2.93 76756 2299492 1199656 6.88 748472 2038088 156676 09:34:45 07:59:01 10581704 14351180 1608048 9.82 136196 3701908 2357312 13.52 2070628 3301740 370800 09:34:45 08:00:01 9849836 15218800 741008 4.52 162216 5203132 2186788 12.55 1536992 4496380 1334404 09:34:45 08:01:06 5957920 13106468 2852460 17.41 181568 6899984 3712348 21.30 4297380 5558204 1709060 09:34:45 08:02:01 4523000 13366252 2580976 15.76 214596 8485900 3469492 19.91 4542844 6659328 96528 09:34:45 08:03:01 2914572 12347308 3597060 21.96 226536 9035000 4933864 28.31 5854352 6917532 164196 09:34:45 08:04:01 166888 8832888 7109744 43.40 218004 8290960 8140860 46.71 9206528 6314024 208 09:34:45 08:05:01 467628 9122180 6820440 41.64 221352 8275864 8159716 46.81 8954784 6264816 1256 09:34:45 08:06:01 385476 8870620 7071976 43.17 225900 8104036 8097360 46.46 9189576 6114804 680 09:34:45 08:07:01 167688 7633812 8307928 50.72 232852 7091160 9553380 54.81 10354776 5176168 1376 09:34:45 08:08:01 167872 7634020 8307708 50.71 232884 7091172 9553380 54.81 10355304 5175836 148 09:34:45 08:09:01 4593628 12061096 3882608 23.70 233296 7091908 5492620 31.51 5951624 5167352 816 09:34:45 08:10:01 2048296 9518184 6424836 39.22 235352 7092292 7383264 42.36 8492084 5164956 260 09:34:45 08:11:01 1891212 9361632 6581108 40.17 235388 7092784 7497848 43.02 8649512 5165012 116 09:34:45 08:12:01 1861288 9332696 6610128 40.35 235452 7093676 7532132 43.21 8680732 5163564 224 09:34:45 08:13:01 5782436 13320932 2622508 16.01 237808 7154592 3620392 20.77 4718424 5214052 44232 09:34:45 08:14:01 6287228 14002068 1943632 11.86 244516 7321452 2927700 16.80 4124764 5306548 308 09:34:45 08:15:01 5991036 13707620 2237940 13.66 246088 7321596 3060816 17.56 4422432 5303396 48 09:34:45 08:16:01 5977124 13693860 2251696 13.75 246112 7321720 3076840 17.65 4434940 5303484 244 09:34:45 08:17:01 5289876 13008588 2936484 17.93 247704 7322048 3736328 21.44 5130300 5292628 464 09:34:45 08:18:01 5277332 12996276 2948720 18.00 247720 7322260 3736328 21.44 5143292 5292812 36 09:34:45 08:19:01 6154244 13874888 2070584 12.64 249292 7322376 2886464 16.56 4269804 5292136 192 09:34:45 08:20:01 7086516 14873756 1072228 6.55 251568 7382576 1880048 10.79 3279340 5350416 44332 09:34:45 08:21:02 4685672 12474248 3470508 21.19 252572 7382872 4325452 24.82 5670992 5350688 152 09:34:45 08:22:01 4685564 12474156 3470604 21.19 252584 7382872 4325452 24.82 5670776 5350692 56 09:34:45 08:23:01 4685604 12474204 3470556 21.19 252588 7382876 4325452 24.82 5670788 5350692 68 09:34:45 08:24:01 4685092 12473704 3471028 21.19 252600 7382880 4325452 24.82 5671212 5350692 56 09:34:45 08:25:01 7087804 14878360 1067600 6.52 254132 7383240 1893492 10.86 3292520 5337072 456 09:34:45 08:26:01 4032328 11824124 4120120 25.15 255004 7383620 5093276 29.22 6335304 5337420 204 09:34:45 08:27:01 3896996 11688964 4255212 25.98 255004 7383772 5125812 29.41 6470444 5337592 104 09:34:45 08:28:01 5998460 13791584 2153688 13.15 255936 7383996 2950284 16.93 4376972 5337160 136 09:34:45 08:29:01 5948700 13743352 2201900 13.44 257156 7384296 2989180 17.15 4426780 5337100 120 09:34:45 08:30:01 7606756 15401332 544616 3.32 257164 7384212 1358504 7.79 2774024 5337004 112 09:34:45 08:31:01 5240776 13036740 2908108 17.75 257984 7384740 3713176 21.30 5131632 5337180 72 09:34:45 08:32:01 5240764 13036740 2908092 17.75 258000 7384740 3713176 21.30 5130828 5337180 44 09:34:45 08:33:01 5240480 13036476 2908360 17.75 258008 7384748 3713176 21.30 5131384 5337192 28 09:34:45 08:34:01 6104660 13901520 2043908 12.48 258628 7384976 2863028 16.43 4271668 5337220 556 09:34:45 08:35:01 5984340 13781388 2163836 13.21 258648 7385144 2945164 16.90 4391124 5337388 116 09:34:45 08:36:01 5218704 13016784 2927992 17.87 259188 7385620 3706756 21.27 5152416 5337820 332 09:34:45 08:37:01 6627020 14425424 1519952 9.28 259208 7385904 2783840 15.97 3750280 5338088 456 09:34:45 08:38:01 3835680 11635132 4308772 26.30 259828 7386280 5087116 29.19 6528980 5338444 284 09:34:45 08:39:01 3730636 11530400 4413360 26.94 259852 7386568 5185556 29.75 6633300 5338732 368 09:34:45 08:40:01 6927020 14727024 1218548 7.44 259876 7386780 2052076 11.77 3450560 5338848 444 09:34:45 08:41:01 3720048 11521004 4422640 27.00 260296 7387304 5249056 30.12 6642700 5339364 252 09:34:45 08:42:01 3714096 11515192 4428444 27.03 260300 7387436 5265100 30.21 6649532 5339496 192 09:34:45 08:43:01 3693740 11495040 4448608 27.16 260304 7387644 5281088 30.30 6668652 5339696 244 09:34:45 08:44:01 3689432 11490804 4452796 27.18 260312 7387700 5281088 30.30 6673572 5339760 116 09:34:45 08:45:01 3666704 11468556 4475008 27.32 260312 7388192 5281088 30.30 6695512 5340240 232 09:34:45 08:46:01 3650284 11452340 4491220 27.42 260316 7388368 5297248 30.39 6710016 5340420 84 09:34:45 08:47:01 3620368 11422532 4520924 27.60 260320 7388468 5313600 30.49 6741696 5340524 92 09:34:45 08:48:01 7524636 15326976 618812 3.78 260324 7388608 1717840 9.86 2854592 5340608 304 09:34:45 08:49:01 3737036 11540180 4403516 26.88 260776 7388940 5284076 30.32 6625208 5340924 336 09:34:45 08:50:01 3551640 11355344 4588008 28.01 260780 7389496 5382320 30.88 6808508 5341484 108 09:34:45 08:51:01 3520676 11325036 4618416 28.19 260796 7390124 5414836 31.07 6839076 5342116 552 09:34:45 08:52:01 3499972 11304680 4638760 28.32 260800 7390480 5414836 31.07 6858904 5342464 236 09:34:45 08:53:01 3458408 11263592 4679844 28.57 260804 7390936 5414836 31.07 6899648 5342928 224 09:34:45 08:54:01 3488176 11293684 4649744 28.38 260804 7391260 5414836 31.07 6869636 5343248 128 09:34:45 08:55:01 3456084 11262432 4681096 28.58 260808 7392092 5430844 31.16 6900584 5344084 64 09:34:45 08:56:01 4669796 12476012 3468204 21.17 260816 7392000 4848724 27.82 5692736 5343952 276 09:34:45 08:57:01 2472080 10278832 5664320 34.58 261108 7392240 6497460 37.28 7885184 5344180 180 09:34:45 08:58:01 2336436 10143620 5799232 35.40 261112 7392664 6595708 37.84 8019596 5344604 112 09:34:45 08:59:01 2247392 10054872 5887896 35.94 261116 7392952 6660744 38.21 8106712 5344892 216 09:34:45 09:00:01 2229028 10036640 5906128 36.05 261116 7393084 6660744 38.21 8124808 5345024 124 09:34:45 09:01:01 2182188 9990156 5952524 36.34 261124 7393428 6660744 38.21 8171544 5345368 364 09:34:45 09:02:01 2165452 9973876 5968736 36.44 261136 7393872 6677020 38.31 8187480 5345812 96 09:34:45 09:03:01 2138212 9946892 5995816 36.60 261136 7394132 6709004 38.49 8215152 5346068 440 09:34:45 09:04:01 5772744 13581496 2363368 14.43 261144 7394188 3552148 20.38 4593352 5346112 668 09:34:45 09:05:01 2489364 10298468 5644592 34.46 261356 7394324 6555660 37.61 7865884 5346240 68 09:34:45 09:06:01 2257104 10066640 5876180 35.87 261356 7394756 6685744 38.36 8095252 5346672 240 09:34:45 09:07:01 2177108 9987052 5955612 36.36 261372 7395148 6718552 38.55 8173792 5347064 28 09:34:45 09:08:01 2168368 9978432 5964296 36.41 261376 7395260 6734548 38.64 8181504 5347176 196 09:34:45 09:09:01 2143364 9953628 5989016 36.56 261384 7395460 6750576 38.73 8207344 5347368 120 09:34:45 09:10:01 2131496 9941912 6000688 36.63 261388 7395616 6766568 38.82 8219024 5347516 236 09:34:45 09:11:01 2106444 9917120 6025400 36.78 261388 7395876 6766568 38.82 8243244 5347776 296 09:34:45 09:12:01 2085056 9895808 6046696 36.91 261392 7395936 6783032 38.92 8264700 5347848 120 09:34:45 09:13:01 2072708 9883896 6058568 36.98 261396 7396372 6815752 39.10 8276564 5348280 320 09:34:45 09:14:01 6541356 14592552 1352660 8.26 267416 7621328 2146836 12.32 3635368 5529648 223328 09:34:45 09:15:01 3478628 11532132 4410944 26.93 267812 7623080 5233116 30.02 6696408 5517192 1564 09:34:45 09:16:01 3315928 11369712 4573296 27.92 267816 7623360 5349900 30.69 6858112 5517112 120 09:34:45 09:17:01 3767844 11821992 4121392 25.16 268092 7623404 5044992 28.94 6430448 5495796 444 09:34:45 09:18:01 3464312 11518860 4424088 27.01 268092 7623788 5191896 29.79 6733316 5495572 104 09:34:45 09:19:01 3454556 11509432 4433520 27.06 268096 7624112 5191896 29.79 6742776 5495836 120 09:34:45 09:20:01 3432536 11487672 4455348 27.20 268096 7624372 5207920 29.88 6764268 5496092 84 09:34:45 09:21:01 3428780 11484052 4458876 27.22 268104 7624508 5207920 29.88 6766916 5496224 296 09:34:45 09:22:01 3381788 11437596 4505216 27.50 268116 7625044 5240248 30.06 6814144 5496724 388 09:34:45 09:23:01 3367968 11424084 4518744 27.58 268120 7625328 5256356 30.16 6826984 5497024 240 09:34:45 09:24:01 3366952 11423096 4519724 27.59 268124 7625348 5256356 30.16 6827872 5497040 32 09:34:45 09:25:01 3367000 11423148 4519672 27.59 268124 7625352 5256356 30.16 6827560 5497044 68 09:34:45 09:26:01 3366976 11423124 4519728 27.59 268124 7625352 5256356 30.16 6827844 5497044 204 09:34:45 09:27:01 3739672 11795312 4148016 25.32 268160 7624784 5522744 31.69 6469264 5485332 192 09:34:45 09:28:01 2777804 10834108 5108536 31.19 268292 7625316 5908480 33.90 7429700 5485700 300 09:34:45 09:29:01 2601288 10679812 5260772 32.11 268840 7645404 6103864 35.02 7583704 5503012 2252 09:34:45 09:30:01 2530232 10609456 5331088 32.54 268848 7646088 6103864 35.02 7653404 5503704 52 09:34:45 09:31:01 2517064 10596644 5343844 32.62 268848 7646452 6103864 35.02 7665068 5504060 116 09:34:45 09:32:01 2517160 10596752 5343724 32.62 268848 7646456 6103864 35.02 7664708 5504072 284 09:34:45 09:33:01 2516824 10596428 5344048 32.62 268856 7646460 6103864 35.02 7664528 5504076 72 09:34:45 09:34:01 6710424 14989844 953144 5.82 273356 7828516 1805548 10.36 3299748 5678468 167876 09:34:45 Average: 4135631 11827518 4117424 25.13 249705 7299354 4984300 28.60 6257689 5322773 44936 09:34:45 09:34:45 07:56:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 09:34:45 07:57:01 ens3 311.80 233.28 1511.81 67.28 0.00 0.00 0.00 0.00 09:34:45 07:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 07:57:01 lo 1.97 1.97 0.18 0.18 0.00 0.00 0.00 0.00 09:34:45 07:58:01 ens3 65.36 54.67 684.00 7.98 0.00 0.00 0.00 0.00 09:34:45 07:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 07:58:01 lo 0.80 0.80 0.08 0.08 0.00 0.00 0.00 0.00 09:34:45 07:59:01 ens3 453.39 371.42 7072.85 40.12 0.00 0.00 0.00 0.00 09:34:45 07:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 07:59:01 lo 6.20 6.20 0.63 0.63 0.00 0.00 0.00 0.00 09:34:45 08:00:01 ens3 363.96 271.54 5523.90 27.63 0.00 0.00 0.00 0.00 09:34:45 08:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:00:01 lo 0.80 0.80 0.08 0.08 0.00 0.00 0.00 0.00 09:34:45 08:01:06 ens3 44.36 31.95 653.84 3.72 0.00 0.00 0.00 0.00 09:34:45 08:01:06 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:01:06 lo 0.74 0.74 0.07 0.07 0.00 0.00 0.00 0.00 09:34:45 08:02:01 ens3 266.33 159.15 4902.86 13.12 0.00 0.00 0.00 0.00 09:34:45 08:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:02:01 lo 1.45 1.45 0.14 0.14 0.00 0.00 0.00 0.00 09:34:45 08:03:01 ens3 2.05 1.38 0.50 0.19 0.00 0.00 0.00 0.00 09:34:45 08:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:03:01 lo 5.23 5.23 0.52 0.52 0.00 0.00 0.00 0.00 09:34:45 08:04:01 ens3 2.08 1.42 0.36 0.27 0.00 0.00 0.00 0.00 09:34:45 08:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:04:01 lo 43.90 43.90 47.20 47.20 0.00 0.00 0.00 0.00 09:34:45 08:05:01 ens3 1.52 1.25 0.45 0.38 0.00 0.00 0.00 0.00 09:34:45 08:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:05:01 lo 19.50 19.50 10.70 10.70 0.00 0.00 0.00 0.00 09:34:45 08:06:01 ens3 0.72 0.52 0.12 0.10 0.00 0.00 0.00 0.00 09:34:45 08:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:06:01 lo 29.78 29.78 13.56 13.56 0.00 0.00 0.00 0.00 09:34:45 08:07:01 ens3 1.90 1.97 0.91 0.76 0.00 0.00 0.00 0.00 09:34:45 08:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:07:01 lo 9.20 9.20 7.15 7.15 0.00 0.00 0.00 0.00 09:34:45 08:08:01 ens3 0.47 0.00 0.05 0.00 0.00 0.00 0.00 0.00 09:34:45 08:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:08:01 lo 0.67 0.67 0.08 0.08 0.00 0.00 0.00 0.00 09:34:45 08:09:01 ens3 1.23 0.85 0.39 0.31 0.00 0.00 0.00 0.00 09:34:45 08:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:09:01 lo 4.30 4.30 0.43 0.43 0.00 0.00 0.00 0.00 09:34:45 08:10:01 ens3 0.78 0.63 0.13 0.12 0.00 0.00 0.00 0.00 09:34:45 08:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:10:01 lo 18.35 18.35 16.82 16.82 0.00 0.00 0.00 0.00 09:34:45 08:11:01 ens3 0.82 0.35 0.12 0.06 0.00 0.00 0.00 0.00 09:34:45 08:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:11:01 lo 19.00 19.00 11.60 11.60 0.00 0.00 0.00 0.00 09:34:45 08:12:01 ens3 0.55 0.32 0.19 0.11 0.00 0.00 0.00 0.00 09:34:45 08:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:12:01 lo 19.71 19.71 9.02 9.02 0.00 0.00 0.00 0.00 09:34:45 08:13:01 ens3 2.80 2.27 1.14 0.95 0.00 0.00 0.00 0.00 09:34:45 08:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:13:01 lo 19.83 19.83 5.94 5.94 0.00 0.00 0.00 0.00 09:34:45 08:14:01 ens3 13.71 11.50 2.90 8.63 0.00 0.00 0.00 0.00 09:34:45 08:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:14:01 lo 10.36 10.36 15.65 15.65 0.00 0.00 0.00 0.00 09:34:45 08:15:01 ens3 1.12 0.93 0.21 0.18 0.00 0.00 0.00 0.00 09:34:45 08:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:15:01 lo 25.23 25.23 11.17 11.17 0.00 0.00 0.00 0.00 09:34:45 08:16:01 ens3 1.17 0.98 0.23 0.21 0.00 0.00 0.00 0.00 09:34:45 08:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:16:01 lo 22.28 22.28 7.37 7.37 0.00 0.00 0.00 0.00 09:34:45 08:17:01 ens3 1.17 0.90 0.28 0.20 0.00 0.00 0.00 0.00 09:34:45 08:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:17:01 lo 23.41 23.41 12.82 12.82 0.00 0.00 0.00 0.00 09:34:45 08:18:01 ens3 1.43 1.20 0.27 0.25 0.00 0.00 0.00 0.00 09:34:45 08:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:18:01 lo 30.49 30.49 10.30 10.30 0.00 0.00 0.00 0.00 09:34:45 08:19:01 ens3 1.10 1.17 0.18 0.19 0.00 0.00 0.00 0.00 09:34:45 08:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:19:01 lo 19.06 19.06 8.13 8.13 0.00 0.00 0.00 0.00 09:34:45 08:20:01 ens3 2.17 2.73 0.89 0.82 0.00 0.00 0.00 0.00 09:34:45 08:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:20:01 lo 24.48 24.48 7.96 7.96 0.00 0.00 0.00 0.00 09:34:45 08:21:02 ens3 1.35 1.73 0.25 0.27 0.00 0.00 0.00 0.00 09:34:45 08:21:02 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:21:02 lo 14.41 14.41 10.00 10.00 0.00 0.00 0.00 0.00 09:34:45 08:22:01 ens3 0.37 0.22 0.14 0.07 0.00 0.00 0.00 0.00 09:34:45 08:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:22:01 lo 0.10 0.10 0.01 0.01 0.00 0.00 0.00 0.00 09:34:45 08:23:01 ens3 0.23 0.07 0.01 0.01 0.00 0.00 0.00 0.00 09:34:45 08:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:23:01 lo 0.38 0.38 0.04 0.04 0.00 0.00 0.00 0.00 09:34:45 08:24:01 ens3 0.27 0.07 0.02 0.01 0.00 0.00 0.00 0.00 09:34:45 08:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:24:01 lo 0.35 0.35 0.04 0.04 0.00 0.00 0.00 0.00 09:34:45 08:25:01 ens3 1.08 1.10 0.16 0.16 0.00 0.00 0.00 0.00 09:34:45 08:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:25:01 lo 14.53 14.53 4.78 4.78 0.00 0.00 0.00 0.00 09:34:45 08:26:01 ens3 0.90 0.95 0.14 0.14 0.00 0.00 0.00 0.00 09:34:45 08:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:26:01 lo 14.41 14.41 6.73 6.73 0.00 0.00 0.00 0.00 09:34:45 08:27:01 ens3 1.37 1.43 0.36 0.29 0.00 0.00 0.00 0.00 09:34:45 08:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:27:01 lo 16.30 16.30 7.15 7.15 0.00 0.00 0.00 0.00 09:34:45 08:28:01 ens3 1.37 0.63 0.19 0.12 0.00 0.00 0.00 0.00 09:34:45 08:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:28:01 lo 5.38 5.38 6.33 6.33 0.00 0.00 0.00 0.00 09:34:45 08:29:01 ens3 1.17 0.83 0.41 0.33 0.00 0.00 0.00 0.00 09:34:45 08:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:29:01 lo 7.68 7.68 2.69 2.69 0.00 0.00 0.00 0.00 09:34:45 08:30:01 ens3 0.97 0.42 0.14 0.09 0.00 0.00 0.00 0.00 09:34:45 08:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:30:01 lo 4.32 4.32 1.01 1.01 0.00 0.00 0.00 0.00 09:34:45 08:31:01 ens3 1.12 0.72 0.39 0.30 0.00 0.00 0.00 0.00 09:34:45 08:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:31:01 lo 27.71 27.71 9.41 9.41 0.00 0.00 0.00 0.00 09:34:45 08:32:01 ens3 0.77 0.32 0.40 0.26 0.00 0.00 0.00 0.00 09:34:45 08:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:32:01 lo 0.12 0.12 0.01 0.01 0.00 0.00 0.00 0.00 09:34:45 08:33:01 ens3 0.27 0.07 0.01 0.01 0.00 0.00 0.00 0.00 09:34:45 08:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:33:01 lo 0.40 0.40 0.04 0.04 0.00 0.00 0.00 0.00 09:34:45 08:34:01 ens3 0.92 0.28 0.11 0.05 0.00 0.00 0.00 0.00 09:34:45 08:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:34:01 lo 2.28 2.28 0.76 0.76 0.00 0.00 0.00 0.00 09:34:45 08:35:01 ens3 1.52 1.17 0.45 0.38 0.00 0.00 0.00 0.00 09:34:45 08:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:35:01 lo 20.61 20.61 13.06 13.06 0.00 0.00 0.00 0.00 09:34:45 08:36:01 ens3 0.67 0.53 0.09 0.08 0.00 0.00 0.00 0.00 09:34:45 08:36:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:36:01 lo 12.61 12.61 14.81 14.81 0.00 0.00 0.00 0.00 09:34:45 08:37:01 ens3 1.35 1.03 0.32 0.24 0.00 0.00 0.00 0.00 09:34:45 08:37:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:37:01 lo 12.51 12.51 5.89 5.89 0.00 0.00 0.00 0.00 09:34:45 08:38:01 ens3 0.98 0.78 0.16 0.14 0.00 0.00 0.00 0.00 09:34:45 08:38:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:38:01 lo 33.33 33.33 13.30 13.30 0.00 0.00 0.00 0.00 09:34:45 08:39:01 ens3 0.67 0.53 0.11 0.10 0.00 0.00 0.00 0.00 09:34:45 08:39:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:39:01 lo 42.74 42.74 12.96 12.96 0.00 0.00 0.00 0.00 09:34:45 08:40:01 ens3 0.75 0.52 0.12 0.10 0.00 0.00 0.00 0.00 09:34:45 08:40:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:40:01 lo 18.65 18.65 5.72 5.72 0.00 0.00 0.00 0.00 09:34:45 08:41:01 ens3 0.83 0.75 0.12 0.12 0.00 0.00 0.00 0.00 09:34:45 08:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:41:01 lo 28.06 28.06 21.08 21.08 0.00 0.00 0.00 0.00 09:34:45 08:42:01 ens3 0.87 0.53 0.24 0.15 0.00 0.00 0.00 0.00 09:34:45 08:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:42:01 lo 8.20 8.20 3.46 3.46 0.00 0.00 0.00 0.00 09:34:45 08:43:01 ens3 1.35 0.67 0.20 0.13 0.00 0.00 0.00 0.00 09:34:45 08:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:43:01 lo 19.58 19.58 10.14 10.14 0.00 0.00 0.00 0.00 09:34:45 08:44:01 ens3 1.05 0.72 0.36 0.29 0.00 0.00 0.00 0.00 09:34:45 08:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:44:01 lo 6.30 6.30 3.99 3.99 0.00 0.00 0.00 0.00 09:34:45 08:45:01 ens3 0.78 0.52 0.12 0.10 0.00 0.00 0.00 0.00 09:34:45 08:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:45:01 lo 33.78 33.78 12.62 12.62 0.00 0.00 0.00 0.00 09:34:45 08:46:01 ens3 0.35 0.15 0.04 0.03 0.00 0.00 0.00 0.00 09:34:45 08:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:46:01 lo 8.90 8.90 4.20 4.20 0.00 0.00 0.00 0.00 09:34:45 08:47:01 ens3 1.05 0.87 0.30 0.21 0.00 0.00 0.00 0.00 09:34:45 08:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:47:01 lo 15.51 15.51 7.49 7.49 0.00 0.00 0.00 0.00 09:34:45 08:48:01 ens3 0.67 0.42 0.10 0.08 0.00 0.00 0.00 0.00 09:34:45 08:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:48:01 lo 24.16 24.16 8.24 8.24 0.00 0.00 0.00 0.00 09:34:45 08:49:01 ens3 0.90 0.77 0.13 0.12 0.00 0.00 0.00 0.00 09:34:45 08:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:49:01 lo 17.75 17.75 7.36 7.36 0.00 0.00 0.00 0.00 09:34:45 08:50:01 ens3 0.68 0.47 0.11 0.09 0.00 0.00 0.00 0.00 09:34:45 08:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:50:01 lo 36.06 36.06 12.29 12.29 0.00 0.00 0.00 0.00 09:34:45 08:51:01 ens3 0.48 0.37 0.08 0.06 0.00 0.00 0.00 0.00 09:34:45 08:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:51:01 lo 53.16 53.16 15.96 15.96 0.00 0.00 0.00 0.00 09:34:45 08:52:01 ens3 0.65 0.40 0.20 0.12 0.00 0.00 0.00 0.00 09:34:45 08:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:52:01 lo 22.78 22.78 6.57 6.57 0.00 0.00 0.00 0.00 09:34:45 08:53:01 ens3 0.37 0.25 0.05 0.04 0.00 0.00 0.00 0.00 09:34:45 08:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:53:01 lo 33.69 33.69 9.72 9.72 0.00 0.00 0.00 0.00 09:34:45 08:54:01 ens3 0.15 0.05 0.01 0.01 0.00 0.00 0.00 0.00 09:34:45 08:54:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:54:01 lo 20.76 20.76 5.91 5.91 0.00 0.00 0.00 0.00 09:34:45 08:55:01 ens3 0.25 0.08 0.01 0.01 0.00 0.00 0.00 0.00 09:34:45 08:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:55:01 lo 56.71 56.71 18.54 18.54 0.00 0.00 0.00 0.00 09:34:45 08:56:01 ens3 0.75 0.62 0.10 0.09 0.00 0.00 0.00 0.00 09:34:45 08:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:56:01 lo 25.78 25.78 6.96 6.96 0.00 0.00 0.00 0.00 09:34:45 08:57:01 ens3 1.57 0.70 0.33 0.17 0.00 0.00 0.00 0.00 09:34:45 08:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:57:01 lo 23.08 23.08 22.62 22.62 0.00 0.00 0.00 0.00 09:34:45 08:58:01 ens3 1.23 0.75 0.43 0.33 0.00 0.00 0.00 0.00 09:34:45 08:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:58:01 lo 33.12 33.12 13.83 13.83 0.00 0.00 0.00 0.00 09:34:45 08:59:01 ens3 1.78 0.68 0.27 0.13 0.00 0.00 0.00 0.00 09:34:45 08:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 08:59:01 lo 18.15 18.15 7.52 7.52 0.00 0.00 0.00 0.00 09:34:45 09:00:01 ens3 1.58 0.92 0.49 0.37 0.00 0.00 0.00 0.00 09:34:45 09:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:00:01 lo 11.15 11.15 5.39 5.39 0.00 0.00 0.00 0.00 09:34:45 09:01:01 ens3 0.80 0.37 0.12 0.06 0.00 0.00 0.00 0.00 09:34:45 09:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:01:01 lo 37.58 37.58 13.83 13.83 0.00 0.00 0.00 0.00 09:34:45 09:02:01 ens3 1.18 0.63 0.30 0.17 0.00 0.00 0.00 0.00 09:34:45 09:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:02:01 lo 29.10 29.10 11.78 11.78 0.00 0.00 0.00 0.00 09:34:45 09:03:01 ens3 0.90 0.40 0.13 0.07 0.00 0.00 0.00 0.00 09:34:45 09:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:03:01 lo 24.50 24.50 8.94 8.94 0.00 0.00 0.00 0.00 09:34:45 09:04:01 ens3 1.65 0.88 0.43 0.31 0.00 0.00 0.00 0.00 09:34:45 09:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:04:01 lo 4.57 4.57 2.12 2.12 0.00 0.00 0.00 0.00 09:34:45 09:05:01 ens3 0.85 0.65 0.11 0.10 0.00 0.00 0.00 0.00 09:34:45 09:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:05:01 lo 22.65 22.65 22.56 22.56 0.00 0.00 0.00 0.00 09:34:45 09:06:01 ens3 1.03 0.55 0.17 0.11 0.00 0.00 0.00 0.00 09:34:45 09:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:06:01 lo 33.58 33.58 14.10 14.10 0.00 0.00 0.00 0.00 09:34:45 09:07:01 ens3 1.23 0.70 0.50 0.35 0.00 0.00 0.00 0.00 09:34:45 09:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:07:01 lo 19.21 19.21 9.97 9.97 0.00 0.00 0.00 0.00 09:34:45 09:08:01 ens3 0.90 0.62 0.15 0.12 0.00 0.00 0.00 0.00 09:34:45 09:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:08:01 lo 10.10 10.10 5.70 5.70 0.00 0.00 0.00 0.00 09:34:45 09:09:01 ens3 1.08 0.48 0.12 0.09 0.00 0.00 0.00 0.00 09:34:45 09:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:09:01 lo 23.70 23.70 12.39 12.39 0.00 0.00 0.00 0.00 09:34:45 09:10:01 ens3 1.52 0.42 0.14 0.09 0.00 0.00 0.00 0.00 09:34:45 09:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:10:01 lo 8.58 8.58 5.74 5.74 0.00 0.00 0.00 0.00 09:34:45 09:11:01 ens3 1.23 0.47 0.18 0.09 0.00 0.00 0.00 0.00 09:34:45 09:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:11:01 lo 24.35 24.35 12.02 12.02 0.00 0.00 0.00 0.00 09:34:45 09:12:01 ens3 1.27 0.72 0.52 0.37 0.00 0.00 0.00 0.00 09:34:45 09:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:12:01 lo 6.77 6.77 4.83 4.83 0.00 0.00 0.00 0.00 09:34:45 09:13:01 ens3 0.42 0.22 0.04 0.03 0.00 0.00 0.00 0.00 09:34:45 09:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:13:01 lo 38.33 38.33 13.85 13.85 0.00 0.00 0.00 0.00 09:34:45 09:14:01 ens3 2.38 2.08 0.89 0.75 0.00 0.00 0.00 0.00 09:34:45 09:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:14:01 lo 5.38 5.38 2.62 2.62 0.00 0.00 0.00 0.00 09:34:45 09:15:01 ens3 1.10 0.82 0.38 0.31 0.00 0.00 0.00 0.00 09:34:45 09:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:15:01 lo 35.63 35.63 32.80 32.80 0.00 0.00 0.00 0.00 09:34:45 09:16:01 ens3 1.52 1.15 0.28 0.24 0.00 0.00 0.00 0.00 09:34:45 09:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:16:01 lo 35.21 35.21 14.29 14.29 0.00 0.00 0.00 0.00 09:34:45 09:17:01 ens3 1.12 1.07 0.26 0.20 0.00 0.00 0.00 0.00 09:34:45 09:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:17:01 lo 10.01 10.01 8.53 8.53 0.00 0.00 0.00 0.00 09:34:45 09:18:01 ens3 0.88 1.03 0.16 0.16 0.00 0.00 0.00 0.00 09:34:45 09:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:18:01 lo 31.18 31.18 11.69 11.69 0.00 0.00 0.00 0.00 09:34:45 09:19:01 ens3 0.77 0.98 0.15 0.15 0.00 0.00 0.00 0.00 09:34:45 09:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:19:01 lo 12.25 12.25 5.31 5.31 0.00 0.00 0.00 0.00 09:34:45 09:20:01 ens3 1.65 0.72 0.23 0.12 0.00 0.00 0.00 0.00 09:34:45 09:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:20:01 lo 26.30 26.30 10.61 10.61 0.00 0.00 0.00 0.00 09:34:45 09:21:01 ens3 1.60 1.20 0.68 0.55 0.00 0.00 0.00 0.00 09:34:45 09:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:21:01 lo 16.33 16.33 5.78 5.78 0.00 0.00 0.00 0.00 09:34:45 09:22:01 ens3 0.93 0.68 0.27 0.19 0.00 0.00 0.00 0.00 09:34:45 09:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:22:01 lo 43.70 43.70 15.24 15.24 0.00 0.00 0.00 0.00 09:34:45 09:23:01 ens3 0.67 0.50 0.11 0.09 0.00 0.00 0.00 0.00 09:34:45 09:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:23:01 lo 34.63 34.63 11.18 11.18 0.00 0.00 0.00 0.00 09:34:45 09:24:01 ens3 0.47 0.32 0.08 0.06 0.00 0.00 0.00 0.00 09:34:45 09:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:24:01 lo 3.47 3.47 0.99 0.99 0.00 0.00 0.00 0.00 09:34:45 09:25:01 ens3 0.43 0.10 0.03 0.01 0.00 0.00 0.00 0.00 09:34:45 09:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:25:01 lo 0.58 0.58 0.06 0.06 0.00 0.00 0.00 0.00 09:34:45 09:26:01 ens3 0.15 0.00 0.01 0.00 0.00 0.00 0.00 0.00 09:34:45 09:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:26:01 lo 0.27 0.27 0.02 0.02 0.00 0.00 0.00 0.00 09:34:45 09:27:01 ens3 1.02 0.87 0.23 0.16 0.00 0.00 0.00 0.00 09:34:45 09:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:27:01 lo 2.38 2.38 0.21 0.21 0.00 0.00 0.00 0.00 09:34:45 09:28:01 ens3 0.78 0.87 0.14 0.14 0.00 0.00 0.00 0.00 09:34:45 09:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:28:01 lo 45.51 45.51 22.43 22.43 0.00 0.00 0.00 0.00 09:34:45 09:29:01 ens3 2.73 2.85 16.71 0.30 0.00 0.00 0.00 0.00 09:34:45 09:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:29:01 lo 69.89 69.89 25.01 25.01 0.00 0.00 0.00 0.00 09:34:45 09:30:01 ens3 0.62 0.60 0.09 0.11 0.00 0.00 0.00 0.00 09:34:45 09:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:30:01 lo 58.36 58.36 20.18 20.18 0.00 0.00 0.00 0.00 09:34:45 09:31:01 ens3 0.42 0.28 0.05 0.04 0.00 0.00 0.00 0.00 09:34:45 09:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:31:01 lo 41.21 41.21 13.18 13.18 0.00 0.00 0.00 0.00 09:34:45 09:32:01 ens3 1.62 0.48 0.50 0.28 0.00 0.00 0.00 0.00 09:34:45 09:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:32:01 lo 0.40 0.40 0.03 0.03 0.00 0.00 0.00 0.00 09:34:45 09:33:01 ens3 1.17 0.53 0.58 0.43 0.00 0.00 0.00 0.00 09:34:45 09:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:33:01 lo 0.77 0.77 0.08 0.08 0.00 0.00 0.00 0.00 09:34:45 09:34:01 ens3 132.84 102.20 1934.69 11.15 0.00 0.00 0.00 0.00 09:34:45 09:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 09:34:01 lo 1.08 1.08 0.10 0.10 0.00 0.00 0.00 0.00 09:34:45 Average: ens3 17.64 13.19 224.28 2.00 0.00 0.00 0.00 0.00 09:34:45 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:45 Average: lo 18.98 18.98 8.72 8.72 0.00 0.00 0.00 0.00 09:34:45 09:34:45 09:34:45 ---> sar -P ALL: 09:34:45 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-25219) 09/21/24 _x86_64_ (4 CPU) 09:34:45 09:34:45 07:55:59 LINUX RESTART (4 CPU) 09:34:45 09:34:45 07:56:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 07:57:01 all 13.79 17.77 14.61 5.02 0.12 48.68 09:34:45 07:57:01 0 11.28 18.07 15.83 4.67 0.13 50.02 09:34:45 07:57:01 1 12.11 18.10 14.79 6.46 0.12 48.42 09:34:45 07:57:01 2 15.16 17.79 14.05 2.92 0.12 49.97 09:34:45 07:57:01 3 16.63 17.14 13.78 6.02 0.12 46.31 09:34:45 07:58:01 all 18.67 5.66 5.17 2.57 0.08 67.85 09:34:45 07:58:01 0 27.65 5.86 5.56 0.97 0.08 59.87 09:34:45 07:58:01 1 19.55 5.78 5.88 4.31 0.08 64.41 09:34:45 07:58:01 2 4.99 6.84 4.81 3.06 0.07 80.24 09:34:45 07:58:01 3 22.44 4.16 4.44 1.95 0.08 66.93 09:34:45 07:59:01 all 71.93 0.00 4.56 4.53 0.13 18.85 09:34:45 07:59:01 0 74.89 0.00 4.07 2.60 0.13 18.30 09:34:45 07:59:01 1 69.99 0.00 4.52 4.76 0.15 20.58 09:34:45 07:59:01 2 74.18 0.00 4.90 6.38 0.12 14.43 09:34:45 07:59:01 3 68.62 0.00 4.74 4.39 0.12 22.13 09:34:45 08:00:01 all 56.15 0.00 2.63 1.40 0.11 39.71 09:34:45 08:00:01 0 46.93 0.00 2.11 2.49 0.08 48.38 09:34:45 08:00:01 1 82.43 0.00 4.66 0.80 0.12 11.99 09:34:45 08:00:01 2 40.67 0.00 1.72 1.34 0.08 56.18 09:34:45 08:00:01 3 54.97 0.00 2.08 0.97 0.13 41.85 09:34:45 08:01:06 all 50.28 0.00 2.31 40.81 0.12 6.49 09:34:45 08:01:06 0 46.68 0.00 2.34 50.41 0.11 0.46 09:34:45 08:01:06 1 45.97 0.00 1.77 42.10 0.11 10.05 09:34:45 08:01:06 2 56.05 0.00 3.02 34.50 0.13 6.30 09:34:45 08:01:06 3 52.39 0.00 2.10 36.22 0.13 9.17 09:34:45 08:02:01 all 47.92 0.00 3.51 38.51 0.09 9.97 09:34:45 08:02:01 0 49.63 0.00 3.82 44.71 0.09 1.75 09:34:45 08:02:01 1 47.61 0.00 3.71 28.18 0.09 20.41 09:34:45 08:02:01 2 46.04 0.00 3.43 40.50 0.09 9.93 09:34:45 08:02:01 3 48.42 0.00 3.07 40.63 0.09 7.79 09:34:45 08:03:01 all 89.00 0.00 3.11 2.15 0.11 5.62 09:34:45 08:03:01 0 92.63 0.00 3.38 1.14 0.10 2.76 09:34:45 08:03:01 1 88.69 0.00 2.76 1.66 0.12 6.78 09:34:45 08:03:01 2 87.43 0.00 2.57 2.34 0.10 7.56 09:34:45 08:03:01 3 87.27 0.00 3.73 3.48 0.13 5.40 09:34:45 08:04:01 all 45.98 0.00 1.79 1.26 0.10 50.87 09:34:45 08:04:01 0 44.49 0.00 1.46 1.44 0.10 52.51 09:34:45 08:04:01 1 46.48 0.00 1.67 0.02 0.10 51.72 09:34:45 08:04:01 2 48.39 0.00 1.86 3.36 0.10 46.28 09:34:45 08:04:01 3 44.56 0.00 2.18 0.20 0.10 52.96 09:34:45 08:05:01 all 35.48 0.00 1.32 0.34 0.09 62.77 09:34:45 08:05:01 0 34.43 0.00 1.51 0.03 0.08 63.94 09:34:45 08:05:01 1 37.40 0.00 1.42 0.10 0.10 60.98 09:34:45 08:05:01 2 34.07 0.00 1.06 0.72 0.08 64.07 09:34:45 08:05:01 3 36.01 0.00 1.29 0.52 0.10 62.08 09:34:45 08:06:01 all 30.81 0.00 1.04 0.60 0.09 67.46 09:34:45 08:06:01 0 31.22 0.00 0.96 0.35 0.10 67.37 09:34:45 08:06:01 1 30.43 0.00 0.92 0.96 0.08 67.61 09:34:45 08:06:01 2 31.27 0.00 1.06 1.06 0.08 66.53 09:34:45 08:06:01 3 30.34 0.00 1.21 0.02 0.08 68.35 09:34:45 08:07:01 all 35.75 0.00 1.42 0.62 0.08 62.13 09:34:45 08:07:01 0 36.11 0.00 1.49 0.15 0.08 62.17 09:34:45 08:07:01 1 37.73 0.00 1.21 0.02 0.07 60.98 09:34:45 08:07:01 2 31.25 0.00 1.19 2.17 0.08 65.31 09:34:45 08:07:01 3 37.94 0.00 1.79 0.13 0.10 60.03 09:34:45 09:34:45 08:07:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 08:08:01 all 0.76 0.00 0.33 0.02 0.06 98.83 09:34:45 08:08:01 0 0.79 0.00 0.45 0.00 0.07 98.69 09:34:45 08:08:01 1 0.55 0.00 0.17 0.00 0.05 99.23 09:34:45 08:08:01 2 0.93 0.00 0.42 0.08 0.05 98.52 09:34:45 08:08:01 3 0.75 0.00 0.28 0.00 0.07 98.90 09:34:45 08:09:01 all 45.34 0.00 1.69 0.04 0.10 52.83 09:34:45 08:09:01 0 47.65 0.00 1.71 0.03 0.10 50.50 09:34:45 08:09:01 1 41.31 0.00 1.89 0.02 0.10 56.68 09:34:45 08:09:01 2 46.12 0.00 1.54 0.05 0.10 52.19 09:34:45 08:09:01 3 46.27 0.00 1.63 0.05 0.10 51.95 09:34:45 08:10:01 all 32.23 0.00 1.17 0.27 0.09 66.24 09:34:45 08:10:01 0 33.31 0.00 1.10 0.02 0.08 65.49 09:34:45 08:10:01 1 30.24 0.00 0.89 0.08 0.08 68.70 09:34:45 08:10:01 2 32.73 0.00 1.22 0.93 0.08 65.03 09:34:45 08:10:01 3 32.66 0.00 1.49 0.03 0.10 65.71 09:34:45 08:11:01 all 7.98 0.00 0.47 0.01 0.07 91.47 09:34:45 08:11:01 0 7.20 0.00 0.43 0.02 0.07 92.28 09:34:45 08:11:01 1 6.77 0.00 0.43 0.00 0.07 92.72 09:34:45 08:11:01 2 8.74 0.00 0.53 0.02 0.08 90.63 09:34:45 08:11:01 3 9.20 0.00 0.48 0.00 0.07 90.25 09:34:45 08:12:01 all 4.05 0.00 0.42 0.02 0.07 95.44 09:34:45 08:12:01 0 4.09 0.00 0.38 0.03 0.07 95.42 09:34:45 08:12:01 1 3.90 0.00 0.52 0.00 0.08 95.50 09:34:45 08:12:01 2 4.03 0.00 0.42 0.05 0.07 95.43 09:34:45 08:12:01 3 4.16 0.00 0.37 0.00 0.07 95.41 09:34:45 08:13:01 all 4.61 0.00 0.63 0.15 0.07 94.53 09:34:45 08:13:01 0 2.78 0.00 0.49 0.12 0.07 96.55 09:34:45 08:13:01 1 10.19 0.00 0.94 0.10 0.07 88.71 09:34:45 08:13:01 2 2.51 0.00 0.57 0.38 0.07 96.47 09:34:45 08:13:01 3 2.97 0.00 0.54 0.02 0.07 96.41 09:34:45 08:14:01 all 56.34 0.00 1.96 0.81 0.10 40.78 09:34:45 08:14:01 0 54.33 0.00 2.19 0.59 0.10 42.79 09:34:45 08:14:01 1 57.48 0.00 1.84 0.15 0.10 40.43 09:34:45 08:14:01 2 57.79 0.00 1.89 1.41 0.10 38.81 09:34:45 08:14:01 3 55.76 0.00 1.93 1.11 0.10 41.10 09:34:45 08:15:01 all 11.98 0.00 0.40 0.24 0.06 87.31 09:34:45 08:15:01 0 12.24 0.00 0.28 0.00 0.05 87.43 09:34:45 08:15:01 1 11.28 0.00 0.33 0.00 0.07 88.32 09:34:45 08:15:01 2 12.00 0.00 0.45 0.57 0.07 86.91 09:34:45 08:15:01 3 12.42 0.00 0.53 0.40 0.07 86.58 09:34:45 08:16:01 all 2.46 0.00 0.27 0.01 0.05 97.21 09:34:45 08:16:01 0 2.44 0.00 0.18 0.00 0.05 97.32 09:34:45 08:16:01 1 2.35 0.00 0.25 0.00 0.05 97.35 09:34:45 08:16:01 2 2.40 0.00 0.42 0.02 0.07 97.10 09:34:45 08:16:01 3 2.66 0.00 0.22 0.02 0.05 97.06 09:34:45 08:17:01 all 37.38 0.00 1.18 0.32 0.09 61.03 09:34:45 08:17:01 0 36.62 0.00 0.89 0.03 0.08 62.38 09:34:45 08:17:01 1 36.34 0.00 1.02 0.02 0.08 62.53 09:34:45 08:17:01 2 38.20 0.00 1.54 0.82 0.08 59.35 09:34:45 08:17:01 3 38.36 0.00 1.27 0.40 0.10 59.86 09:34:45 08:18:01 all 4.13 0.00 0.20 0.01 0.06 95.60 09:34:45 08:18:01 0 4.34 0.00 0.24 0.02 0.07 95.34 09:34:45 08:18:01 1 3.68 0.00 0.18 0.00 0.05 96.08 09:34:45 08:18:01 2 3.98 0.00 0.13 0.03 0.07 95.79 09:34:45 08:18:01 3 4.52 0.00 0.23 0.00 0.07 95.18 09:34:45 09:34:45 08:18:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 08:19:01 all 28.93 0.00 1.03 0.27 0.08 69.69 09:34:45 08:19:01 0 27.54 0.00 1.06 0.57 0.08 70.75 09:34:45 08:19:01 1 31.08 0.00 1.19 0.02 0.08 67.63 09:34:45 08:19:01 2 27.07 0.00 1.19 0.12 0.07 71.56 09:34:45 08:19:01 3 30.02 0.00 0.70 0.38 0.07 68.83 09:34:45 08:20:01 all 20.55 0.00 0.88 0.13 0.08 78.36 09:34:45 08:20:01 0 18.95 0.00 0.90 0.02 0.08 80.04 09:34:45 08:20:01 1 25.13 0.00 1.02 0.05 0.08 73.72 09:34:45 08:20:01 2 20.80 0.00 0.82 0.45 0.08 77.85 09:34:45 08:20:01 3 17.32 0.00 0.79 0.00 0.07 81.83 09:34:45 08:21:02 all 29.20 0.00 1.00 0.58 0.08 69.15 09:34:45 08:21:02 0 30.53 0.00 1.22 1.05 0.08 67.12 09:34:45 08:21:02 1 28.99 0.00 0.84 0.55 0.07 69.55 09:34:45 08:21:02 2 28.29 0.00 0.83 0.65 0.07 70.16 09:34:45 08:21:02 3 28.98 0.00 1.12 0.05 0.08 69.78 09:34:45 08:22:01 all 0.60 0.00 0.20 0.02 0.05 99.13 09:34:45 08:22:01 0 0.81 0.00 0.24 0.02 0.05 98.88 09:34:45 08:22:01 1 0.44 0.00 0.27 0.00 0.07 99.22 09:34:45 08:22:01 2 0.85 0.00 0.14 0.05 0.05 98.91 09:34:45 08:22:01 3 0.29 0.00 0.15 0.00 0.03 99.52 09:34:45 08:23:01 all 0.50 0.00 0.20 0.01 0.05 99.24 09:34:45 08:23:01 0 0.32 0.00 0.13 0.02 0.03 99.50 09:34:45 08:23:01 1 0.43 0.00 0.13 0.00 0.07 99.36 09:34:45 08:23:01 2 0.65 0.00 0.27 0.00 0.07 99.01 09:34:45 08:23:01 3 0.60 0.00 0.25 0.02 0.05 99.08 09:34:45 08:24:01 all 0.53 0.00 0.19 0.00 0.05 99.22 09:34:45 08:24:01 0 0.58 0.00 0.20 0.02 0.05 99.15 09:34:45 08:24:01 1 0.50 0.00 0.18 0.00 0.07 99.25 09:34:45 08:24:01 2 0.49 0.00 0.13 0.00 0.05 99.33 09:34:45 08:24:01 3 0.57 0.00 0.23 0.00 0.05 99.15 09:34:45 08:25:01 all 46.38 0.00 1.64 0.38 0.09 51.52 09:34:45 08:25:01 0 46.81 0.00 1.76 1.31 0.08 50.04 09:34:45 08:25:01 1 47.00 0.00 1.56 0.02 0.10 51.32 09:34:45 08:25:01 2 46.02 0.00 1.42 0.17 0.08 52.30 09:34:45 08:25:01 3 45.68 0.00 1.81 0.02 0.08 52.41 09:34:45 08:26:01 all 35.51 0.00 1.17 0.25 0.10 62.97 09:34:45 08:26:01 0 36.32 0.00 1.15 0.50 0.10 61.93 09:34:45 08:26:01 1 32.36 0.00 1.12 0.33 0.10 66.09 09:34:45 08:26:01 2 35.76 0.00 0.95 0.02 0.08 63.19 09:34:45 08:26:01 3 37.59 0.00 1.46 0.17 0.10 60.68 09:34:45 08:27:01 all 3.98 0.00 0.30 0.01 0.05 95.65 09:34:45 08:27:01 0 3.82 0.00 0.22 0.02 0.05 95.89 09:34:45 08:27:01 1 3.30 0.00 0.38 0.00 0.05 96.26 09:34:45 08:27:01 2 4.54 0.00 0.23 0.00 0.05 95.17 09:34:45 08:27:01 3 4.26 0.00 0.38 0.03 0.05 95.28 09:34:45 08:28:01 all 29.10 0.00 1.00 0.23 0.09 69.57 09:34:45 08:28:01 0 30.73 0.00 0.62 0.00 0.08 68.57 09:34:45 08:28:01 1 27.02 0.00 1.21 0.39 0.10 71.29 09:34:45 08:28:01 2 29.17 0.00 1.27 0.03 0.10 69.42 09:34:45 08:28:01 3 29.46 0.00 0.92 0.52 0.08 69.01 09:34:45 08:29:01 all 27.70 0.00 0.99 0.31 0.08 70.93 09:34:45 08:29:01 0 27.01 0.00 1.22 0.38 0.07 71.32 09:34:45 08:29:01 1 26.72 0.00 1.11 0.05 0.07 72.06 09:34:45 08:29:01 2 28.62 0.00 0.82 0.05 0.08 70.43 09:34:45 08:29:01 3 28.47 0.00 0.81 0.74 0.08 69.90 09:34:45 09:34:45 08:29:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 08:30:01 all 1.82 0.00 0.17 0.01 0.05 97.95 09:34:45 08:30:01 0 1.81 0.00 0.28 0.00 0.05 97.86 09:34:45 08:30:01 1 1.66 0.00 0.13 0.00 0.05 98.15 09:34:45 08:30:01 2 1.71 0.00 0.10 0.00 0.05 98.14 09:34:45 08:30:01 3 2.11 0.00 0.15 0.03 0.05 97.66 09:34:45 08:31:01 all 39.58 0.00 1.22 0.30 0.09 58.81 09:34:45 08:31:01 0 41.53 0.00 1.30 0.02 0.08 57.07 09:34:45 08:31:01 1 41.01 0.00 1.48 0.15 0.08 57.28 09:34:45 08:31:01 2 39.31 0.00 0.95 0.00 0.10 59.64 09:34:45 08:31:01 3 36.46 0.00 1.17 1.02 0.10 61.24 09:34:45 08:32:01 all 0.87 0.00 0.12 0.00 0.05 98.95 09:34:45 08:32:01 0 0.10 0.00 0.05 0.00 0.05 99.80 09:34:45 08:32:01 1 0.39 0.00 0.20 0.00 0.07 99.35 09:34:45 08:32:01 2 2.29 0.00 0.10 0.00 0.05 97.56 09:34:45 08:32:01 3 0.69 0.00 0.12 0.02 0.05 99.13 09:34:45 08:33:01 all 0.82 0.00 0.09 0.00 0.05 99.04 09:34:45 08:33:01 0 0.30 0.00 0.08 0.00 0.03 99.58 09:34:45 08:33:01 1 0.35 0.00 0.12 0.00 0.05 99.48 09:34:45 08:33:01 2 2.26 0.00 0.03 0.00 0.05 97.66 09:34:45 08:33:01 3 0.34 0.00 0.13 0.02 0.05 99.46 09:34:45 08:34:01 all 27.09 0.00 1.00 0.23 0.06 71.62 09:34:45 08:34:01 0 27.63 0.00 1.15 0.38 0.07 70.77 09:34:45 08:34:01 1 24.60 0.00 0.72 0.02 0.05 74.61 09:34:45 08:34:01 2 26.92 0.00 0.91 0.02 0.07 72.08 09:34:45 08:34:01 3 29.22 0.00 1.22 0.49 0.07 69.00 09:34:45 08:35:01 all 6.86 0.00 0.34 0.02 0.06 92.72 09:34:45 08:35:01 0 6.30 0.00 0.42 0.03 0.07 93.18 09:34:45 08:35:01 1 7.22 0.00 0.32 0.00 0.07 92.39 09:34:45 08:35:01 2 6.68 0.00 0.20 0.00 0.05 93.07 09:34:45 08:35:01 3 7.24 0.00 0.43 0.03 0.07 92.22 09:34:45 08:36:01 all 39.15 0.00 1.24 0.26 0.09 59.25 09:34:45 08:36:01 0 40.67 0.00 0.91 0.02 0.08 58.32 09:34:45 08:36:01 1 41.28 0.00 1.02 0.39 0.10 57.21 09:34:45 08:36:01 2 40.57 0.00 1.59 0.02 0.08 57.73 09:34:45 08:36:01 3 34.11 0.00 1.44 0.63 0.10 63.72 09:34:45 08:37:01 all 22.65 0.00 0.85 0.03 0.08 76.38 09:34:45 08:37:01 0 24.29 0.00 0.82 0.03 0.08 74.77 09:34:45 08:37:01 1 22.09 0.00 0.87 0.05 0.08 76.90 09:34:45 08:37:01 2 23.25 0.00 0.84 0.02 0.08 75.81 09:34:45 08:37:01 3 20.97 0.00 0.89 0.03 0.07 78.04 09:34:45 08:38:01 all 34.13 0.00 0.97 0.30 0.09 64.51 09:34:45 08:38:01 0 35.40 0.00 1.22 1.20 0.10 62.08 09:34:45 08:38:01 1 35.01 0.00 1.16 0.00 0.08 63.75 09:34:45 08:38:01 2 33.78 0.00 0.79 0.00 0.08 65.35 09:34:45 08:38:01 3 32.35 0.00 0.70 0.00 0.08 66.87 09:34:45 08:39:01 all 5.46 0.00 0.25 0.01 0.06 94.23 09:34:45 08:39:01 0 5.16 0.00 0.23 0.03 0.07 94.50 09:34:45 08:39:01 1 5.67 0.00 0.34 0.00 0.07 93.93 09:34:45 08:39:01 2 5.47 0.00 0.25 0.00 0.05 94.23 09:34:45 08:39:01 3 5.54 0.00 0.17 0.00 0.05 94.24 09:34:45 08:40:01 all 17.18 0.00 0.69 0.03 0.07 82.04 09:34:45 08:40:01 0 16.78 0.00 0.74 0.05 0.07 82.36 09:34:45 08:40:01 1 18.43 0.00 0.67 0.02 0.07 80.82 09:34:45 08:40:01 2 16.72 0.00 0.39 0.00 0.08 82.81 09:34:45 08:40:01 3 16.77 0.00 0.97 0.03 0.07 82.16 09:34:45 09:34:45 08:40:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 08:41:01 all 38.64 0.00 1.18 0.23 0.09 59.85 09:34:45 08:41:01 0 40.38 0.00 1.51 0.72 0.08 57.31 09:34:45 08:41:01 1 37.83 0.00 1.33 0.00 0.10 60.74 09:34:45 08:41:01 2 40.45 0.00 1.00 0.22 0.08 58.25 09:34:45 08:41:01 3 35.91 0.00 0.90 0.00 0.08 63.11 09:34:45 08:42:01 all 2.39 0.00 0.17 0.01 0.06 97.38 09:34:45 08:42:01 0 2.60 0.00 0.25 0.03 0.07 97.05 09:34:45 08:42:01 1 2.42 0.00 0.15 0.00 0.05 97.38 09:34:45 08:42:01 2 2.68 0.00 0.18 0.00 0.07 97.07 09:34:45 08:42:01 3 1.85 0.00 0.08 0.00 0.05 98.02 09:34:45 08:43:01 all 3.19 0.00 0.16 0.01 0.07 96.58 09:34:45 08:43:01 0 3.12 0.00 0.20 0.03 0.08 96.56 09:34:45 08:43:01 1 3.09 0.00 0.13 0.00 0.05 96.73 09:34:45 08:43:01 2 3.18 0.00 0.17 0.00 0.07 96.58 09:34:45 08:43:01 3 3.35 0.00 0.13 0.00 0.07 96.45 09:34:45 08:44:01 all 0.95 0.00 0.13 0.01 0.04 98.86 09:34:45 08:44:01 0 1.07 0.00 0.17 0.03 0.05 98.67 09:34:45 08:44:01 1 1.12 0.00 0.17 0.00 0.03 98.68 09:34:45 08:44:01 2 0.86 0.00 0.13 0.00 0.05 98.96 09:34:45 08:44:01 3 0.74 0.00 0.07 0.02 0.03 99.14 09:34:45 08:45:01 all 3.42 0.00 0.23 0.01 0.06 96.28 09:34:45 08:45:01 0 3.29 0.00 0.23 0.02 0.05 96.41 09:34:45 08:45:01 1 3.47 0.00 0.27 0.00 0.07 96.20 09:34:45 08:45:01 2 3.52 0.00 0.22 0.00 0.07 96.20 09:34:45 08:45:01 3 3.41 0.00 0.18 0.03 0.07 96.31 09:34:45 08:46:01 all 1.74 0.00 0.16 0.02 0.05 98.03 09:34:45 08:46:01 0 1.17 0.00 0.15 0.02 0.05 98.61 09:34:45 08:46:01 1 1.37 0.00 0.23 0.00 0.07 98.33 09:34:45 08:46:01 2 1.76 0.00 0.13 0.00 0.03 98.07 09:34:45 08:46:01 3 2.63 0.00 0.13 0.07 0.05 97.12 09:34:45 08:47:01 all 1.98 0.00 0.19 0.01 0.06 97.76 09:34:45 08:47:01 0 3.00 0.00 0.17 0.02 0.05 96.77 09:34:45 08:47:01 1 1.42 0.00 0.32 0.00 0.08 98.17 09:34:45 08:47:01 2 1.88 0.00 0.10 0.00 0.05 97.97 09:34:45 08:47:01 3 1.59 0.00 0.18 0.03 0.05 98.14 09:34:45 08:48:01 all 3.07 0.00 0.35 0.01 0.05 96.51 09:34:45 08:48:01 0 3.83 0.00 0.32 0.02 0.05 95.78 09:34:45 08:48:01 1 2.42 0.00 0.39 0.00 0.05 97.15 09:34:45 08:48:01 2 2.86 0.00 0.43 0.00 0.05 96.66 09:34:45 08:48:01 3 3.17 0.00 0.27 0.03 0.07 96.46 09:34:45 08:49:01 all 48.86 0.00 1.32 0.31 0.08 49.42 09:34:45 08:49:01 0 51.18 0.00 1.45 0.02 0.08 47.27 09:34:45 08:49:01 1 43.78 0.00 1.29 0.05 0.08 54.80 09:34:45 08:49:01 2 50.51 0.00 1.32 0.15 0.08 47.93 09:34:45 08:49:01 3 49.97 0.00 1.22 1.04 0.08 47.68 09:34:45 08:50:01 all 7.23 0.00 0.26 0.01 0.06 92.44 09:34:45 08:50:01 0 7.48 0.00 0.28 0.00 0.05 92.18 09:34:45 08:50:01 1 7.31 0.00 0.30 0.00 0.07 92.32 09:34:45 08:50:01 2 7.20 0.00 0.27 0.02 0.07 92.44 09:34:45 08:50:01 3 6.93 0.00 0.20 0.03 0.05 92.79 09:34:45 08:51:01 all 5.05 0.00 0.28 0.01 0.06 94.59 09:34:45 08:51:01 0 5.06 0.00 0.25 0.00 0.07 94.62 09:34:45 08:51:01 1 4.83 0.00 0.37 0.00 0.07 94.73 09:34:45 08:51:01 2 5.02 0.00 0.23 0.02 0.05 94.68 09:34:45 08:51:01 3 5.31 0.00 0.27 0.02 0.07 94.34 09:34:45 09:34:45 08:51:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 08:52:01 all 2.01 0.00 0.16 0.01 0.05 97.78 09:34:45 08:52:01 0 1.86 0.00 0.17 0.00 0.05 97.92 09:34:45 08:52:01 1 1.94 0.00 0.13 0.00 0.03 97.89 09:34:45 08:52:01 2 2.23 0.00 0.18 0.02 0.05 97.52 09:34:45 08:52:01 3 2.01 0.00 0.13 0.03 0.05 97.77 09:34:45 08:53:01 all 2.52 0.00 0.20 0.02 0.07 97.19 09:34:45 08:53:01 0 2.61 0.00 0.23 0.00 0.07 97.09 09:34:45 08:53:01 1 2.73 0.00 0.18 0.02 0.07 97.01 09:34:45 08:53:01 2 2.41 0.00 0.23 0.05 0.07 97.23 09:34:45 08:53:01 3 2.34 0.00 0.15 0.00 0.07 97.44 09:34:45 08:54:01 all 1.33 0.00 0.17 0.00 0.05 98.45 09:34:45 08:54:01 0 1.28 0.00 0.22 0.00 0.05 98.45 09:34:45 08:54:01 1 1.19 0.00 0.22 0.02 0.05 98.52 09:34:45 08:54:01 2 1.24 0.00 0.13 0.00 0.03 98.60 09:34:45 08:54:01 3 1.62 0.00 0.12 0.00 0.05 98.21 09:34:45 08:55:01 all 4.32 0.00 0.26 0.01 0.05 95.36 09:34:45 08:55:01 0 4.90 0.00 0.30 0.00 0.05 94.74 09:34:45 08:55:01 1 3.81 0.00 0.28 0.03 0.03 95.83 09:34:45 08:55:01 2 3.81 0.00 0.20 0.00 0.03 95.96 09:34:45 08:55:01 3 4.76 0.00 0.27 0.02 0.07 94.89 09:34:45 08:56:01 all 38.60 0.00 1.32 0.02 0.08 59.99 09:34:45 08:56:01 0 38.70 0.00 1.29 0.00 0.08 59.92 09:34:45 08:56:01 1 39.10 0.00 1.36 0.03 0.08 59.42 09:34:45 08:56:01 2 38.36 0.00 1.39 0.03 0.08 60.13 09:34:45 08:56:01 3 38.22 0.00 1.22 0.00 0.08 60.48 09:34:45 08:57:01 all 28.77 0.00 0.79 0.28 0.08 70.10 09:34:45 08:57:01 0 27.61 0.00 0.89 0.02 0.08 71.40 09:34:45 08:57:01 1 30.56 0.00 0.79 0.02 0.07 68.57 09:34:45 08:57:01 2 28.56 0.00 0.70 0.00 0.08 70.65 09:34:45 08:57:01 3 28.33 0.00 0.77 1.07 0.07 69.76 09:34:45 08:58:01 all 8.20 0.00 0.28 0.02 0.06 91.44 09:34:45 08:58:01 0 8.81 0.00 0.25 0.02 0.05 90.87 09:34:45 08:58:01 1 7.65 0.00 0.32 0.00 0.07 91.96 09:34:45 08:58:01 2 7.65 0.00 0.32 0.00 0.07 91.96 09:34:45 08:58:01 3 8.68 0.00 0.22 0.07 0.07 90.97 09:34:45 08:59:01 all 4.23 0.00 0.18 0.01 0.05 95.52 09:34:45 08:59:01 0 3.59 0.00 0.22 0.00 0.05 96.14 09:34:45 08:59:01 1 4.96 0.00 0.17 0.00 0.05 94.83 09:34:45 08:59:01 2 4.18 0.00 0.18 0.00 0.05 95.59 09:34:45 08:59:01 3 4.20 0.00 0.17 0.03 0.07 95.53 09:34:45 09:00:01 all 2.49 0.00 0.18 0.01 0.05 97.27 09:34:45 09:00:01 0 2.20 0.00 0.20 0.00 0.07 97.53 09:34:45 09:00:01 1 2.32 0.00 0.15 0.00 0.05 97.48 09:34:45 09:00:01 2 2.61 0.00 0.20 0.00 0.05 97.14 09:34:45 09:00:01 3 2.85 0.00 0.15 0.03 0.05 96.92 09:34:45 09:01:01 all 4.58 0.00 0.23 0.01 0.06 95.13 09:34:45 09:01:01 0 4.10 0.00 0.20 0.00 0.05 95.65 09:34:45 09:01:01 1 5.25 0.00 0.23 0.00 0.07 94.45 09:34:45 09:01:01 2 4.37 0.00 0.30 0.00 0.07 95.26 09:34:45 09:01:01 3 4.59 0.00 0.17 0.03 0.05 95.16 09:34:45 09:02:01 all 2.31 0.00 0.23 0.01 0.05 97.40 09:34:45 09:02:01 0 2.38 0.00 0.25 0.00 0.05 97.32 09:34:45 09:02:01 1 2.36 0.00 0.33 0.00 0.07 97.24 09:34:45 09:02:01 2 2.31 0.00 0.17 0.00 0.05 97.47 09:34:45 09:02:01 3 2.17 0.00 0.17 0.03 0.05 97.57 09:34:45 09:34:45 09:02:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 09:03:01 all 2.24 0.00 0.19 0.02 0.06 97.50 09:34:45 09:03:01 0 2.36 0.00 0.20 0.02 0.05 97.38 09:34:45 09:03:01 1 1.71 0.00 0.20 0.00 0.05 98.04 09:34:45 09:03:01 2 2.38 0.00 0.20 0.02 0.07 97.34 09:34:45 09:03:01 3 2.51 0.00 0.15 0.03 0.07 97.24 09:34:45 09:04:01 all 26.54 0.00 1.08 0.02 0.08 72.28 09:34:45 09:04:01 0 26.40 0.00 1.21 0.02 0.10 72.28 09:34:45 09:04:01 1 28.70 0.00 0.99 0.00 0.07 70.24 09:34:45 09:04:01 2 26.78 0.00 1.09 0.02 0.08 72.03 09:34:45 09:04:01 3 24.28 0.00 1.05 0.03 0.08 74.55 09:34:45 09:05:01 all 37.71 0.00 1.01 0.29 0.09 60.91 09:34:45 09:05:01 0 38.91 0.00 1.37 0.00 0.08 59.63 09:34:45 09:05:01 1 39.75 0.00 0.92 0.23 0.08 59.01 09:34:45 09:05:01 2 39.47 0.00 0.97 0.00 0.10 59.46 09:34:45 09:05:01 3 32.75 0.00 0.76 0.93 0.08 65.47 09:34:45 09:06:01 all 8.62 0.00 0.29 0.01 0.06 91.01 09:34:45 09:06:01 0 8.74 0.00 0.33 0.00 0.07 90.86 09:34:45 09:06:01 1 8.36 0.00 0.22 0.00 0.05 91.37 09:34:45 09:06:01 2 9.10 0.00 0.25 0.00 0.05 90.60 09:34:45 09:06:01 3 8.28 0.00 0.35 0.05 0.08 91.23 09:34:45 09:07:01 all 4.47 0.00 0.20 0.01 0.05 95.26 09:34:45 09:07:01 0 4.61 0.00 0.18 0.00 0.05 95.16 09:34:45 09:07:01 1 4.17 0.00 0.25 0.00 0.05 95.53 09:34:45 09:07:01 2 4.23 0.00 0.15 0.00 0.05 95.57 09:34:45 09:07:01 3 4.87 0.00 0.22 0.05 0.07 94.80 09:34:45 09:08:01 all 2.19 0.00 0.18 0.01 0.06 97.57 09:34:45 09:08:01 0 2.18 0.00 0.28 0.00 0.07 97.47 09:34:45 09:08:01 1 2.32 0.00 0.12 0.00 0.05 97.51 09:34:45 09:08:01 2 2.27 0.00 0.18 0.00 0.08 97.46 09:34:45 09:08:01 3 1.98 0.00 0.13 0.03 0.03 97.82 09:34:45 09:09:01 all 2.91 0.00 0.21 0.02 0.05 96.82 09:34:45 09:09:01 0 2.80 0.00 0.23 0.00 0.03 96.93 09:34:45 09:09:01 1 2.93 0.00 0.18 0.03 0.05 96.80 09:34:45 09:09:01 2 3.29 0.00 0.29 0.00 0.07 96.35 09:34:45 09:09:01 3 2.62 0.00 0.12 0.03 0.05 97.18 09:34:45 09:10:01 all 1.13 0.00 0.15 0.01 0.06 98.65 09:34:45 09:10:01 0 0.85 0.00 0.20 0.00 0.07 98.88 09:34:45 09:10:01 1 1.27 0.00 0.17 0.02 0.07 98.48 09:34:45 09:10:01 2 1.37 0.00 0.18 0.00 0.07 98.38 09:34:45 09:10:01 3 1.01 0.00 0.07 0.02 0.05 98.86 09:34:45 09:11:01 all 3.19 0.00 0.19 0.01 0.06 96.55 09:34:45 09:11:01 0 3.83 0.00 0.18 0.00 0.07 95.92 09:34:45 09:11:01 1 3.77 0.00 0.20 0.02 0.05 95.97 09:34:45 09:11:01 2 3.00 0.00 0.20 0.00 0.07 96.74 09:34:45 09:11:01 3 2.16 0.00 0.18 0.02 0.05 97.59 09:34:45 09:12:01 all 1.03 0.00 0.16 0.01 0.05 98.74 09:34:45 09:12:01 0 0.86 0.00 0.15 0.00 0.07 98.93 09:34:45 09:12:01 1 0.77 0.00 0.17 0.00 0.05 99.01 09:34:45 09:12:01 2 0.80 0.00 0.12 0.00 0.05 99.03 09:34:45 09:12:01 3 1.70 0.00 0.20 0.05 0.05 98.01 09:34:45 09:13:01 all 3.61 0.00 0.23 0.02 0.05 96.09 09:34:45 09:13:01 0 3.07 0.00 0.25 0.00 0.05 96.63 09:34:45 09:13:01 1 4.47 0.00 0.23 0.02 0.07 95.21 09:34:45 09:13:01 2 3.49 0.00 0.25 0.00 0.05 96.20 09:34:45 09:13:01 3 3.41 0.00 0.18 0.05 0.03 96.32 09:34:45 09:34:45 09:13:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 09:14:01 all 23.75 0.00 1.05 0.11 0.07 75.02 09:34:45 09:14:01 0 22.57 0.00 0.62 0.28 0.07 76.46 09:34:45 09:14:01 1 20.01 0.00 0.98 0.03 0.05 78.93 09:34:45 09:14:01 2 30.67 0.00 1.07 0.05 0.08 68.12 09:34:45 09:14:01 3 21.79 0.00 1.54 0.07 0.08 76.52 09:34:45 09:15:01 all 39.05 0.00 1.10 0.58 0.10 59.16 09:34:45 09:15:01 0 40.35 0.00 1.02 0.00 0.10 58.53 09:34:45 09:15:01 1 35.69 0.00 0.89 0.27 0.10 63.05 09:34:45 09:15:01 2 39.40 0.00 1.02 1.37 0.10 58.10 09:34:45 09:15:01 3 40.76 0.00 1.48 0.69 0.10 56.98 09:34:45 09:16:01 all 5.06 0.00 0.25 0.01 0.06 94.62 09:34:45 09:16:01 0 5.12 0.00 0.23 0.00 0.03 94.62 09:34:45 09:16:01 1 5.11 0.00 0.25 0.00 0.07 94.57 09:34:45 09:16:01 2 5.23 0.00 0.27 0.05 0.07 94.38 09:34:45 09:16:01 3 4.77 0.00 0.24 0.00 0.07 94.93 09:34:45 09:17:01 all 46.15 0.00 1.49 0.23 0.08 52.04 09:34:45 09:17:01 0 47.75 0.00 1.69 0.27 0.08 50.21 09:34:45 09:17:01 1 47.88 0.00 1.34 0.07 0.08 50.63 09:34:45 09:17:01 2 47.10 0.00 1.30 0.52 0.08 50.99 09:34:45 09:17:01 3 41.91 0.00 1.63 0.07 0.08 56.31 09:34:45 09:18:01 all 11.83 0.00 0.45 0.01 0.07 87.64 09:34:45 09:18:01 0 12.76 0.00 0.66 0.00 0.08 86.49 09:34:45 09:18:01 1 11.88 0.00 0.40 0.00 0.07 87.65 09:34:45 09:18:01 2 11.34 0.00 0.40 0.03 0.07 88.15 09:34:45 09:18:01 3 11.32 0.00 0.33 0.00 0.07 88.28 09:34:45 09:19:01 all 2.54 0.00 0.26 0.01 0.05 97.14 09:34:45 09:19:01 0 2.65 0.00 0.22 0.03 0.05 97.05 09:34:45 09:19:01 1 2.60 0.00 0.35 0.00 0.07 96.98 09:34:45 09:19:01 2 2.49 0.00 0.25 0.02 0.05 97.19 09:34:45 09:19:01 3 2.40 0.00 0.22 0.00 0.05 97.33 09:34:45 09:20:01 all 3.21 0.00 0.31 0.02 0.05 96.40 09:34:45 09:20:01 0 3.22 0.00 0.38 0.02 0.05 96.33 09:34:45 09:20:01 1 3.47 0.00 0.30 0.00 0.05 96.18 09:34:45 09:20:01 2 3.10 0.00 0.25 0.03 0.07 96.54 09:34:45 09:20:01 3 3.05 0.00 0.32 0.03 0.05 96.54 09:34:45 09:21:01 all 1.78 0.00 0.24 0.01 0.05 97.91 09:34:45 09:21:01 0 1.79 0.00 0.17 0.00 0.05 98.00 09:34:45 09:21:01 1 1.55 0.00 0.13 0.00 0.05 98.26 09:34:45 09:21:01 2 2.24 0.00 0.45 0.02 0.07 97.23 09:34:45 09:21:01 3 1.56 0.00 0.22 0.02 0.05 98.15 09:34:45 09:22:01 all 4.26 0.00 0.36 0.01 0.05 95.31 09:34:45 09:22:01 0 4.24 0.00 0.32 0.00 0.05 95.39 09:34:45 09:22:01 1 4.35 0.00 0.33 0.00 0.03 95.28 09:34:45 09:22:01 2 4.42 0.00 0.52 0.02 0.07 94.98 09:34:45 09:22:01 3 4.04 0.00 0.29 0.02 0.05 95.61 09:34:45 09:23:01 all 2.60 0.00 0.29 0.01 0.06 97.03 09:34:45 09:23:01 0 2.65 0.00 0.32 0.00 0.05 96.98 09:34:45 09:23:01 1 2.39 0.00 0.27 0.00 0.07 97.28 09:34:45 09:23:01 2 3.01 0.00 0.35 0.02 0.07 96.55 09:34:45 09:23:01 3 2.36 0.00 0.23 0.03 0.05 97.32 09:34:45 09:24:01 all 0.60 0.00 0.24 0.01 0.05 99.10 09:34:45 09:24:01 0 0.57 0.00 0.22 0.02 0.05 99.15 09:34:45 09:24:01 1 0.87 0.00 0.44 0.00 0.07 98.63 09:34:45 09:24:01 2 0.44 0.00 0.20 0.03 0.05 99.28 09:34:45 09:24:01 3 0.53 0.00 0.10 0.00 0.03 99.33 09:34:45 09:34:45 09:24:01 CPU %user %nice %system %iowait %steal %idle 09:34:45 09:25:01 all 0.38 0.00 0.18 0.01 0.05 99.38 09:34:45 09:25:01 0 0.52 0.00 0.27 0.00 0.05 99.17 09:34:45 09:25:01 1 0.40 0.00 0.23 0.00 0.05 99.31 09:34:45 09:25:01 2 0.22 0.00 0.15 0.02 0.05 99.56 09:34:45 09:25:01 3 0.40 0.00 0.08 0.02 0.03 99.47 09:34:45 09:26:01 all 0.38 0.00 0.23 0.00 0.05 99.33 09:34:45 09:26:01 0 0.35 0.00 0.27 0.00 0.07 99.32 09:34:45 09:26:01 1 0.48 0.00 0.30 0.00 0.07 99.15 09:34:45 09:26:01 2 0.27 0.00 0.13 0.02 0.05 99.53 09:34:45 09:26:01 3 0.42 0.00 0.22 0.00 0.03 99.33 09:34:45 09:27:01 all 40.66 0.00 1.37 0.02 0.08 57.86 09:34:45 09:27:01 0 42.55 0.00 1.01 0.02 0.08 56.34 09:34:45 09:27:01 1 39.34 0.00 1.29 0.02 0.08 59.27 09:34:45 09:27:01 2 37.55 0.00 1.37 0.05 0.08 60.94 09:34:45 09:27:01 3 43.22 0.00 1.81 0.00 0.08 54.89 09:34:45 09:28:01 all 23.92 0.00 0.59 0.28 0.08 75.12 09:34:45 09:28:01 0 23.75 0.00 0.52 0.02 0.07 75.64 09:34:45 09:28:01 1 23.99 0.00 0.43 0.00 0.08 75.49 09:34:45 09:28:01 2 23.61 0.00 0.65 1.05 0.10 74.59 09:34:45 09:28:01 3 24.34 0.00 0.77 0.07 0.08 74.74 09:34:45 09:29:01 all 8.68 0.00 0.46 0.08 0.06 90.72 09:34:45 09:29:01 0 8.06 0.00 0.47 0.02 0.07 91.39 09:34:45 09:29:01 1 8.25 0.00 0.45 0.00 0.08 91.21 09:34:45 09:29:01 2 8.81 0.00 0.44 0.13 0.05 90.57 09:34:45 09:29:01 3 9.62 0.00 0.49 0.15 0.05 89.69 09:34:45 09:30:01 all 5.80 0.00 0.33 0.02 0.06 93.79 09:34:45 09:30:01 0 5.92 0.00 0.39 0.05 0.05 93.59 09:34:45 09:30:01 1 5.76 0.00 0.44 0.00 0.07 93.73 09:34:45 09:30:01 2 5.35 0.00 0.23 0.03 0.07 94.32 09:34:45 09:30:01 3 6.16 0.00 0.27 0.00 0.07 93.51 09:34:45 09:31:01 all 2.46 0.00 0.29 0.01 0.05 97.19 09:34:45 09:31:01 0 2.46 0.00 0.37 0.02 0.07 97.08 09:34:45 09:31:01 1 2.50 0.00 0.32 0.00 0.05 97.14 09:34:45 09:31:01 2 2.58 0.00 0.27 0.02 0.03 97.10 09:34:45 09:31:01 3 2.31 0.00 0.22 0.00 0.03 97.44 09:34:45 09:32:01 all 0.28 0.00 0.15 0.01 0.05 99.51 09:34:45 09:32:01 0 0.49 0.00 0.27 0.02 0.07 99.16 09:34:45 09:32:01 1 0.25 0.00 0.12 0.00 0.07 99.56 09:34:45 09:32:01 2 0.19 0.00 0.13 0.03 0.05 99.60 09:34:45 09:32:01 3 0.20 0.00 0.07 0.00 0.03 99.70 09:34:45 09:33:01 all 0.29 0.00 0.13 0.01 0.05 99.51 09:34:45 09:33:01 0 0.39 0.00 0.13 0.02 0.05 99.41 09:34:45 09:33:01 1 0.27 0.00 0.07 0.00 0.03 99.63 09:34:45 09:33:01 2 0.23 0.00 0.13 0.02 0.05 99.56 09:34:45 09:33:01 3 0.28 0.00 0.20 0.00 0.07 99.45 09:34:45 09:34:01 all 14.27 0.00 0.80 0.09 0.06 84.77 09:34:45 09:34:01 0 16.25 0.00 0.54 0.05 0.07 83.10 09:34:45 09:34:01 1 12.43 0.00 0.87 0.00 0.07 86.64 09:34:45 09:34:01 2 12.76 0.00 1.04 0.27 0.05 85.88 09:34:45 09:34:01 3 15.65 0.00 0.75 0.05 0.07 83.48 09:34:45 Average: all 17.02 0.24 0.90 1.07 0.07 80.70 09:34:45 Average: 0 17.18 0.24 0.92 1.18 0.07 80.40 09:34:45 Average: 1 17.13 0.24 0.92 0.94 0.07 80.70 09:34:45 Average: 2 16.89 0.25 0.87 1.09 0.07 80.83 09:34:45 Average: 3 16.89 0.22 0.89 1.06 0.07 80.87 09:34:45 09:34:45 09:34:45