16:40:06 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/114246 16:40:06 Running as SYSTEM 16:40:06 [EnvInject] - Loading node environment variables. 16:40:06 Building remotely on prd-ubuntu2004-docker-4c-16g-2579 (ubuntu2004-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 16:40:06 [ssh-agent] Looking for ssh-agent implementation... 16:40:06 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:40:06 $ ssh-agent 16:40:06 SSH_AUTH_SOCK=/tmp/ssh-HnXdnkwecFGw/agent.15518 16:40:06 SSH_AGENT_PID=15522 16:40:06 [ssh-agent] Started. 16:40:06 Running ssh-add (command line suppressed) 16:40:06 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_439412893029656073.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_439412893029656073.key) 16:40:06 [ssh-agent] Using credentials jenkins (jenkins-ssh) 16:40:06 The recommended git tool is: NONE 16:40:09 using credential jenkins-ssh 16:40:09 Wiping out workspace first. 16:40:09 Cloning the remote Git repository 16:40:09 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 16:40:09 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 16:40:09 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:40:09 > git --version # timeout=10 16:40:09 > git --version # 'git version 2.25.1' 16:40:09 using GIT_SSH to set credentials jenkins-ssh 16:40:09 Verifying host key using known hosts file 16:40:09 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 16:40:09 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 16:40:12 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:40:12 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:40:12 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:40:12 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:40:12 using GIT_SSH to set credentials jenkins-ssh 16:40:12 Verifying host key using known hosts file 16:40:12 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. 16:40:12 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/46/114246/2 # timeout=10 16:40:12 > git rev-parse 00d154c0ec9d98238925fc4ac12e032b0422b801^{commit} # timeout=10 16:40:12 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 16:40:12 Checking out Revision 00d154c0ec9d98238925fc4ac12e032b0422b801 (refs/changes/46/114246/2) 16:40:12 > git config core.sparsecheckout # timeout=10 16:40:12 > git checkout -f 00d154c0ec9d98238925fc4ac12e032b0422b801 # timeout=10 16:40:13 Commit message: "Adjust tox ini tests sequencing" 16:40:13 > git rev-parse FETCH_HEAD^{commit} # timeout=10 16:40:13 > git rev-list --no-walk b0d0c4eb10904e615440362219ea614db7c55f2c # timeout=10 16:40:13 > git remote # timeout=10 16:40:13 > git submodule init # timeout=10 16:40:13 > git submodule sync # timeout=10 16:40:13 > git config --get remote.origin.url # timeout=10 16:40:13 > git submodule init # timeout=10 16:40:13 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 16:40:13 ERROR: No submodules found. 16:40:16 provisioning config files... 16:40:16 copy managed file [npmrc] to file:/home/jenkins/.npmrc 16:40:16 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 16:40:16 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16332254559265142535.sh 16:40:16 ---> python-tools-install.sh 16:40:16 Setup pyenv: 16:40:16 * system (set by /opt/pyenv/version) 16:40:16 * 3.8.13 (set by /opt/pyenv/version) 16:40:16 * 3.9.13 (set by /opt/pyenv/version) 16:40:16 * 3.10.13 (set by /opt/pyenv/version) 16:40:16 * 3.11.7 (set by /opt/pyenv/version) 16:40:21 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-x1OJ 16:40:21 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 16:40:24 lf-activate-venv(): INFO: Installing: lftools 16:40:53 lf-activate-venv(): INFO: Adding /tmp/venv-x1OJ/bin to PATH 16:40:53 Generating Requirements File 16:41:12 Python 3.11.7 16:41:12 pip 24.3.1 from /tmp/venv-x1OJ/lib/python3.11/site-packages/pip (python 3.11) 16:41:13 appdirs==1.4.4 16:41:13 argcomplete==3.5.1 16:41:13 aspy.yaml==1.3.0 16:41:13 attrs==24.2.0 16:41:13 autopage==0.5.2 16:41:13 beautifulsoup4==4.12.3 16:41:13 boto3==1.35.50 16:41:13 botocore==1.35.50 16:41:13 bs4==0.0.2 16:41:13 cachetools==5.5.0 16:41:13 certifi==2024.8.30 16:41:13 cffi==1.17.1 16:41:13 cfgv==3.4.0 16:41:13 chardet==5.2.0 16:41:13 charset-normalizer==3.4.0 16:41:13 click==8.1.7 16:41:13 cliff==4.7.0 16:41:13 cmd2==2.5.0 16:41:13 cryptography==3.3.2 16:41:13 debtcollector==3.0.0 16:41:13 decorator==5.1.1 16:41:13 defusedxml==0.7.1 16:41:13 Deprecated==1.2.14 16:41:13 distlib==0.3.9 16:41:13 dnspython==2.7.0 16:41:13 docker==4.2.2 16:41:13 dogpile.cache==1.3.3 16:41:13 durationpy==0.9 16:41:13 email_validator==2.2.0 16:41:13 filelock==3.16.1 16:41:13 future==1.0.0 16:41:13 gitdb==4.0.11 16:41:13 GitPython==3.1.43 16:41:13 google-auth==2.35.0 16:41:13 httplib2==0.22.0 16:41:13 identify==2.6.1 16:41:13 idna==3.10 16:41:13 importlib-resources==1.5.0 16:41:13 iso8601==2.1.0 16:41:13 Jinja2==3.1.4 16:41:13 jmespath==1.0.1 16:41:13 jsonpatch==1.33 16:41:13 jsonpointer==3.0.0 16:41:13 jsonschema==4.23.0 16:41:13 jsonschema-specifications==2024.10.1 16:41:13 keystoneauth1==5.8.0 16:41:13 kubernetes==31.0.0 16:41:13 lftools==0.37.10 16:41:13 lxml==5.3.0 16:41:13 MarkupSafe==3.0.2 16:41:13 msgpack==1.1.0 16:41:13 multi_key_dict==2.0.3 16:41:13 munch==4.0.0 16:41:13 netaddr==1.3.0 16:41:13 netifaces==0.11.0 16:41:13 niet==1.4.2 16:41:13 nodeenv==1.9.1 16:41:13 oauth2client==4.1.3 16:41:13 oauthlib==3.2.2 16:41:13 openstacksdk==4.1.0 16:41:13 os-client-config==2.1.0 16:41:13 os-service-types==1.7.0 16:41:13 osc-lib==3.1.0 16:41:13 oslo.config==9.6.0 16:41:13 oslo.context==5.6.0 16:41:13 oslo.i18n==6.4.0 16:41:13 oslo.log==6.1.2 16:41:13 oslo.serialization==5.5.0 16:41:13 oslo.utils==7.3.0 16:41:13 packaging==24.1 16:41:13 pbr==6.1.0 16:41:13 platformdirs==4.3.6 16:41:13 prettytable==3.11.0 16:41:13 pyasn1==0.6.1 16:41:13 pyasn1_modules==0.4.1 16:41:13 pycparser==2.22 16:41:13 pygerrit2==2.0.15 16:41:13 PyGithub==2.4.0 16:41:13 PyJWT==2.9.0 16:41:13 PyNaCl==1.5.0 16:41:13 pyparsing==2.4.7 16:41:13 pyperclip==1.9.0 16:41:13 pyrsistent==0.20.0 16:41:13 python-cinderclient==9.6.0 16:41:13 python-dateutil==2.9.0.post0 16:41:13 python-heatclient==4.0.0 16:41:13 python-jenkins==1.8.2 16:41:13 python-keystoneclient==5.5.0 16:41:13 python-magnumclient==4.7.0 16:41:13 python-openstackclient==7.2.1 16:41:13 python-swiftclient==4.6.0 16:41:13 PyYAML==6.0.2 16:41:13 referencing==0.35.1 16:41:13 requests==2.32.3 16:41:13 requests-oauthlib==2.0.0 16:41:13 requestsexceptions==1.4.0 16:41:13 rfc3986==2.0.0 16:41:13 rpds-py==0.20.0 16:41:13 rsa==4.9 16:41:13 ruamel.yaml==0.18.6 16:41:13 ruamel.yaml.clib==0.2.12 16:41:13 s3transfer==0.10.3 16:41:13 simplejson==3.19.3 16:41:13 six==1.16.0 16:41:13 smmap==5.0.1 16:41:13 soupsieve==2.6 16:41:13 stevedore==5.3.0 16:41:13 tabulate==0.9.0 16:41:13 toml==0.10.2 16:41:13 tomlkit==0.13.2 16:41:13 tqdm==4.66.6 16:41:13 typing_extensions==4.12.2 16:41:13 tzdata==2024.2 16:41:13 urllib3==1.26.20 16:41:13 virtualenv==20.27.1 16:41:13 wcwidth==0.2.13 16:41:13 websocket-client==1.8.0 16:41:13 wrapt==1.16.0 16:41:13 xdg==6.0.0 16:41:13 xmltodict==0.14.2 16:41:13 yq==3.4.3 16:41:13 [EnvInject] - Injecting environment variables from a build step. 16:41:13 [EnvInject] - Injecting as environment variables the properties content 16:41:13 PYTHON=python3 16:41:13 16:41:13 [EnvInject] - Variables injected successfully. 16:41:13 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins16494879123449016121.sh 16:41:13 ---> tox-install.sh 16:41:13 + source /home/jenkins/lf-env.sh 16:41:13 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:41:13 ++ mktemp -d /tmp/venv-XXXX 16:41:13 + lf_venv=/tmp/venv-DFrN 16:41:13 + local venv_file=/tmp/.os_lf_venv 16:41:13 + local python=python3 16:41:13 + local options 16:41:13 + local set_path=true 16:41:13 + local install_args= 16:41:13 ++ 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 16:41:13 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:41:13 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:41:13 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:41:13 + true 16:41:13 + case $1 in 16:41:13 + venv_file=/tmp/.toxenv 16:41:13 + shift 2 16:41:13 + true 16:41:13 + case $1 in 16:41:13 + shift 16:41:13 + break 16:41:13 + case $python in 16:41:13 + local pkg_list= 16:41:13 + [[ -d /opt/pyenv ]] 16:41:13 + echo 'Setup pyenv:' 16:41:13 Setup pyenv: 16:41:13 + export PYENV_ROOT=/opt/pyenv 16:41:13 + PYENV_ROOT=/opt/pyenv 16:41:13 + 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 16:41:13 + 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 16:41:13 + pyenv versions 16:41:13 system 16:41:13 3.8.13 16:41:13 3.9.13 16:41:13 3.10.13 16:41:13 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 16:41:13 + command -v pyenv 16:41:13 ++ pyenv init - --no-rehash 16:41:13 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:41:13 for i in ${!paths[@]}; do 16:41:13 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:41:13 fi; done; 16:41:13 echo "${paths[*]}"'\'')" 16:41:13 export PATH="/opt/pyenv/shims:${PATH}" 16:41:13 export PYENV_SHELL=bash 16:41:13 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:41:13 pyenv() { 16:41:13 local command 16:41:13 command="${1:-}" 16:41:13 if [ "$#" -gt 0 ]; then 16:41:13 shift 16:41:13 fi 16:41:13 16:41:13 case "$command" in 16:41:13 rehash|shell) 16:41:13 eval "$(pyenv "sh-$command" "$@")" 16:41:13 ;; 16:41:13 *) 16:41:13 command pyenv "$command" "$@" 16:41:13 ;; 16:41:13 esac 16:41:13 }' 16:41:13 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:41:13 for i in ${!paths[@]}; do 16:41:13 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:41:13 fi; done; 16:41:13 echo "${paths[*]}"' 16:41:13 ++ 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 16:41:13 ++ 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 16:41:13 ++ 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 16:41:13 ++ export PYENV_SHELL=bash 16:41:13 ++ PYENV_SHELL=bash 16:41:13 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:41:13 +++ complete -F _pyenv pyenv 16:41:13 ++ lf-pyver python3 16:41:13 ++ local py_version_xy=python3 16:41:13 ++ local py_version_xyz= 16:41:13 ++ pyenv versions 16:41:13 ++ local command 16:41:13 ++ sed 's/^[ *]* //' 16:41:13 ++ command=versions 16:41:13 ++ '[' 1 -gt 0 ']' 16:41:13 ++ shift 16:41:13 ++ case "$command" in 16:41:13 ++ command pyenv versions 16:41:13 ++ pyenv versions 16:41:13 ++ awk '{ print $1 }' 16:41:13 ++ grep -E '^[0-9.]*[0-9]$' 16:41:13 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:41:13 +++ grep '^3' /tmp/.pyenv_versions 16:41:13 +++ sort -V 16:41:13 +++ tail -n 1 16:41:13 ++ py_version_xyz=3.11.7 16:41:13 ++ [[ -z 3.11.7 ]] 16:41:13 ++ echo 3.11.7 16:41:13 ++ return 0 16:41:13 + pyenv local 3.11.7 16:41:13 + local command 16:41:13 + command=local 16:41:13 + '[' 2 -gt 0 ']' 16:41:13 + shift 16:41:13 + case "$command" in 16:41:13 + command pyenv local 3.11.7 16:41:13 + pyenv local 3.11.7 16:41:13 + for arg in "$@" 16:41:13 + case $arg in 16:41:13 + pkg_list+='tox ' 16:41:13 + for arg in "$@" 16:41:13 + case $arg in 16:41:13 + pkg_list+='virtualenv ' 16:41:13 + for arg in "$@" 16:41:13 + case $arg in 16:41:13 + pkg_list+='urllib3~=1.26.15 ' 16:41:13 + [[ -f /tmp/.toxenv ]] 16:41:13 + [[ ! -f /tmp/.toxenv ]] 16:41:13 + [[ -n '' ]] 16:41:13 + python3 -m venv /tmp/venv-DFrN 16:41:17 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-DFrN' 16:41:17 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-DFrN 16:41:17 + echo /tmp/venv-DFrN 16:41:17 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 16:41:17 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 16:41:17 + /tmp/venv-DFrN/bin/python3 -m pip install --upgrade --quiet pip virtualenv 16:41:20 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:41:20 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 16:41:20 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 16:41:20 + /tmp/venv-DFrN/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 16:41:22 + type python3 16:41:22 + true 16:41:22 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-DFrN/bin to PATH' 16:41:22 lf-activate-venv(): INFO: Adding /tmp/venv-DFrN/bin to PATH 16:41:22 + PATH=/tmp/venv-DFrN/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 16:41:22 + return 0 16:41:22 + python3 --version 16:41:22 Python 3.11.7 16:41:22 + python3 -m pip --version 16:41:22 pip 24.3.1 from /tmp/venv-DFrN/lib/python3.11/site-packages/pip (python 3.11) 16:41:22 + python3 -m pip freeze 16:41:22 cachetools==5.5.0 16:41:22 chardet==5.2.0 16:41:22 colorama==0.4.6 16:41:22 distlib==0.3.9 16:41:22 filelock==3.16.1 16:41:22 packaging==24.1 16:41:22 platformdirs==4.3.6 16:41:22 pluggy==1.5.0 16:41:22 pyproject-api==1.8.0 16:41:22 tox==4.23.2 16:41:22 urllib3==1.26.20 16:41:22 virtualenv==20.27.1 16:41:22 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins15272107363302872113.sh 16:41:22 [EnvInject] - Injecting environment variables from a build step. 16:41:22 [EnvInject] - Injecting as environment variables the properties content 16:41:22 PARALLEL=True 16:41:22 16:41:22 [EnvInject] - Variables injected successfully. 16:41:22 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins3632131803169150721.sh 16:41:22 ---> tox-run.sh 16:41:22 + 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 16:41:22 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 16:41:22 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 16:41:22 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 16:41:22 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 16:41:22 + source /home/jenkins/lf-env.sh 16:41:22 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:41:22 ++ mktemp -d /tmp/venv-XXXX 16:41:22 + lf_venv=/tmp/venv-Plfj 16:41:22 + local venv_file=/tmp/.os_lf_venv 16:41:22 + local python=python3 16:41:22 + local options 16:41:22 + local set_path=true 16:41:22 + local install_args= 16:41:22 ++ 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 16:41:23 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:41:23 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:41:23 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:41:23 + true 16:41:23 + case $1 in 16:41:23 + venv_file=/tmp/.toxenv 16:41:23 + shift 2 16:41:23 + true 16:41:23 + case $1 in 16:41:23 + shift 16:41:23 + break 16:41:23 + case $python in 16:41:23 + local pkg_list= 16:41:23 + [[ -d /opt/pyenv ]] 16:41:23 + echo 'Setup pyenv:' 16:41:23 Setup pyenv: 16:41:23 + export PYENV_ROOT=/opt/pyenv 16:41:23 + PYENV_ROOT=/opt/pyenv 16:41:23 + 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 16:41:23 + 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 16:41:23 + pyenv versions 16:41:23 system 16:41:23 3.8.13 16:41:23 3.9.13 16:41:23 3.10.13 16:41:23 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 16:41:23 + command -v pyenv 16:41:23 ++ pyenv init - --no-rehash 16:41:23 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:41:23 for i in ${!paths[@]}; do 16:41:23 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:41:23 fi; done; 16:41:23 echo "${paths[*]}"'\'')" 16:41:23 export PATH="/opt/pyenv/shims:${PATH}" 16:41:23 export PYENV_SHELL=bash 16:41:23 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:41:23 pyenv() { 16:41:23 local command 16:41:23 command="${1:-}" 16:41:23 if [ "$#" -gt 0 ]; then 16:41:23 shift 16:41:23 fi 16:41:23 16:41:23 case "$command" in 16:41:23 rehash|shell) 16:41:23 eval "$(pyenv "sh-$command" "$@")" 16:41:23 ;; 16:41:23 *) 16:41:23 command pyenv "$command" "$@" 16:41:23 ;; 16:41:23 esac 16:41:23 }' 16:41:23 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:41:23 for i in ${!paths[@]}; do 16:41:23 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:41:23 fi; done; 16:41:23 echo "${paths[*]}"' 16:41:23 ++ 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 16:41:23 ++ 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 16:41:23 ++ 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 16:41:23 ++ export PYENV_SHELL=bash 16:41:23 ++ PYENV_SHELL=bash 16:41:23 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:41:23 +++ complete -F _pyenv pyenv 16:41:23 ++ lf-pyver python3 16:41:23 ++ local py_version_xy=python3 16:41:23 ++ local py_version_xyz= 16:41:23 ++ pyenv versions 16:41:23 ++ local command 16:41:23 ++ command=versions 16:41:23 ++ '[' 1 -gt 0 ']' 16:41:23 ++ shift 16:41:23 ++ case "$command" in 16:41:23 ++ command pyenv versions 16:41:23 ++ pyenv versions 16:41:23 ++ awk '{ print $1 }' 16:41:23 ++ grep -E '^[0-9.]*[0-9]$' 16:41:23 ++ sed 's/^[ *]* //' 16:41:23 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:41:23 +++ grep '^3' /tmp/.pyenv_versions 16:41:23 +++ sort -V 16:41:23 +++ tail -n 1 16:41:23 ++ py_version_xyz=3.11.7 16:41:23 ++ [[ -z 3.11.7 ]] 16:41:23 ++ echo 3.11.7 16:41:23 ++ return 0 16:41:23 + pyenv local 3.11.7 16:41:23 + local command 16:41:23 + command=local 16:41:23 + '[' 2 -gt 0 ']' 16:41:23 + shift 16:41:23 + case "$command" in 16:41:23 + command pyenv local 3.11.7 16:41:23 + pyenv local 3.11.7 16:41:23 + for arg in "$@" 16:41:23 + case $arg in 16:41:23 + pkg_list+='tox ' 16:41:23 + for arg in "$@" 16:41:23 + case $arg in 16:41:23 + pkg_list+='virtualenv ' 16:41:23 + for arg in "$@" 16:41:23 + case $arg in 16:41:23 + pkg_list+='urllib3~=1.26.15 ' 16:41:23 + [[ -f /tmp/.toxenv ]] 16:41:23 ++ cat /tmp/.toxenv 16:41:23 + lf_venv=/tmp/venv-DFrN 16:41:23 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-DFrN from' file:/tmp/.toxenv 16:41:23 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-DFrN from file:/tmp/.toxenv 16:41:23 + /tmp/venv-DFrN/bin/python3 -m pip install --upgrade --quiet pip virtualenv 16:41:24 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:41:24 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 16:41:24 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 16:41:24 + /tmp/venv-DFrN/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 16:41:25 + type python3 16:41:25 + true 16:41:25 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-DFrN/bin to PATH' 16:41:25 lf-activate-venv(): INFO: Adding /tmp/venv-DFrN/bin to PATH 16:41:25 + PATH=/tmp/venv-DFrN/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 16:41:25 + return 0 16:41:25 + [[ -d /opt/pyenv ]] 16:41:25 + echo '---> Setting up pyenv' 16:41:25 ---> Setting up pyenv 16:41:25 + export PYENV_ROOT=/opt/pyenv 16:41:25 + PYENV_ROOT=/opt/pyenv 16:41:25 + export PATH=/opt/pyenv/bin:/tmp/venv-DFrN/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 16:41:25 + PATH=/opt/pyenv/bin:/tmp/venv-DFrN/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 16:41:25 ++ pwd 16:41:25 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 16:41:25 + export PYTHONPATH 16:41:25 + export TOX_TESTENV_PASSENV=PYTHONPATH 16:41:25 + TOX_TESTENV_PASSENV=PYTHONPATH 16:41:25 + tox --version 16:41:25 4.23.2 from /tmp/venv-DFrN/lib/python3.11/site-packages/tox/__init__.py 16:41:25 + PARALLEL=True 16:41:25 + TOX_OPTIONS_LIST= 16:41:25 + [[ -n '' ]] 16:41:25 + case ${PARALLEL,,} in 16:41:25 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 16:41:25 + tox --parallel auto --parallel-live 16:41:25 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 16:41:27 docs: install_deps> python -I -m pip install -r docs/requirements.txt 16:41:27 tests_network: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:41:27 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 16:41:27 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:41:33 tests_network: freeze> python -m pip freeze --all 16:41:33 buildcontroller: freeze> python -m pip freeze --all 16:41:33 tests_network: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:41:33 tests_network: OK ✔ in 7.83 seconds 16:41:33 buildcontroller: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:41:33 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 16:41:33 + update-java-alternatives -l 16:41:33 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 16:41:33 java-1.12.0-openjdk-amd64 1211 /usr/lib/jvm/java-1.12.0-openjdk-amd64 16:41:33 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 16:41:33 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 16:41:33 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 16:41:33 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64 16:41:33 checkbashisms: freeze> python -m pip freeze --all 16:41:34 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 16:41:34 + java -version 16:41:34 checkbashisms: pip==24.3.1,setuptools==75.2.0,wheel==0.44.0 16:41:34 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 16:41:34 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 16:41:34 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 16:41:35 + JAVA_VER=21 16:41:35 + echo 21 16:41:35 21 16:41:35 + javac -version 16:41:35 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 16:41:35 + JAVAC_VER=21 16:41:35 21 16:41:35 + echo 21 16:41:35 + [ 21 -ge 21 ] 16:41:35 + [ 21 -ge 21 ] 16:41:35 + echo ok, java is 21 or newer 16:41:35 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz -P /tmp 16:41:35 ok, java is 21 or newer 16:41:35 2024-10-29 16:41:35 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] 16:41:35 + sudo mkdir -p /opt 16:41:35 + sudo tar xf /tmp/apache-maven-3.9.8-bin.tar.gz -C /opt 16:41:35 script ./reflectwarn.sh does not appear to have a #! interpreter line; 16:41:35 you may get strange results 16:41:35 + sudo ln -s /opt/apache-maven-3.9.8 /opt/maven 16:41:35 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 16:41:35 + mvn --version 16:41:36 checkbashisms: OK ✔ in 2.06 seconds 16:41:36 pre-commit: install_deps> python -I -m pip install pre-commit 16:41:36 Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) 16:41:36 Maven home: /opt/maven 16:41:36 Java version: 21.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 16:41:36 Default locale: en, platform encoding: UTF-8 16:41:36 OS name: "linux", version: "5.4.0-190-generic", arch: "amd64", family: "unix" 16:41:36 NOTE: Picked up JDK_JAVA_OPTIONS: 16:41:36 --add-opens=java.base/java.io=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.lang=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.net=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.nio=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.util=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:41:36 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:41:36 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:41:36 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:41:36 -Xlog:disable 16:41:39 pre-commit: freeze> python -m pip freeze --all 16:41:39 pre-commit: cfgv==3.4.0,distlib==0.3.9,filelock==3.16.1,identify==2.6.1,nodeenv==1.9.1,pip==24.3.1,platformdirs==4.3.6,pre_commit==4.0.1,PyYAML==6.0.2,setuptools==75.2.0,virtualenv==20.27.1,wheel==0.44.0 16:41:39 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 16:41:39 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 16:41:39 /usr/bin/cpan 16:41:39 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 16:41:40 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 16:41:40 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 16:41:40 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 16:41:41 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 16:41:41 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 16:41:41 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 16:41:42 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:41:42 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 16:41:43 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 16:41:44 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 16:41:44 [INFO] Once installed this environment will be reused. 16:41:44 [INFO] This may take a few minutes... 16:41:49 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:41:49 [INFO] Once installed this environment will be reused. 16:41:49 [INFO] This may take a few minutes... 16:41:56 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 16:41:56 [INFO] Once installed this environment will be reused. 16:41:56 [INFO] This may take a few minutes... 16:42:02 docs-linkcheck: freeze> python -m pip freeze --all 16:42:02 [INFO] Installing environment for https://github.com/perltidy/perltidy. 16:42:02 [INFO] Once installed this environment will be reused. 16:42:02 [INFO] This may take a few minutes... 16:42:02 docs: freeze> python -m pip freeze --all 16:42:02 docs-linkcheck: alabaster==1.0.0,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.4.0,contourpy==1.3.0,cycler==0.12.1,docutils==0.21.2,fonttools==4.54.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.10,imagesize==1.4.1,Jinja2==3.1.4,jsonschema==3.2.0,kiwisolver==1.4.7,lfdocs-conf==0.9.0,MarkupSafe==3.0.2,matplotlib==3.9.2,numpy==2.1.2,nwdiag==3.0.0,packaging==24.1,pillow==11.0.0,pip==24.3.1,Pygments==2.18.0,pyparsing==3.2.0,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==75.2.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==8.1.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.1,sphinx-tabs==3.4.7,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.2.3,webcolors==24.8.0,wheel==0.44.0 16:42:02 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 16:42:02 docs: alabaster==1.0.0,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.4.0,contourpy==1.3.0,cycler==0.12.1,docutils==0.21.2,fonttools==4.54.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.10,imagesize==1.4.1,Jinja2==3.1.4,jsonschema==3.2.0,kiwisolver==1.4.7,lfdocs-conf==0.9.0,MarkupSafe==3.0.2,matplotlib==3.9.2,numpy==2.1.2,nwdiag==3.0.0,packaging==24.1,pillow==11.0.0,pip==24.3.1,Pygments==2.18.0,pyparsing==3.2.0,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==75.2.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==8.1.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.1,sphinx-tabs==3.4.7,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.2.3,webcolors==24.8.0,wheel==0.44.0 16:42:02 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 16:42:05 docs: OK ✔ in 39.14 seconds 16:42:05 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 16:42:09 docs-linkcheck: OK ✔ in 40.08 seconds 16:42:09 pylint: freeze> python -m pip freeze --all 16:42:10 pylint: astroid==3.3.5,dill==0.3.9,isort==5.13.2,mccabe==0.7.0,pip==24.3.1,platformdirs==4.3.6,pylint==3.3.1,setuptools==75.2.0,tomlkit==0.13.2,wheel==0.44.0 16:42:10 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 16:42:12 trim trailing whitespace.................................................Passed 16:42:12 Tabs remover.............................................................Passed 16:42:12 autopep8.................................................................Passed 16:42:17 perltidy.................................................................Passed 16:42:17 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 16:42:18 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 16:42:18 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 16:42:18 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 16:42:18 [INFO] Once installed this environment will be reused. 16:42:18 [INFO] This may take a few minutes... 16:42:30 16:42:30 ------------------------------------ 16:42:30 Your code has been rated at 10.00/10 16:42:30 16:42:32 gitlint..................................................................Passed 16:43:16 pre-commit: OK ✔ in 56.49 seconds 16:43:16 pylint: OK ✔ in 27.53 seconds 16:43:16 buildcontroller: OK ✔ in 1 minute 48.99 seconds 16:43:16 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:43:16 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:43:16 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:43:16 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:43:28 build_karaf_tests121: freeze> python -m pip freeze --all 16:43:28 build_karaf_tests221: freeze> python -m pip freeze --all 16:43:28 sims: freeze> python -m pip freeze --all 16:43:28 build_karaf_tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:43:28 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 16:43:28 build_karaf_tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:43:28 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 16:43:28 NOTE: Picked up JDK_JAVA_OPTIONS: 16:43:28 --add-opens=java.base/java.io=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.lang=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.net=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.nio=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.util=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:43:28 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:43:28 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:43:28 -Xlog:disable 16:43:28 NOTE: Picked up JDK_JAVA_OPTIONS: 16:43:28 --add-opens=java.base/java.io=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.lang=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.net=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.nio=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.util=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:43:28 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:43:28 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:43:28 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:43:28 -Xlog:disable 16:43:28 sims: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:43:28 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 16:43:28 Using lighynode version 20.1.0.2 16:43:28 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 16:43:32 sims: OK ✔ in 17.27 seconds 16:43:32 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:43:44 build_karaf_tests71: freeze> python -m pip freeze --all 16:43:44 build_karaf_tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:43:44 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 16:43:45 NOTE: Picked up JDK_JAVA_OPTIONS: 16:43:45 --add-opens=java.base/java.io=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.lang=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.net=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.nio=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.util=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:43:45 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:43:45 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:43:45 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:43:45 -Xlog:disable 16:44:15 build_karaf_tests221: OK ✔ in 1 minute 0.11 seconds 16:44:15 build_karaf_tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:44:23 build_karaf_tests121: OK ✔ in 1 minute 1.94 seconds 16:44:23 build_karaf_tests71: OK ✔ in 50.89 seconds 16:44:23 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:44:44 testsPCE: freeze> python -m pip freeze --all 16:44:44 testsPCE: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,click==8.1.7,contourpy==1.3.0,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.6,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.54.1,gnpy4tpce==2.4.7,idna==3.10,iniconfig==2.0.0,injector==0.22.0,itsdangerous==2.2.0,Jinja2==3.1.4,kiwisolver==1.4.7,lxml==5.3.0,MarkupSafe==3.0.2,matplotlib==3.9.2,netconf-client==3.1.1,networkx==2.8.8,numpy==1.26.4,packaging==24.1,pandas==1.5.3,paramiko==3.5.0,pbr==5.11.1,pillow==11.0.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pyparsing==3.2.0,pytest==8.3.3,python-dateutil==2.9.0.post0,pytz==2024.2,requests==2.32.3,scipy==1.14.1,setuptools==50.3.2,six==1.16.0,urllib3==2.2.3,Werkzeug==2.0.3,wheel==0.44.0,xlrd==1.2.0 16:44:44 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 16:44:44 pytest -q transportpce_tests/pce/test01_pce.py 16:44:46 build_karaf_tests_hybrid: freeze> python -m pip freeze --all 16:44:47 build_karaf_tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:44:47 build_karaf_tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 16:44:47 NOTE: Picked up JDK_JAVA_OPTIONS: 16:44:47 --add-opens=java.base/java.io=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.lang=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.net=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.nio=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.util=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:44:47 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:44:47 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:44:47 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:44:47 -Xlog:disable 16:44:48 tests71: freeze> python -m pip freeze --all 16:44:48 tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:44:48 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 16:44:48 using environment variables from ./karaf71.env 16:44:48 pytest -q transportpce_tests/7.1/test01_portmapping.py 16:45:40 ................... [100%] 16:45:56 12 passed in 67.77s (0:01:07) 16:45:56 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 16:45:56 ....................... [100%] 16:46:43 20 passed in 118.73s (0:01:58) 16:46:43 pytest -q transportpce_tests/pce/test02_pce_400G.py 16:46:44 ........................... [100%] 16:47:22 9 passed in 38.37s 16:47:22 pytest -q transportpce_tests/pce/test03_gnpy.py 16:47:22 .......................... [100%] 16:47:59 8 passed in 37.00s 16:47:59 pytest -q transportpce_tests/pce/test04_pce_bug_fix.py 16:47:59 .................. [100%] 16:48:32 62 passed in 156.15s (0:02:36) 16:48:32 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 16:48:34 . [100%] 16:48:35 3 passed in 35.90s 16:48:35 build_karaf_tests_hybrid: OK ✔ in 1 minute 19.95 seconds 16:48:35 testsPCE: OK ✔ in 5 minutes 20.74 seconds 16:48:35 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:48:42 tests121: freeze> python -m pip freeze --all 16:48:42 tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:48:42 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 16:48:42 using environment variables from ./karaf121.env 16:48:42 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 16:49:15 ................................................ [100%] 16:50:58 48 passed in 145.78s (0:02:25) 16:50:58 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 16:51:23 ...................... [100%] 16:52:10 22 passed in 71.67s (0:01:11) 16:52:10 tests71: OK ✔ in 7 minutes 47.53 seconds 16:52:10 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 16:52:16 tests221: freeze> python -m pip freeze --all 16:52:16 tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 16:52:16 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 16:52:16 using environment variables from ./karaf221.env 16:52:16 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 16:52:21 .FFFFFFFFFFFFFF................................... [100%] 16:53:35 35 passed in 78.51s (0:01:18) 16:53:35 pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py 16:54:08 ...... [100%] 16:54:21 6 passed in 46.26s 16:54:21 pytest -q transportpce_tests/2.2.1/test03_topology.py 16:55:03 ..................F............................ [100%] 16:56:37 44 passed in 135.26s (0:02:15) 16:56:37 pytest -q transportpce_tests/2.2.1/test04_otn_topology.py 16:57:12 ............ [100%] 16:57:36 12 passed in 58.67s 16:57:36 pytest -q transportpce_tests/2.2.1/test05_flex_grid.py 16:58:02 ......F... [100%] 16:58:47 =================================== FAILURES =================================== 16:58:47 _________ TransportPCEPortMappingTesting.test_02_rdm_device_connected __________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 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) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_02_rdm_device_connected(self): 16:58:47 > response = test_utils.check_device_connection("ROADMA01") 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:53: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:369: in check_device_connection 16:58:47 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_02_rdm_device_connected 16:58:47 _________ TransportPCEPortMappingTesting.test_03_rdm_portmapping_info __________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 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) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_03_rdm_portmapping_info(self): 16:58:47 > response = test_utils.get_portmapping_node_attr("ROADMA01", "node-info", None) 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:59: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 16:58:47 response = get_request(target_url) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_03_rdm_portmapping_info 16:58:47 _____ TransportPCEPortMappingTesting.test_04_rdm_portmapping_DEG1_TTP_TXRX _____ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=DEG1-TTP-TXRX' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=DEG1-TTP-TXRX', query=None, fragment=None) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=DEG1-TTP-TXRX' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=DEG1-TTP-TXRX (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_04_rdm_portmapping_DEG1_TTP_TXRX(self): 16:58:47 > response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "DEG1-TTP-TXRX") 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:72: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 16:58:47 response = get_request(target_url) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=DEG1-TTP-TXRX (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_04_rdm_portmapping_DEG1_TTP_TXRX 16:58:47 _____ TransportPCEPortMappingTesting.test_05_rdm_portmapping_SRG1_PP7_TXRX _____ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG1-PP7-TXRX' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG1-PP7-TXRX', query=None, fragment=None) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG1-PP7-TXRX' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG1-PP7-TXRX (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_05_rdm_portmapping_SRG1_PP7_TXRX(self): 16:58:47 > response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "SRG1-PP7-TXRX") 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:81: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 16:58:47 response = get_request(target_url) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG1-PP7-TXRX (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_05_rdm_portmapping_SRG1_PP7_TXRX 16:58:47 _____ TransportPCEPortMappingTesting.test_06_rdm_portmapping_SRG3_PP1_TXRX _____ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG3-PP1-TXRX' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG3-PP1-TXRX', query=None, fragment=None) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG3-PP1-TXRX' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG3-PP1-TXRX (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_06_rdm_portmapping_SRG3_PP1_TXRX(self): 16:58:47 > response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "SRG3-PP1-TXRX") 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:90: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 16:58:47 response = get_request(target_url) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/mapping=SRG3-PP1-TXRX (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_06_rdm_portmapping_SRG3_PP1_TXRX 16:58:47 ________ TransportPCEPortMappingTesting.test_07_xpdr_device_connection _________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'PUT' 16:58:47 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 16:58:47 body = '{"node": [{"node-id": "XPDRA01", "netconf-node-topology:host": "127.0.0.1", "netconf-node-topology:port": "17830", "n...lis": "60000", "netconf-node-topology:max-connection-attempts": "0", "netconf-node-topology:keepalive-delay": "120"}]}' 16:58:47 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '588', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 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) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'PUT' 16:58:47 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_07_xpdr_device_connection(self): 16:58:47 > response = test_utils.mount_device("XPDRA01", ('xpdra', self.NODE_VERSION)) 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:99: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:344: in mount_device 16:58:47 response = put_request(url[RESTCONF_VERSION].format('{}', node), body) 16:58:47 transportpce_tests/common/test_utils.py:124: in put_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_07_xpdr_device_connection 16:58:47 _________ TransportPCEPortMappingTesting.test_08_xpdr_device_connected _________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 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) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_08_xpdr_device_connected(self): 16:58:47 > response = test_utils.check_device_connection("XPDRA01") 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:103: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:369: in check_device_connection 16:58:47 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_08_xpdr_device_connected 16:58:47 _________ TransportPCEPortMappingTesting.test_09_xpdr_portmapping_info _________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 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) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_09_xpdr_portmapping_info(self): 16:58:47 > response = test_utils.get_portmapping_node_attr("XPDRA01", "node-info", None) 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:109: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 16:58:47 response = get_request(target_url) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_09_xpdr_portmapping_info 16:58:47 _______ TransportPCEPortMappingTesting.test_10_xpdr_portmapping_NETWORK1 _______ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 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) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK1' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_10_xpdr_portmapping_NETWORK1(self): 16:58:47 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-NETWORK1") 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:122: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 16:58:47 response = get_request(target_url) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_10_xpdr_portmapping_NETWORK1 16:58:47 _______ TransportPCEPortMappingTesting.test_11_xpdr_portmapping_NETWORK2 _______ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 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) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-NETWORK2' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_11_xpdr_portmapping_NETWORK2(self): 16:58:47 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-NETWORK2") 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:133: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 16:58:47 response = get_request(target_url) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_11_xpdr_portmapping_NETWORK2 16:58:47 _______ TransportPCEPortMappingTesting.test_12_xpdr_portmapping_CLIENT1 ________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 > sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 16:58:47 raise err 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 address = ('localhost', 8182), timeout = 10, source_address = None 16:58:47 socket_options = [(6, 1, 1)] 16:58:47 16:58:47 def create_connection( 16:58:47 address: tuple[str, int], 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 source_address: tuple[str, int] | None = None, 16:58:47 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 16:58:47 ) -> socket.socket: 16:58:47 """Connect to *address* and return the socket object. 16:58:47 16:58:47 Convenience function. Connect to *address* (a 2-tuple ``(host, 16:58:47 port)``) and return the socket object. Passing the optional 16:58:47 *timeout* parameter will set the timeout on the socket instance 16:58:47 before attempting to connect. If no *timeout* is supplied, the 16:58:47 global default timeout setting returned by :func:`socket.getdefaulttimeout` 16:58:47 is used. If *source_address* is set it must be a tuple of (host, port) 16:58:47 for the socket to bind as a source address before making the connection. 16:58:47 An host of '' or port 0 tells the OS to use the default. 16:58:47 """ 16:58:47 16:58:47 host, port = address 16:58:47 if host.startswith("["): 16:58:47 host = host.strip("[]") 16:58:47 err = None 16:58:47 16:58:47 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 16:58:47 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 16:58:47 # The original create_connection function always returns all records. 16:58:47 family = allowed_gai_family() 16:58:47 16:58:47 try: 16:58:47 host.encode("idna") 16:58:47 except UnicodeError: 16:58:47 raise LocationParseError(f"'{host}', label empty or too long") from None 16:58:47 16:58:47 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 16:58:47 af, socktype, proto, canonname, sa = res 16:58:47 sock = None 16:58:47 try: 16:58:47 sock = socket.socket(af, socktype, proto) 16:58:47 16:58:47 # If provided, set socket level options before connecting. 16:58:47 _set_socket_options(sock, socket_options) 16:58:47 16:58:47 if timeout is not _DEFAULT_TIMEOUT: 16:58:47 sock.settimeout(timeout) 16:58:47 if source_address: 16:58:47 sock.bind(source_address) 16:58:47 > sock.connect(sa) 16:58:47 E ConnectionRefusedError: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1' 16:58:47 body = None 16:58:47 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='} 16:58:47 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 redirect = False, assert_same_host = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 16:58:47 release_conn = False, chunked = False, body_pos = None, preload_content = False 16:58:47 decode_content = False, response_kw = {} 16:58:47 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) 16:58:47 destination_scheme = None, conn = None, release_this_conn = True 16:58:47 http_tunnel_required = False, err = None, clean_exit = False 16:58:47 16:58:47 def urlopen( # type: ignore[override] 16:58:47 self, 16:58:47 method: str, 16:58:47 url: str, 16:58:47 body: _TYPE_BODY | None = None, 16:58:47 headers: typing.Mapping[str, str] | None = None, 16:58:47 retries: Retry | bool | int | None = None, 16:58:47 redirect: bool = True, 16:58:47 assert_same_host: bool = True, 16:58:47 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 16:58:47 pool_timeout: int | None = None, 16:58:47 release_conn: bool | None = None, 16:58:47 chunked: bool = False, 16:58:47 body_pos: _TYPE_BODY_POSITION | None = None, 16:58:47 preload_content: bool = True, 16:58:47 decode_content: bool = True, 16:58:47 **response_kw: typing.Any, 16:58:47 ) -> BaseHTTPResponse: 16:58:47 """ 16:58:47 Get a connection from the pool and perform an HTTP request. This is the 16:58:47 lowest level call for making a request, so you'll need to specify all 16:58:47 the raw details. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 More commonly, it's appropriate to use a convenience method 16:58:47 such as :meth:`request`. 16:58:47 16:58:47 .. note:: 16:58:47 16:58:47 `release_conn` will only behave as expected if 16:58:47 `preload_content=False` because we want to make 16:58:47 `preload_content=False` the default behaviour someday soon without 16:58:47 breaking backwards compatibility. 16:58:47 16:58:47 :param method: 16:58:47 HTTP request method (such as GET, POST, PUT, etc.) 16:58:47 16:58:47 :param url: 16:58:47 The URL to perform the request on. 16:58:47 16:58:47 :param body: 16:58:47 Data to send in the request body, either :class:`str`, :class:`bytes`, 16:58:47 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 16:58:47 16:58:47 :param headers: 16:58:47 Dictionary of custom headers to send, such as User-Agent, 16:58:47 If-None-Match, etc. If None, pool headers are used. If provided, 16:58:47 these headers completely replace any pool-specific headers. 16:58:47 16:58:47 :param retries: 16:58:47 Configure the number of retries to allow before raising a 16:58:47 :class:`~urllib3.exceptions.MaxRetryError` exception. 16:58:47 16:58:47 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 16:58:47 :class:`~urllib3.util.retry.Retry` object for fine-grained control 16:58:47 over different types of retries. 16:58:47 Pass an integer number to retry connection errors that many times, 16:58:47 but no other types of errors. Pass zero to never retry. 16:58:47 16:58:47 If ``False``, then retries are disabled and any exception is raised 16:58:47 immediately. Also, instead of raising a MaxRetryError on redirects, 16:58:47 the redirect response will be returned. 16:58:47 16:58:47 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 16:58:47 16:58:47 :param redirect: 16:58:47 If True, automatically handle redirects (status codes 301, 302, 16:58:47 303, 307, 308). Each redirect counts as a retry. Disabling retries 16:58:47 will disable redirect, too. 16:58:47 16:58:47 :param assert_same_host: 16:58:47 If ``True``, will make sure that the host of the pool requests is 16:58:47 consistent else will raise HostChangedError. When ``False``, you can 16:58:47 use the pool on an HTTP proxy and request foreign hosts. 16:58:47 16:58:47 :param timeout: 16:58:47 If specified, overrides the default timeout for this one 16:58:47 request. It may be a float (in seconds) or an instance of 16:58:47 :class:`urllib3.util.Timeout`. 16:58:47 16:58:47 :param pool_timeout: 16:58:47 If set and the pool is set to block=True, then this method will 16:58:47 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 16:58:47 connection is available within the time period. 16:58:47 16:58:47 :param bool preload_content: 16:58:47 If True, the response's body will be preloaded into memory. 16:58:47 16:58:47 :param bool decode_content: 16:58:47 If True, will attempt to decode the body based on the 16:58:47 'content-encoding' header. 16:58:47 16:58:47 :param release_conn: 16:58:47 If False, then the urlopen call will not release the connection 16:58:47 back into the pool once a response is received (but will release if 16:58:47 you read the entire contents of the response such as when 16:58:47 `preload_content=True`). This is useful if you're not preloading 16:58:47 the response's content immediately. You will need to call 16:58:47 ``r.release_conn()`` on the response ``r`` to return the connection 16:58:47 back into the pool. If None, it takes the value of ``preload_content`` 16:58:47 which defaults to ``True``. 16:58:47 16:58:47 :param bool chunked: 16:58:47 If True, urllib3 will send the body using chunked transfer 16:58:47 encoding. Otherwise, urllib3 will send the body using the standard 16:58:47 content-length form. Defaults to False. 16:58:47 16:58:47 :param int body_pos: 16:58:47 Position to seek to in file-like body in the event of a retry or 16:58:47 redirect. Typically this won't need to be set because urllib3 will 16:58:47 auto-populate the value when needed. 16:58:47 """ 16:58:47 parsed_url = parse_url(url) 16:58:47 destination_scheme = parsed_url.scheme 16:58:47 16:58:47 if headers is None: 16:58:47 headers = self.headers 16:58:47 16:58:47 if not isinstance(retries, Retry): 16:58:47 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 16:58:47 16:58:47 if release_conn is None: 16:58:47 release_conn = preload_content 16:58:47 16:58:47 # Check host 16:58:47 if assert_same_host and not self.is_same_host(url): 16:58:47 raise HostChangedError(self, url, retries) 16:58:47 16:58:47 # Ensure that the URL we're connecting to is properly encoded 16:58:47 if url.startswith("/"): 16:58:47 url = to_str(_encode_target(url)) 16:58:47 else: 16:58:47 url = to_str(parsed_url.url) 16:58:47 16:58:47 conn = None 16:58:47 16:58:47 # Track whether `conn` needs to be released before 16:58:47 # returning/raising/recursing. Update this variable if necessary, and 16:58:47 # leave `release_conn` constant throughout the function. That way, if 16:58:47 # the function recurses, the original value of `release_conn` will be 16:58:47 # passed down into the recursive call, and its value will be respected. 16:58:47 # 16:58:47 # See issue #651 [1] for details. 16:58:47 # 16:58:47 # [1] 16:58:47 release_this_conn = release_conn 16:58:47 16:58:47 http_tunnel_required = connection_requires_http_tunnel( 16:58:47 self.proxy, self.proxy_config, destination_scheme 16:58:47 ) 16:58:47 16:58:47 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 16:58:47 # have to copy the headers dict so we can safely change it without those 16:58:47 # changes being reflected in anyone else's copy. 16:58:47 if not http_tunnel_required: 16:58:47 headers = headers.copy() # type: ignore[attr-defined] 16:58:47 headers.update(self.proxy_headers) # type: ignore[union-attr] 16:58:47 16:58:47 # Must keep the exception bound to a separate variable or else Python 3 16:58:47 # complains about UnboundLocalError. 16:58:47 err = None 16:58:47 16:58:47 # Keep track of whether we cleanly exited the except block. This 16:58:47 # ensures we do proper cleanup in finally. 16:58:47 clean_exit = False 16:58:47 16:58:47 # Rewind body position, if needed. Record current position 16:58:47 # for future rewinds in the event of a redirect/retry. 16:58:47 body_pos = set_file_position(body, body_pos) 16:58:47 16:58:47 try: 16:58:47 # Request a connection from the queue. 16:58:47 timeout_obj = self._get_timeout(timeout) 16:58:47 conn = self._get_conn(timeout=pool_timeout) 16:58:47 16:58:47 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 16:58:47 16:58:47 # Is this a closed/new connection that requires CONNECT tunnelling? 16:58:47 if self.proxy is not None and http_tunnel_required and conn.is_closed: 16:58:47 try: 16:58:47 self._prepare_proxy(conn) 16:58:47 except (BaseSSLError, OSError, SocketTimeout) as e: 16:58:47 self._raise_timeout( 16:58:47 err=e, url=self.proxy.url, timeout_value=conn.timeout 16:58:47 ) 16:58:47 raise 16:58:47 16:58:47 # If we're going to release the connection in ``finally:``, then 16:58:47 # the response doesn't need to know about the connection. Otherwise 16:58:47 # it will also try to release it and we'll have a double-release 16:58:47 # mess. 16:58:47 response_conn = conn if not release_conn else None 16:58:47 16:58:47 # Make the request on the HTTPConnection object 16:58:47 > response = self._make_request( 16:58:47 conn, 16:58:47 method, 16:58:47 url, 16:58:47 timeout=timeout_obj, 16:58:47 body=body, 16:58:47 headers=headers, 16:58:47 chunked=chunked, 16:58:47 retries=retries, 16:58:47 response_conn=response_conn, 16:58:47 preload_content=preload_content, 16:58:47 decode_content=decode_content, 16:58:47 **response_kw, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 16:58:47 conn.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 16:58:47 self.endheaders() 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 16:58:47 self._send_output(message_body, encode_chunked=encode_chunked) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 16:58:47 self.send(msg) 16:58:47 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 16:58:47 self.connect() 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 16:58:47 self.sock = self._new_conn() 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def _new_conn(self) -> socket.socket: 16:58:47 """Establish a socket connection and set nodelay settings on it. 16:58:47 16:58:47 :return: New socket connection. 16:58:47 """ 16:58:47 try: 16:58:47 sock = connection.create_connection( 16:58:47 (self._dns_host, self.port), 16:58:47 self.timeout, 16:58:47 source_address=self.source_address, 16:58:47 socket_options=self.socket_options, 16:58:47 ) 16:58:47 except socket.gaierror as e: 16:58:47 raise NameResolutionError(self.host, self, e) from e 16:58:47 except SocketTimeout as e: 16:58:47 raise ConnectTimeoutError( 16:58:47 self, 16:58:47 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 16:58:47 ) from e 16:58:47 16:58:47 except OSError as e: 16:58:47 > raise NewConnectionError( 16:58:47 self, f"Failed to establish a new connection: {e}" 16:58:47 ) from e 16:58:47 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 16:58:47 16:58:47 The above exception was the direct cause of the following exception: 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 > resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 16:58:47 retries = retries.increment( 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 16:58:47 method = 'GET' 16:58:47 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT1' 16:58:47 response = None 16:58:47 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 16:58:47 _pool = 16:58:47 _stacktrace = 16:58:47 16:58:47 def increment( 16:58:47 self, 16:58:47 method: str | None = None, 16:58:47 url: str | None = None, 16:58:47 response: BaseHTTPResponse | None = None, 16:58:47 error: Exception | None = None, 16:58:47 _pool: ConnectionPool | None = None, 16:58:47 _stacktrace: TracebackType | None = None, 16:58:47 ) -> Self: 16:58:47 """Return a new Retry object with incremented retry counters. 16:58:47 16:58:47 :param response: A response object, or None, if the server did not 16:58:47 return a response. 16:58:47 :type response: :class:`~urllib3.response.BaseHTTPResponse` 16:58:47 :param Exception error: An error encountered during the request, or 16:58:47 None if the response was received successfully. 16:58:47 16:58:47 :return: A new ``Retry`` object. 16:58:47 """ 16:58:47 if self.total is False and error: 16:58:47 # Disabled, indicate to re-raise the error. 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 16:58:47 total = self.total 16:58:47 if total is not None: 16:58:47 total -= 1 16:58:47 16:58:47 connect = self.connect 16:58:47 read = self.read 16:58:47 redirect = self.redirect 16:58:47 status_count = self.status 16:58:47 other = self.other 16:58:47 cause = "unknown" 16:58:47 status = None 16:58:47 redirect_location = None 16:58:47 16:58:47 if error and self._is_connection_error(error): 16:58:47 # Connect retry? 16:58:47 if connect is False: 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif connect is not None: 16:58:47 connect -= 1 16:58:47 16:58:47 elif error and self._is_read_error(error): 16:58:47 # Read retry? 16:58:47 if read is False or method is None or not self._is_method_retryable(method): 16:58:47 raise reraise(type(error), error, _stacktrace) 16:58:47 elif read is not None: 16:58:47 read -= 1 16:58:47 16:58:47 elif error: 16:58:47 # Other retry? 16:58:47 if other is not None: 16:58:47 other -= 1 16:58:47 16:58:47 elif response and response.get_redirect_location(): 16:58:47 # Redirect retry? 16:58:47 if redirect is not None: 16:58:47 redirect -= 1 16:58:47 cause = "too many redirects" 16:58:47 response_redirect_location = response.get_redirect_location() 16:58:47 if response_redirect_location: 16:58:47 redirect_location = response_redirect_location 16:58:47 status = response.status 16:58:47 16:58:47 else: 16:58:47 # Incrementing because of a server error like a 500 in 16:58:47 # status_forcelist and the given method is in the allowed_methods 16:58:47 cause = ResponseError.GENERIC_ERROR 16:58:47 if response and response.status: 16:58:47 if status_count is not None: 16:58:47 status_count -= 1 16:58:47 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 16:58:47 status = response.status 16:58:47 16:58:47 history = self.history + ( 16:58:47 RequestHistory(method, url, error, status, redirect_location), 16:58:47 ) 16:58:47 16:58:47 new_retry = self.new( 16:58:47 total=total, 16:58:47 connect=connect, 16:58:47 read=read, 16:58:47 redirect=redirect, 16:58:47 status=status_count, 16:58:47 other=other, 16:58:47 history=history, 16:58:47 ) 16:58:47 16:58:47 if new_retry.is_exhausted(): 16:58:47 reason = error or ResponseError(cause) 16:58:47 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 16:58:47 16:58:47 During handling of the above exception, another exception occurred: 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_12_xpdr_portmapping_CLIENT1(self): 16:58:47 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT1") 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:144: 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 16:58:47 response = get_request(target_url) 16:58:47 transportpce_tests/common/test_utils.py:116: in get_request 16:58:47 return requests.request( 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 16:58:47 return session.request(method=method, url=url, **kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 16:58:47 resp = self.send(prep, **send_kwargs) 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 16:58:47 r = adapter.send(request, **kwargs) 16:58:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:58:47 16:58:47 self = 16:58:47 request = , stream = False 16:58:47 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 16:58:47 proxies = OrderedDict() 16:58:47 16:58:47 def send( 16:58:47 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 16:58:47 ): 16:58:47 """Sends PreparedRequest object. Returns Response object. 16:58:47 16:58:47 :param request: The :class:`PreparedRequest ` being sent. 16:58:47 :param stream: (optional) Whether to stream the request content. 16:58:47 :param timeout: (optional) How long to wait for the server to send 16:58:47 data before giving up, as a float, or a :ref:`(connect timeout, 16:58:47 read timeout) ` tuple. 16:58:47 :type timeout: float or tuple or urllib3 Timeout object 16:58:47 :param verify: (optional) Either a boolean, in which case it controls whether 16:58:47 we verify the server's TLS certificate, or a string, in which case it 16:58:47 must be a path to a CA bundle to use 16:58:47 :param cert: (optional) Any user-provided SSL certificate to be trusted. 16:58:47 :param proxies: (optional) The proxies dictionary to apply to the request. 16:58:47 :rtype: requests.Response 16:58:47 """ 16:58:47 16:58:47 try: 16:58:47 conn = self.get_connection_with_tls_context( 16:58:47 request, verify, proxies=proxies, cert=cert 16:58:47 ) 16:58:47 except LocationValueError as e: 16:58:47 raise InvalidURL(e, request=request) 16:58:47 16:58:47 self.cert_verify(conn, request.url, verify, cert) 16:58:47 url = self.request_url(request, proxies) 16:58:47 self.add_headers( 16:58:47 request, 16:58:47 stream=stream, 16:58:47 timeout=timeout, 16:58:47 verify=verify, 16:58:47 cert=cert, 16:58:47 proxies=proxies, 16:58:47 ) 16:58:47 16:58:47 chunked = not (request.body is None or "Content-Length" in request.headers) 16:58:47 16:58:47 if isinstance(timeout, tuple): 16:58:47 try: 16:58:47 connect, read = timeout 16:58:47 timeout = TimeoutSauce(connect=connect, read=read) 16:58:47 except ValueError: 16:58:47 raise ValueError( 16:58:47 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 16:58:47 f"or a single float to set both timeouts to the same value." 16:58:47 ) 16:58:47 elif isinstance(timeout, TimeoutSauce): 16:58:47 pass 16:58:47 else: 16:58:47 timeout = TimeoutSauce(connect=timeout, read=timeout) 16:58:47 16:58:47 try: 16:58:47 resp = conn.urlopen( 16:58:47 method=request.method, 16:58:47 url=url, 16:58:47 body=request.body, 16:58:47 headers=request.headers, 16:58:47 redirect=False, 16:58:47 assert_same_host=False, 16:58:47 preload_content=False, 16:58:47 decode_content=False, 16:58:47 retries=self.max_retries, 16:58:47 timeout=timeout, 16:58:47 chunked=chunked, 16:58:47 ) 16:58:47 16:58:47 except (ProtocolError, OSError) as err: 16:58:47 raise ConnectionError(err, request=request) 16:58:47 16:58:47 except MaxRetryError as e: 16:58:47 if isinstance(e.reason, ConnectTimeoutError): 16:58:47 # TODO: Remove this in 3.0.0: see #2811 16:58:47 if not isinstance(e.reason, NewConnectionError): 16:58:47 raise ConnectTimeout(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, ResponseError): 16:58:47 raise RetryError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _ProxyError): 16:58:47 raise ProxyError(e, request=request) 16:58:47 16:58:47 if isinstance(e.reason, _SSLError): 16:58:47 # This branch is for urllib3 v1.22 and later. 16:58:47 raise SSLError(e, request=request) 16:58:47 16:58:47 > raise ConnectionError(e, request=request) 16:58:47 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')) 16:58:47 16:58:47 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_12_xpdr_portmapping_CLIENT1 16:58:47 _______ TransportPCEPortMappingTesting.test_13_xpdr_portmapping_CLIENT2 ________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_13_xpdr_portmapping_CLIENT2(self): 16:58:47 response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT2") 16:58:47 > self.assertEqual(response['status_code'], requests.codes.ok) 16:58:47 E AssertionError: 409 != 200 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:157: AssertionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_13_xpdr_portmapping_CLIENT2 16:58:47 _______ TransportPCEPortMappingTesting.test_14_xpdr_portmapping_CLIENT3 ________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_14_xpdr_portmapping_CLIENT3(self): 16:58:47 response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT3") 16:58:47 > self.assertEqual(response['status_code'], requests.codes.ok) 16:58:47 E AssertionError: 409 != 200 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:169: AssertionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_14_xpdr_portmapping_CLIENT3 16:58:47 _______ TransportPCEPortMappingTesting.test_15_xpdr_portmapping_CLIENT4 ________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_15_xpdr_portmapping_CLIENT4(self): 16:58:47 response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT4") 16:58:47 > self.assertEqual(response['status_code'], requests.codes.ok) 16:58:47 E AssertionError: 409 != 200 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:181: AssertionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_15_xpdr_portmapping_CLIENT4 16:58:47 _______ TransportPCEPortMappingTesting.test_16_xpdr_device_disconnection _______ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_16_xpdr_device_disconnection(self): 16:58:47 response = test_utils.unmount_device("XPDRA01") 16:58:47 > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) 16:58:47 E AssertionError: 409 not found in (200, 204) 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:192: AssertionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_16_xpdr_device_disconnection 16:58:47 Searching for pattern 'onDeviceDisConnected:\ XPDRA01' in karaf.log... Pattern not found after 180 seconds! Node XPDRA01 still not deleted from tpce topology... 16:58:47 _______ TransportPCEPortMappingTesting.test_19_rdm_device_disconnection ________ 16:58:47 16:58:47 self = 16:58:47 16:58:47 def test_19_rdm_device_disconnection(self): 16:58:47 response = test_utils.unmount_device("ROADMA01") 16:58:47 > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) 16:58:47 E AssertionError: 409 not found in (200, 204) 16:58:47 16:58:47 transportpce_tests/1.2.1/test01_portmapping.py:212: AssertionError 16:58:47 ----------------------------- Captured stdout call ----------------------------- 16:58:47 execution of test_19_rdm_device_disconnection 16:58:47 Searching for pattern 'onDeviceDisConnected:\ ROADMA01' in karaf.log... Pattern not found after 180 seconds! Node ROADMA01 still not deleted from tpce topology... 16:58:47 =========================== short test summary info ============================ 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_02_rdm_device_connected 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_03_rdm_portmapping_info 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_04_rdm_portmapping_DEG1_TTP_TXRX 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_05_rdm_portmapping_SRG1_PP7_TXRX 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_06_rdm_portmapping_SRG3_PP1_TXRX 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_07_xpdr_device_connection 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_08_xpdr_device_connected 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_09_xpdr_portmapping_info 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_10_xpdr_portmapping_NETWORK1 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_11_xpdr_portmapping_NETWORK2 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_12_xpdr_portmapping_CLIENT1 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_13_xpdr_portmapping_CLIENT2 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_14_xpdr_portmapping_CLIENT3 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_15_xpdr_portmapping_CLIENT4 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_16_xpdr_device_disconnection 16:58:47 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_19_rdm_device_disconnection 16:58:47 16 failed, 5 passed in 605.00s (0:10:04) 16:58:47 tests121: exit 1 (605.28 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 pid=35098 16:58:51 ......... [100%] 16:59:30 16 passed in 114.36s (0:01:54) 16:59:30 pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py 16:59:59 ............................... [100%] 17:00:05 31 passed in 34.56s 17:00:05 pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py 17:00:40 .......................... [100%] 17:01:35 26 passed in 90.02s (0:01:30) 17:01:36 pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py 17:02:11 ...................... [100%] 17:03:15 22 passed in 99.00s (0:01:39) 17:03:15 pytest -q transportpce_tests/2.2.1/test09_olm.py 17:03:56 ........................................ [100%] 17:06:18 40 passed in 183.47s (0:03:03) 17:06:18 pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py 17:07:05 ........................................................................ [ 74%] 17:12:42 ......................... [100%] 17:17:34 97 passed in 675.34s (0:11:15) 17:17:34 pytest -q transportpce_tests/2.2.1/test12_end2end.py 17:18:17 ...................................................... [100%] 17:25:07 54 passed in 450.58s (0:07:30) 17:25:07 pytest -q transportpce_tests/2.2.1/test14_otn_switch_end2end.py 17:26:01 ........................................................................ [ 71%] 17:31:10 ............................. [100%] 17:33:19 101 passed in 494.12s (0:08:14) 17:33:19 pytest -q transportpce_tests/2.2.1/test15_otn_end2end_with_intermediate_switch.py 17:34:16 ........................................................................ [ 67%] 17:40:03 ................................... [100%] 17:43:24 107 passed in 604.04s (0:10:04) 17:43:24 tests121: FAIL ✖ in 10 minutes 12.28 seconds 17:43:24 tests221: OK ✔ in 51 minutes 13.51 seconds 17:43:24 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 17:43:30 tests_hybrid: freeze> python -m pip freeze --all 17:43:30 tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 17:43:30 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 17:43:30 using environment variables from ./karaf121.env 17:43:30 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 17:44:16 ................................................... [100%] 17:46:02 51 passed in 151.86s (0:02:31) 17:46:02 pytest -q transportpce_tests/hybrid/test02_B100G_end2end.py 17:46:43 ........................................................................ [ 66%] 17:51:04 ..................................... [100%] 17:53:10 109 passed in 427.52s (0:07:07) 17:53:10 pytest -q transportpce_tests/hybrid/test03_autonomous_reroute.py 17:53:57 ..................................................... [100%] 18:00:29 53 passed in 438.91s (0:07:18) 18:00:29 tests_hybrid: OK ✔ in 17 minutes 5.41 seconds 18:00:29 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 18:00:30 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 18:00:35 tests_tapi: freeze> python -m pip freeze --all 18:00:35 buildlighty: freeze> python -m pip freeze --all 18:00:36 tests_tapi: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 18:00:36 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 18:00:36 using environment variables from ./karaf221.env 18:00:36 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 18:00:36 buildlighty: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.3.1,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 18:00:36 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 18:00:36 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 18:00:53 [ERROR] COMPILATION ERROR : 18:00:53 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 18:00:53 symbol: class YangModuleInfo 18:00:53 location: package org.opendaylight.yangtools.binding 18:00:53 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 18:00:53 symbol: class YangModuleInfo 18:00:53 location: class io.lighty.controllers.tpce.utils.TPCEUtils 18:00:53 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 18:00:53 symbol: class YangModuleInfo 18:00:53 location: class io.lighty.controllers.tpce.utils.TPCEUtils 18:00:53 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 18:00:53 symbol: class YangModuleInfo 18:00:53 location: class io.lighty.controllers.tpce.utils.TPCEUtils 18:00:53 [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: 18:00:53 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 18:00:53 [ERROR] symbol: class YangModuleInfo 18:00:53 [ERROR] location: package org.opendaylight.yangtools.binding 18:00:53 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 18:00:53 [ERROR] symbol: class YangModuleInfo 18:00:53 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 18:00:53 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 18:00:53 [ERROR] symbol: class YangModuleInfo 18:00:53 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 18:00:53 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 18:00:53 [ERROR] symbol: class YangModuleInfo 18:00:53 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 18:00:53 [ERROR] -> [Help 1] 18:00:53 [ERROR] 18:00:53 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 18:00:53 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 18:00:53 [ERROR] 18:00:53 [ERROR] For more information about the errors and possible solutions, please read the following articles: 18:00:53 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 18:00:53 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 18:00:53 buildlighty: exit 9 (17.74 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=56276 18:00:53 buildlighty: command failed but is marked ignore outcome so handling it as success 18:01:59 .................................................. [100%] 18:03:55 50 passed in 199.13s (0:03:19) 18:03:55 pytest -q transportpce_tests/tapi/test02_full_topology.py 18:05:02 .............................. [100%] 18:08:29 30 passed in 274.34s (0:04:34) 18:08:29 pytest -q transportpce_tests/tapi/test03_tapi_device_change_notifications.py 18:09:28 ...................................................................... [100%] 18:13:01 70 passed in 270.88s (0:04:30) 18:13:01 pytest -q transportpce_tests/tapi/test04_topo_extension.py 18:14:02 .................. [100%] 18:15:04 18 passed in 123.10s (0:02:03) 18:15:04 buildlighty: OK ✔ in 24.33 seconds 18:15:04 buildcontroller: OK (108.99=setup[7.87]+cmd[101.12] seconds) 18:15:04 testsPCE: OK (320.74=setup[89.75]+cmd[230.99] seconds) 18:15:04 sims: OK (17.27=setup[13.83]+cmd[3.44] seconds) 18:15:04 build_karaf_tests121: OK (61.94=setup[13.80]+cmd[48.15] seconds) 18:15:04 tests121: FAIL code 1 (612.28=setup[6.99]+cmd[605.28] seconds) 18:15:04 build_karaf_tests221: OK (60.11=setup[13.80]+cmd[46.31] seconds) 18:15:04 tests_tapi: OK (874.93=setup[6.52]+cmd[868.41] seconds) 18:15:04 tests_network: OK (7.83 seconds) 18:15:04 tests221: OK (3073.51=setup[6.17]+cmd[3067.34] seconds) 18:15:04 build_karaf_tests71: OK (50.89=setup[12.79]+cmd[38.10] seconds) 18:15:04 tests71: OK (467.53=setup[25.25]+cmd[442.27] seconds) 18:15:04 build_karaf_tests_hybrid: OK (79.95=setup[32.10]+cmd[47.84] seconds) 18:15:04 tests_hybrid: OK (1025.41=setup[6.43]+cmd[1018.98] seconds) 18:15:04 buildlighty: OK (24.33=setup[6.59]+cmd[17.74] seconds) 18:15:04 docs: OK (39.14=setup[37.01]+cmd[2.13] seconds) 18:15:04 docs-linkcheck: OK (40.08=setup[36.78]+cmd[3.30] seconds) 18:15:04 checkbashisms: OK (2.06=setup[1.13]+cmd[0.00,0.11,0.82] seconds) 18:15:04 pre-commit: OK (56.49=setup[3.79]+cmd[0.02,0.02,38.26,14.40] seconds) 18:15:04 pylint: OK (27.53=setup[5.14]+cmd[22.39] seconds) 18:15:04 evaluation failed :( (5618.61 seconds) 18:15:04 + tox_status=255 18:15:04 + echo '---> Completed tox runs' 18:15:04 ---> Completed tox runs 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/build_karaf_tests121/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=build_karaf_tests121 18:15:04 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/build_karaf_tests221/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=build_karaf_tests221 18:15:04 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/build_karaf_tests71/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=build_karaf_tests71 18:15:04 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/build_karaf_tests_hybrid/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=build_karaf_tests_hybrid 18:15:04 + cp -r .tox/build_karaf_tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests_hybrid 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/buildcontroller/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=buildcontroller 18:15:04 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/buildlighty/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=buildlighty 18:15:04 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/checkbashisms/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=checkbashisms 18:15:04 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/docs-linkcheck/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=docs-linkcheck 18:15:04 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/docs/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=docs 18:15:04 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/pre-commit/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=pre-commit 18:15:04 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/pylint/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=pylint 18:15:04 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/sims/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=sims 18:15:04 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/tests121/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=tests121 18:15:04 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests121 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/tests221/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=tests221 18:15:04 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/tests71/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=tests71 18:15:04 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/testsPCE/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=testsPCE 18:15:04 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/tests_hybrid/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=tests_hybrid 18:15:04 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/tests_network/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=tests_network 18:15:04 + cp -r .tox/tests_network/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_network 18:15:04 + for i in .tox/*/log 18:15:04 ++ echo .tox/tests_tapi/log 18:15:04 ++ awk -F/ '{print $2}' 18:15:04 + tox_env=tests_tapi 18:15:04 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 18:15:04 + DOC_DIR=docs/_build/html 18:15:04 + [[ -d docs/_build/html ]] 18:15:04 + echo '---> Archiving generated docs' 18:15:04 ---> Archiving generated docs 18:15:04 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 18:15:04 + echo '---> tox-run.sh ends' 18:15:04 ---> tox-run.sh ends 18:15:04 + test 255 -eq 0 18:15:04 + exit 255 18:15:04 ++ '[' 1 = 1 ']' 18:15:04 ++ '[' -x /usr/bin/clear_console ']' 18:15:04 ++ /usr/bin/clear_console -q 18:15:04 Build step 'Execute shell' marked build as failure 18:15:05 $ ssh-agent -k 18:15:05 unset SSH_AUTH_SOCK; 18:15:05 unset SSH_AGENT_PID; 18:15:05 echo Agent pid 15522 killed; 18:15:05 [ssh-agent] Stopped. 18:15:05 [PostBuildScript] - [INFO] Executing post build scripts. 18:15:05 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16372237330946144347.sh 18:15:05 ---> sysstat.sh 18:15:08 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10862127691990681669.sh 18:15:08 ---> package-listing.sh 18:15:08 ++ tr '[:upper:]' '[:lower:]' 18:15:08 ++ facter osfamily 18:15:08 + OS_FAMILY=debian 18:15:08 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 18:15:08 + START_PACKAGES=/tmp/packages_start.txt 18:15:08 + END_PACKAGES=/tmp/packages_end.txt 18:15:08 + DIFF_PACKAGES=/tmp/packages_diff.txt 18:15:08 + PACKAGES=/tmp/packages_start.txt 18:15:08 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 18:15:08 + PACKAGES=/tmp/packages_end.txt 18:15:08 + case "${OS_FAMILY}" in 18:15:08 + dpkg -l 18:15:08 + grep '^ii' 18:15:08 + '[' -f /tmp/packages_start.txt ']' 18:15:08 + '[' -f /tmp/packages_end.txt ']' 18:15:08 + diff /tmp/packages_start.txt /tmp/packages_end.txt 18:15:08 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 18:15:08 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 18:15:08 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 18:15:08 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins2569233624984283131.sh 18:15:08 ---> capture-instance-metadata.sh 18:15:08 Setup pyenv: 18:15:08 system 18:15:08 3.8.13 18:15:08 3.9.13 18:15:08 3.10.13 18:15:08 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 18:15:08 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-x1OJ from file:/tmp/.os_lf_venv 18:15:09 lf-activate-venv(): INFO: Installing: lftools 18:15:21 lf-activate-venv(): INFO: Adding /tmp/venv-x1OJ/bin to PATH 18:15:21 INFO: Running in OpenStack, capturing instance metadata 18:15:21 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins657401087813045338.sh 18:15:21 provisioning config files... 18:15:21 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #2119 18:15:21 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config4476040851697045101tmp 18:15:21 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 18:15:21 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 18:15:21 provisioning config files... 18:15:21 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 18:15:21 [EnvInject] - Injecting environment variables from a build step. 18:15:21 [EnvInject] - Injecting as environment variables the properties content 18:15:21 SERVER_ID=logs 18:15:21 18:15:21 [EnvInject] - Variables injected successfully. 18:15:21 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13703035141470653431.sh 18:15:21 ---> create-netrc.sh 18:15:21 WARN: Log server credential not found. 18:15:21 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11494418832106544563.sh 18:15:21 ---> python-tools-install.sh 18:15:22 Setup pyenv: 18:15:22 system 18:15:22 3.8.13 18:15:22 3.9.13 18:15:22 3.10.13 18:15:22 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 18:15:22 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-x1OJ from file:/tmp/.os_lf_venv 18:15:23 lf-activate-venv(): INFO: Installing: lftools 18:15:31 lf-activate-venv(): INFO: Adding /tmp/venv-x1OJ/bin to PATH 18:15:31 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16852328088274133867.sh 18:15:31 ---> sudo-logs.sh 18:15:31 Archiving 'sudo' log.. 18:15:31 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13302913995434992758.sh 18:15:31 ---> job-cost.sh 18:15:31 Setup pyenv: 18:15:31 system 18:15:31 3.8.13 18:15:31 3.9.13 18:15:31 3.10.13 18:15:31 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 18:15:31 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-x1OJ from file:/tmp/.os_lf_venv 18:15:32 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 18:15:37 lf-activate-venv(): INFO: Adding /tmp/venv-x1OJ/bin to PATH 18:15:37 INFO: No Stack... 18:15:37 INFO: Retrieving Pricing Info for: v3-standard-4 18:15:37 INFO: Archiving Costs 18:15:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins5704141007696107893.sh 18:15:37 ---> logs-deploy.sh 18:15:37 Setup pyenv: 18:15:37 system 18:15:37 3.8.13 18:15:37 3.9.13 18:15:37 3.10.13 18:15:37 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 18:15:37 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-x1OJ from file:/tmp/.os_lf_venv 18:15:38 lf-activate-venv(): INFO: Installing: lftools 18:15:47 lf-activate-venv(): INFO: Adding /tmp/venv-x1OJ/bin to PATH 18:15:47 WARNING: Nexus logging server not set 18:15:47 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/2119/ 18:15:47 INFO: archiving logs to S3 18:15:49 ---> uname -a: 18:15:49 Linux prd-ubuntu2004-docker-4c-16g-2579 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 18:15:49 18:15:49 18:15:49 ---> lscpu: 18:15:49 Architecture: x86_64 18:15:49 CPU op-mode(s): 32-bit, 64-bit 18:15:49 Byte Order: Little Endian 18:15:49 Address sizes: 40 bits physical, 48 bits virtual 18:15:49 CPU(s): 4 18:15:49 On-line CPU(s) list: 0-3 18:15:49 Thread(s) per core: 1 18:15:49 Core(s) per socket: 1 18:15:49 Socket(s): 4 18:15:49 NUMA node(s): 1 18:15:49 Vendor ID: AuthenticAMD 18:15:49 CPU family: 23 18:15:49 Model: 49 18:15:49 Model name: AMD EPYC-Rome Processor 18:15:49 Stepping: 0 18:15:49 CPU MHz: 2800.000 18:15:49 BogoMIPS: 5600.00 18:15:49 Virtualization: AMD-V 18:15:49 Hypervisor vendor: KVM 18:15:49 Virtualization type: full 18:15:49 L1d cache: 128 KiB 18:15:49 L1i cache: 128 KiB 18:15:49 L2 cache: 2 MiB 18:15:49 L3 cache: 64 MiB 18:15:49 NUMA node0 CPU(s): 0-3 18:15:49 Vulnerability Gather data sampling: Not affected 18:15:49 Vulnerability Itlb multihit: Not affected 18:15:49 Vulnerability L1tf: Not affected 18:15:49 Vulnerability Mds: Not affected 18:15:49 Vulnerability Meltdown: Not affected 18:15:49 Vulnerability Mmio stale data: Not affected 18:15:49 Vulnerability Retbleed: Vulnerable 18:15:49 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 18:15:49 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 18:15:49 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 18:15:49 Vulnerability Srbds: Not affected 18:15:49 Vulnerability Tsx async abort: Not affected 18:15:49 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 18:15:49 18:15:49 18:15:49 ---> nproc: 18:15:49 4 18:15:49 18:15:49 18:15:49 ---> df -h: 18:15:49 Filesystem Size Used Avail Use% Mounted on 18:15:49 udev 7.8G 0 7.8G 0% /dev 18:15:49 tmpfs 1.6G 1.1M 1.6G 1% /run 18:15:49 /dev/vda1 78G 17G 62G 21% / 18:15:49 tmpfs 7.9G 0 7.9G 0% /dev/shm 18:15:49 tmpfs 5.0M 0 5.0M 0% /run/lock 18:15:49 tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup 18:15:49 /dev/loop0 62M 62M 0 100% /snap/core20/1405 18:15:49 /dev/loop1 68M 68M 0 100% /snap/lxd/22753 18:15:49 /dev/loop2 44M 44M 0 100% /snap/snapd/15177 18:15:49 /dev/vda15 105M 6.1M 99M 6% /boot/efi 18:15:49 tmpfs 1.6G 0 1.6G 0% /run/user/1001 18:15:49 /dev/loop3 64M 64M 0 100% /snap/core20/2434 18:15:49 /dev/loop4 92M 92M 0 100% /snap/lxd/29619 18:15:49 18:15:49 18:15:49 ---> free -m: 18:15:49 total used free shared buff/cache available 18:15:49 Mem: 15997 747 5643 1 9606 14910 18:15:49 Swap: 1023 0 1023 18:15:49 18:15:49 18:15:49 ---> ip addr: 18:15:49 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 18:15:49 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 18:15:49 inet 127.0.0.1/8 scope host lo 18:15:49 valid_lft forever preferred_lft forever 18:15:49 inet6 ::1/128 scope host 18:15:49 valid_lft forever preferred_lft forever 18:15:49 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 18:15:49 link/ether fa:16:3e:83:70:c7 brd ff:ff:ff:ff:ff:ff 18:15:49 inet 10.30.170.21/23 brd 10.30.171.255 scope global dynamic ens3 18:15:49 valid_lft 80608sec preferred_lft 80608sec 18:15:49 inet6 fe80::f816:3eff:fe83:70c7/64 scope link 18:15:49 valid_lft forever preferred_lft forever 18:15:49 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 18:15:49 link/ether 02:42:b5:35:7e:93 brd ff:ff:ff:ff:ff:ff 18:15:49 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 18:15:49 valid_lft forever preferred_lft forever 18:15:49 18:15:49 18:15:49 ---> sar -b -r -n DEV: 18:15:49 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-2579) 10/29/24 _x86_64_ (4 CPU) 18:15:49 18:15:49 16:39:20 LINUX RESTART (4 CPU) 18:15:49 18:15:49 16:40:02 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 18:15:49 16:41:01 267.29 88.39 178.90 0.00 2704.90 8572.12 0.00 18:15:49 16:42:01 182.15 27.10 155.06 0.00 1956.34 25159.01 0.00 18:15:49 16:43:01 162.96 15.81 147.14 0.00 847.06 48091.85 0.00 18:15:49 16:44:01 129.85 0.38 129.46 0.00 34.66 57395.50 0.00 18:15:49 16:45:01 166.16 13.18 152.98 0.00 4833.86 131545.35 0.00 18:15:49 16:46:01 197.52 5.02 192.50 0.00 159.31 47652.59 0.00 18:15:49 16:47:01 124.80 0.15 124.65 0.00 4.00 2384.00 0.00 18:15:49 16:48:01 68.46 0.05 68.41 0.00 3.47 1262.06 0.00 18:15:49 16:49:01 95.70 0.00 95.70 0.00 0.00 2319.36 0.00 18:15:49 16:50:01 89.80 0.02 89.79 0.00 0.27 8984.64 0.00 18:15:49 16:51:01 1.97 0.00 1.97 0.00 0.00 36.93 0.00 18:15:49 16:52:01 67.19 0.00 67.19 0.00 0.00 996.23 0.00 18:15:49 16:53:01 108.17 0.05 108.12 0.00 1.87 9920.35 0.00 18:15:49 16:54:01 25.93 0.00 25.93 0.00 0.00 772.27 0.00 18:15:49 16:55:01 95.62 0.33 95.29 0.00 19.44 1403.30 0.00 18:15:49 16:56:01 3.02 0.03 2.98 0.00 0.40 48.66 0.00 18:15:49 16:57:01 60.36 0.45 59.91 0.00 48.79 879.59 0.00 18:15:49 16:58:01 39.29 6.77 32.53 0.00 427.53 696.42 0.00 18:15:49 16:59:01 3.32 0.03 3.28 0.00 0.27 93.32 0.00 18:15:49 17:00:01 37.51 0.00 37.51 0.00 0.00 596.30 0.00 18:15:49 17:01:01 66.86 0.00 66.86 0.00 0.00 990.90 0.00 18:15:49 17:02:01 17.11 0.00 17.11 0.00 0.00 280.49 0.00 18:15:49 17:03:01 5.75 0.00 5.75 0.00 0.00 104.52 0.00 18:15:49 17:04:01 69.18 0.00 69.18 0.00 0.00 1024.06 0.00 18:15:49 17:05:01 2.08 0.00 2.08 0.00 0.00 45.46 0.00 18:15:49 17:06:01 2.60 0.00 2.60 0.00 0.00 52.52 0.00 18:15:49 17:07:01 29.56 0.00 29.56 0.00 0.00 469.66 0.00 18:15:49 17:08:01 25.68 0.00 25.68 0.00 0.00 378.20 0.00 18:15:49 17:09:01 2.03 0.00 2.03 0.00 0.00 37.19 0.00 18:15:49 17:10:01 2.63 0.00 2.63 0.00 0.00 41.72 0.00 18:15:49 17:11:01 1.67 0.00 1.67 0.00 0.00 28.00 0.00 18:15:49 17:12:01 2.13 0.00 2.13 0.00 0.00 50.39 0.00 18:15:49 17:13:01 1.58 0.00 1.58 0.00 0.00 30.66 0.00 18:15:49 17:14:01 2.08 0.00 2.08 0.00 0.00 34.27 0.00 18:15:49 17:15:01 1.55 0.00 1.55 0.00 0.00 31.72 0.00 18:15:49 17:16:01 2.03 0.00 2.03 0.00 0.00 26.26 0.00 18:15:49 17:17:01 1.35 0.05 1.30 0.00 1.07 17.73 0.00 18:15:49 17:18:01 17.21 0.00 17.21 0.00 0.00 285.82 0.00 18:15:49 17:19:01 53.56 0.00 53.56 0.00 0.00 767.07 0.00 18:15:49 17:20:01 3.18 0.00 3.18 0.00 0.00 63.86 0.00 18:15:49 17:21:01 1.72 0.00 1.72 0.00 0.00 36.79 0.00 18:15:49 17:22:01 2.25 0.00 2.25 0.00 0.00 51.72 0.00 18:15:49 17:23:01 1.88 0.00 1.88 0.00 0.00 37.19 0.00 18:15:49 17:24:01 1.38 0.00 1.38 0.00 0.00 40.13 0.00 18:15:49 17:25:01 1.93 0.00 1.93 0.00 0.00 52.78 0.00 18:15:49 17:26:01 65.42 0.00 65.42 0.00 0.00 972.77 0.00 18:15:49 17:27:01 2.20 0.00 2.20 0.00 0.00 40.26 0.00 18:15:49 17:28:01 2.90 0.00 2.90 0.00 0.00 60.52 0.00 18:15:49 17:29:01 1.75 0.00 1.75 0.00 0.00 38.13 0.00 18:15:49 17:30:01 2.52 0.00 2.52 0.00 0.00 44.26 0.00 18:15:49 17:31:01 1.95 0.00 1.95 0.00 0.00 47.59 0.00 18:15:49 17:32:01 2.23 0.00 2.23 0.00 0.00 44.93 0.00 18:15:49 17:33:01 1.92 0.00 1.92 0.00 0.00 34.39 0.00 18:15:49 17:34:01 17.61 0.00 17.61 0.00 0.00 408.93 0.00 18:15:49 17:35:01 46.98 0.00 46.98 0.00 0.00 670.15 0.00 18:15:49 17:36:01 3.32 0.00 3.32 0.00 0.00 67.06 0.00 18:15:49 17:37:01 1.68 0.00 1.68 0.00 0.00 40.93 0.00 18:15:49 17:38:01 2.05 0.00 2.05 0.00 0.00 36.13 0.00 18:15:49 17:39:01 1.85 0.00 1.85 0.00 0.00 31.59 0.00 18:15:49 17:40:01 2.12 0.00 2.12 0.00 0.00 44.26 0.00 18:15:49 17:41:01 1.90 0.00 1.90 0.00 0.00 33.58 0.00 18:15:49 17:42:01 2.40 0.00 2.40 0.00 0.00 43.86 0.00 18:15:49 17:43:01 1.87 0.00 1.87 0.00 0.00 41.73 0.00 18:15:49 17:44:01 57.37 0.38 56.99 0.00 3.33 3917.88 0.00 18:15:49 17:45:01 53.64 0.00 53.64 0.00 0.00 6146.44 0.00 18:15:49 17:46:01 3.00 0.00 3.00 0.00 0.00 58.39 0.00 18:15:49 17:47:01 72.98 0.00 72.98 0.00 0.00 1486.06 0.00 18:15:49 17:48:01 2.65 0.00 2.65 0.00 0.00 50.92 0.00 18:15:49 17:49:01 1.98 0.00 1.98 0.00 0.00 36.79 0.00 18:15:49 17:50:01 2.88 0.00 2.88 0.00 0.00 49.19 0.00 18:15:49 17:51:01 1.63 0.00 1.63 0.00 0.00 30.39 0.00 18:15:49 17:52:02 1.78 0.00 1.78 0.00 0.00 39.99 0.00 18:15:49 17:53:01 1.97 0.00 1.97 0.00 0.00 38.77 0.00 18:15:49 17:54:01 72.65 0.00 72.65 0.00 0.00 1080.89 0.00 18:15:49 17:55:01 1.85 0.00 1.85 0.00 0.00 145.71 0.00 18:15:49 17:56:01 4.38 0.00 4.38 0.00 0.00 108.10 0.00 18:15:49 17:57:01 2.12 0.00 2.12 0.00 0.00 48.13 0.00 18:15:49 17:58:01 2.98 0.00 2.98 0.00 0.00 57.32 0.00 18:15:49 17:59:01 1.52 0.00 1.52 0.00 0.00 18.80 0.00 18:15:49 18:00:01 2.42 0.00 2.42 0.00 0.00 31.06 0.00 18:15:49 18:01:01 32.48 1.32 31.16 0.00 41.86 2137.38 0.00 18:15:49 18:02:01 99.90 0.05 99.85 0.00 0.40 8889.69 0.00 18:15:49 18:03:01 3.43 0.13 3.30 0.00 17.06 200.37 0.00 18:15:49 18:04:01 19.20 3.27 15.93 0.00 581.10 281.02 0.00 18:15:49 18:05:01 83.04 0.00 83.04 0.00 0.00 1425.23 0.00 18:15:49 18:06:01 3.43 0.00 3.43 0.00 0.00 73.19 0.00 18:15:49 18:07:01 1.45 0.00 1.45 0.00 0.00 29.46 0.00 18:15:49 18:08:01 3.20 0.00 3.20 0.00 0.00 57.59 0.00 18:15:49 18:09:01 49.82 0.00 49.82 0.00 0.00 783.74 0.00 18:15:49 18:10:01 61.36 0.00 61.36 0.00 0.00 888.52 0.00 18:15:49 18:11:01 2.35 0.00 2.35 0.00 0.00 45.33 0.00 18:15:49 18:12:01 3.62 0.00 3.62 0.00 0.00 63.32 0.00 18:15:49 18:13:01 2.62 0.00 2.62 0.00 0.00 154.91 0.00 18:15:49 18:14:01 102.58 0.00 102.58 0.00 0.00 1529.35 0.00 18:15:49 18:15:01 2.32 0.00 2.32 0.00 0.00 45.99 0.00 18:15:49 Average: 33.31 1.70 31.60 0.00 122.59 4067.83 0.00 18:15:49 18:15:49 16:40:02 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 18:15:49 16:41:01 13370788 15417380 567552 3.46 69672 2173028 1255940 7.21 821812 1916664 167584 18:15:49 16:42:01 10612100 14382788 1577824 9.63 127528 3720020 2427900 13.93 2128764 3222988 1192236 18:15:49 16:43:01 9776512 14244448 1717164 10.48 154220 4345824 2327368 13.35 2277788 3865388 501584 18:15:49 16:44:01 6282852 13194344 2765316 16.88 189788 6652036 3523428 20.21 3796324 5732584 1243272 18:15:49 16:45:01 5279892 14048816 1900192 11.60 216848 8399704 2756452 15.81 3796288 6642764 236316 18:15:49 16:46:01 4621220 14106576 1841764 11.24 231436 9077288 2647648 15.19 4089848 6980604 1780 18:15:49 16:47:01 3333728 12826960 3120780 19.05 238116 9078296 3902200 22.39 5417560 6933152 904 18:15:49 16:48:01 4075160 13571964 2375828 14.50 240988 9078992 3179000 18.24 4690788 6923076 428 18:15:49 16:49:01 3150792 12892004 3055520 18.65 249588 9301044 4211884 24.16 5421484 7102904 221008 18:15:49 16:50:01 1151300 10899500 5046800 30.81 252204 9305312 5957052 34.18 7427152 7087200 264 18:15:49 16:51:01 3291076 13042056 2904840 17.73 252256 9308100 3922484 22.50 5292720 7089444 2872 18:15:49 16:52:01 1943700 11694376 4252300 25.96 254272 9305632 5131664 29.44 6636520 7087048 108 18:15:49 16:53:01 369972 10368932 5576796 34.04 262292 9531576 6643204 38.11 8023020 7255784 2044 18:15:49 16:54:01 1378292 11377824 4568400 27.89 262680 9531792 5720760 32.82 7041052 7237236 204 18:15:49 16:55:01 194568 10141896 5803564 35.43 263308 9485012 7165980 41.11 8248524 7212480 56 18:15:49 16:56:01 166280 9700892 6244488 38.12 258120 9081860 7319376 41.99 8598496 6893204 192 18:15:49 16:57:01 2138096 11675644 4270924 26.07 259312 9083480 5213492 29.91 6634572 6892176 540 18:15:49 16:58:01 2059768 11618964 4325180 26.40 260084 9102824 5341824 30.65 6691964 6907768 1836 18:15:49 16:59:01 4113348 13673124 2271332 13.87 260124 9103340 3146844 18.05 4644648 6908036 928 18:15:49 17:00:01 3493704 13054520 2890656 17.65 260844 9103624 3775580 21.66 5265104 6907892 576 18:15:49 17:01:01 4190868 13752760 2192732 13.39 261648 9103888 3006632 17.25 4570948 6907896 96 18:15:49 17:02:01 3796332 13358476 2587168 15.79 261668 9104128 3644480 20.91 4964932 6907996 340 18:15:49 17:03:01 3399392 12961796 2983424 18.21 261768 9104288 3826248 21.95 5359056 6908000 100 18:15:49 17:04:01 2260428 11824224 4120416 25.15 262920 9104516 5173712 29.68 6495764 6908072 308 18:15:49 17:05:01 1902300 11466376 4477960 27.34 262928 9104788 5309816 30.46 6852108 6908264 192 18:15:49 17:06:01 1873676 11438044 4506264 27.51 262940 9105068 5373888 30.83 6880148 6908544 96 18:15:49 17:07:01 2613264 12177700 3767000 23.00 263072 9105112 4979428 28.57 6144996 6908588 120 18:15:49 17:08:01 1948980 11514260 4429880 27.04 263512 9105464 5257992 30.17 6804040 6908248 104 18:15:49 17:09:01 1934396 11499964 4444272 27.13 263520 9105748 5257992 30.17 6819528 6908512 108 18:15:49 17:10:01 1920104 11485780 4458548 27.22 263528 9105840 5257992 30.17 6832464 6908588 164 18:15:49 17:11:01 1907408 11473336 4470972 27.29 263544 9106076 5274848 30.26 6845376 6908824 328 18:15:49 17:12:01 1893352 11459624 4484668 27.38 263564 9106412 5290852 30.35 6859228 6909148 196 18:15:49 17:13:01 1840652 11407104 4537196 27.70 263580 9106568 5357104 30.74 6910612 6909308 192 18:15:49 17:14:01 1833288 11399932 4544308 27.74 263592 9106744 5357104 30.74 6919660 6909488 272 18:15:49 17:15:01 1830500 11397252 4546968 27.76 263604 9106836 5357104 30.74 6921964 6909580 124 18:15:49 17:16:01 1830612 11397376 4546840 27.76 263616 9106840 5357104 30.74 6921708 6909584 84 18:15:49 17:17:01 1829408 11396176 4548020 27.76 263620 9106836 5357104 30.74 6921924 6909584 248 18:15:49 17:18:01 3715248 13282104 2663072 16.26 263684 9106836 4275908 24.53 5041512 6909468 204 18:15:49 17:19:01 1915840 11483728 4460456 27.23 264360 9107180 5318352 30.51 6836916 6909560 144 18:15:49 17:20:01 1866616 11435036 4509120 27.53 264384 9107680 5334384 30.60 6884188 6910060 432 18:15:49 17:21:01 1840028 11408964 4535164 27.68 264396 9108184 5334384 30.60 6911184 6910560 620 18:15:49 17:22:01 1813292 11382584 4561504 27.85 264412 9108516 5334384 30.60 6937076 6910892 72 18:15:49 17:23:01 1804764 11374552 4569516 27.89 264444 9108988 5334384 30.60 6944640 6911364 236 18:15:49 17:24:01 1777980 11348220 4595696 28.05 264448 9109428 5366432 30.79 6971400 6911804 536 18:15:49 17:25:01 1767732 11338664 4605332 28.11 264476 9110104 5382428 30.88 6980684 6912476 280 18:15:49 17:26:01 1151948 10723072 5220860 31.87 265160 9109520 6493932 37.26 7597740 6911864 232 18:15:49 17:27:01 529120 10100348 5843284 35.67 265168 9109616 6692220 38.40 8217436 6911944 164 18:15:49 17:28:01 378712 9950344 5992992 36.58 265176 9110008 6774776 38.87 8365272 6912336 124 18:15:49 17:29:01 343684 9915696 6027588 36.80 265180 9110392 6806796 39.05 8399828 6912708 500 18:15:49 17:30:01 327872 9900052 6043324 36.89 265192 9110552 6806796 39.05 8415424 6912868 476 18:15:49 17:31:01 308908 9881444 6061844 37.00 265196 9110892 6822820 39.14 8434028 6913216 444 18:15:49 17:32:01 298496 9871280 6071952 37.07 265196 9111164 6822820 39.14 8443528 6913460 400 18:15:49 17:33:01 269720 9842752 6100388 37.24 265200 9111360 6871832 39.43 8471892 6913680 376 18:15:49 17:34:01 2145216 11718064 4226140 25.80 265224 9111152 5668428 32.52 6604576 6913464 228 18:15:49 17:35:01 575448 10148916 5794568 35.37 265788 9111196 6601440 37.87 8168580 6913496 412 18:15:49 17:36:01 397572 9971476 5971720 36.45 265800 9111600 6715916 38.53 8345580 6913900 56 18:15:49 17:37:01 335192 9909468 6033628 36.83 265812 9111960 6748436 38.72 8406784 6914260 120 18:15:49 17:38:01 323568 9898028 6045060 36.90 265816 9112144 6780452 38.90 8417752 6914440 236 18:15:49 17:39:01 313520 9888100 6054988 36.96 265832 9112244 6780452 38.90 8427268 6914544 400 18:15:49 17:40:01 303400 9878144 6065016 37.02 265852 9112384 6780452 38.90 8437224 6914688 216 18:15:49 17:41:01 290776 9865764 6077300 37.10 265868 9112628 6780452 38.90 8449084 6914920 248 18:15:49 17:42:01 263884 9838976 6104064 37.26 265880 9112720 6813060 39.09 8476204 6915008 128 18:15:49 17:43:01 249456 9824932 6118024 37.35 265892 9113080 6829088 39.18 8490192 6915380 244 18:15:49 17:44:01 3082532 12902520 3042072 18.57 272268 9338188 4487504 25.75 5480576 7090632 157944 18:15:49 17:45:01 1409488 11232136 4711484 28.76 272704 9340040 5535128 31.76 7154876 7084412 264 18:15:49 17:46:01 5483092 15305780 639748 3.91 272708 9340072 1506736 8.64 3092808 7084264 120 18:15:49 17:47:01 1672828 11496788 4446796 27.15 273392 9340564 5281164 30.30 6912452 7063036 136 18:15:49 17:48:01 1649700 11473944 4469600 27.28 273396 9340836 5297168 30.39 6936900 7063080 184 18:15:49 17:49:01 1644092 11468528 4475008 27.32 273400 9341024 5297168 30.39 6940492 7063256 240 18:15:49 17:50:01 1627508 11452132 4491404 27.42 273404 9341204 5297168 30.39 6956680 7063440 100 18:15:49 17:51:01 1626712 11451476 4492060 27.42 273404 9341344 5297168 30.39 6955964 7063576 152 18:15:49 17:52:02 1583816 11409116 4534404 27.68 273416 9341884 5330068 30.58 6999296 7064080 596 18:15:49 17:53:01 1566560 11392168 4551368 27.78 273416 9342176 5346100 30.67 7014660 7064388 388 18:15:49 17:54:01 1319080 11144504 4799112 29.30 273768 9341660 5889516 33.79 7276824 7052844 308 18:15:49 17:55:01 819552 10645560 5297576 32.34 273768 9342172 6124748 35.14 7771044 7053192 296 18:15:49 17:56:01 710616 10537764 5405244 33.00 273776 9343296 6140780 35.23 7878996 7054248 132 18:15:49 17:57:01 689724 10517280 5425708 33.12 273776 9343696 6156808 35.32 7898744 7054652 204 18:15:49 17:58:01 667460 10495352 5447740 33.26 273776 9344032 6172908 35.42 7920936 7054976 100 18:15:49 17:59:01 667376 10495280 5447800 33.26 273788 9344032 6172908 35.42 7920284 7054980 256 18:15:49 18:00:01 667092 10495004 5448064 33.26 273788 9344036 6172908 35.42 7920672 7054984 88 18:15:49 18:01:01 3260148 13361552 2582752 15.77 280520 9590492 4489452 25.76 5091768 7279032 222788 18:15:49 18:02:01 200020 10301804 5640744 34.43 280932 9590184 7216708 41.40 8145484 7276648 284 18:15:49 18:03:01 168460 9600512 6341496 38.71 276788 8933280 7461208 42.81 8737612 6719220 120 18:15:49 18:04:01 5492680 14918924 1026376 6.27 276816 8927536 1881180 10.79 3460320 6692944 404 18:15:49 18:05:01 2577412 12004588 3938832 24.04 277220 8928056 5102284 29.27 6366748 6692544 324 18:15:49 18:06:01 2039540 11467324 4475728 27.32 277236 8928648 5300192 30.41 6901068 6692960 464 18:15:49 18:07:01 2031012 11459024 4484072 27.37 277236 8928892 5316196 30.50 6908496 6693184 260 18:15:49 18:08:01 2002196 11430572 4512368 27.55 277236 8929264 5332192 30.59 6937156 6693516 336 18:15:49 18:09:01 5145380 14574228 1370828 8.37 277328 8929620 2218100 12.73 3814808 6684784 716 18:15:49 18:10:01 2053820 11483824 4459212 27.22 277768 8930336 5261956 30.19 6896532 6685456 160 18:15:49 18:11:01 2035960 11466156 4476880 27.33 277772 8930528 5316748 30.50 6912668 6685584 108 18:15:49 18:12:01 2003012 11433504 4509508 27.53 277784 8930816 5333500 30.60 6945552 6685856 304 18:15:49 18:13:01 5887216 15317840 627160 3.83 277792 8930916 1495580 8.58 3074632 6684912 204 18:15:49 18:14:01 2535504 11967008 3976372 24.27 278212 8931404 5134384 29.46 6417460 6685384 420 18:15:49 18:15:01 2096292 11528168 4415108 26.95 278212 8931784 5286444 30.33 6854364 6685744 184 18:15:49 Average: 2224547 11618466 4326727 26.41 260494 8942289 5220341 29.95 6647808 6795798 41831 18:15:49 18:15:49 16:40:02 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 18:15:49 16:41:01 lo 0.88 0.88 0.09 0.09 0.00 0.00 0.00 0.00 18:15:49 16:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:41:01 ens3 255.30 179.33 1329.26 50.94 0.00 0.00 0.00 0.00 18:15:49 16:42:01 lo 3.73 3.73 0.36 0.36 0.00 0.00 0.00 0.00 18:15:49 16:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:42:01 ens3 445.16 359.36 6558.70 39.58 0.00 0.00 0.00 0.00 18:15:49 16:43:01 lo 3.13 3.13 0.34 0.34 0.00 0.00 0.00 0.00 18:15:49 16:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:43:01 ens3 360.17 296.15 4807.74 29.67 0.00 0.00 0.00 0.00 18:15:49 16:44:01 lo 1.20 1.20 0.11 0.11 0.00 0.00 0.00 0.00 18:15:49 16:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:44:01 ens3 164.67 90.67 3959.88 10.91 0.00 0.00 0.00 0.00 18:15:49 16:45:01 lo 1.00 1.00 0.11 0.11 0.00 0.00 0.00 0.00 18:15:49 16:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:45:01 ens3 165.38 78.31 2104.76 6.65 0.00 0.00 0.00 0.00 18:15:49 16:46:01 lo 13.35 13.35 21.39 21.39 0.00 0.00 0.00 0.00 18:15:49 16:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:46:01 ens3 1.48 1.32 0.29 0.21 0.00 0.00 0.00 0.00 18:15:49 16:47:01 lo 21.50 21.50 18.12 18.12 0.00 0.00 0.00 0.00 18:15:49 16:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:47:01 ens3 1.37 1.28 0.27 0.25 0.00 0.00 0.00 0.00 18:15:49 16:48:01 lo 36.44 36.44 15.13 15.13 0.00 0.00 0.00 0.00 18:15:49 16:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:48:01 ens3 2.22 2.47 0.42 0.44 0.00 0.00 0.00 0.00 18:15:49 16:49:01 lo 15.54 15.54 4.61 4.61 0.00 0.00 0.00 0.00 18:15:49 16:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:49:01 ens3 2.38 2.95 0.92 0.85 0.00 0.00 0.00 0.00 18:15:49 16:50:01 lo 45.24 45.24 25.36 25.36 0.00 0.00 0.00 0.00 18:15:49 16:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:50:01 ens3 1.20 1.43 0.26 0.26 0.00 0.00 0.00 0.00 18:15:49 16:51:01 lo 21.50 21.50 6.70 6.70 0.00 0.00 0.00 0.00 18:15:49 16:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:51:01 ens3 1.27 1.53 0.24 0.25 0.00 0.00 0.00 0.00 18:15:49 16:52:01 lo 26.48 26.48 11.55 11.55 0.00 0.00 0.00 0.00 18:15:49 16:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:52:01 ens3 0.78 1.07 0.15 0.16 0.00 0.00 0.00 0.00 18:15:49 16:53:01 lo 11.58 11.58 10.13 10.13 0.00 0.00 0.00 0.00 18:15:49 16:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:53:01 ens3 2.57 2.83 0.95 0.86 0.00 0.00 0.00 0.00 18:15:49 16:54:01 lo 10.15 10.15 7.56 7.56 0.00 0.00 0.00 0.00 18:15:49 16:54:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:54:01 ens3 1.48 1.43 0.28 0.27 0.00 0.00 0.00 0.00 18:15:49 16:55:01 lo 13.18 13.18 4.60 4.60 0.00 0.00 0.00 0.00 18:15:49 16:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:55:01 ens3 1.42 0.73 0.24 0.16 0.00 0.00 0.00 0.00 18:15:49 16:56:01 lo 21.16 21.16 10.48 10.48 0.00 0.00 0.00 0.00 18:15:49 16:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:56:01 ens3 2.63 1.53 0.84 0.61 0.00 0.00 0.00 0.00 18:15:49 16:57:01 lo 11.10 11.10 3.99 3.99 0.00 0.00 0.00 0.00 18:15:49 16:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:57:01 ens3 2.05 1.08 0.54 0.40 0.00 0.00 0.00 0.00 18:15:49 16:58:01 lo 8.42 8.42 7.32 7.32 0.00 0.00 0.00 0.00 18:15:49 16:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:58:01 ens3 3.03 2.88 17.14 0.47 0.00 0.00 0.00 0.00 18:15:49 16:59:01 lo 5.27 5.27 1.50 1.50 0.00 0.00 0.00 0.00 18:15:49 16:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 16:59:01 ens3 12.23 10.43 2.56 7.45 0.00 0.00 0.00 0.00 18:15:49 17:00:01 lo 14.50 14.50 5.23 5.23 0.00 0.00 0.00 0.00 18:15:49 17:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:00:01 ens3 0.93 0.75 0.19 0.17 0.00 0.00 0.00 0.00 18:15:49 17:01:01 lo 23.86 23.86 12.27 12.27 0.00 0.00 0.00 0.00 18:15:49 17:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:01:01 ens3 1.00 0.73 0.31 0.13 0.00 0.00 0.00 0.00 18:15:49 17:02:01 lo 16.65 16.65 6.14 6.14 0.00 0.00 0.00 0.00 18:15:49 17:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:02:01 ens3 1.13 1.02 0.18 0.20 0.00 0.00 0.00 0.00 18:15:49 17:03:01 lo 20.81 20.81 20.31 20.31 0.00 0.00 0.00 0.00 18:15:49 17:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:03:01 ens3 1.42 0.80 0.43 0.32 0.00 0.00 0.00 0.00 18:15:49 17:04:01 lo 11.31 11.31 4.89 4.89 0.00 0.00 0.00 0.00 18:15:49 17:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:04:01 ens3 1.57 0.95 0.43 0.32 0.00 0.00 0.00 0.00 18:15:49 17:05:01 lo 38.21 38.21 13.96 13.96 0.00 0.00 0.00 0.00 18:15:49 17:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:05:01 ens3 0.87 0.75 0.23 0.20 0.00 0.00 0.00 0.00 18:15:49 17:06:01 lo 41.98 41.98 11.93 11.93 0.00 0.00 0.00 0.00 18:15:49 17:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:06:01 ens3 2.37 0.48 0.32 0.09 0.00 0.00 0.00 0.00 18:15:49 17:07:01 lo 5.52 5.52 1.56 1.56 0.00 0.00 0.00 0.00 18:15:49 17:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:07:01 ens3 3.02 1.48 1.23 0.89 0.00 0.00 0.00 0.00 18:15:49 17:08:01 lo 31.69 31.69 22.26 22.26 0.00 0.00 0.00 0.00 18:15:49 17:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:08:01 ens3 1.53 0.85 0.44 0.34 0.00 0.00 0.00 0.00 18:15:49 17:09:01 lo 10.45 10.45 7.01 7.01 0.00 0.00 0.00 0.00 18:15:49 17:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:09:01 ens3 1.30 0.75 0.44 0.33 0.00 0.00 0.00 0.00 18:15:49 17:10:01 lo 14.36 14.36 6.64 6.64 0.00 0.00 0.00 0.00 18:15:49 17:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:10:01 ens3 2.65 1.17 0.94 0.58 0.00 0.00 0.00 0.00 18:15:49 17:11:01 lo 22.71 22.71 9.14 9.14 0.00 0.00 0.00 0.00 18:15:49 17:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:11:01 ens3 1.37 0.55 0.36 0.27 0.00 0.00 0.00 0.00 18:15:49 17:12:01 lo 18.78 18.78 8.12 8.12 0.00 0.00 0.00 0.00 18:15:49 17:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:12:01 ens3 2.50 0.52 0.18 0.09 0.00 0.00 0.00 0.00 18:15:49 17:13:01 lo 16.58 16.58 7.15 7.15 0.00 0.00 0.00 0.00 18:15:49 17:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:13:01 ens3 1.62 0.52 0.15 0.10 0.00 0.00 0.00 0.00 18:15:49 17:14:01 lo 19.22 19.22 7.85 7.85 0.00 0.00 0.00 0.00 18:15:49 17:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:14:01 ens3 0.53 0.42 0.08 0.07 0.00 0.00 0.00 0.00 18:15:49 17:15:01 lo 8.70 8.70 3.24 3.24 0.00 0.00 0.00 0.00 18:15:49 17:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:15:01 ens3 0.38 0.22 0.10 0.09 0.00 0.00 0.00 0.00 18:15:49 17:16:01 lo 0.60 0.60 0.05 0.05 0.00 0.00 0.00 0.00 18:15:49 17:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:16:01 ens3 0.53 0.08 0.05 0.01 0.00 0.00 0.00 0.00 18:15:49 17:17:01 lo 0.57 0.57 0.07 0.07 0.00 0.00 0.00 0.00 18:15:49 17:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:17:01 ens3 0.52 0.37 0.31 0.24 0.00 0.00 0.00 0.00 18:15:49 17:18:01 lo 2.75 2.75 0.25 0.25 0.00 0.00 0.00 0.00 18:15:49 17:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:18:01 ens3 0.63 0.58 0.08 0.08 0.00 0.00 0.00 0.00 18:15:49 17:19:01 lo 35.14 35.14 13.26 13.26 0.00 0.00 0.00 0.00 18:15:49 17:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:19:01 ens3 1.00 0.95 0.15 0.16 0.00 0.00 0.00 0.00 18:15:49 17:20:01 lo 41.11 41.11 12.72 12.72 0.00 0.00 0.00 0.00 18:15:49 17:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:20:01 ens3 0.68 0.78 0.18 0.17 0.00 0.00 0.00 0.00 18:15:49 17:21:01 lo 37.74 37.74 11.83 11.83 0.00 0.00 0.00 0.00 18:15:49 17:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:21:01 ens3 0.82 0.38 0.21 0.07 0.00 0.00 0.00 0.00 18:15:49 17:22:01 lo 27.71 27.71 7.39 7.39 0.00 0.00 0.00 0.00 18:15:49 17:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:22:01 ens3 0.35 0.27 0.05 0.04 0.00 0.00 0.00 0.00 18:15:49 17:23:01 lo 29.63 29.63 9.14 9.14 0.00 0.00 0.00 0.00 18:15:49 17:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:23:01 ens3 0.27 0.17 0.04 0.03 0.00 0.00 0.00 0.00 18:15:49 17:24:01 lo 32.49 32.49 9.80 9.80 0.00 0.00 0.00 0.00 18:15:49 17:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:24:01 ens3 0.25 0.13 0.02 0.01 0.00 0.00 0.00 0.00 18:15:49 17:25:01 lo 62.73 62.73 18.93 18.93 0.00 0.00 0.00 0.00 18:15:49 17:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:25:01 ens3 0.43 0.12 0.09 0.07 0.00 0.00 0.00 0.00 18:15:49 17:26:01 lo 4.92 4.92 5.49 5.49 0.00 0.00 0.00 0.00 18:15:49 17:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:26:01 ens3 1.02 0.90 0.13 0.16 0.00 0.00 0.00 0.00 18:15:49 17:27:01 lo 23.36 23.36 17.93 17.93 0.00 0.00 0.00 0.00 18:15:49 17:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:27:01 ens3 1.55 0.95 0.45 0.34 0.00 0.00 0.00 0.00 18:15:49 17:28:01 lo 32.14 32.14 13.66 13.66 0.00 0.00 0.00 0.00 18:15:49 17:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:28:01 ens3 0.73 0.55 0.12 0.11 0.00 0.00 0.00 0.00 18:15:49 17:29:01 lo 23.18 23.18 10.89 10.89 0.00 0.00 0.00 0.00 18:15:49 17:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:29:01 ens3 0.55 0.45 0.10 0.09 0.00 0.00 0.00 0.00 18:15:49 17:30:01 lo 22.78 22.78 8.87 8.87 0.00 0.00 0.00 0.00 18:15:49 17:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:30:01 ens3 1.25 0.80 0.45 0.36 0.00 0.00 0.00 0.00 18:15:49 17:31:01 lo 32.08 32.08 10.69 10.69 0.00 0.00 0.00 0.00 18:15:49 17:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:31:01 ens3 0.42 0.32 0.07 0.07 0.00 0.00 0.00 0.00 18:15:49 17:32:01 lo 19.26 19.26 8.75 8.75 0.00 0.00 0.00 0.00 18:15:49 17:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:32:01 ens3 1.60 0.88 0.33 0.15 0.00 0.00 0.00 0.00 18:15:49 17:33:01 lo 20.50 20.50 7.96 7.96 0.00 0.00 0.00 0.00 18:15:49 17:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:33:01 ens3 1.63 1.23 0.68 0.52 0.00 0.00 0.00 0.00 18:15:49 17:34:01 lo 4.85 4.85 2.12 2.12 0.00 0.00 0.00 0.00 18:15:49 17:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:34:01 ens3 0.92 0.82 0.13 0.12 0.00 0.00 0.00 0.00 18:15:49 17:35:01 lo 22.68 22.68 22.40 22.40 0.00 0.00 0.00 0.00 18:15:49 17:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:35:01 ens3 0.83 0.60 0.19 0.16 0.00 0.00 0.00 0.00 18:15:49 17:36:01 lo 32.71 32.71 14.07 14.07 0.00 0.00 0.00 0.00 18:15:49 17:36:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:36:01 ens3 0.73 0.58 0.12 0.11 0.00 0.00 0.00 0.00 18:15:49 17:37:01 lo 19.10 19.10 9.16 9.16 0.00 0.00 0.00 0.00 18:15:49 17:37:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:37:01 ens3 0.43 0.32 0.07 0.06 0.00 0.00 0.00 0.00 18:15:49 17:38:01 lo 20.26 20.26 10.98 10.98 0.00 0.00 0.00 0.00 18:15:49 17:38:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:38:01 ens3 0.67 0.58 0.12 0.11 0.00 0.00 0.00 0.00 18:15:49 17:39:01 lo 13.50 13.50 7.58 7.58 0.00 0.00 0.00 0.00 18:15:49 17:39:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:39:01 ens3 0.52 0.43 0.10 0.09 0.00 0.00 0.00 0.00 18:15:49 17:40:01 lo 7.40 7.40 5.07 5.07 0.00 0.00 0.00 0.00 18:15:49 17:40:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:40:01 ens3 0.68 0.50 0.16 0.14 0.00 0.00 0.00 0.00 18:15:49 17:41:01 lo 25.04 25.04 12.06 12.06 0.00 0.00 0.00 0.00 18:15:49 17:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:41:01 ens3 0.50 0.35 0.08 0.07 0.00 0.00 0.00 0.00 18:15:49 17:42:01 lo 10.08 10.08 6.14 6.14 0.00 0.00 0.00 0.00 18:15:49 17:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:42:01 ens3 0.63 0.47 0.20 0.08 0.00 0.00 0.00 0.00 18:15:49 17:43:01 lo 36.53 36.53 12.71 12.71 0.00 0.00 0.00 0.00 18:15:49 17:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:43:01 ens3 0.37 0.28 0.06 0.05 0.00 0.00 0.00 0.00 18:15:49 17:44:01 lo 5.20 5.20 2.57 2.57 0.00 0.00 0.00 0.00 18:15:49 17:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:44:01 ens3 2.08 2.20 0.84 0.75 0.00 0.00 0.00 0.00 18:15:49 17:45:01 lo 40.43 40.43 35.66 35.66 0.00 0.00 0.00 0.00 18:15:49 17:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:45:01 ens3 0.88 0.73 0.22 0.19 0.00 0.00 0.00 0.00 18:15:49 17:46:01 lo 30.71 30.71 11.83 11.83 0.00 0.00 0.00 0.00 18:15:49 17:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:46:01 ens3 1.13 1.07 0.23 0.21 0.00 0.00 0.00 0.00 18:15:49 17:47:01 lo 28.40 28.40 15.59 15.59 0.00 0.00 0.00 0.00 18:15:49 17:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:47:01 ens3 1.17 1.03 0.17 0.18 0.00 0.00 0.00 0.00 18:15:49 17:48:01 lo 16.66 16.66 6.46 6.46 0.00 0.00 0.00 0.00 18:15:49 17:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:48:01 ens3 0.73 0.92 0.14 0.14 0.00 0.00 0.00 0.00 18:15:49 17:49:01 lo 18.61 18.61 7.26 7.26 0.00 0.00 0.00 0.00 18:15:49 17:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:49:01 ens3 1.57 1.43 0.50 0.37 0.00 0.00 0.00 0.00 18:15:49 17:50:01 lo 16.13 16.13 6.31 6.31 0.00 0.00 0.00 0.00 18:15:49 17:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:50:01 ens3 0.58 0.67 0.15 0.15 0.00 0.00 0.00 0.00 18:15:49 17:51:01 lo 16.23 16.23 5.82 5.82 0.00 0.00 0.00 0.00 18:15:49 17:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:51:01 ens3 0.68 0.82 0.13 0.13 0.00 0.00 0.00 0.00 18:15:49 17:52:02 lo 42.48 42.48 15.14 15.14 0.00 0.00 0.00 0.00 18:15:49 17:52:02 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:52:02 ens3 0.70 0.83 0.13 0.13 0.00 0.00 0.00 0.00 18:15:49 17:53:01 lo 36.10 36.10 11.53 11.53 0.00 0.00 0.00 0.00 18:15:49 17:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:53:01 ens3 0.75 0.93 0.14 0.15 0.00 0.00 0.00 0.00 18:15:49 17:54:01 lo 10.30 10.30 8.13 8.13 0.00 0.00 0.00 0.00 18:15:49 17:54:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:54:01 ens3 0.90 1.00 0.13 0.14 0.00 0.00 0.00 0.00 18:15:49 17:55:01 lo 40.98 40.98 15.20 15.20 0.00 0.00 0.00 0.00 18:15:49 17:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:55:01 ens3 0.88 1.15 0.28 0.23 0.00 0.00 0.00 0.00 18:15:49 17:56:01 lo 90.17 90.17 32.81 32.81 0.00 0.00 0.00 0.00 18:15:49 17:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:56:01 ens3 0.68 0.55 0.12 0.11 0.00 0.00 0.00 0.00 18:15:49 17:57:01 lo 38.24 38.24 12.59 12.59 0.00 0.00 0.00 0.00 18:15:49 17:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:57:01 ens3 0.48 0.40 0.09 0.08 0.00 0.00 0.00 0.00 18:15:49 17:58:01 lo 39.63 39.63 12.75 12.75 0.00 0.00 0.00 0.00 18:15:49 17:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:58:01 ens3 0.40 0.27 0.05 0.04 0.00 0.00 0.00 0.00 18:15:49 17:59:01 lo 0.13 0.13 0.01 0.01 0.00 0.00 0.00 0.00 18:15:49 17:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 17:59:01 ens3 0.13 0.00 0.01 0.00 0.00 0.00 0.00 0.00 18:15:49 18:00:01 lo 0.38 0.38 0.04 0.04 0.00 0.00 0.00 0.00 18:15:49 18:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:00:01 ens3 0.28 0.18 0.08 0.07 0.00 0.00 0.00 0.00 18:15:49 18:01:01 lo 2.40 2.40 0.27 0.27 0.00 0.00 0.00 0.00 18:15:49 18:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:01:01 ens3 130.78 105.95 2000.64 12.29 0.00 0.00 0.00 0.00 18:15:49 18:02:01 lo 4.61 4.61 1.28 1.28 0.00 0.00 0.00 0.00 18:15:49 18:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:02:01 ens3 0.75 0.67 0.08 0.07 0.00 0.00 0.00 0.00 18:15:49 18:03:01 lo 42.86 42.86 29.48 29.48 0.00 0.00 0.00 0.00 18:15:49 18:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:03:01 ens3 0.83 0.73 0.27 0.14 0.00 0.00 0.00 0.00 18:15:49 18:04:01 lo 29.46 29.46 11.67 11.67 0.00 0.00 0.00 0.00 18:15:49 18:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:04:01 ens3 0.68 0.80 0.12 0.12 0.00 0.00 0.00 0.00 18:15:49 18:05:01 lo 4.72 4.72 5.51 5.51 0.00 0.00 0.00 0.00 18:15:49 18:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:05:01 ens3 0.60 0.50 0.12 0.11 0.00 0.00 0.00 0.00 18:15:49 18:06:01 lo 29.41 29.41 19.93 19.93 0.00 0.00 0.00 0.00 18:15:49 18:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:06:01 ens3 0.68 0.80 0.12 0.12 0.00 0.00 0.00 0.00 18:15:49 18:07:01 lo 8.82 8.82 4.96 4.96 0.00 0.00 0.00 0.00 18:15:49 18:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:07:01 ens3 0.20 0.22 0.03 0.03 0.00 0.00 0.00 0.00 18:15:49 18:08:01 lo 31.49 31.49 11.16 11.16 0.00 0.00 0.00 0.00 18:15:49 18:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:08:01 ens3 0.28 0.35 0.05 0.05 0.00 0.00 0.00 0.00 18:15:49 18:09:01 lo 4.18 4.18 0.44 0.44 0.00 0.00 0.00 0.00 18:15:49 18:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:09:01 ens3 0.60 0.62 0.09 0.10 0.00 0.00 0.00 0.00 18:15:49 18:10:01 lo 33.66 33.66 13.11 13.11 0.00 0.00 0.00 0.00 18:15:49 18:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:10:01 ens3 0.90 1.02 0.19 0.19 0.00 0.00 0.00 0.00 18:15:49 18:11:01 lo 6.45 6.45 4.18 4.18 0.00 0.00 0.00 0.00 18:15:49 18:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:11:01 ens3 0.75 0.78 0.13 0.13 0.00 0.00 0.00 0.00 18:15:49 18:12:01 lo 12.11 12.11 8.64 8.64 0.00 0.00 0.00 0.00 18:15:49 18:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:12:01 ens3 1.38 0.97 0.25 0.19 0.00 0.00 0.00 0.00 18:15:49 18:13:01 lo 28.38 28.38 9.66 9.66 0.00 0.00 0.00 0.00 18:15:49 18:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:13:01 ens3 1.27 0.98 0.42 0.35 0.00 0.00 0.00 0.00 18:15:49 18:14:01 lo 5.68 5.68 5.59 5.59 0.00 0.00 0.00 0.00 18:15:49 18:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:14:01 ens3 0.57 0.52 0.05 0.05 0.00 0.00 0.00 0.00 18:15:49 18:15:01 lo 16.03 16.03 13.09 13.09 0.00 0.00 0.00 0.00 18:15:49 18:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 18:15:01 ens3 1.33 0.67 0.27 0.18 0.00 0.00 0.00 0.00 18:15:49 Average: lo 20.61 20.61 9.54 9.54 0.00 0.00 0.00 0.00 18:15:49 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 18:15:49 Average: ens3 17.09 12.53 218.81 1.84 0.00 0.00 0.00 0.00 18:15:49 18:15:49 18:15:49 ---> sar -P ALL: 18:15:49 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-2579) 10/29/24 _x86_64_ (4 CPU) 18:15:49 18:15:49 16:39:20 LINUX RESTART (4 CPU) 18:15:49 18:15:49 16:40:02 CPU %user %nice %system %iowait %steal %idle 18:15:49 16:41:01 all 19.25 11.92 10.02 3.71 0.11 55.00 18:15:49 16:41:01 0 18.26 10.60 9.12 5.54 0.10 56.37 18:15:49 16:41:01 1 15.90 12.49 10.19 3.48 0.14 57.81 18:15:49 16:41:01 2 29.36 11.78 10.62 3.76 0.10 44.38 18:15:49 16:41:01 3 13.49 12.81 10.13 2.04 0.09 61.44 18:15:49 16:42:01 all 50.98 0.00 4.19 6.79 0.11 37.93 18:15:49 16:42:01 0 49.04 0.00 3.68 6.98 0.08 40.21 18:15:49 16:42:01 1 42.02 0.00 4.39 10.06 0.13 43.40 18:15:49 16:42:01 2 47.17 0.00 3.54 4.11 0.08 45.10 18:15:49 16:42:01 3 65.66 0.00 5.16 6.05 0.13 23.00 18:15:49 16:43:01 all 72.36 0.00 2.63 2.25 0.11 22.66 18:15:49 16:43:01 0 70.03 0.00 1.65 0.63 0.12 27.57 18:15:49 16:43:01 1 71.83 0.00 2.93 4.48 0.10 20.66 18:15:49 16:43:01 2 70.83 0.00 2.44 1.46 0.13 25.13 18:15:49 16:43:01 3 76.75 0.00 3.48 2.41 0.10 17.26 18:15:49 16:44:01 all 62.35 0.00 3.25 3.97 0.10 30.33 18:15:49 16:44:01 0 57.52 0.00 2.39 3.56 0.08 36.45 18:15:49 16:44:01 1 57.10 0.00 3.26 4.83 0.10 34.71 18:15:49 16:44:01 2 56.12 0.00 3.40 2.65 0.10 37.73 18:15:49 16:44:01 3 78.64 0.00 3.96 4.85 0.12 12.43 18:15:49 16:45:01 all 51.55 0.00 3.41 19.62 0.10 25.32 18:15:49 16:45:01 0 49.31 0.00 3.95 33.90 0.10 12.73 18:15:49 16:45:01 1 54.19 0.00 3.02 10.27 0.12 32.40 18:15:49 16:45:01 2 47.94 0.00 3.20 14.36 0.10 34.41 18:15:49 16:45:01 3 54.74 0.00 3.46 19.93 0.10 21.77 18:15:49 16:46:01 all 69.38 0.00 2.51 1.79 0.11 26.21 18:15:49 16:46:01 0 69.54 0.00 2.22 1.07 0.12 27.05 18:15:49 16:46:01 1 69.61 0.00 2.42 3.01 0.12 24.85 18:15:49 16:46:01 2 68.24 0.00 3.07 2.67 0.10 25.91 18:15:49 16:46:01 3 70.13 0.00 2.32 0.40 0.12 27.02 18:15:49 16:47:01 all 46.45 0.00 1.65 0.59 0.11 51.19 18:15:49 16:47:01 0 44.15 0.00 1.65 0.79 0.10 53.32 18:15:49 16:47:01 1 46.23 0.00 1.82 0.13 0.12 51.70 18:15:49 16:47:01 2 46.99 0.00 1.70 1.38 0.12 49.81 18:15:49 16:47:01 3 48.44 0.00 1.44 0.07 0.12 49.94 18:15:49 16:48:01 all 25.17 0.00 1.13 0.30 0.10 73.31 18:15:49 16:48:01 0 23.08 0.00 1.20 0.13 0.10 75.49 18:15:49 16:48:01 1 25.49 0.00 1.27 0.27 0.12 72.86 18:15:49 16:48:01 2 24.87 0.00 0.96 0.77 0.08 73.32 18:15:49 16:48:01 3 27.24 0.00 1.07 0.03 0.10 71.55 18:15:49 16:49:01 all 61.64 0.00 2.06 0.42 0.11 35.77 18:15:49 16:49:01 0 62.26 0.00 2.03 0.39 0.12 35.20 18:15:49 16:49:01 1 62.09 0.00 1.95 0.17 0.10 35.70 18:15:49 16:49:01 2 59.79 0.00 2.13 0.79 0.12 37.17 18:15:49 16:49:01 3 62.44 0.00 2.13 0.32 0.10 35.02 18:15:49 16:50:01 all 35.73 0.00 1.22 0.41 0.11 62.53 18:15:49 16:50:01 0 35.37 0.00 1.09 0.22 0.08 63.24 18:15:49 16:50:01 1 35.92 0.00 1.22 0.37 0.12 62.37 18:15:49 16:50:01 2 36.45 0.00 1.20 0.05 0.12 62.18 18:15:49 16:50:01 3 35.18 0.00 1.37 0.99 0.12 62.34 18:15:49 16:51:01 all 5.66 0.00 0.57 0.01 0.07 93.69 18:15:49 16:51:01 0 5.50 0.00 0.58 0.00 0.10 93.82 18:15:49 16:51:01 1 5.40 0.00 0.64 0.00 0.07 93.90 18:15:49 16:51:01 2 5.57 0.00 0.40 0.00 0.05 93.98 18:15:49 16:51:01 3 6.19 0.00 0.67 0.03 0.07 93.04 18:15:49 18:15:49 16:51:01 CPU %user %nice %system %iowait %steal %idle 18:15:49 16:52:01 all 29.28 0.00 0.97 0.30 0.10 69.35 18:15:49 16:52:01 0 29.29 0.00 0.90 0.37 0.08 69.36 18:15:49 16:52:01 1 27.55 0.00 0.91 0.03 0.12 71.40 18:15:49 16:52:01 2 30.64 0.00 1.21 0.05 0.12 67.99 18:15:49 16:52:01 3 29.64 0.00 0.87 0.74 0.10 68.65 18:15:49 16:53:01 all 47.13 0.00 1.70 0.63 0.11 50.43 18:15:49 16:53:01 0 50.40 0.00 1.83 0.55 0.12 47.10 18:15:49 16:53:01 1 46.97 0.00 2.02 0.60 0.10 50.30 18:15:49 16:53:01 2 46.21 0.00 1.44 0.99 0.10 51.26 18:15:49 16:53:01 3 44.94 0.00 1.51 0.37 0.12 53.07 18:15:49 16:54:01 all 30.49 0.00 1.19 2.06 0.14 66.13 18:15:49 16:54:01 0 30.10 0.00 0.79 2.51 0.13 66.46 18:15:49 16:54:01 1 30.89 0.00 1.29 3.12 0.18 64.52 18:15:49 16:54:01 2 29.33 0.00 1.44 0.05 0.12 69.06 18:15:49 16:54:01 3 31.63 0.00 1.22 2.56 0.12 64.48 18:15:49 16:55:01 all 44.95 0.00 1.79 0.64 0.11 52.51 18:15:49 16:55:01 0 46.91 0.00 1.86 0.69 0.12 50.43 18:15:49 16:55:01 1 44.81 0.00 1.82 0.40 0.13 52.84 18:15:49 16:55:01 2 44.46 0.00 1.47 0.02 0.10 53.95 18:15:49 16:55:01 3 43.61 0.00 2.01 1.46 0.10 52.83 18:15:49 16:56:01 all 8.63 0.00 0.55 0.05 0.11 90.65 18:15:49 16:56:01 0 9.01 0.00 0.56 0.05 0.12 90.26 18:15:49 16:56:01 1 8.58 0.00 0.43 0.00 0.10 90.89 18:15:49 16:56:01 2 8.50 0.00 0.60 0.02 0.10 90.78 18:15:49 16:56:01 3 8.44 0.00 0.60 0.15 0.12 90.69 18:15:49 16:57:01 all 27.10 0.00 1.09 0.33 0.10 71.38 18:15:49 16:57:01 0 24.70 0.00 1.06 0.10 0.10 74.04 18:15:49 16:57:01 1 26.93 0.00 0.92 0.03 0.10 72.02 18:15:49 16:57:01 2 28.37 0.00 1.29 0.29 0.10 69.95 18:15:49 16:57:01 3 28.41 0.00 1.09 0.92 0.10 69.48 18:15:49 16:58:01 all 29.69 0.00 1.15 0.60 0.10 68.46 18:15:49 16:58:01 0 27.40 0.00 1.22 0.12 0.10 71.17 18:15:49 16:58:01 1 29.46 0.00 1.30 0.05 0.12 69.07 18:15:49 16:58:01 2 30.84 0.00 1.17 0.43 0.08 67.47 18:15:49 16:58:01 3 31.10 0.00 0.92 1.80 0.08 66.09 18:15:49 16:59:01 all 3.32 0.00 0.33 0.06 0.08 96.20 18:15:49 16:59:01 0 4.75 0.00 0.36 0.17 0.10 94.62 18:15:49 16:59:01 1 2.45 0.00 0.32 0.02 0.07 97.15 18:15:49 16:59:01 2 3.06 0.00 0.33 0.00 0.08 96.52 18:15:49 16:59:01 3 2.98 0.00 0.32 0.07 0.08 96.55 18:15:49 17:00:01 all 34.89 0.00 1.03 0.55 0.09 63.44 18:15:49 17:00:01 0 36.71 0.00 1.04 1.87 0.12 60.26 18:15:49 17:00:01 1 32.97 0.00 1.18 0.02 0.08 65.75 18:15:49 17:00:01 2 32.65 0.00 1.01 0.10 0.08 66.16 18:15:49 17:00:01 3 37.21 0.00 0.90 0.20 0.08 61.61 18:15:49 17:01:01 all 32.37 0.00 1.06 0.44 0.10 66.03 18:15:49 17:01:01 0 33.06 0.00 1.00 0.07 0.08 65.79 18:15:49 17:01:01 1 32.27 0.00 1.19 0.18 0.08 66.28 18:15:49 17:01:01 2 31.73 0.00 1.23 1.34 0.12 65.58 18:15:49 17:01:01 3 32.42 0.00 0.82 0.18 0.10 66.48 18:15:49 17:02:01 all 29.63 0.00 1.01 0.10 0.08 69.18 18:15:49 17:02:01 0 25.09 0.00 1.18 0.05 0.08 73.60 18:15:49 17:02:01 1 30.41 0.00 1.07 0.17 0.08 68.28 18:15:49 17:02:01 2 32.01 0.00 0.90 0.17 0.08 66.83 18:15:49 17:02:01 3 31.00 0.00 0.90 0.00 0.08 68.01 18:15:49 18:15:49 17:02:01 CPU %user %nice %system %iowait %steal %idle 18:15:49 17:03:01 all 13.30 0.00 0.50 0.58 0.09 85.53 18:15:49 17:03:01 0 12.71 0.00 0.40 0.02 0.10 86.78 18:15:49 17:03:01 1 13.29 0.00 0.50 0.42 0.10 85.70 18:15:49 17:03:01 2 13.44 0.00 0.65 1.87 0.08 83.96 18:15:49 17:03:01 3 13.79 0.00 0.45 0.00 0.08 85.68 18:15:49 17:04:01 all 45.82 0.00 1.44 0.30 0.10 52.33 18:15:49 17:04:01 0 44.10 0.00 1.54 0.00 0.12 54.24 18:15:49 17:04:01 1 44.52 0.00 1.04 0.03 0.12 54.29 18:15:49 17:04:01 2 46.40 0.00 1.29 0.77 0.10 51.44 18:15:49 17:04:01 3 48.24 0.00 1.91 0.40 0.08 49.36 18:15:49 17:05:01 all 9.80 0.00 0.40 0.01 0.08 89.70 18:15:49 17:05:01 0 9.99 0.00 0.45 0.00 0.08 89.48 18:15:49 17:05:01 1 9.64 0.00 0.40 0.02 0.08 89.86 18:15:49 17:05:01 2 9.72 0.00 0.42 0.03 0.08 89.75 18:15:49 17:05:01 3 9.87 0.00 0.34 0.00 0.07 89.73 18:15:49 17:06:01 all 5.29 0.00 0.27 0.03 0.09 94.32 18:15:49 17:06:01 0 5.55 0.00 0.32 0.00 0.10 94.03 18:15:49 17:06:01 1 5.38 0.00 0.27 0.03 0.12 94.20 18:15:49 17:06:01 2 5.02 0.00 0.23 0.07 0.08 94.60 18:15:49 17:06:01 3 5.21 0.00 0.27 0.00 0.07 94.46 18:15:49 17:07:01 all 43.39 0.00 1.78 0.22 0.12 54.49 18:15:49 17:07:01 0 45.15 0.00 2.67 0.03 0.15 52.00 18:15:49 17:07:01 1 40.78 0.00 1.37 0.37 0.10 57.38 18:15:49 17:07:01 2 44.16 0.00 1.85 0.47 0.10 53.42 18:15:49 17:07:01 3 43.47 0.00 1.24 0.02 0.13 55.14 18:15:49 17:08:01 all 19.62 0.00 0.63 0.18 0.08 79.49 18:15:49 17:08:01 0 20.30 0.00 0.65 0.05 0.08 78.91 18:15:49 17:08:01 1 19.07 0.00 0.58 0.05 0.08 80.22 18:15:49 17:08:01 2 19.31 0.00 0.72 0.63 0.08 79.26 18:15:49 17:08:01 3 19.79 0.00 0.57 0.00 0.08 79.56 18:15:49 17:09:01 all 3.60 0.00 0.25 0.04 0.07 96.04 18:15:49 17:09:01 0 5.14 0.00 0.43 0.00 0.10 94.33 18:15:49 17:09:01 1 3.01 0.00 0.17 0.00 0.07 96.76 18:15:49 17:09:01 2 2.87 0.00 0.20 0.15 0.07 96.71 18:15:49 17:09:01 3 3.34 0.00 0.22 0.00 0.07 96.38 18:15:49 17:10:01 all 3.00 0.00 0.28 0.20 0.11 96.42 18:15:49 17:10:01 0 3.07 0.00 0.27 0.22 0.12 96.33 18:15:49 17:10:01 1 3.00 0.00 0.30 0.00 0.12 96.58 18:15:49 17:10:01 2 2.66 0.00 0.22 0.59 0.10 96.43 18:15:49 17:10:01 3 3.25 0.00 0.32 0.00 0.12 96.31 18:15:49 17:11:01 all 3.08 0.00 0.27 0.30 0.07 96.29 18:15:49 17:11:01 0 2.70 0.00 0.20 0.15 0.05 96.90 18:15:49 17:11:01 1 3.39 0.00 0.35 0.00 0.07 96.19 18:15:49 17:11:01 2 2.88 0.00 0.17 1.02 0.08 95.85 18:15:49 17:11:01 3 3.34 0.00 0.37 0.02 0.07 96.21 18:15:49 17:12:01 all 2.57 0.00 0.46 0.29 0.12 96.55 18:15:49 17:12:01 0 1.97 0.00 0.52 0.38 0.10 97.03 18:15:49 17:12:01 1 3.17 0.00 0.48 0.00 0.13 96.21 18:15:49 17:12:01 2 2.63 0.00 0.55 0.79 0.17 95.87 18:15:49 17:12:01 3 2.52 0.00 0.30 0.00 0.08 97.10 18:15:49 17:13:01 all 2.28 0.00 0.32 0.05 0.09 97.25 18:15:49 17:13:01 0 2.33 0.00 0.30 0.00 0.07 97.30 18:15:49 17:13:01 1 2.36 0.00 0.22 0.03 0.10 97.29 18:15:49 17:13:01 2 2.56 0.00 0.52 0.18 0.12 96.62 18:15:49 17:13:01 3 1.89 0.00 0.23 0.00 0.08 97.79 18:15:49 18:15:49 17:13:01 CPU %user %nice %system %iowait %steal %idle 18:15:49 17:14:01 all 2.15 0.00 0.31 0.10 0.05 97.38 18:15:49 17:14:01 0 1.77 0.00 0.28 0.00 0.05 97.90 18:15:49 17:14:01 1 2.27 0.00 0.35 0.17 0.07 97.14 18:15:49 17:14:01 2 2.79 0.00 0.40 0.23 0.07 96.50 18:15:49 17:14:01 3 1.77 0.00 0.22 0.00 0.03 97.98 18:15:49 17:15:01 all 1.52 0.00 0.28 0.09 0.09 98.02 18:15:49 17:15:01 0 1.29 0.00 0.35 0.02 0.08 98.26 18:15:49 17:15:01 1 1.30 0.00 0.18 0.00 0.07 98.45 18:15:49 17:15:01 2 1.17 0.00 0.35 0.35 0.08 98.04 18:15:49 17:15:01 3 2.31 0.00 0.23 0.00 0.12 97.34 18:15:49 17:16:01 all 0.65 0.00 0.25 0.10 0.09 98.91 18:15:49 17:16:01 0 0.37 0.00 0.22 0.12 0.08 99.21 18:15:49 17:16:01 1 0.95 0.00 0.23 0.00 0.08 98.73 18:15:49 17:16:01 2 0.70 0.00 0.30 0.10 0.10 98.80 18:15:49 17:16:01 3 0.59 0.00 0.23 0.20 0.08 98.89 18:15:49 17:17:01 all 0.67 0.00 0.23 0.02 0.07 99.01 18:15:49 17:17:01 0 1.02 0.00 0.12 0.02 0.05 98.80 18:15:49 17:17:01 1 0.55 0.00 0.18 0.00 0.05 99.22 18:15:49 17:17:01 2 0.52 0.00 0.32 0.05 0.10 99.01 18:15:49 17:17:01 3 0.60 0.00 0.32 0.00 0.07 99.02 18:15:49 17:18:01 all 31.25 0.00 1.22 0.10 0.09 67.34 18:15:49 17:18:01 0 32.88 0.00 1.37 0.02 0.10 65.63 18:15:49 17:18:01 1 30.28 0.00 1.36 0.28 0.07 68.01 18:15:49 17:18:01 2 30.05 0.00 1.04 0.08 0.10 68.73 18:15:49 17:18:01 3 31.79 0.00 1.12 0.03 0.08 66.97 18:15:49 17:19:01 all 28.43 0.00 0.88 0.26 0.09 70.34 18:15:49 17:19:01 0 29.48 0.00 0.77 0.00 0.07 69.68 18:15:49 17:19:01 1 28.13 0.00 0.68 0.00 0.10 71.09 18:15:49 17:19:01 2 28.57 0.00 1.07 0.60 0.10 69.65 18:15:49 17:19:01 3 27.52 0.00 0.99 0.45 0.10 70.94 18:15:49 17:20:01 all 6.24 0.00 0.32 0.01 0.10 93.33 18:15:49 17:20:01 0 6.98 0.00 0.28 0.00 0.07 92.68 18:15:49 17:20:01 1 6.03 0.00 0.43 0.00 0.10 93.44 18:15:49 17:20:01 2 6.01 0.00 0.28 0.03 0.12 93.56 18:15:49 17:20:01 3 5.96 0.00 0.28 0.00 0.10 93.66 18:15:49 17:21:01 all 4.67 0.00 0.27 0.01 0.08 94.97 18:15:49 17:21:01 0 4.33 0.00 0.25 0.00 0.08 95.34 18:15:49 17:21:01 1 4.33 0.00 0.33 0.02 0.08 95.23 18:15:49 17:21:01 2 4.95 0.00 0.27 0.02 0.08 94.69 18:15:49 17:21:01 3 5.06 0.00 0.23 0.00 0.07 94.64 18:15:49 17:22:01 all 3.03 0.00 0.24 0.03 0.09 96.61 18:15:49 17:22:01 0 2.42 0.00 0.23 0.00 0.10 97.24 18:15:49 17:22:01 1 2.71 0.00 0.23 0.10 0.08 96.87 18:15:49 17:22:01 2 2.97 0.00 0.25 0.03 0.08 96.66 18:15:49 17:22:01 3 4.02 0.00 0.23 0.00 0.08 95.67 18:15:49 17:23:01 all 2.91 0.00 0.29 0.02 0.07 96.71 18:15:49 17:23:01 0 2.52 0.00 0.27 0.00 0.07 97.14 18:15:49 17:23:01 1 2.91 0.00 0.32 0.00 0.08 96.69 18:15:49 17:23:01 2 2.28 0.00 0.28 0.07 0.07 97.30 18:15:49 17:23:01 3 3.92 0.00 0.28 0.00 0.07 95.73 18:15:49 17:24:01 all 2.89 0.00 0.25 0.01 0.06 96.79 18:15:49 17:24:01 0 2.68 0.00 0.20 0.00 0.07 97.05 18:15:49 17:24:01 1 2.65 0.00 0.30 0.02 0.07 96.96 18:15:49 17:24:01 2 3.55 0.00 0.27 0.03 0.07 96.09 18:15:49 17:24:01 3 2.66 0.00 0.23 0.00 0.05 97.06 18:15:49 18:15:49 17:24:01 CPU %user %nice %system %iowait %steal %idle 18:15:49 17:25:01 all 4.89 0.00 0.33 0.04 0.06 94.68 18:15:49 17:25:01 0 4.78 0.00 0.32 0.00 0.07 94.83 18:15:49 17:25:01 1 4.51 0.00 0.45 0.02 0.07 94.95 18:15:49 17:25:01 2 5.30 0.00 0.35 0.05 0.07 94.23 18:15:49 17:25:01 3 4.95 0.00 0.20 0.10 0.05 94.70 18:15:49 17:26:01 all 55.24 0.00 2.05 0.31 0.10 42.30 18:15:49 17:26:01 0 58.80 0.00 2.82 0.45 0.10 37.82 18:15:49 17:26:01 1 54.90 0.00 1.82 0.17 0.10 43.00 18:15:49 17:26:01 2 50.41 0.00 1.99 0.20 0.12 47.28 18:15:49 17:26:01 3 56.86 0.00 1.57 0.43 0.08 41.05 18:15:49 17:27:01 all 12.78 0.00 0.46 0.02 0.07 86.66 18:15:49 17:27:01 0 12.07 0.00 0.50 0.00 0.05 87.37 18:15:49 17:27:01 1 14.17 0.00 0.44 0.00 0.08 85.30 18:15:49 17:27:01 2 12.22 0.00 0.40 0.05 0.07 87.26 18:15:49 17:27:01 3 12.64 0.00 0.50 0.02 0.10 86.74 18:15:49 17:28:01 all 8.87 0.00 0.39 0.03 0.08 90.64 18:15:49 17:28:01 0 8.62 0.00 0.38 0.00 0.08 90.91 18:15:49 17:28:01 1 9.25 0.00 0.30 0.05 0.10 90.30 18:15:49 17:28:01 2 8.59 0.00 0.53 0.05 0.07 90.76 18:15:49 17:28:01 3 9.00 0.00 0.35 0.00 0.07 90.58 18:15:49 17:29:01 all 4.82 0.00 0.42 0.01 0.07 94.68 18:15:49 17:29:01 0 5.48 0.00 0.43 0.02 0.07 94.00 18:15:49 17:29:01 1 4.26 0.00 0.50 0.00 0.07 95.18 18:15:49 17:29:01 2 4.56 0.00 0.38 0.03 0.07 94.95 18:15:49 17:29:01 3 4.99 0.00 0.37 0.00 0.07 94.58 18:15:49 17:30:01 all 3.35 0.00 0.34 0.01 0.06 96.23 18:15:49 17:30:01 0 3.61 0.00 0.40 0.02 0.05 95.93 18:15:49 17:30:01 1 3.27 0.00 0.18 0.02 0.07 96.46 18:15:49 17:30:01 2 3.27 0.00 0.34 0.02 0.07 96.31 18:15:49 17:30:01 3 3.27 0.00 0.43 0.00 0.07 96.23 18:15:49 17:31:01 all 3.76 0.00 0.35 0.01 0.07 95.80 18:15:49 17:31:01 0 4.71 0.00 0.44 0.05 0.07 94.73 18:15:49 17:31:01 1 3.19 0.00 0.30 0.00 0.05 96.46 18:15:49 17:31:01 2 3.63 0.00 0.30 0.00 0.08 95.98 18:15:49 17:31:01 3 3.51 0.00 0.35 0.00 0.08 96.06 18:15:49 17:32:01 all 2.70 0.00 0.32 0.01 0.06 96.90 18:15:49 17:32:01 0 2.20 0.00 0.33 0.05 0.07 97.35 18:15:49 17:32:01 1 4.10 0.00 0.23 0.00 0.05 95.62 18:15:49 17:32:01 2 2.20 0.00 0.25 0.00 0.05 97.50 18:15:49 17:32:01 3 2.29 0.00 0.47 0.00 0.08 97.16 18:15:49 17:33:01 all 2.50 0.00 0.35 0.01 0.08 97.06 18:15:49 17:33:01 0 2.56 0.00 0.54 0.03 0.10 96.77 18:15:49 17:33:01 1 2.85 0.00 0.30 0.00 0.07 96.78 18:15:49 17:33:01 2 2.24 0.00 0.30 0.00 0.08 97.38 18:15:49 17:33:01 3 2.34 0.00 0.28 0.00 0.07 97.31 18:15:49 17:34:01 all 45.02 0.00 1.83 0.03 0.10 53.03 18:15:49 17:34:01 0 43.13 0.00 2.25 0.07 0.08 54.46 18:15:49 17:34:01 1 46.73 0.00 1.58 0.00 0.10 51.59 18:15:49 17:34:01 2 44.82 0.00 1.59 0.03 0.10 53.46 18:15:49 17:34:01 3 45.39 0.00 1.89 0.02 0.10 52.60 18:15:49 17:35:01 all 23.58 0.00 0.68 0.23 0.08 75.42 18:15:49 17:35:01 0 23.59 0.00 0.97 0.60 0.07 74.77 18:15:49 17:35:01 1 23.75 0.00 0.67 0.13 0.10 75.34 18:15:49 17:35:01 2 22.33 0.00 0.52 0.17 0.08 76.90 18:15:49 17:35:01 3 24.66 0.00 0.55 0.03 0.08 74.66 18:15:49 18:15:49 17:35:01 CPU %user %nice %system %iowait %steal %idle 18:15:49 17:36:01 all 8.73 0.00 0.29 0.01 0.08 90.89 18:15:49 17:36:01 0 8.88 0.00 0.25 0.05 0.08 90.73 18:15:49 17:36:01 1 9.15 0.00 0.30 0.00 0.07 90.48 18:15:49 17:36:01 2 8.36 0.00 0.30 0.00 0.08 91.25 18:15:49 17:36:01 3 8.53 0.00 0.32 0.00 0.07 91.08 18:15:49 17:37:01 all 4.27 0.00 0.20 0.01 0.06 95.46 18:15:49 17:37:01 0 4.99 0.00 0.24 0.05 0.07 94.66 18:15:49 17:37:01 1 3.81 0.00 0.15 0.00 0.07 95.97 18:15:49 17:37:01 2 3.99 0.00 0.22 0.00 0.05 95.75 18:15:49 17:37:01 3 4.30 0.00 0.18 0.00 0.07 95.45 18:15:49 17:38:01 all 3.86 0.00 0.23 0.01 0.07 95.83 18:15:49 17:38:01 0 3.54 0.00 0.23 0.03 0.07 96.13 18:15:49 17:38:01 1 3.19 0.00 0.23 0.00 0.07 96.51 18:15:49 17:38:01 2 5.10 0.00 0.23 0.00 0.08 94.58 18:15:49 17:38:01 3 3.61 0.00 0.20 0.00 0.07 96.12 18:15:49 17:39:01 all 2.13 0.00 0.20 0.01 0.07 97.60 18:15:49 17:39:01 0 1.91 0.00 0.15 0.03 0.07 97.84 18:15:49 17:39:01 1 1.65 0.00 0.29 0.00 0.08 97.98 18:15:49 17:39:01 2 2.26 0.00 0.23 0.00 0.08 97.42 18:15:49 17:39:01 3 2.68 0.00 0.12 0.00 0.05 97.15 18:15:49 17:40:01 all 1.34 0.00 0.18 0.01 0.08 98.39 18:15:49 17:40:01 0 1.32 0.00 0.22 0.05 0.10 98.31 18:15:49 17:40:01 1 1.13 0.00 0.17 0.00 0.07 98.64 18:15:49 17:40:01 2 1.27 0.00 0.20 0.00 0.08 98.44 18:15:49 17:40:01 3 1.64 0.00 0.12 0.00 0.08 98.16 18:15:49 17:41:01 all 2.93 0.00 0.20 0.01 0.08 96.79 18:15:49 17:41:01 0 3.01 0.00 0.17 0.03 0.07 96.72 18:15:49 17:41:01 1 2.82 0.00 0.24 0.00 0.12 96.82 18:15:49 17:41:01 2 2.92 0.00 0.15 0.00 0.07 96.87 18:15:49 17:41:01 3 2.97 0.00 0.23 0.00 0.07 96.73 18:15:49 17:42:01 all 1.19 0.00 0.16 0.01 0.08 98.57 18:15:49 17:42:01 0 1.01 0.00 0.20 0.05 0.08 98.65 18:15:49 17:42:01 1 1.34 0.00 0.17 0.00 0.10 98.39 18:15:49 17:42:01 2 1.07 0.00 0.10 0.00 0.05 98.78 18:15:49 17:42:01 3 1.32 0.00 0.15 0.00 0.08 98.44 18:15:49 17:43:01 all 3.17 0.00 0.20 0.01 0.08 96.54 18:15:49 17:43:01 0 2.69 0.00 0.22 0.03 0.07 96.99 18:15:49 17:43:01 1 4.17 0.00 0.23 0.02 0.08 95.49 18:15:49 17:43:01 2 2.68 0.00 0.15 0.00 0.10 97.07 18:15:49 17:43:01 3 3.12 0.00 0.22 0.00 0.07 96.60 18:15:49 17:44:01 all 38.61 0.00 1.71 0.30 0.10 59.29 18:15:49 17:44:01 0 35.18 0.00 2.01 0.57 0.08 62.16 18:15:49 17:44:01 1 35.09 0.00 1.78 0.34 0.12 62.68 18:15:49 17:44:01 2 38.12 0.00 1.56 0.13 0.08 60.10 18:15:49 17:44:01 3 46.04 0.00 1.48 0.15 0.12 52.22 18:15:49 17:45:01 all 26.22 0.00 0.78 0.46 0.10 72.44 18:15:49 17:45:01 0 25.15 0.00 0.84 0.86 0.12 73.04 18:15:49 17:45:01 1 25.51 0.00 0.65 0.57 0.08 73.18 18:15:49 17:45:01 2 26.87 0.00 1.00 0.40 0.10 71.62 18:15:49 17:45:01 3 27.34 0.00 0.64 0.00 0.10 71.92 18:15:49 17:46:01 all 4.91 0.00 0.40 0.02 0.08 94.59 18:15:49 17:46:01 0 4.28 0.00 0.42 0.03 0.07 95.20 18:15:49 17:46:01 1 4.98 0.00 0.40 0.03 0.10 94.48 18:15:49 17:46:01 2 5.00 0.00 0.32 0.00 0.07 94.62 18:15:49 17:46:01 3 5.39 0.00 0.45 0.00 0.08 94.08 18:15:49 18:15:49 17:46:01 CPU %user %nice %system %iowait %steal %idle 18:15:49 17:47:01 all 53.94 0.00 1.60 0.26 0.11 44.09 18:15:49 17:47:01 0 55.36 0.00 2.29 0.18 0.10 42.06 18:15:49 17:47:01 1 54.87 0.00 1.24 0.07 0.12 43.71 18:15:49 17:47:01 2 49.92 0.00 1.31 0.33 0.12 48.33 18:15:49 17:47:01 3 55.60 0.00 1.58 0.44 0.12 42.27 18:15:49 17:48:01 all 4.54 0.00 0.30 0.02 0.08 95.06 18:15:49 17:48:01 0 4.76 0.00 0.20 0.00 0.05 94.99 18:15:49 17:48:01 1 4.01 0.00 0.35 0.03 0.10 95.51 18:15:49 17:48:01 2 3.66 0.00 0.37 0.00 0.10 95.87 18:15:49 17:48:01 3 5.74 0.00 0.28 0.03 0.08 93.86 18:15:49 17:49:01 all 3.37 0.00 0.30 0.01 0.08 96.25 18:15:49 17:49:01 0 4.01 0.00 0.20 0.00 0.07 95.73 18:15:49 17:49:01 1 2.87 0.00 0.30 0.02 0.10 96.71 18:15:49 17:49:01 2 3.24 0.00 0.47 0.00 0.08 96.21 18:15:49 17:49:01 3 3.34 0.00 0.23 0.02 0.07 96.34 18:15:49 17:50:01 all 2.55 0.00 0.25 0.02 0.09 97.09 18:15:49 17:50:01 0 3.94 0.00 0.25 0.00 0.08 95.73 18:15:49 17:50:01 1 1.72 0.00 0.27 0.00 0.07 97.95 18:15:49 17:50:01 2 2.27 0.00 0.20 0.03 0.10 97.39 18:15:49 17:50:01 3 2.25 0.00 0.30 0.03 0.12 97.30 18:15:49 17:51:01 all 2.22 0.00 0.24 0.00 0.09 97.44 18:15:49 17:51:01 0 3.77 0.00 0.28 0.00 0.10 95.86 18:15:49 17:51:01 1 1.77 0.00 0.25 0.00 0.10 97.88 18:15:49 17:51:01 2 1.77 0.00 0.22 0.00 0.07 97.95 18:15:49 17:51:01 3 1.57 0.00 0.22 0.02 0.08 98.11 18:15:49 17:52:02 all 4.13 0.00 0.31 0.01 0.10 95.46 18:15:49 17:52:02 0 4.23 0.00 0.33 0.00 0.08 95.35 18:15:49 17:52:02 1 4.09 0.00 0.35 0.02 0.10 95.44 18:15:49 17:52:02 2 3.77 0.00 0.30 0.00 0.08 95.84 18:15:49 17:52:02 3 4.41 0.00 0.23 0.02 0.12 95.22 18:15:49 17:53:01 all 2.56 0.00 0.25 0.01 0.09 97.09 18:15:49 17:53:01 0 2.76 0.00 0.32 0.00 0.12 96.80 18:15:49 17:53:01 1 2.26 0.00 0.27 0.02 0.09 97.36 18:15:49 17:53:01 2 2.70 0.00 0.17 0.00 0.05 97.08 18:15:49 17:53:01 3 2.52 0.00 0.24 0.02 0.10 97.13 18:15:49 17:54:01 all 49.96 0.00 1.66 0.34 0.10 47.94 18:15:49 17:54:01 0 52.02 0.00 1.69 0.00 0.08 46.21 18:15:49 17:54:01 1 44.98 0.00 1.61 0.15 0.10 53.16 18:15:49 17:54:01 2 52.92 0.00 2.00 0.42 0.10 44.56 18:15:49 17:54:01 3 49.92 0.00 1.34 0.80 0.10 47.83 18:15:49 17:55:01 all 14.84 0.00 0.55 0.02 0.09 84.50 18:15:49 17:55:01 0 15.15 0.00 0.50 0.00 0.08 84.26 18:15:49 17:55:01 1 14.00 0.00 0.47 0.00 0.10 85.43 18:15:49 17:55:01 2 15.15 0.00 0.55 0.00 0.08 84.21 18:15:49 17:55:01 3 15.04 0.00 0.67 0.08 0.10 84.10 18:15:49 17:56:01 all 10.41 0.00 0.43 0.03 0.10 89.03 18:15:49 17:56:01 0 10.52 0.00 0.47 0.03 0.10 88.87 18:15:49 17:56:01 1 9.95 0.00 0.45 0.00 0.08 89.52 18:15:49 17:56:01 2 10.39 0.00 0.40 0.00 0.10 89.11 18:15:49 17:56:01 3 10.80 0.00 0.42 0.07 0.12 88.60 18:15:49 17:57:01 all 3.64 0.00 0.26 0.01 0.08 96.01 18:15:49 17:57:01 0 4.55 0.00 0.23 0.02 0.08 95.11 18:15:49 17:57:01 1 3.45 0.00 0.23 0.00 0.08 96.24 18:15:49 17:57:01 2 3.48 0.00 0.27 0.00 0.08 96.16 18:15:49 17:57:01 3 3.09 0.00 0.30 0.03 0.07 96.51 18:15:49 18:15:49 17:57:01 CPU %user %nice %system %iowait %steal %idle 18:15:49 17:58:01 all 2.43 0.00 0.29 0.03 0.09 97.16 18:15:49 17:58:01 0 2.46 0.00 0.27 0.02 0.07 97.19 18:15:49 17:58:01 1 2.57 0.00 0.40 0.10 0.10 96.82 18:15:49 17:58:01 2 2.34 0.00 0.25 0.00 0.10 97.31 18:15:49 17:58:01 3 2.34 0.00 0.23 0.02 0.08 97.33 18:15:49 17:59:01 all 0.33 0.00 0.18 0.00 0.09 99.39 18:15:49 17:59:01 0 0.12 0.00 0.08 0.00 0.07 99.73 18:15:49 17:59:01 1 0.74 0.00 0.38 0.00 0.10 98.78 18:15:49 17:59:01 2 0.12 0.00 0.10 0.00 0.07 99.72 18:15:49 17:59:01 3 0.35 0.00 0.17 0.02 0.12 99.35 18:15:49 18:00:01 all 0.54 0.00 0.18 0.01 0.08 99.19 18:15:49 18:00:01 0 0.79 0.00 0.17 0.00 0.08 98.96 18:15:49 18:00:01 1 0.43 0.00 0.30 0.03 0.10 99.13 18:15:49 18:00:01 2 0.22 0.00 0.15 0.00 0.07 99.57 18:15:49 18:00:01 3 0.73 0.00 0.08 0.02 0.07 99.10 18:15:49 18:01:01 all 40.37 0.00 1.74 0.27 0.09 57.54 18:15:49 18:01:01 0 43.58 0.00 1.68 0.05 0.08 54.61 18:15:49 18:01:01 1 35.63 0.00 1.86 0.27 0.10 62.14 18:15:49 18:01:01 2 43.49 0.00 1.86 0.12 0.10 54.44 18:15:49 18:01:01 3 38.80 0.00 1.55 0.63 0.07 58.95 18:15:49 18:02:01 all 57.49 0.00 1.85 0.49 0.10 40.07 18:15:49 18:02:01 0 58.10 0.00 1.37 0.22 0.12 40.19 18:15:49 18:02:01 1 57.06 0.00 1.81 0.35 0.08 40.70 18:15:49 18:02:01 2 53.12 0.00 1.95 0.55 0.10 44.27 18:15:49 18:02:01 3 61.66 0.00 2.25 0.85 0.10 35.14 18:15:49 18:03:01 all 16.97 0.00 0.64 0.20 0.09 82.10 18:15:49 18:03:01 0 15.85 0.00 0.60 0.34 0.08 83.13 18:15:49 18:03:01 1 18.12 0.00 0.60 0.28 0.10 80.89 18:15:49 18:03:01 2 17.24 0.00 0.65 0.13 0.08 81.89 18:15:49 18:03:01 3 16.68 0.00 0.70 0.03 0.08 82.50 18:15:49 18:04:01 all 10.98 0.00 0.76 0.10 0.08 88.08 18:15:49 18:04:01 0 11.07 0.00 0.82 0.08 0.07 87.96 18:15:49 18:04:01 1 10.62 0.00 0.67 0.02 0.10 88.59 18:15:49 18:04:01 2 11.06 0.00 0.89 0.15 0.08 87.82 18:15:49 18:04:01 3 11.19 0.00 0.65 0.13 0.07 87.96 18:15:49 18:05:01 all 64.10 0.00 2.05 0.30 0.11 33.44 18:15:49 18:05:01 0 64.57 0.00 1.73 0.73 0.10 32.87 18:15:49 18:05:01 1 61.00 0.00 2.57 0.03 0.10 36.29 18:15:49 18:05:01 2 66.94 0.00 1.97 0.02 0.12 30.96 18:15:49 18:05:01 3 63.90 0.00 1.94 0.40 0.12 33.64 18:15:49 18:06:01 all 14.21 0.00 0.45 0.03 0.09 85.22 18:15:49 18:06:01 0 14.66 0.00 0.41 0.10 0.10 84.73 18:15:49 18:06:01 1 13.94 0.00 0.50 0.00 0.10 85.46 18:15:49 18:06:01 2 14.77 0.00 0.45 0.00 0.08 84.69 18:15:49 18:06:01 3 13.46 0.00 0.43 0.02 0.08 86.01 18:15:49 18:07:01 all 2.52 0.00 0.30 0.01 0.09 97.08 18:15:49 18:07:01 0 2.66 0.00 0.37 0.03 0.10 96.84 18:15:49 18:07:01 1 2.63 0.00 0.25 0.00 0.08 97.03 18:15:49 18:07:01 2 2.35 0.00 0.28 0.02 0.08 97.27 18:15:49 18:07:01 3 2.44 0.00 0.28 0.00 0.08 97.20 18:15:49 18:08:01 all 4.32 0.00 0.30 0.02 0.08 95.28 18:15:49 18:08:01 0 3.95 0.00 0.25 0.07 0.07 95.67 18:15:49 18:08:01 1 3.99 0.00 0.30 0.00 0.08 95.62 18:15:49 18:08:01 2 5.13 0.00 0.35 0.00 0.08 94.43 18:15:49 18:08:01 3 4.20 0.00 0.32 0.00 0.08 95.40 18:15:49 18:15:49 18:08:01 CPU %user %nice %system %iowait %steal %idle 18:15:49 18:09:01 all 40.10 0.00 1.47 0.05 0.09 58.28 18:15:49 18:09:01 0 36.06 0.00 1.39 0.13 0.10 62.31 18:15:49 18:09:01 1 40.95 0.00 1.83 0.03 0.08 57.10 18:15:49 18:09:01 2 42.13 0.00 1.49 0.02 0.10 56.27 18:15:49 18:09:01 3 41.25 0.00 1.20 0.02 0.08 57.45 18:15:49 18:10:01 all 36.54 0.00 1.46 0.27 0.10 61.63 18:15:49 18:10:01 0 35.43 0.00 1.34 0.55 0.10 62.58 18:15:49 18:10:01 1 37.72 0.00 1.04 0.05 0.12 61.07 18:15:49 18:10:01 2 36.68 0.00 1.28 0.45 0.10 61.48 18:15:49 18:10:01 3 36.32 0.00 2.17 0.02 0.10 61.39 18:15:49 18:11:01 all 2.15 0.00 0.28 0.02 0.09 97.47 18:15:49 18:11:01 0 3.39 0.00 0.18 0.03 0.08 96.32 18:15:49 18:11:01 1 1.73 0.00 0.28 0.02 0.08 97.88 18:15:49 18:11:01 2 1.90 0.00 0.30 0.02 0.10 97.69 18:15:49 18:11:01 3 1.57 0.00 0.35 0.00 0.08 98.00 18:15:49 18:12:01 all 2.62 0.00 0.25 0.02 0.07 97.04 18:15:49 18:12:01 0 3.40 0.00 0.22 0.02 0.08 96.29 18:15:49 18:12:01 1 2.25 0.00 0.40 0.00 0.08 97.26 18:15:49 18:12:01 2 3.03 0.00 0.20 0.05 0.07 96.66 18:15:49 18:12:01 3 1.80 0.00 0.18 0.00 0.07 97.95 18:15:49 18:13:01 all 4.47 0.00 0.42 0.02 0.07 95.02 18:15:49 18:13:01 0 5.77 0.00 0.44 0.02 0.08 93.68 18:15:49 18:13:01 1 4.43 0.00 0.62 0.05 0.08 94.82 18:15:49 18:13:01 2 3.74 0.00 0.33 0.02 0.07 95.85 18:15:49 18:13:01 3 3.90 0.00 0.27 0.00 0.07 95.76 18:15:49 18:14:01 all 64.62 0.00 1.94 0.30 0.09 33.05 18:15:49 18:14:01 0 60.91 0.00 1.97 0.67 0.10 36.35 18:15:49 18:14:01 1 62.93 0.00 1.53 0.10 0.10 35.33 18:15:49 18:14:01 2 69.01 0.00 2.16 0.27 0.08 28.48 18:15:49 18:14:01 3 65.61 0.00 2.09 0.18 0.08 32.03 18:15:49 18:15:01 all 8.42 0.00 0.44 0.02 0.09 91.03 18:15:49 18:15:01 0 8.49 0.00 0.40 0.03 0.08 91.00 18:15:49 18:15:01 1 8.65 0.00 0.49 0.00 0.08 90.77 18:15:49 18:15:01 2 7.94 0.00 0.38 0.07 0.08 91.53 18:15:49 18:15:01 3 8.61 0.00 0.47 0.00 0.10 90.83 18:15:49 Average: all 19.40 0.12 0.93 0.56 0.09 78.90 18:15:49 Average: 0 19.28 0.11 0.93 0.70 0.09 78.90 18:15:49 Average: 1 18.95 0.13 0.93 0.48 0.09 79.40 18:15:49 Average: 2 19.29 0.12 0.94 0.50 0.09 79.07 18:15:49 Average: 3 20.06 0.13 0.94 0.54 0.09 78.25 18:15:49 18:15:49 18:15:49