08:07:42 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/113874 08:07:42 Running as SYSTEM 08:07:42 [EnvInject] - Loading node environment variables. 08:07:42 Building remotely on prd-ubuntu2004-docker-4c-16g-40485 (ubuntu2004-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 08:07:44 [ssh-agent] Looking for ssh-agent implementation... 08:07:44 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 08:07:44 $ ssh-agent 08:07:44 SSH_AUTH_SOCK=/tmp/ssh-zwF7QvbGhBr2/agent.12713 08:07:44 SSH_AGENT_PID=12716 08:07:44 [ssh-agent] Started. 08:07:44 Running ssh-add (command line suppressed) 08:07:44 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_8939601707135829008.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_8939601707135829008.key) 08:07:45 [ssh-agent] Using credentials jenkins (jenkins-ssh) 08:07:45 The recommended git tool is: NONE 08:07:47 using credential jenkins-ssh 08:07:47 Wiping out workspace first. 08:07:47 Cloning the remote Git repository 08:07:47 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 08:07:47 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 08:07:47 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 08:07:47 > git --version # timeout=10 08:07:47 > git --version # 'git version 2.25.1' 08:07:47 using GIT_SSH to set credentials jenkins-ssh 08:07:47 Verifying host key using known hosts file 08:07:47 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 08:07:47 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 08:07:50 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 08:07:50 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 08:07:51 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 08:07:51 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 08:07:51 using GIT_SSH to set credentials jenkins-ssh 08:07:51 Verifying host key using known hosts file 08:07:51 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 08:07:51 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/74/113874/2 # timeout=10 08:07:51 > git rev-parse 16114b20a871e5d2852a406449ee563b43722624^{commit} # timeout=10 08:07:51 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 08:07:51 Checking out Revision 16114b20a871e5d2852a406449ee563b43722624 (refs/changes/74/113874/2) 08:07:51 > git config core.sparsecheckout # timeout=10 08:07:51 > git checkout -f 16114b20a871e5d2852a406449ee563b43722624 # timeout=10 08:07:54 Commit message: "Correct bugs handling spectrum constraint" 08:07:54 > git rev-parse FETCH_HEAD^{commit} # timeout=10 08:07:54 > git rev-list --no-walk ee77c94d73171d4eb7a8f85abdfd387dc14ffd3a # timeout=10 08:07:54 > git remote # timeout=10 08:07:54 > git submodule init # timeout=10 08:07:54 > git submodule sync # timeout=10 08:07:54 > git config --get remote.origin.url # timeout=10 08:07:54 > git submodule init # timeout=10 08:07:54 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 08:07:54 ERROR: No submodules found. 08:07:55 provisioning config files... 08:07:55 copy managed file [npmrc] to file:/home/jenkins/.npmrc 08:07:55 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 08:07:55 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8068043725560107339.sh 08:07:55 ---> python-tools-install.sh 08:07:55 Setup pyenv: 08:07:55 * system (set by /opt/pyenv/version) 08:07:55 * 3.8.13 (set by /opt/pyenv/version) 08:07:55 * 3.9.13 (set by /opt/pyenv/version) 08:07:55 * 3.10.13 (set by /opt/pyenv/version) 08:07:55 * 3.11.7 (set by /opt/pyenv/version) 08:07:59 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-u5HY 08:07:59 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 08:08:02 lf-activate-venv(): INFO: Installing: lftools 08:08:35 lf-activate-venv(): INFO: Adding /tmp/venv-u5HY/bin to PATH 08:08:35 Generating Requirements File 08:08:55 Python 3.11.7 08:08:55 pip 24.2 from /tmp/venv-u5HY/lib/python3.11/site-packages/pip (python 3.11) 08:08:56 appdirs==1.4.4 08:08:56 argcomplete==3.5.1 08:08:56 aspy.yaml==1.3.0 08:08:56 attrs==24.2.0 08:08:56 autopage==0.5.2 08:08:56 beautifulsoup4==4.12.3 08:08:56 boto3==1.35.35 08:08:56 botocore==1.35.35 08:08:56 bs4==0.0.2 08:08:56 cachetools==5.5.0 08:08:56 certifi==2024.8.30 08:08:56 cffi==1.17.1 08:08:56 cfgv==3.4.0 08:08:56 chardet==5.2.0 08:08:56 charset-normalizer==3.3.2 08:08:56 click==8.1.7 08:08:56 cliff==4.7.0 08:08:56 cmd2==2.4.3 08:08:56 cryptography==3.3.2 08:08:56 debtcollector==3.0.0 08:08:56 decorator==5.1.1 08:08:56 defusedxml==0.7.1 08:08:56 Deprecated==1.2.14 08:08:56 distlib==0.3.8 08:08:56 dnspython==2.7.0 08:08:56 docker==4.2.2 08:08:56 dogpile.cache==1.3.3 08:08:56 durationpy==0.9 08:08:56 email_validator==2.2.0 08:08:56 filelock==3.16.1 08:08:56 future==1.0.0 08:08:56 gitdb==4.0.11 08:08:56 GitPython==3.1.43 08:08:56 google-auth==2.35.0 08:08:56 httplib2==0.22.0 08:08:56 identify==2.6.1 08:08:56 idna==3.10 08:08:56 importlib-resources==1.5.0 08:08:56 iso8601==2.1.0 08:08:56 Jinja2==3.1.4 08:08:56 jmespath==1.0.1 08:08:56 jsonpatch==1.33 08:08:56 jsonpointer==3.0.0 08:08:56 jsonschema==4.23.0 08:08:56 jsonschema-specifications==2023.12.1 08:08:56 keystoneauth1==5.8.0 08:08:56 kubernetes==31.0.0 08:08:56 lftools==0.37.10 08:08:56 lxml==5.3.0 08:08:56 MarkupSafe==3.0.0 08:08:56 msgpack==1.1.0 08:08:56 multi_key_dict==2.0.3 08:08:56 munch==4.0.0 08:08:56 netaddr==1.3.0 08:08:56 netifaces==0.11.0 08:08:56 niet==1.4.2 08:08:56 nodeenv==1.9.1 08:08:56 oauth2client==4.1.3 08:08:56 oauthlib==3.2.2 08:08:56 openstacksdk==4.0.0 08:08:56 os-client-config==2.1.0 08:08:56 os-service-types==1.7.0 08:08:56 osc-lib==3.1.0 08:08:56 oslo.config==9.6.0 08:08:56 oslo.context==5.6.0 08:08:56 oslo.i18n==6.4.0 08:08:56 oslo.log==6.1.2 08:08:56 oslo.serialization==5.5.0 08:08:56 oslo.utils==7.3.0 08:08:56 packaging==24.1 08:08:56 pbr==6.1.0 08:08:56 platformdirs==4.3.6 08:08:56 prettytable==3.11.0 08:08:56 pyasn1==0.6.1 08:08:56 pyasn1_modules==0.4.1 08:08:56 pycparser==2.22 08:08:56 pygerrit2==2.0.15 08:08:56 PyGithub==2.4.0 08:08:56 PyJWT==2.9.0 08:08:56 PyNaCl==1.5.0 08:08:56 pyparsing==2.4.7 08:08:56 pyperclip==1.9.0 08:08:56 pyrsistent==0.20.0 08:08:56 python-cinderclient==9.6.0 08:08:56 python-dateutil==2.9.0.post0 08:08:56 python-heatclient==4.0.0 08:08:56 python-jenkins==1.8.2 08:08:56 python-keystoneclient==5.5.0 08:08:56 python-magnumclient==4.7.0 08:08:56 python-openstackclient==7.1.2 08:08:56 python-swiftclient==4.6.0 08:08:56 PyYAML==6.0.2 08:08:56 referencing==0.35.1 08:08:56 requests==2.32.3 08:08:56 requests-oauthlib==2.0.0 08:08:56 requestsexceptions==1.4.0 08:08:56 rfc3986==2.0.0 08:08:56 rpds-py==0.20.0 08:08:56 rsa==4.9 08:08:56 ruamel.yaml==0.18.6 08:08:56 ruamel.yaml.clib==0.2.8 08:08:56 s3transfer==0.10.2 08:08:56 simplejson==3.19.3 08:08:56 six==1.16.0 08:08:56 smmap==5.0.1 08:08:56 soupsieve==2.6 08:08:56 stevedore==5.3.0 08:08:56 tabulate==0.9.0 08:08:56 toml==0.10.2 08:08:56 tomlkit==0.13.2 08:08:56 tqdm==4.66.5 08:08:56 typing_extensions==4.12.2 08:08:56 tzdata==2024.2 08:08:56 urllib3==1.26.20 08:08:56 virtualenv==20.26.6 08:08:56 wcwidth==0.2.13 08:08:56 websocket-client==1.8.0 08:08:56 wrapt==1.16.0 08:08:56 xdg==6.0.0 08:08:56 xmltodict==0.13.0 08:08:56 yq==3.4.3 08:08:56 [EnvInject] - Injecting environment variables from a build step. 08:08:56 [EnvInject] - Injecting as environment variables the properties content 08:08:56 PYTHON=python3 08:08:56 08:08:56 [EnvInject] - Variables injected successfully. 08:08:56 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins7044163503179443524.sh 08:08:56 ---> tox-install.sh 08:08:56 + source /home/jenkins/lf-env.sh 08:08:56 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 08:08:56 ++ mktemp -d /tmp/venv-XXXX 08:08:56 + lf_venv=/tmp/venv-sqF5 08:08:56 + local venv_file=/tmp/.os_lf_venv 08:08:56 + local python=python3 08:08:56 + local options 08:08:56 + local set_path=true 08:08:56 + local install_args= 08:08:56 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 08:08:56 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 08:08:56 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 08:08:56 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 08:08:56 + true 08:08:56 + case $1 in 08:08:56 + venv_file=/tmp/.toxenv 08:08:56 + shift 2 08:08:56 + true 08:08:56 + case $1 in 08:08:56 + shift 08:08:56 + break 08:08:56 + case $python in 08:08:56 + local pkg_list= 08:08:56 + [[ -d /opt/pyenv ]] 08:08:56 + echo 'Setup pyenv:' 08:08:56 Setup pyenv: 08:08:56 + export PYENV_ROOT=/opt/pyenv 08:08:56 + PYENV_ROOT=/opt/pyenv 08:08:56 + export PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:08:56 + PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:08:56 + pyenv versions 08:08:56 system 08:08:56 3.8.13 08:08:56 3.9.13 08:08:56 3.10.13 08:08:56 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 08:08:56 + command -v pyenv 08:08:56 ++ pyenv init - --no-rehash 08:08:56 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 08:08:56 for i in ${!paths[@]}; do 08:08:56 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 08:08:56 fi; done; 08:08:56 echo "${paths[*]}"'\'')" 08:08:56 export PATH="/opt/pyenv/shims:${PATH}" 08:08:56 export PYENV_SHELL=bash 08:08:56 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 08:08:56 pyenv() { 08:08:56 local command 08:08:56 command="${1:-}" 08:08:56 if [ "$#" -gt 0 ]; then 08:08:56 shift 08:08:56 fi 08:08:56 08:08:56 case "$command" in 08:08:56 rehash|shell) 08:08:56 eval "$(pyenv "sh-$command" "$@")" 08:08:56 ;; 08:08:56 *) 08:08:56 command pyenv "$command" "$@" 08:08:56 ;; 08:08:56 esac 08:08:56 }' 08:08:56 +++ bash --norc -ec 'IFS=:; paths=($PATH); 08:08:56 for i in ${!paths[@]}; do 08:08:56 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 08:08:56 fi; done; 08:08:56 echo "${paths[*]}"' 08:08:56 ++ PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:08:56 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:08:56 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:08:56 ++ export PYENV_SHELL=bash 08:08:56 ++ PYENV_SHELL=bash 08:08:56 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 08:08:56 +++ complete -F _pyenv pyenv 08:08:56 ++ lf-pyver python3 08:08:56 ++ local py_version_xy=python3 08:08:56 ++ local py_version_xyz= 08:08:56 ++ pyenv versions 08:08:56 ++ local command 08:08:56 ++ command=versions 08:08:56 ++ '[' 1 -gt 0 ']' 08:08:56 ++ shift 08:08:56 ++ case "$command" in 08:08:56 ++ command pyenv versions 08:08:56 ++ pyenv versions 08:08:56 ++ sed 's/^[ *]* //' 08:08:56 ++ awk '{ print $1 }' 08:08:56 ++ grep -E '^[0-9.]*[0-9]$' 08:08:56 ++ [[ ! -s /tmp/.pyenv_versions ]] 08:08:56 +++ grep '^3' /tmp/.pyenv_versions 08:08:56 +++ sort -V 08:08:56 +++ tail -n 1 08:08:56 ++ py_version_xyz=3.11.7 08:08:56 ++ [[ -z 3.11.7 ]] 08:08:56 ++ echo 3.11.7 08:08:56 ++ return 0 08:08:56 + pyenv local 3.11.7 08:08:56 + local command 08:08:56 + command=local 08:08:56 + '[' 2 -gt 0 ']' 08:08:56 + shift 08:08:56 + case "$command" in 08:08:56 + command pyenv local 3.11.7 08:08:56 + pyenv local 3.11.7 08:08:56 + for arg in "$@" 08:08:56 + case $arg in 08:08:56 + pkg_list+='tox ' 08:08:56 + for arg in "$@" 08:08:56 + case $arg in 08:08:56 + pkg_list+='virtualenv ' 08:08:56 + for arg in "$@" 08:08:56 + case $arg in 08:08:56 + pkg_list+='urllib3~=1.26.15 ' 08:08:56 + [[ -f /tmp/.toxenv ]] 08:08:56 + [[ ! -f /tmp/.toxenv ]] 08:08:56 + [[ -n '' ]] 08:08:56 + python3 -m venv /tmp/venv-sqF5 08:09:00 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-sqF5' 08:09:00 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-sqF5 08:09:00 + echo /tmp/venv-sqF5 08:09:00 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 08:09:00 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 08:09:00 + /tmp/venv-sqF5/bin/python3 -m pip install --upgrade --quiet pip virtualenv 08:09:03 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 08:09:03 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 08:09:03 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 08:09:03 + /tmp/venv-sqF5/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 08:09:06 + type python3 08:09:06 + true 08:09:06 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-sqF5/bin to PATH' 08:09:06 lf-activate-venv(): INFO: Adding /tmp/venv-sqF5/bin to PATH 08:09:06 + PATH=/tmp/venv-sqF5/bin:/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:06 + return 0 08:09:06 + python3 --version 08:09:06 Python 3.11.7 08:09:06 + python3 -m pip --version 08:09:06 pip 24.2 from /tmp/venv-sqF5/lib/python3.11/site-packages/pip (python 3.11) 08:09:06 + python3 -m pip freeze 08:09:06 cachetools==5.5.0 08:09:06 chardet==5.2.0 08:09:06 colorama==0.4.6 08:09:06 distlib==0.3.8 08:09:06 filelock==3.16.1 08:09:06 packaging==24.1 08:09:06 platformdirs==4.3.6 08:09:06 pluggy==1.5.0 08:09:06 pyproject-api==1.8.0 08:09:06 tox==4.21.2 08:09:06 urllib3==1.26.20 08:09:06 virtualenv==20.26.6 08:09:06 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins4798720309770119382.sh 08:09:06 [EnvInject] - Injecting environment variables from a build step. 08:09:06 [EnvInject] - Injecting as environment variables the properties content 08:09:06 PARALLEL=True 08:09:06 08:09:06 [EnvInject] - Variables injected successfully. 08:09:06 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins4803543225196244662.sh 08:09:06 ---> tox-run.sh 08:09:06 + PATH=/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:06 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 08:09:06 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 08:09:06 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 08:09:06 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 08:09:06 + source /home/jenkins/lf-env.sh 08:09:06 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 08:09:06 ++ mktemp -d /tmp/venv-XXXX 08:09:06 + lf_venv=/tmp/venv-yiwY 08:09:06 + local venv_file=/tmp/.os_lf_venv 08:09:06 + local python=python3 08:09:06 + local options 08:09:06 + local set_path=true 08:09:06 + local install_args= 08:09:06 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 08:09:06 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 08:09:06 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 08:09:06 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 08:09:06 + true 08:09:06 + case $1 in 08:09:06 + venv_file=/tmp/.toxenv 08:09:06 + shift 2 08:09:06 + true 08:09:06 + case $1 in 08:09:06 + shift 08:09:06 + break 08:09:06 + case $python in 08:09:06 + local pkg_list= 08:09:06 + [[ -d /opt/pyenv ]] 08:09:06 + echo 'Setup pyenv:' 08:09:06 Setup pyenv: 08:09:06 + export PYENV_ROOT=/opt/pyenv 08:09:06 + PYENV_ROOT=/opt/pyenv 08:09:06 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:06 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:06 + pyenv versions 08:09:06 system 08:09:06 3.8.13 08:09:06 3.9.13 08:09:06 3.10.13 08:09:06 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 08:09:06 + command -v pyenv 08:09:06 ++ pyenv init - --no-rehash 08:09:06 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 08:09:06 for i in ${!paths[@]}; do 08:09:06 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 08:09:06 fi; done; 08:09:06 echo "${paths[*]}"'\'')" 08:09:06 export PATH="/opt/pyenv/shims:${PATH}" 08:09:06 export PYENV_SHELL=bash 08:09:06 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 08:09:06 pyenv() { 08:09:06 local command 08:09:06 command="${1:-}" 08:09:06 if [ "$#" -gt 0 ]; then 08:09:06 shift 08:09:06 fi 08:09:06 08:09:06 case "$command" in 08:09:06 rehash|shell) 08:09:06 eval "$(pyenv "sh-$command" "$@")" 08:09:06 ;; 08:09:06 *) 08:09:06 command pyenv "$command" "$@" 08:09:06 ;; 08:09:06 esac 08:09:06 }' 08:09:06 +++ bash --norc -ec 'IFS=:; paths=($PATH); 08:09:06 for i in ${!paths[@]}; do 08:09:06 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 08:09:06 fi; done; 08:09:06 echo "${paths[*]}"' 08:09:06 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:06 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:06 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:06 ++ export PYENV_SHELL=bash 08:09:06 ++ PYENV_SHELL=bash 08:09:06 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 08:09:06 +++ complete -F _pyenv pyenv 08:09:06 ++ lf-pyver python3 08:09:06 ++ local py_version_xy=python3 08:09:06 ++ local py_version_xyz= 08:09:06 ++ pyenv versions 08:09:06 ++ local command 08:09:06 ++ command=versions 08:09:06 ++ '[' 1 -gt 0 ']' 08:09:06 ++ shift 08:09:06 ++ case "$command" in 08:09:06 ++ sed 's/^[ *]* //' 08:09:06 ++ command pyenv versions 08:09:06 ++ pyenv versions 08:09:06 ++ grep -E '^[0-9.]*[0-9]$' 08:09:06 ++ awk '{ print $1 }' 08:09:07 ++ [[ ! -s /tmp/.pyenv_versions ]] 08:09:07 +++ grep '^3' /tmp/.pyenv_versions 08:09:07 +++ sort -V 08:09:07 +++ tail -n 1 08:09:07 ++ py_version_xyz=3.11.7 08:09:07 ++ [[ -z 3.11.7 ]] 08:09:07 ++ echo 3.11.7 08:09:07 ++ return 0 08:09:07 + pyenv local 3.11.7 08:09:07 + local command 08:09:07 + command=local 08:09:07 + '[' 2 -gt 0 ']' 08:09:07 + shift 08:09:07 + case "$command" in 08:09:07 + command pyenv local 3.11.7 08:09:07 + pyenv local 3.11.7 08:09:07 + for arg in "$@" 08:09:07 + case $arg in 08:09:07 + pkg_list+='tox ' 08:09:07 + for arg in "$@" 08:09:07 + case $arg in 08:09:07 + pkg_list+='virtualenv ' 08:09:07 + for arg in "$@" 08:09:07 + case $arg in 08:09:07 + pkg_list+='urllib3~=1.26.15 ' 08:09:07 + [[ -f /tmp/.toxenv ]] 08:09:07 ++ cat /tmp/.toxenv 08:09:07 + lf_venv=/tmp/venv-sqF5 08:09:07 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-sqF5 from' file:/tmp/.toxenv 08:09:07 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-sqF5 from file:/tmp/.toxenv 08:09:07 + /tmp/venv-sqF5/bin/python3 -m pip install --upgrade --quiet pip virtualenv 08:09:07 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 08:09:07 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 08:09:07 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 08:09:07 + /tmp/venv-sqF5/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 08:09:08 + type python3 08:09:08 + true 08:09:08 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-sqF5/bin to PATH' 08:09:08 lf-activate-venv(): INFO: Adding /tmp/venv-sqF5/bin to PATH 08:09:08 + PATH=/tmp/venv-sqF5/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:08 + return 0 08:09:09 + [[ -d /opt/pyenv ]] 08:09:09 + echo '---> Setting up pyenv' 08:09:09 ---> Setting up pyenv 08:09:09 + export PYENV_ROOT=/opt/pyenv 08:09:09 + PYENV_ROOT=/opt/pyenv 08:09:09 + export PATH=/opt/pyenv/bin:/tmp/venv-sqF5/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:09 + PATH=/opt/pyenv/bin:/tmp/venv-sqF5/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 08:09:09 ++ pwd 08:09:09 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 08:09:09 + export PYTHONPATH 08:09:09 + export TOX_TESTENV_PASSENV=PYTHONPATH 08:09:09 + TOX_TESTENV_PASSENV=PYTHONPATH 08:09:09 + tox --version 08:09:09 4.21.2 from /tmp/venv-sqF5/lib/python3.11/site-packages/tox/__init__.py 08:09:09 + PARALLEL=True 08:09:09 + TOX_OPTIONS_LIST= 08:09:09 + [[ -n '' ]] 08:09:09 + case ${PARALLEL,,} in 08:09:09 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 08:09:09 + tox --parallel auto --parallel-live 08:09:09 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 08:09:10 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:09:10 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 08:09:10 checkbashisms: freeze> python -m pip freeze --all 08:09:10 docs: install_deps> python -I -m pip install -r docs/requirements.txt 08:09:11 checkbashisms: pip==24.2,setuptools==75.1.0,wheel==0.44.0 08:09:11 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 08:09:11 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 08:09:11 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 08:09:12 script ./reflectwarn.sh does not appear to have a #! interpreter line; 08:09:12 you may get strange results 08:09:12 checkbashisms: OK ✔ in 2.96 seconds 08:09:12 pre-commit: install_deps> python -I -m pip install pre-commit 08:09:15 pre-commit: freeze> python -m pip freeze --all 08:09:15 pre-commit: cfgv==3.4.0,distlib==0.3.8,filelock==3.16.1,identify==2.6.1,nodeenv==1.9.1,pip==24.2,platformdirs==4.3.6,pre_commit==4.0.0,PyYAML==6.0.2,setuptools==75.1.0,virtualenv==20.26.6,wheel==0.44.0 08:09:15 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 08:09:15 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 08:09:15 /usr/bin/cpan 08:09:15 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 08:09:15 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 08:09:15 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 08:09:15 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 08:09:15 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 08:09:15 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 08:09:16 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 08:09:16 buildcontroller: freeze> python -m pip freeze --all 08:09:17 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 08:09:17 buildcontroller: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:09:17 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 08:09:17 + update-java-alternatives -l 08:09:17 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 08:09:17 java-1.12.0-openjdk-amd64 1211 /usr/lib/jvm/java-1.12.0-openjdk-amd64 08:09:17 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 08:09:17 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 08:09:17 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64 08:09:17 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 08:09:17 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 08:09:17 + java -version 08:09:17 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 08:09:17 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 08:09:17 21 08:09:17 + JAVA_VER=21 08:09:17 + echo 21 08:09:17 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 08:09:17 + javac -version 08:09:18 + JAVAC_VER=21 08:09:18 + echo 21 08:09:18 21 08:09:18 ok, java is 21 or newer 08:09:18 + [ 21 -ge 21 ] 08:09:18 + [ 21 -ge 21 ] 08:09:18 + echo ok, java is 21 or newer 08:09:18 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz -P /tmp 08:09:18 2024-10-08 08:09:18 URL:https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz [9083702/9083702] -> "/tmp/apache-maven-3.9.8-bin.tar.gz" [1] 08:09:18 + sudo mkdir -p /opt 08:09:18 + sudo tar xf /tmp/apache-maven-3.9.8-bin.tar.gz -C /opt 08:09:18 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 08:09:18 [INFO] Once installed this environment will be reused. 08:09:18 [INFO] This may take a few minutes... 08:09:18 + sudo ln -s /opt/apache-maven-3.9.8 /opt/maven 08:09:18 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 08:09:18 + mvn --version 08:09:18 Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) 08:09:18 Maven home: /opt/maven 08:09:18 Java version: 21.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 08:09:18 Default locale: en, platform encoding: UTF-8 08:09:18 OS name: "linux", version: "5.4.0-190-generic", arch: "amd64", family: "unix" 08:09:19 NOTE: Picked up JDK_JAVA_OPTIONS: 08:09:19 --add-opens=java.base/java.io=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.lang=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.net=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.nio=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.util=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:09:19 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:09:19 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:09:19 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:09:19 -Xlog:disable 08:09:23 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 08:09:23 [INFO] Once installed this environment will be reused. 08:09:23 [INFO] This may take a few minutes... 08:09:28 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 08:09:28 [INFO] Once installed this environment will be reused. 08:09:28 [INFO] This may take a few minutes... 08:09:32 [INFO] Installing environment for https://github.com/perltidy/perltidy. 08:09:32 [INFO] Once installed this environment will be reused. 08:09:32 [INFO] This may take a few minutes... 08:09:37 docs: freeze> python -m pip freeze --all 08:09:37 docs-linkcheck: freeze> python -m pip freeze --all 08:09:37 docs: alabaster==1.0.0,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.3.2,contourpy==1.3.0,cycler==0.12.1,docutils==0.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.0,matplotlib==3.9.2,numpy==2.1.2,nwdiag==3.0.0,packaging==24.1,pillow==10.4.0,pip==24.2,Pygments==2.18.0,pyparsing==3.1.4,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==75.1.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==8.0.2,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.0,sphinx-tabs==3.4.5,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.2.3,webcolors==24.8.0,wheel==0.44.0 08:09:37 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 08:09:38 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.3.2,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.0,matplotlib==3.9.2,numpy==2.1.2,nwdiag==3.0.0,packaging==24.1,pillow==10.4.0,pip==24.2,Pygments==2.18.0,pyparsing==3.1.4,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==75.1.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==8.0.2,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.0,sphinx-tabs==3.4.5,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.2.3,webcolors==24.8.0,wheel==0.44.0 08:09:38 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 08:09:40 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/lib/python3.11/site-packages/sphinx_tabs/tabs.py:335: RemovedInSphinx90Warning: The str interface for _JavaScript objects is deprecated. Use js.filename instead. 08:09:40 if path.suffix == ".js" and path.as_posix() in context["script_files"]: 08:09:40 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/lib/python3.11/site-packages/sphinx_tabs/tabs.py:336: RemovedInSphinx90Warning: The str interface for _JavaScript objects is deprecated. Use js.filename instead. 08:09:40 context["script_files"].remove(path.as_posix()) 08:09:40 docs: OK ✔ in 31.08 seconds 08:09:40 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 08:09:44 trim trailing whitespace.................................................Passed 08:09:44 docs-linkcheck: OK ✔ in 32.27 seconds 08:09:44 pylint: freeze> python -m pip freeze --all 08:09:44 Tabs remover.............................................................Passed 08:09:44 autopep8.................................................................pylint: astroid==3.3.5,dill==0.3.9,isort==5.13.2,mccabe==0.7.0,pip==24.2,platformdirs==4.3.6,pylint==3.3.1,setuptools==75.1.0,tomlkit==0.13.2,wheel==0.44.0 08:09:44 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 08:09:49 Passed 08:09:49 perltidy.................................................................Passed 08:09:49 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 08:09:50 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 08:09:50 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 08:09:50 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 08:09:50 [INFO] Once installed this environment will be reused. 08:09:50 [INFO] This may take a few minutes... 08:09:58 gitlint..................................................................Failed 08:09:58 - hook id: gitlint-ci 08:09:58 - exit code: 2 08:09:58 08:09:58 3: B1 Line exceeds max length (260>72): "When defining customer profiles for spectrum filling (using controller-customization model defined in OpenROADM), the dedicated-signal-bandwidth-multiple is not consider by the controller to set the width of the ROADM connections. This patch corrects the bug :" 08:09:58 4: B1 Line exceeds max length (121>72): "- Bandwidth set in ModelMappingUtils according to the min and max frequencies of path description, if those are provided." 08:09:58 08:09:58 pre-commit: exit 1 (8.57 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual pid=30075 08:10:05 08:10:05 ------------------------------------ 08:10:05 Your code has been rated at 10.00/10 08:10:05 08:10:52 pre-commit: FAIL ✖ in 45.97 seconds 08:10:52 pylint: OK ✔ in 26.28 seconds 08:10:52 buildcontroller: OK ✔ in 1 minute 42.48 seconds 08:10:52 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:10:52 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:10:53 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:10:53 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:10:59 sims: freeze> python -m pip freeze --all 08:10:59 build_karaf_tests221: freeze> python -m pip freeze --all 08:10:59 build_karaf_tests121: freeze> python -m pip freeze --all 08:10:59 sims: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:10:59 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 08:10:59 Using lighynode version 20.1.0.2 08:10:59 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 08:10:59 build_karaf_tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:10:59 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 08:10:59 NOTE: Picked up JDK_JAVA_OPTIONS: 08:10:59 --add-opens=java.base/java.io=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.lang=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.net=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.nio=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.util=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:10:59 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:10:59 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:10:59 -Xlog:disable 08:10:59 build_karaf_tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:10:59 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 08:10:59 NOTE: Picked up JDK_JAVA_OPTIONS: 08:10:59 --add-opens=java.base/java.io=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.lang=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.net=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.nio=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.util=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:10:59 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:10:59 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:10:59 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:10:59 -Xlog:disable 08:11:03 sims: OK ✔ in 11.63 seconds 08:11:03 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:11:21 build_karaf_tests71: freeze> python -m pip freeze --all 08:11:22 build_karaf_tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:11:22 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 08:11:22 NOTE: Picked up JDK_JAVA_OPTIONS: 08:11:22 --add-opens=java.base/java.io=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.lang=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.net=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.nio=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.util=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:11:22 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:11:22 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:11:22 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:11:22 -Xlog:disable 08:11:41 build_karaf_tests221: OK ✔ in 49.09 seconds 08:11:41 build_karaf_tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:11:42 build_karaf_tests121: OK ✔ in 50.07 seconds 08:11:42 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:11:47 build_karaf_tests_hybrid: freeze> python -m pip freeze --all 08:11:47 tests_tapi: freeze> python -m pip freeze --all 08:11:47 build_karaf_tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:11:47 build_karaf_tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 08:11:47 tests_tapi: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:11:47 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 08:11:47 using environment variables from ./karaf221.env 08:11:47 NOTE: Picked up JDK_JAVA_OPTIONS: 08:11:47 --add-opens=java.base/java.io=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.lang=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.net=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.nio=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.nio.file=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.util=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.util.jar=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.util.stream=ALL-UNNAMED 08:11:47 --add-opens=java.base/java.util.zip=ALL-UNNAMED 08:11:47 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 08:11:47 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 08:11:47 -Xlog:disable 08:11:47 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 08:12:25 build_karaf_tests71: OK ✔ in 1 minute 7.57 seconds 08:12:25 testsPCE: freeze> python -m pip freeze --all 08:12:26 testsPCE: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,click==8.1.7,contourpy==1.3.0,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.6,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.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.0,matplotlib==3.9.2,netconf-client==3.1.1,networkx==2.8.8,numpy==1.26.4,packaging==24.1,pandas==1.5.3,paramiko==3.5.0,pbr==5.11.1,pillow==10.4.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pyparsing==3.1.4,pytest==8.3.3,python-dateutil==2.9.0.post0,pytz==2024.2,requests==2.32.3,scipy==1.14.1,setuptools==50.3.2,six==1.16.0,urllib3==2.2.3,Werkzeug==2.0.3,wheel==0.44.0,xlrd==1.2.0 08:12:26 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 08:12:26 pytest -q transportpce_tests/pce/test01_pce.py 08:13:17 .................................................. [100%] 08:14:21 20 passed in 114.52s (0:01:54) 08:14:21 pytest -q transportpce_tests/pce/test02_pce_400G.py 08:14:36 .............. [100%] 08:15:00 9 passed in 38.52s 08:15:00 pytest -q transportpce_tests/pce/test03_gnpy.py 08:15:00 ........... [100%] 08:15:38 8 passed in 37.73s 08:15:38 pytest -q transportpce_tests/pce/test04_pce_bug_fix.py 08:15:40 ........... [100%] 08:16:14 3 passed in 35.49s 08:16:14 build_karaf_tests_hybrid: OK ✔ in 1 minute 2.96 seconds 08:16:14 testsPCE: OK ✔ in 5 minutes 22.28 seconds 08:16:14 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:16:19 tests121: freeze> python -m pip freeze --all 08:16:19 tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:16:19 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 08:16:19 using environment variables from ./karaf121.env 08:16:19 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 08:18:41 .... [100%] 08:18:45 50 passed in 417.82s (0:06:57) 08:18:45 pytest -q transportpce_tests/tapi/test02_full_topology.py 08:19:49 ..FFF.FF.........F........................FF [100%] 08:23:17 =================================== FAILURES =================================== 08:23:17 _____________ TransportPCEtesting.test_12_check_openroadm_topology _____________ 08:23:17 08:23:17 self = 08:23:17 08:23:17 def test_12_check_openroadm_topology(self): 08:23:17 response = test_utils.get_ietf_network_request('openroadm-topology', 'config') 08:23:17 self.assertEqual(response['status_code'], requests.codes.ok) 08:23:17 > self.assertEqual(len(response['network'][0]['node']), 13, 'There should be 13 openroadm nodes') 08:23:17 E AssertionError: 14 != 13 : There should be 13 openroadm nodes 08:23:17 08:23:17 transportpce_tests/tapi/test02_full_topology.py:272: AssertionError 08:23:17 =========================== short test summary info ============================ 08:23:17 FAILED transportpce_tests/tapi/test02_full_topology.py::TransportPCEtesting::test_12_check_openroadm_topology 08:23:17 1 failed, 29 passed in 271.28s (0:04:31) 08:23:17 tests_tapi: exit 1 (689.59 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=30629 08:23:17 tests_tapi: FAIL ✖ in 11 minutes 35.19 seconds 08:23:17 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:23:18 FFFFFFFtests71: freeze> python -m pip freeze --all 08:23:27 tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:23:27 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 08:23:27 [100%] 08:23:27 =================================== FAILURES =================================== 08:23:27 _________ TransportPCEPortMappingTesting.test_02_rdm_device_connected __________ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_02_rdm_device_connected(self): 08:23:27 response = test_utils.check_device_connection("ROADMA01") 08:23:27 > self.assertEqual(response['status_code'], requests.codes.ok) 08:23:27 E AssertionError: 409 != 200 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:54: AssertionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_02_rdm_device_connected 08:23:27 _________ TransportPCEPortMappingTesting.test_03_rdm_portmapping_info __________ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_03_rdm_portmapping_info(self): 08:23:27 response = test_utils.get_portmapping_node_attr("ROADMA01", "node-info", None) 08:23:27 > self.assertEqual(response['status_code'], requests.codes.ok) 08:23:27 E AssertionError: 409 != 200 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:60: AssertionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_03_rdm_portmapping_info 08:23:27 _____ TransportPCEPortMappingTesting.test_04_rdm_portmapping_DEG1_TTP_TXRX _____ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_04_rdm_portmapping_DEG1_TTP_TXRX(self): 08:23:27 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "DEG1-TTP-TXRX") 08:23:27 > self.assertEqual(response['status_code'], requests.codes.ok) 08:23:27 E AssertionError: 409 != 200 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:73: AssertionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_04_rdm_portmapping_DEG1_TTP_TXRX 08:23:27 _____ TransportPCEPortMappingTesting.test_05_rdm_portmapping_SRG1_PP7_TXRX _____ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_05_rdm_portmapping_SRG1_PP7_TXRX(self): 08:23:27 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "SRG1-PP7-TXRX") 08:23:27 > self.assertEqual(response['status_code'], requests.codes.ok) 08:23:27 E AssertionError: 409 != 200 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:82: AssertionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_05_rdm_portmapping_SRG1_PP7_TXRX 08:23:27 _____ TransportPCEPortMappingTesting.test_06_rdm_portmapping_SRG3_PP1_TXRX _____ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_06_rdm_portmapping_SRG3_PP1_TXRX(self): 08:23:27 response = test_utils.get_portmapping_node_attr("ROADMA01", "mapping", "SRG3-PP1-TXRX") 08:23:27 > self.assertEqual(response['status_code'], requests.codes.ok) 08:23:27 E AssertionError: 409 != 200 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:91: AssertionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_06_rdm_portmapping_SRG3_PP1_TXRX 08:23:27 _______ TransportPCEPortMappingTesting.test_13_xpdr_portmapping_CLIENT2 ________ 08:23:27 08:23:27 self = 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT2', query=None, fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:536: in _make_request 08:23:27 response = conn.getresponse() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:507: in getresponse 08:23:27 httplib_response = super().getresponse() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1386: in getresponse 08:23:27 response.begin() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:325: in begin 08:23:27 version, status, reason = self._read_status() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:286: in _read_status 08:23:27 line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 b = 08:23:27 08:23:27 def readinto(self, b): 08:23:27 """Read up to len(b) bytes into the writable buffer *b* and return 08:23:27 the number of bytes read. If the socket is non-blocking and no bytes 08:23:27 are available, None is returned. 08:23:27 08:23:27 If *b* is non-empty, a 0 return value indicates that the connection 08:23:27 was shutdown at the other end. 08:23:27 """ 08:23:27 self._checkClosed() 08:23:27 self._checkReadable() 08:23:27 if self._timeout_occurred: 08:23:27 raise OSError("cannot read from timed out object") 08:23:27 while True: 08:23:27 try: 08:23:27 > return self._sock.recv_into(b) 08:23:27 E ConnectionResetError: [Errno 104] Connection reset by peer 08:23:27 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/socket.py:706: ConnectionResetError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:474: in increment 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/util.py:38: in reraise 08:23:27 raise value.with_traceback(tb) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: in urlopen 08:23:27 response = self._make_request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:536: in _make_request 08:23:27 response = conn.getresponse() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:507: in getresponse 08:23:27 httplib_response = super().getresponse() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1386: in getresponse 08:23:27 response.begin() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:325: in begin 08:23:27 version, status, reason = self._read_status() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:286: in _read_status 08:23:27 line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 b = 08:23:27 08:23:27 def readinto(self, b): 08:23:27 """Read up to len(b) bytes into the writable buffer *b* and return 08:23:27 the number of bytes read. If the socket is non-blocking and no bytes 08:23:27 are available, None is returned. 08:23:27 08:23:27 If *b* is non-empty, a 0 return value indicates that the connection 08:23:27 was shutdown at the other end. 08:23:27 """ 08:23:27 self._checkClosed() 08:23:27 self._checkReadable() 08:23:27 if self._timeout_occurred: 08:23:27 raise OSError("cannot read from timed out object") 08:23:27 while True: 08:23:27 try: 08:23:27 > return self._sock.recv_into(b) 08:23:27 E urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) 08:23:27 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/socket.py:706: ProtocolError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_13_xpdr_portmapping_CLIENT2(self): 08:23:27 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT2") 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:156: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:23:27 response = get_request(target_url) 08:23:27 transportpce_tests/common/test_utils.py:116: in get_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 > raise ConnectionError(err, request=request) 08:23:27 E requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:682: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_13_xpdr_portmapping_CLIENT2 08:23:27 _______ TransportPCEPortMappingTesting.test_14_xpdr_portmapping_CLIENT3 ________ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 > sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:23:27 raise err 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 address = ('localhost', 8182), timeout = 10, source_address = None 08:23:27 socket_options = [(6, 1, 1)] 08:23:27 08:23:27 def create_connection( 08:23:27 address: tuple[str, int], 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 source_address: tuple[str, int] | None = None, 08:23:27 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:23:27 ) -> socket.socket: 08:23:27 """Connect to *address* and return the socket object. 08:23:27 08:23:27 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:23:27 port)``) and return the socket object. Passing the optional 08:23:27 *timeout* parameter will set the timeout on the socket instance 08:23:27 before attempting to connect. If no *timeout* is supplied, the 08:23:27 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:23:27 is used. If *source_address* is set it must be a tuple of (host, port) 08:23:27 for the socket to bind as a source address before making the connection. 08:23:27 An host of '' or port 0 tells the OS to use the default. 08:23:27 """ 08:23:27 08:23:27 host, port = address 08:23:27 if host.startswith("["): 08:23:27 host = host.strip("[]") 08:23:27 err = None 08:23:27 08:23:27 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:23:27 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:23:27 # The original create_connection function always returns all records. 08:23:27 family = allowed_gai_family() 08:23:27 08:23:27 try: 08:23:27 host.encode("idna") 08:23:27 except UnicodeError: 08:23:27 raise LocationParseError(f"'{host}', label empty or too long") from None 08:23:27 08:23:27 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:23:27 af, socktype, proto, canonname, sa = res 08:23:27 sock = None 08:23:27 try: 08:23:27 sock = socket.socket(af, socktype, proto) 08:23:27 08:23:27 # If provided, set socket level options before connecting. 08:23:27 _set_socket_options(sock, socket_options) 08:23:27 08:23:27 if timeout is not _DEFAULT_TIMEOUT: 08:23:27 sock.settimeout(timeout) 08:23:27 if source_address: 08:23:27 sock.bind(source_address) 08:23:27 > sock.connect(sa) 08:23:27 E ConnectionRefusedError: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3', query=None, fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 using environment variables from ./karaf71.env 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:23:27 conn.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:23:27 self.endheaders() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:23:27 self._send_output(message_body, encode_chunked=encode_chunked) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:23:27 self.send(msg) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:23:27 self.connect() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:23:27 self.sock = self._new_conn() 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 except socket.gaierror as e: 08:23:27 raise NameResolutionError(self.host, self, e) from e 08:23:27 except SocketTimeout as e: 08:23:27 raise ConnectTimeoutError( 08:23:27 self, 08:23:27 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:23:27 ) from e 08:23:27 08:23:27 except OSError as e: 08:23:27 > raise NewConnectionError( 08:23:27 self, f"Failed to establish a new connection: {e}" 08:23:27 ) from e 08:23:27 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:23:27 08:23:27 pytest -q transportpce_tests/7.1/test01_portmapping.py 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3' 08:23:27 response = None 08:23:27 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:23:27 _pool = 08:23:27 _stacktrace = 08:23:27 08:23:27 def increment( 08:23:27 self, 08:23:27 method: str | None = None, 08:23:27 url: str | None = None, 08:23:27 response: BaseHTTPResponse | None = None, 08:23:27 error: Exception | None = None, 08:23:27 _pool: ConnectionPool | None = None, 08:23:27 _stacktrace: TracebackType | None = None, 08:23:27 ) -> Self: 08:23:27 """Return a new Retry object with incremented retry counters. 08:23:27 08:23:27 :param response: A response object, or None, if the server did not 08:23:27 return a response. 08:23:27 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:23:27 :param Exception error: An error encountered during the request, or 08:23:27 None if the response was received successfully. 08:23:27 08:23:27 :return: A new ``Retry`` object. 08:23:27 """ 08:23:27 if self.total is False and error: 08:23:27 # Disabled, indicate to re-raise the error. 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 08:23:27 total = self.total 08:23:27 if total is not None: 08:23:27 total -= 1 08:23:27 08:23:27 connect = self.connect 08:23:27 read = self.read 08:23:27 redirect = self.redirect 08:23:27 status_count = self.status 08:23:27 other = self.other 08:23:27 cause = "unknown" 08:23:27 status = None 08:23:27 redirect_location = None 08:23:27 08:23:27 if error and self._is_connection_error(error): 08:23:27 # Connect retry? 08:23:27 if connect is False: 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif connect is not None: 08:23:27 connect -= 1 08:23:27 08:23:27 elif error and self._is_read_error(error): 08:23:27 # Read retry? 08:23:27 if read is False or method is None or not self._is_method_retryable(method): 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif read is not None: 08:23:27 read -= 1 08:23:27 08:23:27 elif error: 08:23:27 # Other retry? 08:23:27 if other is not None: 08:23:27 other -= 1 08:23:27 08:23:27 elif response and response.get_redirect_location(): 08:23:27 # Redirect retry? 08:23:27 if redirect is not None: 08:23:27 redirect -= 1 08:23:27 cause = "too many redirects" 08:23:27 response_redirect_location = response.get_redirect_location() 08:23:27 if response_redirect_location: 08:23:27 redirect_location = response_redirect_location 08:23:27 status = response.status 08:23:27 08:23:27 else: 08:23:27 # Incrementing because of a server error like a 500 in 08:23:27 # status_forcelist and the given method is in the allowed_methods 08:23:27 cause = ResponseError.GENERIC_ERROR 08:23:27 if response and response.status: 08:23:27 if status_count is not None: 08:23:27 status_count -= 1 08:23:27 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:23:27 status = response.status 08:23:27 08:23:27 history = self.history + ( 08:23:27 RequestHistory(method, url, error, status, redirect_location), 08:23:27 ) 08:23:27 08:23:27 new_retry = self.new( 08:23:27 total=total, 08:23:27 connect=connect, 08:23:27 read=read, 08:23:27 redirect=redirect, 08:23:27 status=status_count, 08:23:27 other=other, 08:23:27 history=history, 08:23:27 ) 08:23:27 08:23:27 if new_retry.is_exhausted(): 08:23:27 reason = error or ResponseError(cause) 08:23:27 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:23:27 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_14_xpdr_portmapping_CLIENT3(self): 08:23:27 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT3") 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:168: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:23:27 response = get_request(target_url) 08:23:27 transportpce_tests/common/test_utils.py:116: in get_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 raise ConnectionError(err, request=request) 08:23:27 08:23:27 except MaxRetryError as e: 08:23:27 if isinstance(e.reason, ConnectTimeoutError): 08:23:27 # TODO: Remove this in 3.0.0: see #2811 08:23:27 if not isinstance(e.reason, NewConnectionError): 08:23:27 raise ConnectTimeout(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, ResponseError): 08:23:27 raise RetryError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _ProxyError): 08:23:27 raise ProxyError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _SSLError): 08:23:27 # This branch is for urllib3 v1.22 and later. 08:23:27 raise SSLError(e, request=request) 08:23:27 08:23:27 > raise ConnectionError(e, request=request) 08:23:27 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT3 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_14_xpdr_portmapping_CLIENT3 08:23:27 _______ TransportPCEPortMappingTesting.test_15_xpdr_portmapping_CLIENT4 ________ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 > sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:23:27 raise err 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 address = ('localhost', 8182), timeout = 10, source_address = None 08:23:27 socket_options = [(6, 1, 1)] 08:23:27 08:23:27 def create_connection( 08:23:27 address: tuple[str, int], 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 source_address: tuple[str, int] | None = None, 08:23:27 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:23:27 ) -> socket.socket: 08:23:27 """Connect to *address* and return the socket object. 08:23:27 08:23:27 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:23:27 port)``) and return the socket object. Passing the optional 08:23:27 *timeout* parameter will set the timeout on the socket instance 08:23:27 before attempting to connect. If no *timeout* is supplied, the 08:23:27 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:23:27 is used. If *source_address* is set it must be a tuple of (host, port) 08:23:27 for the socket to bind as a source address before making the connection. 08:23:27 An host of '' or port 0 tells the OS to use the default. 08:23:27 """ 08:23:27 08:23:27 host, port = address 08:23:27 if host.startswith("["): 08:23:27 host = host.strip("[]") 08:23:27 err = None 08:23:27 08:23:27 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:23:27 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:23:27 # The original create_connection function always returns all records. 08:23:27 family = allowed_gai_family() 08:23:27 08:23:27 try: 08:23:27 host.encode("idna") 08:23:27 except UnicodeError: 08:23:27 raise LocationParseError(f"'{host}', label empty or too long") from None 08:23:27 08:23:27 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:23:27 af, socktype, proto, canonname, sa = res 08:23:27 sock = None 08:23:27 try: 08:23:27 sock = socket.socket(af, socktype, proto) 08:23:27 08:23:27 # If provided, set socket level options before connecting. 08:23:27 _set_socket_options(sock, socket_options) 08:23:27 08:23:27 if timeout is not _DEFAULT_TIMEOUT: 08:23:27 sock.settimeout(timeout) 08:23:27 if source_address: 08:23:27 sock.bind(source_address) 08:23:27 > sock.connect(sa) 08:23:27 E ConnectionRefusedError: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4', query=None, fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:23:27 conn.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:23:27 self.endheaders() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:23:27 self._send_output(message_body, encode_chunked=encode_chunked) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:23:27 self.send(msg) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:23:27 self.connect() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:23:27 self.sock = self._new_conn() 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 except socket.gaierror as e: 08:23:27 raise NameResolutionError(self.host, self, e) from e 08:23:27 except SocketTimeout as e: 08:23:27 raise ConnectTimeoutError( 08:23:27 self, 08:23:27 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:23:27 ) from e 08:23:27 08:23:27 except OSError as e: 08:23:27 > raise NewConnectionError( 08:23:27 self, f"Failed to establish a new connection: {e}" 08:23:27 ) from e 08:23:27 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4' 08:23:27 response = None 08:23:27 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:23:27 _pool = 08:23:27 _stacktrace = 08:23:27 08:23:27 def increment( 08:23:27 self, 08:23:27 method: str | None = None, 08:23:27 url: str | None = None, 08:23:27 response: BaseHTTPResponse | None = None, 08:23:27 error: Exception | None = None, 08:23:27 _pool: ConnectionPool | None = None, 08:23:27 _stacktrace: TracebackType | None = None, 08:23:27 ) -> Self: 08:23:27 """Return a new Retry object with incremented retry counters. 08:23:27 08:23:27 :param response: A response object, or None, if the server did not 08:23:27 return a response. 08:23:27 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:23:27 :param Exception error: An error encountered during the request, or 08:23:27 None if the response was received successfully. 08:23:27 08:23:27 :return: A new ``Retry`` object. 08:23:27 """ 08:23:27 if self.total is False and error: 08:23:27 # Disabled, indicate to re-raise the error. 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 08:23:27 total = self.total 08:23:27 if total is not None: 08:23:27 total -= 1 08:23:27 08:23:27 connect = self.connect 08:23:27 read = self.read 08:23:27 redirect = self.redirect 08:23:27 status_count = self.status 08:23:27 other = self.other 08:23:27 cause = "unknown" 08:23:27 status = None 08:23:27 redirect_location = None 08:23:27 08:23:27 if error and self._is_connection_error(error): 08:23:27 # Connect retry? 08:23:27 if connect is False: 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif connect is not None: 08:23:27 connect -= 1 08:23:27 08:23:27 elif error and self._is_read_error(error): 08:23:27 # Read retry? 08:23:27 if read is False or method is None or not self._is_method_retryable(method): 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif read is not None: 08:23:27 read -= 1 08:23:27 08:23:27 elif error: 08:23:27 # Other retry? 08:23:27 if other is not None: 08:23:27 other -= 1 08:23:27 08:23:27 elif response and response.get_redirect_location(): 08:23:27 # Redirect retry? 08:23:27 if redirect is not None: 08:23:27 redirect -= 1 08:23:27 cause = "too many redirects" 08:23:27 response_redirect_location = response.get_redirect_location() 08:23:27 if response_redirect_location: 08:23:27 redirect_location = response_redirect_location 08:23:27 status = response.status 08:23:27 08:23:27 else: 08:23:27 # Incrementing because of a server error like a 500 in 08:23:27 # status_forcelist and the given method is in the allowed_methods 08:23:27 cause = ResponseError.GENERIC_ERROR 08:23:27 if response and response.status: 08:23:27 if status_count is not None: 08:23:27 status_count -= 1 08:23:27 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:23:27 status = response.status 08:23:27 08:23:27 history = self.history + ( 08:23:27 RequestHistory(method, url, error, status, redirect_location), 08:23:27 ) 08:23:27 08:23:27 new_retry = self.new( 08:23:27 total=total, 08:23:27 connect=connect, 08:23:27 read=read, 08:23:27 redirect=redirect, 08:23:27 status=status_count, 08:23:27 other=other, 08:23:27 history=history, 08:23:27 ) 08:23:27 08:23:27 if new_retry.is_exhausted(): 08:23:27 reason = error or ResponseError(cause) 08:23:27 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:23:27 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_15_xpdr_portmapping_CLIENT4(self): 08:23:27 > response = test_utils.get_portmapping_node_attr("XPDRA01", "mapping", "XPDR1-CLIENT4") 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:180: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:23:27 response = get_request(target_url) 08:23:27 transportpce_tests/common/test_utils.py:116: in get_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 raise ConnectionError(err, request=request) 08:23:27 08:23:27 except MaxRetryError as e: 08:23:27 if isinstance(e.reason, ConnectTimeoutError): 08:23:27 # TODO: Remove this in 3.0.0: see #2811 08:23:27 if not isinstance(e.reason, NewConnectionError): 08:23:27 raise ConnectTimeout(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, ResponseError): 08:23:27 raise RetryError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _ProxyError): 08:23:27 raise ProxyError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _SSLError): 08:23:27 # This branch is for urllib3 v1.22 and later. 08:23:27 raise SSLError(e, request=request) 08:23:27 08:23:27 > raise ConnectionError(e, request=request) 08:23:27 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/mapping=XPDR1-CLIENT4 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_15_xpdr_portmapping_CLIENT4 08:23:27 _______ TransportPCEPortMappingTesting.test_16_xpdr_device_disconnection _______ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 > sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:23:27 raise err 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 address = ('localhost', 8182), timeout = 10, source_address = None 08:23:27 socket_options = [(6, 1, 1)] 08:23:27 08:23:27 def create_connection( 08:23:27 address: tuple[str, int], 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 source_address: tuple[str, int] | None = None, 08:23:27 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:23:27 ) -> socket.socket: 08:23:27 """Connect to *address* and return the socket object. 08:23:27 08:23:27 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:23:27 port)``) and return the socket object. Passing the optional 08:23:27 *timeout* parameter will set the timeout on the socket instance 08:23:27 before attempting to connect. If no *timeout* is supplied, the 08:23:27 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:23:27 is used. If *source_address* is set it must be a tuple of (host, port) 08:23:27 for the socket to bind as a source address before making the connection. 08:23:27 An host of '' or port 0 tells the OS to use the default. 08:23:27 """ 08:23:27 08:23:27 host, port = address 08:23:27 if host.startswith("["): 08:23:27 host = host.strip("[]") 08:23:27 err = None 08:23:27 08:23:27 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:23:27 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:23:27 # The original create_connection function always returns all records. 08:23:27 family = allowed_gai_family() 08:23:27 08:23:27 try: 08:23:27 host.encode("idna") 08:23:27 except UnicodeError: 08:23:27 raise LocationParseError(f"'{host}', label empty or too long") from None 08:23:27 08:23:27 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:23:27 af, socktype, proto, canonname, sa = res 08:23:27 sock = None 08:23:27 try: 08:23:27 sock = socket.socket(af, socktype, proto) 08:23:27 08:23:27 # If provided, set socket level options before connecting. 08:23:27 _set_socket_options(sock, socket_options) 08:23:27 08:23:27 if timeout is not _DEFAULT_TIMEOUT: 08:23:27 sock.settimeout(timeout) 08:23:27 if source_address: 08:23:27 sock.bind(source_address) 08:23:27 > sock.connect(sa) 08:23:27 E ConnectionRefusedError: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 method = 'DELETE' 08:23:27 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '0', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01', query=None, fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:23:27 conn.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:23:27 self.endheaders() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:23:27 self._send_output(message_body, encode_chunked=encode_chunked) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:23:27 self.send(msg) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:23:27 self.connect() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:23:27 self.sock = self._new_conn() 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 except socket.gaierror as e: 08:23:27 raise NameResolutionError(self.host, self, e) from e 08:23:27 except SocketTimeout as e: 08:23:27 raise ConnectTimeoutError( 08:23:27 self, 08:23:27 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:23:27 ) from e 08:23:27 08:23:27 except OSError as e: 08:23:27 > raise NewConnectionError( 08:23:27 self, f"Failed to establish a new connection: {e}" 08:23:27 ) from e 08:23:27 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 method = 'DELETE' 08:23:27 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 08:23:27 response = None 08:23:27 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:23:27 _pool = 08:23:27 _stacktrace = 08:23:27 08:23:27 def increment( 08:23:27 self, 08:23:27 method: str | None = None, 08:23:27 url: str | None = None, 08:23:27 response: BaseHTTPResponse | None = None, 08:23:27 error: Exception | None = None, 08:23:27 _pool: ConnectionPool | None = None, 08:23:27 _stacktrace: TracebackType | None = None, 08:23:27 ) -> Self: 08:23:27 """Return a new Retry object with incremented retry counters. 08:23:27 08:23:27 :param response: A response object, or None, if the server did not 08:23:27 return a response. 08:23:27 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:23:27 :param Exception error: An error encountered during the request, or 08:23:27 None if the response was received successfully. 08:23:27 08:23:27 :return: A new ``Retry`` object. 08:23:27 """ 08:23:27 if self.total is False and error: 08:23:27 # Disabled, indicate to re-raise the error. 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 08:23:27 total = self.total 08:23:27 if total is not None: 08:23:27 total -= 1 08:23:27 08:23:27 connect = self.connect 08:23:27 read = self.read 08:23:27 redirect = self.redirect 08:23:27 status_count = self.status 08:23:27 other = self.other 08:23:27 cause = "unknown" 08:23:27 status = None 08:23:27 redirect_location = None 08:23:27 08:23:27 if error and self._is_connection_error(error): 08:23:27 # Connect retry? 08:23:27 if connect is False: 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif connect is not None: 08:23:27 connect -= 1 08:23:27 08:23:27 elif error and self._is_read_error(error): 08:23:27 # Read retry? 08:23:27 if read is False or method is None or not self._is_method_retryable(method): 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif read is not None: 08:23:27 read -= 1 08:23:27 08:23:27 elif error: 08:23:27 # Other retry? 08:23:27 if other is not None: 08:23:27 other -= 1 08:23:27 08:23:27 elif response and response.get_redirect_location(): 08:23:27 # Redirect retry? 08:23:27 if redirect is not None: 08:23:27 redirect -= 1 08:23:27 cause = "too many redirects" 08:23:27 response_redirect_location = response.get_redirect_location() 08:23:27 if response_redirect_location: 08:23:27 redirect_location = response_redirect_location 08:23:27 status = response.status 08:23:27 08:23:27 else: 08:23:27 # Incrementing because of a server error like a 500 in 08:23:27 # status_forcelist and the given method is in the allowed_methods 08:23:27 cause = ResponseError.GENERIC_ERROR 08:23:27 if response and response.status: 08:23:27 if status_count is not None: 08:23:27 status_count -= 1 08:23:27 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:23:27 status = response.status 08:23:27 08:23:27 history = self.history + ( 08:23:27 RequestHistory(method, url, error, status, redirect_location), 08:23:27 ) 08:23:27 08:23:27 new_retry = self.new( 08:23:27 total=total, 08:23:27 connect=connect, 08:23:27 read=read, 08:23:27 redirect=redirect, 08:23:27 status=status_count, 08:23:27 other=other, 08:23:27 history=history, 08:23:27 ) 08:23:27 08:23:27 if new_retry.is_exhausted(): 08:23:27 reason = error or ResponseError(cause) 08:23:27 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:23:27 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_16_xpdr_device_disconnection(self): 08:23:27 > response = test_utils.unmount_device("XPDRA01") 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:191: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:358: in unmount_device 08:23:27 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 08:23:27 transportpce_tests/common/test_utils.py:133: in delete_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 raise ConnectionError(err, request=request) 08:23:27 08:23:27 except MaxRetryError as e: 08:23:27 if isinstance(e.reason, ConnectTimeoutError): 08:23:27 # TODO: Remove this in 3.0.0: see #2811 08:23:27 if not isinstance(e.reason, NewConnectionError): 08:23:27 raise ConnectTimeout(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, ResponseError): 08:23:27 raise RetryError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _ProxyError): 08:23:27 raise ProxyError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _SSLError): 08:23:27 # This branch is for urllib3 v1.22 and later. 08:23:27 raise SSLError(e, request=request) 08:23:27 08:23:27 > raise ConnectionError(e, request=request) 08:23:27 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_16_xpdr_device_disconnection 08:23:27 _______ TransportPCEPortMappingTesting.test_17_xpdr_device_disconnected ________ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 > sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:23:27 raise err 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 address = ('localhost', 8182), timeout = 10, source_address = None 08:23:27 socket_options = [(6, 1, 1)] 08:23:27 08:23:27 def create_connection( 08:23:27 address: tuple[str, int], 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 source_address: tuple[str, int] | None = None, 08:23:27 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:23:27 ) -> socket.socket: 08:23:27 """Connect to *address* and return the socket object. 08:23:27 08:23:27 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:23:27 port)``) and return the socket object. Passing the optional 08:23:27 *timeout* parameter will set the timeout on the socket instance 08:23:27 before attempting to connect. If no *timeout* is supplied, the 08:23:27 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:23:27 is used. If *source_address* is set it must be a tuple of (host, port) 08:23:27 for the socket to bind as a source address before making the connection. 08:23:27 An host of '' or port 0 tells the OS to use the default. 08:23:27 """ 08:23:27 08:23:27 host, port = address 08:23:27 if host.startswith("["): 08:23:27 host = host.strip("[]") 08:23:27 err = None 08:23:27 08:23:27 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:23:27 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:23:27 # The original create_connection function always returns all records. 08:23:27 family = allowed_gai_family() 08:23:27 08:23:27 try: 08:23:27 host.encode("idna") 08:23:27 except UnicodeError: 08:23:27 raise LocationParseError(f"'{host}', label empty or too long") from None 08:23:27 08:23:27 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:23:27 af, socktype, proto, canonname, sa = res 08:23:27 sock = None 08:23:27 try: 08:23:27 sock = socket.socket(af, socktype, proto) 08:23:27 08:23:27 # If provided, set socket level options before connecting. 08:23:27 _set_socket_options(sock, socket_options) 08:23:27 08:23:27 if timeout is not _DEFAULT_TIMEOUT: 08:23:27 sock.settimeout(timeout) 08:23:27 if source_address: 08:23:27 sock.bind(source_address) 08:23:27 > sock.connect(sa) 08:23:27 E ConnectionRefusedError: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01', query='content=nonconfig', fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:23:27 conn.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:23:27 self.endheaders() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:23:27 self._send_output(message_body, encode_chunked=encode_chunked) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:23:27 self.send(msg) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:23:27 self.connect() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:23:27 self.sock = self._new_conn() 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 except socket.gaierror as e: 08:23:27 raise NameResolutionError(self.host, self, e) from e 08:23:27 except SocketTimeout as e: 08:23:27 raise ConnectTimeoutError( 08:23:27 self, 08:23:27 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:23:27 ) from e 08:23:27 08:23:27 except OSError as e: 08:23:27 > raise NewConnectionError( 08:23:27 self, f"Failed to establish a new connection: {e}" 08:23:27 ) from e 08:23:27 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig' 08:23:27 response = None 08:23:27 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:23:27 _pool = 08:23:27 _stacktrace = 08:23:27 08:23:27 def increment( 08:23:27 self, 08:23:27 method: str | None = None, 08:23:27 url: str | None = None, 08:23:27 response: BaseHTTPResponse | None = None, 08:23:27 error: Exception | None = None, 08:23:27 _pool: ConnectionPool | None = None, 08:23:27 _stacktrace: TracebackType | None = None, 08:23:27 ) -> Self: 08:23:27 """Return a new Retry object with incremented retry counters. 08:23:27 08:23:27 :param response: A response object, or None, if the server did not 08:23:27 return a response. 08:23:27 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:23:27 :param Exception error: An error encountered during the request, or 08:23:27 None if the response was received successfully. 08:23:27 08:23:27 :return: A new ``Retry`` object. 08:23:27 """ 08:23:27 if self.total is False and error: 08:23:27 # Disabled, indicate to re-raise the error. 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 08:23:27 total = self.total 08:23:27 if total is not None: 08:23:27 total -= 1 08:23:27 08:23:27 connect = self.connect 08:23:27 read = self.read 08:23:27 redirect = self.redirect 08:23:27 status_count = self.status 08:23:27 other = self.other 08:23:27 cause = "unknown" 08:23:27 status = None 08:23:27 redirect_location = None 08:23:27 08:23:27 if error and self._is_connection_error(error): 08:23:27 # Connect retry? 08:23:27 if connect is False: 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif connect is not None: 08:23:27 connect -= 1 08:23:27 08:23:27 elif error and self._is_read_error(error): 08:23:27 # Read retry? 08:23:27 if read is False or method is None or not self._is_method_retryable(method): 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif read is not None: 08:23:27 read -= 1 08:23:27 08:23:27 elif error: 08:23:27 # Other retry? 08:23:27 if other is not None: 08:23:27 other -= 1 08:23:27 08:23:27 elif response and response.get_redirect_location(): 08:23:27 # Redirect retry? 08:23:27 if redirect is not None: 08:23:27 redirect -= 1 08:23:27 cause = "too many redirects" 08:23:27 response_redirect_location = response.get_redirect_location() 08:23:27 if response_redirect_location: 08:23:27 redirect_location = response_redirect_location 08:23:27 status = response.status 08:23:27 08:23:27 else: 08:23:27 # Incrementing because of a server error like a 500 in 08:23:27 # status_forcelist and the given method is in the allowed_methods 08:23:27 cause = ResponseError.GENERIC_ERROR 08:23:27 if response and response.status: 08:23:27 if status_count is not None: 08:23:27 status_count -= 1 08:23:27 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:23:27 status = response.status 08:23:27 08:23:27 history = self.history + ( 08:23:27 RequestHistory(method, url, error, status, redirect_location), 08:23:27 ) 08:23:27 08:23:27 new_retry = self.new( 08:23:27 total=total, 08:23:27 connect=connect, 08:23:27 read=read, 08:23:27 redirect=redirect, 08:23:27 status=status_count, 08:23:27 other=other, 08:23:27 history=history, 08:23:27 ) 08:23:27 08:23:27 if new_retry.is_exhausted(): 08:23:27 reason = error or ResponseError(cause) 08:23:27 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:23:27 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_17_xpdr_device_disconnected(self): 08:23:27 > response = test_utils.check_device_connection("XPDRA01") 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:195: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:369: in check_device_connection 08:23:27 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 08:23:27 transportpce_tests/common/test_utils.py:116: in get_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 raise ConnectionError(err, request=request) 08:23:27 08:23:27 except MaxRetryError as e: 08:23:27 if isinstance(e.reason, ConnectTimeoutError): 08:23:27 # TODO: Remove this in 3.0.0: see #2811 08:23:27 if not isinstance(e.reason, NewConnectionError): 08:23:27 raise ConnectTimeout(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, ResponseError): 08:23:27 raise RetryError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _ProxyError): 08:23:27 raise ProxyError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _SSLError): 08:23:27 # This branch is for urllib3 v1.22 and later. 08:23:27 raise SSLError(e, request=request) 08:23:27 08:23:27 > raise ConnectionError(e, request=request) 08:23:27 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_17_xpdr_device_disconnected 08:23:27 _______ TransportPCEPortMappingTesting.test_18_xpdr_device_not_connected _______ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 > sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:23:27 raise err 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 address = ('localhost', 8182), timeout = 10, source_address = None 08:23:27 socket_options = [(6, 1, 1)] 08:23:27 08:23:27 def create_connection( 08:23:27 address: tuple[str, int], 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 source_address: tuple[str, int] | None = None, 08:23:27 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:23:27 ) -> socket.socket: 08:23:27 """Connect to *address* and return the socket object. 08:23:27 08:23:27 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:23:27 port)``) and return the socket object. Passing the optional 08:23:27 *timeout* parameter will set the timeout on the socket instance 08:23:27 before attempting to connect. If no *timeout* is supplied, the 08:23:27 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:23:27 is used. If *source_address* is set it must be a tuple of (host, port) 08:23:27 for the socket to bind as a source address before making the connection. 08:23:27 An host of '' or port 0 tells the OS to use the default. 08:23:27 """ 08:23:27 08:23:27 host, port = address 08:23:27 if host.startswith("["): 08:23:27 host = host.strip("[]") 08:23:27 err = None 08:23:27 08:23:27 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:23:27 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:23:27 # The original create_connection function always returns all records. 08:23:27 family = allowed_gai_family() 08:23:27 08:23:27 try: 08:23:27 host.encode("idna") 08:23:27 except UnicodeError: 08:23:27 raise LocationParseError(f"'{host}', label empty or too long") from None 08:23:27 08:23:27 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:23:27 af, socktype, proto, canonname, sa = res 08:23:27 sock = None 08:23:27 try: 08:23:27 sock = socket.socket(af, socktype, proto) 08:23:27 08:23:27 # If provided, set socket level options before connecting. 08:23:27 _set_socket_options(sock, socket_options) 08:23:27 08:23:27 if timeout is not _DEFAULT_TIMEOUT: 08:23:27 sock.settimeout(timeout) 08:23:27 if source_address: 08:23:27 sock.bind(source_address) 08:23:27 > sock.connect(sa) 08:23:27 E ConnectionRefusedError: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info', query=None, fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:23:27 conn.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:23:27 self.endheaders() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:23:27 self._send_output(message_body, encode_chunked=encode_chunked) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:23:27 self.send(msg) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:23:27 self.connect() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:23:27 self.sock = self._new_conn() 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 except socket.gaierror as e: 08:23:27 raise NameResolutionError(self.host, self, e) from e 08:23:27 except SocketTimeout as e: 08:23:27 raise ConnectTimeoutError( 08:23:27 self, 08:23:27 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:23:27 ) from e 08:23:27 08:23:27 except OSError as e: 08:23:27 > raise NewConnectionError( 08:23:27 self, f"Failed to establish a new connection: {e}" 08:23:27 ) from e 08:23:27 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info' 08:23:27 response = None 08:23:27 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:23:27 _pool = 08:23:27 _stacktrace = 08:23:27 08:23:27 def increment( 08:23:27 self, 08:23:27 method: str | None = None, 08:23:27 url: str | None = None, 08:23:27 response: BaseHTTPResponse | None = None, 08:23:27 error: Exception | None = None, 08:23:27 _pool: ConnectionPool | None = None, 08:23:27 _stacktrace: TracebackType | None = None, 08:23:27 ) -> Self: 08:23:27 """Return a new Retry object with incremented retry counters. 08:23:27 08:23:27 :param response: A response object, or None, if the server did not 08:23:27 return a response. 08:23:27 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:23:27 :param Exception error: An error encountered during the request, or 08:23:27 None if the response was received successfully. 08:23:27 08:23:27 :return: A new ``Retry`` object. 08:23:27 """ 08:23:27 if self.total is False and error: 08:23:27 # Disabled, indicate to re-raise the error. 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 08:23:27 total = self.total 08:23:27 if total is not None: 08:23:27 total -= 1 08:23:27 08:23:27 connect = self.connect 08:23:27 read = self.read 08:23:27 redirect = self.redirect 08:23:27 status_count = self.status 08:23:27 other = self.other 08:23:27 cause = "unknown" 08:23:27 status = None 08:23:27 redirect_location = None 08:23:27 08:23:27 if error and self._is_connection_error(error): 08:23:27 # Connect retry? 08:23:27 if connect is False: 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif connect is not None: 08:23:27 connect -= 1 08:23:27 08:23:27 elif error and self._is_read_error(error): 08:23:27 # Read retry? 08:23:27 if read is False or method is None or not self._is_method_retryable(method): 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif read is not None: 08:23:27 read -= 1 08:23:27 08:23:27 elif error: 08:23:27 # Other retry? 08:23:27 if other is not None: 08:23:27 other -= 1 08:23:27 08:23:27 elif response and response.get_redirect_location(): 08:23:27 # Redirect retry? 08:23:27 if redirect is not None: 08:23:27 redirect -= 1 08:23:27 cause = "too many redirects" 08:23:27 response_redirect_location = response.get_redirect_location() 08:23:27 if response_redirect_location: 08:23:27 redirect_location = response_redirect_location 08:23:27 status = response.status 08:23:27 08:23:27 else: 08:23:27 # Incrementing because of a server error like a 500 in 08:23:27 # status_forcelist and the given method is in the allowed_methods 08:23:27 cause = ResponseError.GENERIC_ERROR 08:23:27 if response and response.status: 08:23:27 if status_count is not None: 08:23:27 status_count -= 1 08:23:27 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:23:27 status = response.status 08:23:27 08:23:27 history = self.history + ( 08:23:27 RequestHistory(method, url, error, status, redirect_location), 08:23:27 ) 08:23:27 08:23:27 new_retry = self.new( 08:23:27 total=total, 08:23:27 connect=connect, 08:23:27 read=read, 08:23:27 redirect=redirect, 08:23:27 status=status_count, 08:23:27 other=other, 08:23:27 history=history, 08:23:27 ) 08:23:27 08:23:27 if new_retry.is_exhausted(): 08:23:27 reason = error or ResponseError(cause) 08:23:27 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:23:27 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_18_xpdr_device_not_connected(self): 08:23:27 > response = test_utils.get_portmapping_node_attr("XPDRA01", "node-info", None) 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:203: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:23:27 response = get_request(target_url) 08:23:27 transportpce_tests/common/test_utils.py:116: in get_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 raise ConnectionError(err, request=request) 08:23:27 08:23:27 except MaxRetryError as e: 08:23:27 if isinstance(e.reason, ConnectTimeoutError): 08:23:27 # TODO: Remove this in 3.0.0: see #2811 08:23:27 if not isinstance(e.reason, NewConnectionError): 08:23:27 raise ConnectTimeout(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, ResponseError): 08:23:27 raise RetryError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _ProxyError): 08:23:27 raise ProxyError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _SSLError): 08:23:27 # This branch is for urllib3 v1.22 and later. 08:23:27 raise SSLError(e, request=request) 08:23:27 08:23:27 > raise ConnectionError(e, request=request) 08:23:27 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=XPDRA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_18_xpdr_device_not_connected 08:23:27 _______ TransportPCEPortMappingTesting.test_19_rdm_device_disconnection ________ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 > sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:23:27 raise err 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 address = ('localhost', 8182), timeout = 10, source_address = None 08:23:27 socket_options = [(6, 1, 1)] 08:23:27 08:23:27 def create_connection( 08:23:27 address: tuple[str, int], 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 source_address: tuple[str, int] | None = None, 08:23:27 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:23:27 ) -> socket.socket: 08:23:27 """Connect to *address* and return the socket object. 08:23:27 08:23:27 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:23:27 port)``) and return the socket object. Passing the optional 08:23:27 *timeout* parameter will set the timeout on the socket instance 08:23:27 before attempting to connect. If no *timeout* is supplied, the 08:23:27 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:23:27 is used. If *source_address* is set it must be a tuple of (host, port) 08:23:27 for the socket to bind as a source address before making the connection. 08:23:27 An host of '' or port 0 tells the OS to use the default. 08:23:27 """ 08:23:27 08:23:27 host, port = address 08:23:27 if host.startswith("["): 08:23:27 host = host.strip("[]") 08:23:27 err = None 08:23:27 08:23:27 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:23:27 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:23:27 # The original create_connection function always returns all records. 08:23:27 family = allowed_gai_family() 08:23:27 08:23:27 try: 08:23:27 host.encode("idna") 08:23:27 except UnicodeError: 08:23:27 raise LocationParseError(f"'{host}', label empty or too long") from None 08:23:27 08:23:27 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:23:27 af, socktype, proto, canonname, sa = res 08:23:27 sock = None 08:23:27 try: 08:23:27 sock = socket.socket(af, socktype, proto) 08:23:27 08:23:27 # If provided, set socket level options before connecting. 08:23:27 _set_socket_options(sock, socket_options) 08:23:27 08:23:27 if timeout is not _DEFAULT_TIMEOUT: 08:23:27 sock.settimeout(timeout) 08:23:27 if source_address: 08:23:27 sock.bind(source_address) 08:23:27 > sock.connect(sa) 08:23:27 E ConnectionRefusedError: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 method = 'DELETE' 08:23:27 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '0', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01', query=None, fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:23:27 conn.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:23:27 self.endheaders() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:23:27 self._send_output(message_body, encode_chunked=encode_chunked) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:23:27 self.send(msg) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:23:27 self.connect() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:23:27 self.sock = self._new_conn() 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 except socket.gaierror as e: 08:23:27 raise NameResolutionError(self.host, self, e) from e 08:23:27 except SocketTimeout as e: 08:23:27 raise ConnectTimeoutError( 08:23:27 self, 08:23:27 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:23:27 ) from e 08:23:27 08:23:27 except OSError as e: 08:23:27 > raise NewConnectionError( 08:23:27 self, f"Failed to establish a new connection: {e}" 08:23:27 ) from e 08:23:27 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 method = 'DELETE' 08:23:27 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 08:23:27 response = None 08:23:27 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:23:27 _pool = 08:23:27 _stacktrace = 08:23:27 08:23:27 def increment( 08:23:27 self, 08:23:27 method: str | None = None, 08:23:27 url: str | None = None, 08:23:27 response: BaseHTTPResponse | None = None, 08:23:27 error: Exception | None = None, 08:23:27 _pool: ConnectionPool | None = None, 08:23:27 _stacktrace: TracebackType | None = None, 08:23:27 ) -> Self: 08:23:27 """Return a new Retry object with incremented retry counters. 08:23:27 08:23:27 :param response: A response object, or None, if the server did not 08:23:27 return a response. 08:23:27 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:23:27 :param Exception error: An error encountered during the request, or 08:23:27 None if the response was received successfully. 08:23:27 08:23:27 :return: A new ``Retry`` object. 08:23:27 """ 08:23:27 if self.total is False and error: 08:23:27 # Disabled, indicate to re-raise the error. 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 08:23:27 total = self.total 08:23:27 if total is not None: 08:23:27 total -= 1 08:23:27 08:23:27 connect = self.connect 08:23:27 read = self.read 08:23:27 redirect = self.redirect 08:23:27 status_count = self.status 08:23:27 other = self.other 08:23:27 cause = "unknown" 08:23:27 status = None 08:23:27 redirect_location = None 08:23:27 08:23:27 if error and self._is_connection_error(error): 08:23:27 # Connect retry? 08:23:27 if connect is False: 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif connect is not None: 08:23:27 connect -= 1 08:23:27 08:23:27 elif error and self._is_read_error(error): 08:23:27 # Read retry? 08:23:27 if read is False or method is None or not self._is_method_retryable(method): 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif read is not None: 08:23:27 read -= 1 08:23:27 08:23:27 elif error: 08:23:27 # Other retry? 08:23:27 if other is not None: 08:23:27 other -= 1 08:23:27 08:23:27 elif response and response.get_redirect_location(): 08:23:27 # Redirect retry? 08:23:27 if redirect is not None: 08:23:27 redirect -= 1 08:23:27 cause = "too many redirects" 08:23:27 response_redirect_location = response.get_redirect_location() 08:23:27 if response_redirect_location: 08:23:27 redirect_location = response_redirect_location 08:23:27 status = response.status 08:23:27 08:23:27 else: 08:23:27 # Incrementing because of a server error like a 500 in 08:23:27 # status_forcelist and the given method is in the allowed_methods 08:23:27 cause = ResponseError.GENERIC_ERROR 08:23:27 if response and response.status: 08:23:27 if status_count is not None: 08:23:27 status_count -= 1 08:23:27 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:23:27 status = response.status 08:23:27 08:23:27 history = self.history + ( 08:23:27 RequestHistory(method, url, error, status, redirect_location), 08:23:27 ) 08:23:27 08:23:27 new_retry = self.new( 08:23:27 total=total, 08:23:27 connect=connect, 08:23:27 read=read, 08:23:27 redirect=redirect, 08:23:27 status=status_count, 08:23:27 other=other, 08:23:27 history=history, 08:23:27 ) 08:23:27 08:23:27 if new_retry.is_exhausted(): 08:23:27 reason = error or ResponseError(cause) 08:23:27 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:23:27 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_19_rdm_device_disconnection(self): 08:23:27 > response = test_utils.unmount_device("ROADMA01") 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:211: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:358: in unmount_device 08:23:27 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 08:23:27 transportpce_tests/common/test_utils.py:133: in delete_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 raise ConnectionError(err, request=request) 08:23:27 08:23:27 except MaxRetryError as e: 08:23:27 if isinstance(e.reason, ConnectTimeoutError): 08:23:27 # TODO: Remove this in 3.0.0: see #2811 08:23:27 if not isinstance(e.reason, NewConnectionError): 08:23:27 raise ConnectTimeout(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, ResponseError): 08:23:27 raise RetryError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _ProxyError): 08:23:27 raise ProxyError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _SSLError): 08:23:27 # This branch is for urllib3 v1.22 and later. 08:23:27 raise SSLError(e, request=request) 08:23:27 08:23:27 > raise ConnectionError(e, request=request) 08:23:27 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_19_rdm_device_disconnection 08:23:27 ________ TransportPCEPortMappingTesting.test_20_rdm_device_disconnected ________ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 > sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:23:27 raise err 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 address = ('localhost', 8182), timeout = 10, source_address = None 08:23:27 socket_options = [(6, 1, 1)] 08:23:27 08:23:27 def create_connection( 08:23:27 address: tuple[str, int], 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 source_address: tuple[str, int] | None = None, 08:23:27 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:23:27 ) -> socket.socket: 08:23:27 """Connect to *address* and return the socket object. 08:23:27 08:23:27 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:23:27 port)``) and return the socket object. Passing the optional 08:23:27 *timeout* parameter will set the timeout on the socket instance 08:23:27 before attempting to connect. If no *timeout* is supplied, the 08:23:27 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:23:27 is used. If *source_address* is set it must be a tuple of (host, port) 08:23:27 for the socket to bind as a source address before making the connection. 08:23:27 An host of '' or port 0 tells the OS to use the default. 08:23:27 """ 08:23:27 08:23:27 host, port = address 08:23:27 if host.startswith("["): 08:23:27 host = host.strip("[]") 08:23:27 err = None 08:23:27 08:23:27 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:23:27 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:23:27 # The original create_connection function always returns all records. 08:23:27 family = allowed_gai_family() 08:23:27 08:23:27 try: 08:23:27 host.encode("idna") 08:23:27 except UnicodeError: 08:23:27 raise LocationParseError(f"'{host}', label empty or too long") from None 08:23:27 08:23:27 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:23:27 af, socktype, proto, canonname, sa = res 08:23:27 sock = None 08:23:27 try: 08:23:27 sock = socket.socket(af, socktype, proto) 08:23:27 08:23:27 # If provided, set socket level options before connecting. 08:23:27 _set_socket_options(sock, socket_options) 08:23:27 08:23:27 if timeout is not _DEFAULT_TIMEOUT: 08:23:27 sock.settimeout(timeout) 08:23:27 if source_address: 08:23:27 sock.bind(source_address) 08:23:27 > sock.connect(sa) 08:23:27 E ConnectionRefusedError: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01', query='content=nonconfig', fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:23:27 conn.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:23:27 self.endheaders() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:23:27 self._send_output(message_body, encode_chunked=encode_chunked) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:23:27 self.send(msg) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:23:27 self.connect() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:23:27 self.sock = self._new_conn() 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 except socket.gaierror as e: 08:23:27 raise NameResolutionError(self.host, self, e) from e 08:23:27 except SocketTimeout as e: 08:23:27 raise ConnectTimeoutError( 08:23:27 self, 08:23:27 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:23:27 ) from e 08:23:27 08:23:27 except OSError as e: 08:23:27 > raise NewConnectionError( 08:23:27 self, f"Failed to establish a new connection: {e}" 08:23:27 ) from e 08:23:27 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig' 08:23:27 response = None 08:23:27 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:23:27 _pool = 08:23:27 _stacktrace = 08:23:27 08:23:27 def increment( 08:23:27 self, 08:23:27 method: str | None = None, 08:23:27 url: str | None = None, 08:23:27 response: BaseHTTPResponse | None = None, 08:23:27 error: Exception | None = None, 08:23:27 _pool: ConnectionPool | None = None, 08:23:27 _stacktrace: TracebackType | None = None, 08:23:27 ) -> Self: 08:23:27 """Return a new Retry object with incremented retry counters. 08:23:27 08:23:27 :param response: A response object, or None, if the server did not 08:23:27 return a response. 08:23:27 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:23:27 :param Exception error: An error encountered during the request, or 08:23:27 None if the response was received successfully. 08:23:27 08:23:27 :return: A new ``Retry`` object. 08:23:27 """ 08:23:27 if self.total is False and error: 08:23:27 # Disabled, indicate to re-raise the error. 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 08:23:27 total = self.total 08:23:27 if total is not None: 08:23:27 total -= 1 08:23:27 08:23:27 connect = self.connect 08:23:27 read = self.read 08:23:27 redirect = self.redirect 08:23:27 status_count = self.status 08:23:27 other = self.other 08:23:27 cause = "unknown" 08:23:27 status = None 08:23:27 redirect_location = None 08:23:27 08:23:27 if error and self._is_connection_error(error): 08:23:27 # Connect retry? 08:23:27 if connect is False: 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif connect is not None: 08:23:27 connect -= 1 08:23:27 08:23:27 elif error and self._is_read_error(error): 08:23:27 # Read retry? 08:23:27 if read is False or method is None or not self._is_method_retryable(method): 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif read is not None: 08:23:27 read -= 1 08:23:27 08:23:27 elif error: 08:23:27 # Other retry? 08:23:27 if other is not None: 08:23:27 other -= 1 08:23:27 08:23:27 elif response and response.get_redirect_location(): 08:23:27 # Redirect retry? 08:23:27 if redirect is not None: 08:23:27 redirect -= 1 08:23:27 cause = "too many redirects" 08:23:27 response_redirect_location = response.get_redirect_location() 08:23:27 if response_redirect_location: 08:23:27 redirect_location = response_redirect_location 08:23:27 status = response.status 08:23:27 08:23:27 else: 08:23:27 # Incrementing because of a server error like a 500 in 08:23:27 # status_forcelist and the given method is in the allowed_methods 08:23:27 cause = ResponseError.GENERIC_ERROR 08:23:27 if response and response.status: 08:23:27 if status_count is not None: 08:23:27 status_count -= 1 08:23:27 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:23:27 status = response.status 08:23:27 08:23:27 history = self.history + ( 08:23:27 RequestHistory(method, url, error, status, redirect_location), 08:23:27 ) 08:23:27 08:23:27 new_retry = self.new( 08:23:27 total=total, 08:23:27 connect=connect, 08:23:27 read=read, 08:23:27 redirect=redirect, 08:23:27 status=status_count, 08:23:27 other=other, 08:23:27 history=history, 08:23:27 ) 08:23:27 08:23:27 if new_retry.is_exhausted(): 08:23:27 reason = error or ResponseError(cause) 08:23:27 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:23:27 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_20_rdm_device_disconnected(self): 08:23:27 > response = test_utils.check_device_connection("ROADMA01") 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:215: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:369: in check_device_connection 08:23:27 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 08:23:27 transportpce_tests/common/test_utils.py:116: in get_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 raise ConnectionError(err, request=request) 08:23:27 08:23:27 except MaxRetryError as e: 08:23:27 if isinstance(e.reason, ConnectTimeoutError): 08:23:27 # TODO: Remove this in 3.0.0: see #2811 08:23:27 if not isinstance(e.reason, NewConnectionError): 08:23:27 raise ConnectTimeout(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, ResponseError): 08:23:27 raise RetryError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _ProxyError): 08:23:27 raise ProxyError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _SSLError): 08:23:27 # This branch is for urllib3 v1.22 and later. 08:23:27 raise SSLError(e, request=request) 08:23:27 08:23:27 > raise ConnectionError(e, request=request) 08:23:27 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_20_rdm_device_disconnected 08:23:27 _______ TransportPCEPortMappingTesting.test_21_rdm_device_not_connected ________ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 > sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 08:23:27 raise err 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 address = ('localhost', 8182), timeout = 10, source_address = None 08:23:27 socket_options = [(6, 1, 1)] 08:23:27 08:23:27 def create_connection( 08:23:27 address: tuple[str, int], 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 source_address: tuple[str, int] | None = None, 08:23:27 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 08:23:27 ) -> socket.socket: 08:23:27 """Connect to *address* and return the socket object. 08:23:27 08:23:27 Convenience function. Connect to *address* (a 2-tuple ``(host, 08:23:27 port)``) and return the socket object. Passing the optional 08:23:27 *timeout* parameter will set the timeout on the socket instance 08:23:27 before attempting to connect. If no *timeout* is supplied, the 08:23:27 global default timeout setting returned by :func:`socket.getdefaulttimeout` 08:23:27 is used. If *source_address* is set it must be a tuple of (host, port) 08:23:27 for the socket to bind as a source address before making the connection. 08:23:27 An host of '' or port 0 tells the OS to use the default. 08:23:27 """ 08:23:27 08:23:27 host, port = address 08:23:27 if host.startswith("["): 08:23:27 host = host.strip("[]") 08:23:27 err = None 08:23:27 08:23:27 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 08:23:27 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 08:23:27 # The original create_connection function always returns all records. 08:23:27 family = allowed_gai_family() 08:23:27 08:23:27 try: 08:23:27 host.encode("idna") 08:23:27 except UnicodeError: 08:23:27 raise LocationParseError(f"'{host}', label empty or too long") from None 08:23:27 08:23:27 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 08:23:27 af, socktype, proto, canonname, sa = res 08:23:27 sock = None 08:23:27 try: 08:23:27 sock = socket.socket(af, socktype, proto) 08:23:27 08:23:27 # If provided, set socket level options before connecting. 08:23:27 _set_socket_options(sock, socket_options) 08:23:27 08:23:27 if timeout is not _DEFAULT_TIMEOUT: 08:23:27 sock.settimeout(timeout) 08:23:27 if source_address: 08:23:27 sock.bind(source_address) 08:23:27 > sock.connect(sa) 08:23:27 E ConnectionRefusedError: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 08:23:27 body = None 08:23:27 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 08:23:27 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 redirect = False, assert_same_host = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 08:23:27 release_conn = False, chunked = False, body_pos = None, preload_content = False 08:23:27 decode_content = False, response_kw = {} 08:23:27 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info', query=None, fragment=None) 08:23:27 destination_scheme = None, conn = None, release_this_conn = True 08:23:27 http_tunnel_required = False, err = None, clean_exit = False 08:23:27 08:23:27 def urlopen( # type: ignore[override] 08:23:27 self, 08:23:27 method: str, 08:23:27 url: str, 08:23:27 body: _TYPE_BODY | None = None, 08:23:27 headers: typing.Mapping[str, str] | None = None, 08:23:27 retries: Retry | bool | int | None = None, 08:23:27 redirect: bool = True, 08:23:27 assert_same_host: bool = True, 08:23:27 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 08:23:27 pool_timeout: int | None = None, 08:23:27 release_conn: bool | None = None, 08:23:27 chunked: bool = False, 08:23:27 body_pos: _TYPE_BODY_POSITION | None = None, 08:23:27 preload_content: bool = True, 08:23:27 decode_content: bool = True, 08:23:27 **response_kw: typing.Any, 08:23:27 ) -> BaseHTTPResponse: 08:23:27 """ 08:23:27 Get a connection from the pool and perform an HTTP request. This is the 08:23:27 lowest level call for making a request, so you'll need to specify all 08:23:27 the raw details. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 More commonly, it's appropriate to use a convenience method 08:23:27 such as :meth:`request`. 08:23:27 08:23:27 .. note:: 08:23:27 08:23:27 `release_conn` will only behave as expected if 08:23:27 `preload_content=False` because we want to make 08:23:27 `preload_content=False` the default behaviour someday soon without 08:23:27 breaking backwards compatibility. 08:23:27 08:23:27 :param method: 08:23:27 HTTP request method (such as GET, POST, PUT, etc.) 08:23:27 08:23:27 :param url: 08:23:27 The URL to perform the request on. 08:23:27 08:23:27 :param body: 08:23:27 Data to send in the request body, either :class:`str`, :class:`bytes`, 08:23:27 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 08:23:27 08:23:27 :param headers: 08:23:27 Dictionary of custom headers to send, such as User-Agent, 08:23:27 If-None-Match, etc. If None, pool headers are used. If provided, 08:23:27 these headers completely replace any pool-specific headers. 08:23:27 08:23:27 :param retries: 08:23:27 Configure the number of retries to allow before raising a 08:23:27 :class:`~urllib3.exceptions.MaxRetryError` exception. 08:23:27 08:23:27 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 08:23:27 :class:`~urllib3.util.retry.Retry` object for fine-grained control 08:23:27 over different types of retries. 08:23:27 Pass an integer number to retry connection errors that many times, 08:23:27 but no other types of errors. Pass zero to never retry. 08:23:27 08:23:27 If ``False``, then retries are disabled and any exception is raised 08:23:27 immediately. Also, instead of raising a MaxRetryError on redirects, 08:23:27 the redirect response will be returned. 08:23:27 08:23:27 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 08:23:27 08:23:27 :param redirect: 08:23:27 If True, automatically handle redirects (status codes 301, 302, 08:23:27 303, 307, 308). Each redirect counts as a retry. Disabling retries 08:23:27 will disable redirect, too. 08:23:27 08:23:27 :param assert_same_host: 08:23:27 If ``True``, will make sure that the host of the pool requests is 08:23:27 consistent else will raise HostChangedError. When ``False``, you can 08:23:27 use the pool on an HTTP proxy and request foreign hosts. 08:23:27 08:23:27 :param timeout: 08:23:27 If specified, overrides the default timeout for this one 08:23:27 request. It may be a float (in seconds) or an instance of 08:23:27 :class:`urllib3.util.Timeout`. 08:23:27 08:23:27 :param pool_timeout: 08:23:27 If set and the pool is set to block=True, then this method will 08:23:27 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 08:23:27 connection is available within the time period. 08:23:27 08:23:27 :param bool preload_content: 08:23:27 If True, the response's body will be preloaded into memory. 08:23:27 08:23:27 :param bool decode_content: 08:23:27 If True, will attempt to decode the body based on the 08:23:27 'content-encoding' header. 08:23:27 08:23:27 :param release_conn: 08:23:27 If False, then the urlopen call will not release the connection 08:23:27 back into the pool once a response is received (but will release if 08:23:27 you read the entire contents of the response such as when 08:23:27 `preload_content=True`). This is useful if you're not preloading 08:23:27 the response's content immediately. You will need to call 08:23:27 ``r.release_conn()`` on the response ``r`` to return the connection 08:23:27 back into the pool. If None, it takes the value of ``preload_content`` 08:23:27 which defaults to ``True``. 08:23:27 08:23:27 :param bool chunked: 08:23:27 If True, urllib3 will send the body using chunked transfer 08:23:27 encoding. Otherwise, urllib3 will send the body using the standard 08:23:27 content-length form. Defaults to False. 08:23:27 08:23:27 :param int body_pos: 08:23:27 Position to seek to in file-like body in the event of a retry or 08:23:27 redirect. Typically this won't need to be set because urllib3 will 08:23:27 auto-populate the value when needed. 08:23:27 """ 08:23:27 parsed_url = parse_url(url) 08:23:27 destination_scheme = parsed_url.scheme 08:23:27 08:23:27 if headers is None: 08:23:27 headers = self.headers 08:23:27 08:23:27 if not isinstance(retries, Retry): 08:23:27 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 08:23:27 08:23:27 if release_conn is None: 08:23:27 release_conn = preload_content 08:23:27 08:23:27 # Check host 08:23:27 if assert_same_host and not self.is_same_host(url): 08:23:27 raise HostChangedError(self, url, retries) 08:23:27 08:23:27 # Ensure that the URL we're connecting to is properly encoded 08:23:27 if url.startswith("/"): 08:23:27 url = to_str(_encode_target(url)) 08:23:27 else: 08:23:27 url = to_str(parsed_url.url) 08:23:27 08:23:27 conn = None 08:23:27 08:23:27 # Track whether `conn` needs to be released before 08:23:27 # returning/raising/recursing. Update this variable if necessary, and 08:23:27 # leave `release_conn` constant throughout the function. That way, if 08:23:27 # the function recurses, the original value of `release_conn` will be 08:23:27 # passed down into the recursive call, and its value will be respected. 08:23:27 # 08:23:27 # See issue #651 [1] for details. 08:23:27 # 08:23:27 # [1] 08:23:27 release_this_conn = release_conn 08:23:27 08:23:27 http_tunnel_required = connection_requires_http_tunnel( 08:23:27 self.proxy, self.proxy_config, destination_scheme 08:23:27 ) 08:23:27 08:23:27 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 08:23:27 # have to copy the headers dict so we can safely change it without those 08:23:27 # changes being reflected in anyone else's copy. 08:23:27 if not http_tunnel_required: 08:23:27 headers = headers.copy() # type: ignore[attr-defined] 08:23:27 headers.update(self.proxy_headers) # type: ignore[union-attr] 08:23:27 08:23:27 # Must keep the exception bound to a separate variable or else Python 3 08:23:27 # complains about UnboundLocalError. 08:23:27 err = None 08:23:27 08:23:27 # Keep track of whether we cleanly exited the except block. This 08:23:27 # ensures we do proper cleanup in finally. 08:23:27 clean_exit = False 08:23:27 08:23:27 # Rewind body position, if needed. Record current position 08:23:27 # for future rewinds in the event of a redirect/retry. 08:23:27 body_pos = set_file_position(body, body_pos) 08:23:27 08:23:27 try: 08:23:27 # Request a connection from the queue. 08:23:27 timeout_obj = self._get_timeout(timeout) 08:23:27 conn = self._get_conn(timeout=pool_timeout) 08:23:27 08:23:27 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 08:23:27 08:23:27 # Is this a closed/new connection that requires CONNECT tunnelling? 08:23:27 if self.proxy is not None and http_tunnel_required and conn.is_closed: 08:23:27 try: 08:23:27 self._prepare_proxy(conn) 08:23:27 except (BaseSSLError, OSError, SocketTimeout) as e: 08:23:27 self._raise_timeout( 08:23:27 err=e, url=self.proxy.url, timeout_value=conn.timeout 08:23:27 ) 08:23:27 raise 08:23:27 08:23:27 # If we're going to release the connection in ``finally:``, then 08:23:27 # the response doesn't need to know about the connection. Otherwise 08:23:27 # it will also try to release it and we'll have a double-release 08:23:27 # mess. 08:23:27 response_conn = conn if not release_conn else None 08:23:27 08:23:27 # Make the request on the HTTPConnection object 08:23:27 > response = self._make_request( 08:23:27 conn, 08:23:27 method, 08:23:27 url, 08:23:27 timeout=timeout_obj, 08:23:27 body=body, 08:23:27 headers=headers, 08:23:27 chunked=chunked, 08:23:27 retries=retries, 08:23:27 response_conn=response_conn, 08:23:27 preload_content=preload_content, 08:23:27 decode_content=decode_content, 08:23:27 **response_kw, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 08:23:27 conn.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 08:23:27 self.endheaders() 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 08:23:27 self._send_output(message_body, encode_chunked=encode_chunked) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 08:23:27 self.send(msg) 08:23:27 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 08:23:27 self.connect() 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 08:23:27 self.sock = self._new_conn() 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 08:23:27 def _new_conn(self) -> socket.socket: 08:23:27 """Establish a socket connection and set nodelay settings on it. 08:23:27 08:23:27 :return: New socket connection. 08:23:27 """ 08:23:27 try: 08:23:27 sock = connection.create_connection( 08:23:27 (self._dns_host, self.port), 08:23:27 self.timeout, 08:23:27 source_address=self.source_address, 08:23:27 socket_options=self.socket_options, 08:23:27 ) 08:23:27 except socket.gaierror as e: 08:23:27 raise NameResolutionError(self.host, self, e) from e 08:23:27 except SocketTimeout as e: 08:23:27 raise ConnectTimeoutError( 08:23:27 self, 08:23:27 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 08:23:27 ) from e 08:23:27 08:23:27 except OSError as e: 08:23:27 > raise NewConnectionError( 08:23:27 self, f"Failed to establish a new connection: {e}" 08:23:27 ) from e 08:23:27 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 08:23:27 08:23:27 The above exception was the direct cause of the following exception: 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 > resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 08:23:27 retries = retries.increment( 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 08:23:27 method = 'GET' 08:23:27 url = '/rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info' 08:23:27 response = None 08:23:27 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 08:23:27 _pool = 08:23:27 _stacktrace = 08:23:27 08:23:27 def increment( 08:23:27 self, 08:23:27 method: str | None = None, 08:23:27 url: str | None = None, 08:23:27 response: BaseHTTPResponse | None = None, 08:23:27 error: Exception | None = None, 08:23:27 _pool: ConnectionPool | None = None, 08:23:27 _stacktrace: TracebackType | None = None, 08:23:27 ) -> Self: 08:23:27 """Return a new Retry object with incremented retry counters. 08:23:27 08:23:27 :param response: A response object, or None, if the server did not 08:23:27 return a response. 08:23:27 :type response: :class:`~urllib3.response.BaseHTTPResponse` 08:23:27 :param Exception error: An error encountered during the request, or 08:23:27 None if the response was received successfully. 08:23:27 08:23:27 :return: A new ``Retry`` object. 08:23:27 """ 08:23:27 if self.total is False and error: 08:23:27 # Disabled, indicate to re-raise the error. 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 08:23:27 total = self.total 08:23:27 if total is not None: 08:23:27 total -= 1 08:23:27 08:23:27 connect = self.connect 08:23:27 read = self.read 08:23:27 redirect = self.redirect 08:23:27 status_count = self.status 08:23:27 other = self.other 08:23:27 cause = "unknown" 08:23:27 status = None 08:23:27 redirect_location = None 08:23:27 08:23:27 if error and self._is_connection_error(error): 08:23:27 # Connect retry? 08:23:27 if connect is False: 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif connect is not None: 08:23:27 connect -= 1 08:23:27 08:23:27 elif error and self._is_read_error(error): 08:23:27 # Read retry? 08:23:27 if read is False or method is None or not self._is_method_retryable(method): 08:23:27 raise reraise(type(error), error, _stacktrace) 08:23:27 elif read is not None: 08:23:27 read -= 1 08:23:27 08:23:27 elif error: 08:23:27 # Other retry? 08:23:27 if other is not None: 08:23:27 other -= 1 08:23:27 08:23:27 elif response and response.get_redirect_location(): 08:23:27 # Redirect retry? 08:23:27 if redirect is not None: 08:23:27 redirect -= 1 08:23:27 cause = "too many redirects" 08:23:27 response_redirect_location = response.get_redirect_location() 08:23:27 if response_redirect_location: 08:23:27 redirect_location = response_redirect_location 08:23:27 status = response.status 08:23:27 08:23:27 else: 08:23:27 # Incrementing because of a server error like a 500 in 08:23:27 # status_forcelist and the given method is in the allowed_methods 08:23:27 cause = ResponseError.GENERIC_ERROR 08:23:27 if response and response.status: 08:23:27 if status_count is not None: 08:23:27 status_count -= 1 08:23:27 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 08:23:27 status = response.status 08:23:27 08:23:27 history = self.history + ( 08:23:27 RequestHistory(method, url, error, status, redirect_location), 08:23:27 ) 08:23:27 08:23:27 new_retry = self.new( 08:23:27 total=total, 08:23:27 connect=connect, 08:23:27 read=read, 08:23:27 redirect=redirect, 08:23:27 status=status_count, 08:23:27 other=other, 08:23:27 history=history, 08:23:27 ) 08:23:27 08:23:27 if new_retry.is_exhausted(): 08:23:27 reason = error or ResponseError(cause) 08:23:27 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 08:23:27 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 08:23:27 08:23:27 During handling of the above exception, another exception occurred: 08:23:27 08:23:27 self = 08:23:27 08:23:27 def test_21_rdm_device_not_connected(self): 08:23:27 > response = test_utils.get_portmapping_node_attr("ROADMA01", "node-info", None) 08:23:27 08:23:27 transportpce_tests/1.2.1/test01_portmapping.py:223: 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 transportpce_tests/common/test_utils.py:470: in get_portmapping_node_attr 08:23:27 response = get_request(target_url) 08:23:27 transportpce_tests/common/test_utils.py:116: in get_request 08:23:27 return requests.request( 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 08:23:27 return session.request(method=method, url=url, **kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 08:23:27 resp = self.send(prep, **send_kwargs) 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 08:23:27 r = adapter.send(request, **kwargs) 08:23:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 08:23:27 08:23:27 self = 08:23:27 request = , stream = False 08:23:27 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 08:23:27 proxies = OrderedDict() 08:23:27 08:23:27 def send( 08:23:27 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 08:23:27 ): 08:23:27 """Sends PreparedRequest object. Returns Response object. 08:23:27 08:23:27 :param request: The :class:`PreparedRequest ` being sent. 08:23:27 :param stream: (optional) Whether to stream the request content. 08:23:27 :param timeout: (optional) How long to wait for the server to send 08:23:27 data before giving up, as a float, or a :ref:`(connect timeout, 08:23:27 read timeout) ` tuple. 08:23:27 :type timeout: float or tuple or urllib3 Timeout object 08:23:27 :param verify: (optional) Either a boolean, in which case it controls whether 08:23:27 we verify the server's TLS certificate, or a string, in which case it 08:23:27 must be a path to a CA bundle to use 08:23:27 :param cert: (optional) Any user-provided SSL certificate to be trusted. 08:23:27 :param proxies: (optional) The proxies dictionary to apply to the request. 08:23:27 :rtype: requests.Response 08:23:27 """ 08:23:27 08:23:27 try: 08:23:27 conn = self.get_connection_with_tls_context( 08:23:27 request, verify, proxies=proxies, cert=cert 08:23:27 ) 08:23:27 except LocationValueError as e: 08:23:27 raise InvalidURL(e, request=request) 08:23:27 08:23:27 self.cert_verify(conn, request.url, verify, cert) 08:23:27 url = self.request_url(request, proxies) 08:23:27 self.add_headers( 08:23:27 request, 08:23:27 stream=stream, 08:23:27 timeout=timeout, 08:23:27 verify=verify, 08:23:27 cert=cert, 08:23:27 proxies=proxies, 08:23:27 ) 08:23:27 08:23:27 chunked = not (request.body is None or "Content-Length" in request.headers) 08:23:27 08:23:27 if isinstance(timeout, tuple): 08:23:27 try: 08:23:27 connect, read = timeout 08:23:27 timeout = TimeoutSauce(connect=connect, read=read) 08:23:27 except ValueError: 08:23:27 raise ValueError( 08:23:27 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 08:23:27 f"or a single float to set both timeouts to the same value." 08:23:27 ) 08:23:27 elif isinstance(timeout, TimeoutSauce): 08:23:27 pass 08:23:27 else: 08:23:27 timeout = TimeoutSauce(connect=timeout, read=timeout) 08:23:27 08:23:27 try: 08:23:27 resp = conn.urlopen( 08:23:27 method=request.method, 08:23:27 url=url, 08:23:27 body=request.body, 08:23:27 headers=request.headers, 08:23:27 redirect=False, 08:23:27 assert_same_host=False, 08:23:27 preload_content=False, 08:23:27 decode_content=False, 08:23:27 retries=self.max_retries, 08:23:27 timeout=timeout, 08:23:27 chunked=chunked, 08:23:27 ) 08:23:27 08:23:27 except (ProtocolError, OSError) as err: 08:23:27 raise ConnectionError(err, request=request) 08:23:27 08:23:27 except MaxRetryError as e: 08:23:27 if isinstance(e.reason, ConnectTimeoutError): 08:23:27 # TODO: Remove this in 3.0.0: see #2811 08:23:27 if not isinstance(e.reason, NewConnectionError): 08:23:27 raise ConnectTimeout(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, ResponseError): 08:23:27 raise RetryError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _ProxyError): 08:23:27 raise ProxyError(e, request=request) 08:23:27 08:23:27 if isinstance(e.reason, _SSLError): 08:23:27 # This branch is for urllib3 v1.22 and later. 08:23:27 raise SSLError(e, request=request) 08:23:27 08:23:27 > raise ConnectionError(e, request=request) 08:23:27 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/transportpce-portmapping:network/nodes=ROADMA01/node-info (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 08:23:27 08:23:27 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 08:23:27 ----------------------------- Captured stdout call ----------------------------- 08:23:27 execution of test_21_rdm_device_not_connected 08:23:27 --------------------------- Captured stdout teardown --------------------------- 08:23:27 all processes killed 08:23:27 =========================== short test summary info ============================ 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_02_rdm_device_connected 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_03_rdm_portmapping_info 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_04_rdm_portmapping_DEG1_TTP_TXRX 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_05_rdm_portmapping_SRG1_PP7_TXRX 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_06_rdm_portmapping_SRG3_PP1_TXRX 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_13_xpdr_portmapping_CLIENT2 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_14_xpdr_portmapping_CLIENT3 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_15_xpdr_portmapping_CLIENT4 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_16_xpdr_device_disconnection 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_17_xpdr_device_disconnected 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_18_xpdr_device_not_connected 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_19_rdm_device_disconnection 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_20_rdm_device_disconnected 08:23:27 FAILED transportpce_tests/1.2.1/test01_portmapping.py::TransportPCEPortMappingTesting::test_21_rdm_device_not_connected 08:23:27 14 failed, 7 passed in 427.51s (0:07:07) 08:23:27 tests121: exit 1 (427.76 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 pid=35248 08:23:56 ............ [100%] 08:24:09 12 passed in 42.16s 08:24:09 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 08:24:34 .............................................................. [100%] 08:26:45 62 passed in 155.00s (0:02:34) 08:26:45 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 08:27:16 ................................................ [100%] 08:29:00 48 passed in 135.03s (0:02:15) 08:29:00 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 08:29:26 ...................... [100%] 08:30:13 22 passed in 73.37s (0:01:13) 08:30:14 tests121: FAIL ✖ in 7 minutes 13.36 seconds 08:30:14 tests71: OK ✔ in 6 minutes 56.76 seconds 08:30:14 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 08:30:19 tests221: freeze> python -m pip freeze --all 08:30:20 tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 08:30:20 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 08:30:20 using environment variables from ./karaf221.env 08:30:20 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 08:30:57 ................................... [100%] 08:31:36 35 passed in 76.02s (0:01:16) 08:31:36 pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py 08:32:07 ...... [100%] 08:32:21 6 passed in 44.91s 08:32:21 pytest -q transportpce_tests/2.2.1/test03_topology.py 08:33:04 ............................................ [100%] 08:34:39 44 passed in 137.39s (0:02:17) 08:34:39 pytest -q transportpce_tests/2.2.1/test04_otn_topology.py 08:35:14 ............ [100%] 08:35:38 12 passed in 59.30s 08:35:38 pytest -q transportpce_tests/2.2.1/test05_flex_grid.py 08:36:05 ................ [100%] 08:37:33 16 passed in 114.48s (0:01:54) 08:37:33 pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py 08:38:02 ............................... [100%] 08:38:09 31 passed in 35.93s 08:38:09 pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py 08:38:45 .......................... [100%] 08:39:41 26 passed in 91.51s (0:01:31) 08:39:41 pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py 08:40:19 ...................... [100%] 08:41:24 22 passed in 102.63s (0:01:42) 08:41:24 pytest -q transportpce_tests/2.2.1/test09_olm.py 08:42:08 ........................................ [100%] 08:47:30 40 passed in 366.31s (0:06:06) 08:47:30 pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py 08:48:14 ........................................................................ [ 74%] 08:53:50 ......................... [100%] 08:58:43 97 passed in 672.16s (0:11:12) 08:58:43 pytest -q transportpce_tests/2.2.1/test12_end2end.py 08:59:28 ...................................................... [100%] 09:09:17 54 passed in 634.03s (0:10:34) 09:09:17 pytest -q transportpce_tests/2.2.1/test14_otn_switch_end2end.py 09:10:16 ........................................................................ [ 71%] 09:15:25 ............................. [100%] 09:20:34 101 passed in 676.90s (0:11:16) 09:20:34 pytest -q transportpce_tests/2.2.1/test15_otn_end2end_with_intermediate_switch.py 09:21:28 ........................................................................ [ 67%] 09:27:15 ................................... [100%] 09:30:36 107 passed in 601.41s (0:10:01) 09:30:36 tests221: OK ✔ in 1 hour 22.26 seconds 09:30:36 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:30:41 tests_hybrid: freeze> python -m pip freeze --all 09:30:41 tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:30:41 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 09:30:41 using environment variables from ./karaf121.env 09:30:41 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 09:31:30 ................................................... [100%] 09:33:16 51 passed in 154.58s (0:02:34) 09:33:16 pytest -q transportpce_tests/hybrid/test02_B100G_end2end.py 09:33:58 ........................................................................ [ 66%] 09:38:19 ..................................... [100%] 09:43:25 109 passed in 608.25s (0:10:08) 09:43:25 pytest -q transportpce_tests/hybrid/test03_autonomous_reroute.py 09:44:12 ..................................................... [100%] 09:47:44 53 passed in 259.31s (0:04:19) 09:47:44 tests_hybrid: OK ✔ in 17 minutes 8.49 seconds 09:47:44 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:47:51 buildlighty: freeze> python -m pip freeze --all 09:47:51 buildlighty: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.3.2,cryptography==43.0.1,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.0.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.1.0,urllib3==2.2.3,wheel==0.44.0 09:47:51 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 09:47:51 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 09:48:07 [ERROR] COMPILATION ERROR : 09:48:07 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 09:48:07 symbol: class YangModuleInfo 09:48:07 location: package org.opendaylight.yangtools.binding 09:48:07 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 09:48:07 symbol: class YangModuleInfo 09:48:07 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:48:07 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 09:48:07 symbol: class YangModuleInfo 09:48:07 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:48:07 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 09:48:07 symbol: class YangModuleInfo 09:48:07 location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:48:07 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project tpce: Compilation failure: Compilation failure: 09:48:07 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 09:48:07 [ERROR] symbol: class YangModuleInfo 09:48:07 [ERROR] location: package org.opendaylight.yangtools.binding 09:48:07 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 09:48:07 [ERROR] symbol: class YangModuleInfo 09:48:07 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:48:07 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 09:48:07 [ERROR] symbol: class YangModuleInfo 09:48:07 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:48:07 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 09:48:07 [ERROR] symbol: class YangModuleInfo 09:48:07 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 09:48:07 [ERROR] -> [Help 1] 09:48:07 [ERROR] 09:48:07 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 09:48:07 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 09:48:07 [ERROR] 09:48:07 [ERROR] For more information about the errors and possible solutions, please read the following articles: 09:48:07 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 09:48:07 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 09:48:07 buildlighty: exit 9 (16.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=59920 09:48:07 buildlighty: command failed but is marked ignore outcome so handling it as success 09:48:07 buildcontroller: OK (102.48=setup[7.72]+cmd[94.76] seconds) 09:48:07 testsPCE: OK (322.28=setup[94.68]+cmd[227.60] seconds) 09:48:07 sims: OK (11.63=setup[7.67]+cmd[3.96] seconds) 09:48:07 build_karaf_tests121: OK (50.07=setup[7.75]+cmd[42.32] seconds) 09:48:07 tests121: FAIL code 1 (433.36=setup[5.60]+cmd[427.76] seconds) 09:48:07 build_karaf_tests221: OK (49.09=setup[7.69]+cmd[41.39] seconds) 09:48:07 tests_tapi: FAIL code 1 (695.19=setup[5.61]+cmd[689.59] seconds) 09:48:07 tests221: OK (3622.26=setup[6.13]+cmd[3616.13] seconds) 09:48:07 build_karaf_tests71: OK (67.57=setup[18.58]+cmd[48.99] seconds) 09:48:07 tests71: OK (416.76=setup[10.20]+cmd[406.56] seconds) 09:48:07 build_karaf_tests_hybrid: OK (62.96=setup[6.58]+cmd[56.38] seconds) 09:48:07 tests_hybrid: OK (1028.49=setup[5.63]+cmd[1022.87] seconds) 09:48:07 buildlighty: OK (22.59=setup[6.57]+cmd[16.02] seconds) 09:48:07 docs: OK (31.08=setup[28.46]+cmd[2.62] seconds) 09:48:07 docs-linkcheck: OK (32.27=setup[28.80]+cmd[3.46] seconds) 09:48:07 checkbashisms: OK (2.96=setup[2.07]+cmd[0.02,0.06,0.81] seconds) 09:48:07 pre-commit: FAIL code 1 (45.97=setup[3.06]+cmd[0.01,0.00,34.33,8.57] seconds) 09:48:07 pylint: OK (26.28=setup[4.02]+cmd[22.27] seconds) 09:48:07 evaluation failed :( (5937.93 seconds) 09:48:07 + tox_status=255 09:48:07 + echo '---> Completed tox runs' 09:48:07 ---> Completed tox runs 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/build_karaf_tests121/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=build_karaf_tests121 09:48:07 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/build_karaf_tests221/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=build_karaf_tests221 09:48:07 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/build_karaf_tests71/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=build_karaf_tests71 09:48:07 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/build_karaf_tests_hybrid/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=build_karaf_tests_hybrid 09:48:07 + cp -r .tox/build_karaf_tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests_hybrid 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/buildcontroller/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=buildcontroller 09:48:07 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/buildlighty/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=buildlighty 09:48:07 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/checkbashisms/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=checkbashisms 09:48:07 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/docs-linkcheck/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=docs-linkcheck 09:48:07 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/docs/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=docs 09:48:07 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/pre-commit/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=pre-commit 09:48:07 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/pylint/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=pylint 09:48:07 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 09:48:07 + for i in .tox/*/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 ++ echo .tox/sims/log 09:48:07 + tox_env=sims 09:48:07 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/tests121/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=tests121 09:48:07 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests121 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/tests221/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=tests221 09:48:07 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/tests71/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=tests71 09:48:07 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/testsPCE/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=testsPCE 09:48:07 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/tests_hybrid/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=tests_hybrid 09:48:07 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 09:48:07 + for i in .tox/*/log 09:48:07 ++ echo .tox/tests_tapi/log 09:48:07 ++ awk -F/ '{print $2}' 09:48:07 + tox_env=tests_tapi 09:48:07 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 09:48:07 + DOC_DIR=docs/_build/html 09:48:07 + [[ -d docs/_build/html ]] 09:48:07 + echo '---> Archiving generated docs' 09:48:07 ---> Archiving generated docs 09:48:07 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 09:48:07 + echo '---> tox-run.sh ends' 09:48:07 ---> tox-run.sh ends 09:48:07 + test 255 -eq 0 09:48:07 + exit 255 09:48:07 ++ '[' 1 = 1 ']' 09:48:07 ++ '[' -x /usr/bin/clear_console ']' 09:48:07 ++ /usr/bin/clear_console -q 09:48:07 Build step 'Execute shell' marked build as failure 09:48:07 $ ssh-agent -k 09:48:07 unset SSH_AUTH_SOCK; 09:48:07 unset SSH_AGENT_PID; 09:48:07 echo Agent pid 12716 killed; 09:48:07 [ssh-agent] Stopped. 09:48:07 [PostBuildScript] - [INFO] Executing post build scripts. 09:48:07 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14417411209001362683.sh 09:48:07 ---> sysstat.sh 09:48:08 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8865123427206267746.sh 09:48:08 ---> package-listing.sh 09:48:08 ++ facter osfamily 09:48:08 ++ tr '[:upper:]' '[:lower:]' 09:48:08 + OS_FAMILY=debian 09:48:08 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 09:48:08 + START_PACKAGES=/tmp/packages_start.txt 09:48:08 + END_PACKAGES=/tmp/packages_end.txt 09:48:08 + DIFF_PACKAGES=/tmp/packages_diff.txt 09:48:08 + PACKAGES=/tmp/packages_start.txt 09:48:08 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 09:48:08 + PACKAGES=/tmp/packages_end.txt 09:48:08 + case "${OS_FAMILY}" in 09:48:08 + dpkg -l 09:48:08 + grep '^ii' 09:48:08 + '[' -f /tmp/packages_start.txt ']' 09:48:08 + '[' -f /tmp/packages_end.txt ']' 09:48:08 + diff /tmp/packages_start.txt /tmp/packages_end.txt 09:48:08 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 09:48:08 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 09:48:08 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 09:48:08 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5354320048541490839.sh 09:48:08 ---> capture-instance-metadata.sh 09:48:08 Setup pyenv: 09:48:08 system 09:48:08 3.8.13 09:48:08 3.9.13 09:48:08 3.10.13 09:48:08 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:48:08 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-u5HY from file:/tmp/.os_lf_venv 09:48:09 lf-activate-venv(): INFO: Installing: lftools 09:48:25 lf-activate-venv(): INFO: Adding /tmp/venv-u5HY/bin to PATH 09:48:25 INFO: Running in OpenStack, capturing instance metadata 09:48:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5137668414224600288.sh 09:48:25 provisioning config files... 09:48:25 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #2042 09:48:25 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config3069817036319604666tmp 09:48:25 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 09:48:25 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 09:48:25 provisioning config files... 09:48:26 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 09:48:26 [EnvInject] - Injecting environment variables from a build step. 09:48:26 [EnvInject] - Injecting as environment variables the properties content 09:48:26 SERVER_ID=logs 09:48:26 09:48:26 [EnvInject] - Variables injected successfully. 09:48:26 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11632672374661568879.sh 09:48:26 ---> create-netrc.sh 09:48:26 WARN: Log server credential not found. 09:48:26 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17087312956660560529.sh 09:48:26 ---> python-tools-install.sh 09:48:26 Setup pyenv: 09:48:26 system 09:48:26 3.8.13 09:48:26 3.9.13 09:48:26 3.10.13 09:48:26 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:48:26 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-u5HY from file:/tmp/.os_lf_venv 09:48:27 lf-activate-venv(): INFO: Installing: lftools 09:48:36 lf-activate-venv(): INFO: Adding /tmp/venv-u5HY/bin to PATH 09:48:36 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14240247787990091261.sh 09:48:36 ---> sudo-logs.sh 09:48:36 Archiving 'sudo' log.. 09:48:36 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5759868556964730055.sh 09:48:36 ---> job-cost.sh 09:48:37 Setup pyenv: 09:48:37 system 09:48:37 3.8.13 09:48:37 3.9.13 09:48:37 3.10.13 09:48:37 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:48:37 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-u5HY from file:/tmp/.os_lf_venv 09:48:38 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 09:48:42 lf-activate-venv(): INFO: Adding /tmp/venv-u5HY/bin to PATH 09:48:42 INFO: No Stack... 09:48:42 INFO: Retrieving Pricing Info for: v3-standard-4 09:48:43 INFO: Archiving Costs 09:48:43 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins13577602165397924165.sh 09:48:43 ---> logs-deploy.sh 09:48:43 Setup pyenv: 09:48:43 system 09:48:43 3.8.13 09:48:43 3.9.13 09:48:43 3.10.13 09:48:43 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:48:43 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-u5HY from file:/tmp/.os_lf_venv 09:48:44 lf-activate-venv(): INFO: Installing: lftools 09:48:53 lf-activate-venv(): INFO: Adding /tmp/venv-u5HY/bin to PATH 09:48:53 WARNING: Nexus logging server not set 09:48:53 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/2042/ 09:48:53 INFO: archiving logs to S3 09:48:55 ---> uname -a: 09:48:55 Linux prd-ubuntu2004-docker-4c-16g-40485 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 09:48:55 09:48:55 09:48:55 ---> lscpu: 09:48:55 Architecture: x86_64 09:48:55 CPU op-mode(s): 32-bit, 64-bit 09:48:55 Byte Order: Little Endian 09:48:55 Address sizes: 40 bits physical, 48 bits virtual 09:48:55 CPU(s): 4 09:48:55 On-line CPU(s) list: 0-3 09:48:55 Thread(s) per core: 1 09:48:55 Core(s) per socket: 1 09:48:55 Socket(s): 4 09:48:55 NUMA node(s): 1 09:48:55 Vendor ID: AuthenticAMD 09:48:55 CPU family: 23 09:48:55 Model: 49 09:48:55 Model name: AMD EPYC-Rome Processor 09:48:55 Stepping: 0 09:48:55 CPU MHz: 2800.000 09:48:55 BogoMIPS: 5600.00 09:48:55 Virtualization: AMD-V 09:48:55 Hypervisor vendor: KVM 09:48:55 Virtualization type: full 09:48:55 L1d cache: 128 KiB 09:48:55 L1i cache: 128 KiB 09:48:55 L2 cache: 2 MiB 09:48:55 L3 cache: 64 MiB 09:48:55 NUMA node0 CPU(s): 0-3 09:48:55 Vulnerability Gather data sampling: Not affected 09:48:55 Vulnerability Itlb multihit: Not affected 09:48:55 Vulnerability L1tf: Not affected 09:48:55 Vulnerability Mds: Not affected 09:48:55 Vulnerability Meltdown: Not affected 09:48:55 Vulnerability Mmio stale data: Not affected 09:48:55 Vulnerability Retbleed: Vulnerable 09:48:55 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 09:48:55 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 09:48:55 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 09:48:55 Vulnerability Srbds: Not affected 09:48:55 Vulnerability Tsx async abort: Not affected 09:48:55 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt nrip_save umip rdpid arch_capabilities 09:48:55 09:48:55 09:48:55 ---> nproc: 09:48:55 4 09:48:55 09:48:55 09:48:55 ---> df -h: 09:48:55 Filesystem Size Used Avail Use% Mounted on 09:48:55 udev 7.8G 0 7.8G 0% /dev 09:48:55 tmpfs 1.6G 1.1M 1.6G 1% /run 09:48:55 /dev/vda1 78G 17G 62G 21% / 09:48:55 tmpfs 7.9G 0 7.9G 0% /dev/shm 09:48:55 tmpfs 5.0M 0 5.0M 0% /run/lock 09:48:55 tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup 09:48:55 /dev/loop1 68M 68M 0 100% /snap/lxd/22753 09:48:55 /dev/loop0 62M 62M 0 100% /snap/core20/1405 09:48:55 /dev/vda15 105M 6.1M 99M 6% /boot/efi 09:48:55 tmpfs 1.6G 0 1.6G 0% /run/user/1001 09:48:55 /dev/loop3 39M 39M 0 100% /snap/snapd/21759 09:48:55 /dev/loop4 92M 92M 0 100% /snap/lxd/29619 09:48:55 09:48:55 09:48:55 ---> free -m: 09:48:55 total used free shared buff/cache available 09:48:55 Mem: 15997 660 6899 1 8437 14997 09:48:55 Swap: 1023 0 1023 09:48:55 09:48:55 09:48:55 ---> ip addr: 09:48:55 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 09:48:55 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 09:48:55 inet 127.0.0.1/8 scope host lo 09:48:55 valid_lft forever preferred_lft forever 09:48:55 inet6 ::1/128 scope host 09:48:55 valid_lft forever preferred_lft forever 09:48:55 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 09:48:55 link/ether fa:16:3e:c9:fe:87 brd ff:ff:ff:ff:ff:ff 09:48:55 inet 10.30.171.186/23 brd 10.30.171.255 scope global dynamic ens3 09:48:55 valid_lft 80290sec preferred_lft 80290sec 09:48:55 inet6 fe80::f816:3eff:fec9:fe87/64 scope link 09:48:55 valid_lft forever preferred_lft forever 09:48:55 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 09:48:55 link/ether 02:42:29:f0:29:d7 brd ff:ff:ff:ff:ff:ff 09:48:55 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 09:48:55 valid_lft forever preferred_lft forever 09:48:55 09:48:55 09:48:55 ---> sar -b -r -n DEV: 09:48:55 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-40485) 10/08/24 _x86_64_ (4 CPU) 09:48:55 09:48:55 08:07:08 LINUX RESTART (4 CPU) 09:48:55 09:48:55 08:08:02 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 09:48:55 08:09:01 125.50 54.14 71.36 0.00 1509.71 8225.74 0.00 09:48:55 08:10:01 224.51 40.89 183.62 0.00 2700.75 36464.99 0.00 09:48:55 08:11:01 96.12 1.93 94.18 0.00 123.05 37101.28 0.00 09:48:55 08:12:02 165.43 7.54 157.89 0.00 262.40 122313.11 0.00 09:48:55 08:13:01 182.98 7.72 175.26 0.00 2755.50 96198.34 0.00 09:48:55 08:14:01 78.17 2.10 76.07 0.00 79.31 11891.10 0.00 09:48:55 08:15:01 72.39 1.22 71.18 0.00 141.69 1513.63 0.00 09:48:55 08:16:01 74.84 0.08 74.75 0.00 7.33 1210.60 0.00 09:48:55 08:17:01 95.72 2.62 93.10 0.00 460.06 9629.73 0.00 09:48:55 08:18:01 4.08 0.03 4.05 0.00 0.27 62.26 0.00 09:48:55 08:19:01 21.71 0.40 21.31 0.00 22.00 646.29 0.00 09:48:55 08:20:01 60.11 0.00 60.11 0.00 0.00 1014.36 0.00 09:48:55 08:21:01 2.82 0.00 2.82 0.00 0.00 73.32 0.00 09:48:55 08:22:01 2.70 0.00 2.70 0.00 0.00 44.13 0.00 09:48:55 08:23:01 3.45 1.00 2.45 0.00 22.80 55.32 0.00 09:48:55 08:24:01 103.28 0.13 103.15 0.00 3.73 5099.10 0.00 09:48:55 08:25:01 70.70 0.00 70.70 0.00 0.00 6102.45 0.00 09:48:55 08:26:01 2.35 0.00 2.35 0.00 0.00 42.13 0.00 09:48:55 08:27:01 23.56 0.00 23.56 0.00 0.00 370.41 0.00 09:48:55 08:28:01 47.16 0.00 47.16 0.00 0.00 695.22 0.00 09:48:55 08:29:01 1.77 0.00 1.77 0.00 0.00 34.79 0.00 09:48:55 08:30:01 25.38 0.00 25.38 0.00 0.00 403.53 0.00 09:48:55 08:31:01 81.44 0.02 81.42 0.00 0.13 3355.31 0.00 09:48:55 08:32:01 21.31 0.00 21.31 0.00 0.00 363.01 0.00 09:48:55 08:33:01 99.02 0.00 99.02 0.00 0.00 1444.96 0.00 09:48:55 08:34:01 23.98 0.00 23.98 0.00 0.00 347.81 0.00 09:48:55 08:35:01 63.07 0.00 63.07 0.00 0.00 926.65 0.00 09:48:55 08:36:01 67.27 0.02 67.26 0.00 0.40 989.97 0.00 09:48:55 08:37:01 1.82 0.00 1.82 0.00 0.00 40.53 0.00 09:48:55 08:38:01 50.95 0.00 50.95 0.00 0.00 757.08 0.00 09:48:55 08:39:01 58.09 0.02 58.07 0.00 0.13 990.63 0.00 09:48:55 08:40:01 17.00 0.00 17.00 0.00 0.00 283.42 0.00 09:48:55 08:41:01 40.68 0.00 40.68 0.00 0.00 587.10 0.00 09:48:55 08:42:01 17.74 0.00 17.74 0.00 0.00 304.57 0.00 09:48:55 08:43:01 41.69 0.00 41.69 0.00 0.00 604.70 0.00 09:48:55 08:44:01 2.62 0.00 2.62 0.00 0.00 57.06 0.00 09:48:55 08:45:01 2.23 0.00 2.23 0.00 0.00 39.86 0.00 09:48:55 08:46:01 2.40 0.00 2.40 0.00 0.00 31.33 0.00 09:48:55 08:47:01 1.37 0.00 1.37 0.00 0.00 17.20 0.00 09:48:55 08:48:01 17.05 0.00 17.05 0.00 0.00 288.22 0.00 09:48:55 08:49:01 42.06 0.00 42.06 0.00 0.00 628.70 0.00 09:48:55 08:50:01 2.15 0.00 2.15 0.00 0.00 38.93 0.00 09:48:55 08:51:01 1.50 0.00 1.50 0.00 0.00 24.40 0.00 09:48:55 08:52:01 2.67 0.00 2.67 0.00 0.00 55.85 0.00 09:48:55 08:53:01 1.78 0.00 1.78 0.00 0.00 39.19 0.00 09:48:55 08:54:01 2.27 0.00 2.27 0.00 0.00 41.59 0.00 09:48:55 08:55:01 2.15 0.00 2.15 0.00 0.00 38.26 0.00 09:48:55 08:56:01 2.55 0.00 2.55 0.00 0.00 45.19 0.00 09:48:55 08:57:01 1.57 0.00 1.57 0.00 0.00 19.59 0.00 09:48:55 08:58:01 2.35 0.00 2.35 0.00 0.00 33.19 0.00 09:48:55 08:59:01 16.01 0.00 16.01 0.00 0.00 263.56 0.00 09:48:55 09:00:01 8.80 0.00 8.80 0.00 0.00 172.08 0.00 09:48:55 09:01:01 1.72 0.00 1.72 0.00 0.00 44.53 0.00 09:48:55 09:02:01 2.97 0.00 2.97 0.00 0.00 72.12 0.00 09:48:55 09:03:01 2.53 0.00 2.53 0.00 0.00 55.46 0.00 09:48:55 09:04:01 2.65 0.00 2.65 0.00 0.00 47.45 0.00 09:48:55 09:05:01 2.33 0.00 2.33 0.00 0.00 61.86 0.00 09:48:55 09:06:01 2.55 0.00 2.55 0.00 0.00 71.19 0.00 09:48:55 09:07:01 1.58 0.00 1.58 0.00 0.00 22.26 0.00 09:48:55 09:08:01 2.33 0.00 2.33 0.00 0.00 31.33 0.00 09:48:55 09:09:01 1.30 0.00 1.30 0.00 0.00 17.86 0.00 09:48:55 09:10:01 17.74 0.00 17.74 0.00 0.00 308.30 0.00 09:48:55 09:11:01 45.56 0.00 45.56 0.00 0.00 659.49 0.00 09:48:55 09:12:01 2.68 0.00 2.68 0.00 0.00 59.32 0.00 09:48:55 09:13:01 2.67 0.00 2.67 0.00 0.00 56.66 0.00 09:48:55 09:14:01 2.87 0.00 2.87 0.00 0.00 49.46 0.00 09:48:55 09:15:01 3.40 0.00 3.40 0.00 0.00 66.66 0.00 09:48:55 09:16:01 3.42 0.00 3.42 0.00 0.00 69.18 0.00 09:48:55 09:17:01 2.13 0.00 2.13 0.00 0.00 39.99 0.00 09:48:55 09:18:01 3.23 0.00 3.23 0.00 0.00 45.06 0.00 09:48:55 09:19:01 1.68 0.00 1.68 0.00 0.00 21.33 0.00 09:48:55 09:20:01 2.30 0.00 2.30 0.00 0.00 33.19 0.00 09:48:55 09:21:01 24.06 0.00 24.06 0.00 0.00 492.05 0.00 09:48:55 09:22:01 55.56 0.00 55.56 0.00 0.00 798.67 0.00 09:48:55 09:23:01 3.07 0.00 3.07 0.00 0.00 69.99 0.00 09:48:55 09:24:01 1.95 0.00 1.95 0.00 0.00 46.66 0.00 09:48:55 09:25:01 2.47 0.00 2.47 0.00 0.00 45.06 0.00 09:48:55 09:26:01 2.70 0.00 2.70 0.00 0.00 46.53 0.00 09:48:55 09:27:01 1.88 0.00 1.88 0.00 0.00 40.40 0.00 09:48:55 09:28:01 1.80 0.00 1.80 0.00 0.00 36.26 0.00 09:48:55 09:29:01 2.38 0.00 2.38 0.00 0.00 43.86 0.00 09:48:55 09:30:01 2.25 0.00 2.25 0.00 0.00 50.12 0.00 09:48:55 09:31:01 24.69 0.00 24.69 0.00 0.00 1500.45 0.00 09:48:55 09:32:01 82.19 0.00 82.19 0.00 0.00 8492.45 0.00 09:48:55 09:33:01 3.42 0.00 3.42 0.00 0.00 109.72 0.00 09:48:55 09:34:01 74.84 0.00 74.84 0.00 0.00 1304.45 0.00 09:48:55 09:35:01 2.35 0.00 2.35 0.00 0.00 54.66 0.00 09:48:55 09:36:01 2.22 0.00 2.22 0.00 0.00 42.26 0.00 09:48:55 09:37:01 1.85 0.00 1.85 0.00 0.00 37.06 0.00 09:48:55 09:38:01 2.87 0.00 2.87 0.00 0.00 48.79 0.00 09:48:55 09:39:01 2.32 0.00 2.32 0.00 0.00 56.65 0.00 09:48:55 09:40:01 2.88 0.00 2.88 0.00 0.00 53.86 0.00 09:48:55 09:41:01 1.57 0.00 1.57 0.00 0.00 22.66 0.00 09:48:55 09:42:01 1.77 0.00 1.77 0.00 0.00 23.73 0.00 09:48:55 09:43:01 1.33 0.00 1.33 0.00 0.00 17.86 0.00 09:48:55 09:44:01 22.51 0.00 22.51 0.00 0.00 370.74 0.00 09:48:55 09:45:01 52.02 0.00 52.02 0.00 0.00 849.73 0.00 09:48:55 09:46:01 3.37 0.00 3.37 0.00 0.00 81.45 0.00 09:48:55 09:47:01 1.53 0.00 1.53 0.00 0.00 44.79 0.00 09:48:55 09:48:01 10.08 3.38 6.70 0.00 68.52 450.19 0.00 09:48:55 Average: 26.77 1.22 25.55 0.00 80.94 3687.12 0.00 09:48:55 09:48:55 08:08:02 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 09:48:55 08:09:01 13246264 15427696 544008 3.32 75036 2295360 1292684 7.42 814984 2027976 241456 09:48:55 08:10:01 10475044 14292860 1664072 10.16 137128 3747428 2421124 13.89 2139520 3336704 832600 09:48:55 08:11:01 9688164 15146588 809448 4.94 161656 5289648 2194656 12.59 1608044 4580552 1355784 09:48:55 08:12:02 4845988 13042640 2910872 17.77 202216 7871112 4062344 23.31 4607660 6298168 1121844 09:48:55 08:13:01 4639264 13980728 1962328 11.98 223416 8948088 2808304 16.11 4111052 6945188 306392 09:48:55 08:14:01 155048 9117300 6823196 41.65 221392 8578840 8001012 45.90 8899392 6626012 776 09:48:55 08:15:01 1008828 9628948 6311208 38.53 224432 8238236 7341688 42.12 8388632 6288868 528 09:48:55 08:16:01 293744 8853456 7086488 43.26 227312 8175764 8087640 46.40 9154988 6235896 648 09:48:55 08:17:01 173844 7610180 8329244 50.85 235456 7058568 9532092 54.69 10316188 5203236 776 09:48:55 08:18:01 174344 7610772 8328660 50.84 235508 7058584 9532092 54.69 10315380 5203016 96 09:48:55 08:19:01 4967016 12404608 3536836 21.59 235900 7059396 4843880 27.79 5549452 5194828 912 09:48:55 08:20:01 2273920 9713596 6227232 38.01 237712 7059644 7311008 41.95 8237980 5191912 460 09:48:55 08:21:01 1954152 9394352 6546212 39.96 237744 7060124 7474832 42.89 8556552 5191932 164 09:48:55 08:22:01 1912384 9352948 6587488 40.21 237776 7060464 7507940 43.08 8598092 5192176 388 09:48:55 08:23:01 1897632 9339256 6600892 40.30 237888 7061344 7531928 43.21 8613716 5190956 528 09:48:55 08:24:01 6128808 13811988 2131224 13.01 246272 7287952 2918676 16.75 4233916 5350352 147364 09:48:55 08:25:01 6165732 13851984 2091132 12.77 248928 7288296 2917888 16.74 4220268 5328748 280 09:48:55 08:26:01 6147608 13834052 2109020 12.87 248968 7288452 2917888 16.74 4238260 5328860 116 09:48:55 08:27:01 6566184 14253120 1690316 10.32 249304 7288532 2791060 16.01 3831220 5318164 516 09:48:55 08:28:01 5281760 12970416 2972312 18.14 250668 7288832 3790416 21.75 5110940 5318324 52 09:48:55 08:29:01 7646052 15334728 609424 3.72 250700 7288816 1727244 9.91 2758912 5317260 312 09:48:55 08:30:01 6125552 13814892 2128236 12.99 251032 7289148 2901476 16.65 4271952 5317588 92 09:48:55 08:31:01 4907728 12665672 3276840 20.00 255300 7349420 4313388 24.75 5420124 5376252 588 09:48:55 08:32:01 5631600 13390200 2552784 15.58 255480 7349880 3581060 20.55 4706456 5371608 612 09:48:55 08:33:01 4482980 12243780 3698464 22.58 257492 7350052 4897880 28.10 5858888 5362976 404 09:48:55 08:34:01 3970636 11732904 4209012 25.69 258444 7350528 5079032 29.14 6367876 5363228 224 09:48:55 08:35:01 6234480 13997820 1945244 11.87 259348 7350704 2827440 16.22 4113516 5362920 576 09:48:55 08:36:01 6187456 13952380 1990656 12.15 260536 7351048 2934700 16.84 4160336 5362908 456 09:48:55 08:37:01 6009992 13774996 2167932 13.23 260552 7351108 3000032 17.21 4337276 5362964 112 09:48:55 08:38:01 5558180 13324600 2618052 15.98 261648 7351404 3573536 20.50 4787316 5363176 428 09:48:55 08:39:01 5968220 13735856 2206948 13.47 262332 7351916 3033848 17.41 4378356 5363348 80 09:48:55 08:40:01 6222000 13989952 1953144 11.92 262364 7352200 2884388 16.55 4126348 5363572 576 09:48:55 08:41:01 5221564 12990244 2952088 18.02 262836 7352448 3754896 21.54 5122092 5363812 152 09:48:55 08:42:01 4790616 12559604 3382448 20.65 262872 7352712 4817244 27.64 5549376 5363896 168 09:48:55 08:43:01 3788500 11558684 4382904 26.76 263624 7353140 5187116 29.76 6548416 5364312 508 09:48:55 08:44:01 3774548 11544988 4396724 26.84 263640 7353380 5203120 29.85 6562592 5364548 68 09:48:55 08:45:01 3768980 11539580 4402048 26.87 263664 7353504 5203120 29.85 6567576 5364668 96 09:48:55 08:46:01 3768808 11539436 4402172 26.87 263696 7353512 5203120 29.85 6567432 5364676 240 09:48:55 08:47:01 3768776 11539436 4402184 26.87 263712 7353512 5203120 29.85 6567228 5364676 68 09:48:55 08:48:01 5030832 12801568 3140984 19.17 263780 7353584 4324788 24.81 5312088 5364708 272 09:48:55 08:49:01 3614780 11386628 4555024 27.81 264328 7354152 5294356 30.38 6719188 5365272 44 09:48:55 08:50:01 3598708 11370880 4570708 27.90 264344 7354468 5294356 30.38 6736560 5365584 156 09:48:55 08:51:01 3582344 11354628 4586924 28.00 264348 7354564 5294356 30.38 6752132 5365684 240 09:48:55 08:52:01 3572476 11345024 4596564 28.06 264352 7354824 5326356 30.56 6761784 5365940 32 09:48:55 08:53:01 3556252 11329176 4612348 28.16 264356 7355200 5343216 30.66 6777024 5366312 504 09:48:55 08:54:01 3532912 11305952 4635596 28.30 264356 7355308 5343216 30.66 6800160 5366424 144 09:48:55 08:55:01 3505632 11278824 4662704 28.46 264368 7355460 5375248 30.84 6827424 5366560 108 09:48:55 08:56:01 3497536 11270968 4670500 28.51 264372 7355684 5407336 31.02 6835276 5366800 324 09:48:55 08:57:01 3497420 11270856 4670604 28.51 264384 7355684 5407336 31.02 6834292 5366800 60 09:48:55 08:58:01 3497160 11270620 4670936 28.51 264400 7355688 5407336 31.02 6834484 5366804 52 09:48:55 08:59:01 6504244 14277844 1665332 10.17 264420 7355796 2784308 15.97 3841996 5366900 672 09:48:55 09:00:01 3789344 11563396 4377996 26.73 264524 7356148 5197196 29.82 6544424 5367236 320 09:48:55 09:01:01 3774776 11549160 4392228 26.81 264536 7356464 5197196 29.82 6557588 5367556 92 09:48:55 09:02:01 3746788 11521836 4419520 26.98 264556 7357124 5229184 30.00 6584752 5368200 124 09:48:55 09:03:01 3721312 11496820 4444532 27.13 264556 7357584 5245300 30.09 6609424 5368660 124 09:48:55 09:04:01 3721052 11496920 4444444 27.13 264564 7357920 5245300 30.09 6609752 5369012 256 09:48:55 09:05:01 3691576 11468092 4473184 27.31 264576 7358556 5261396 30.19 6639144 5369648 176 09:48:55 09:06:01 3665964 11443236 4498000 27.46 264584 7359320 5261396 30.19 6662104 5370392 288 09:48:55 09:07:01 3665428 11442736 4498612 27.46 264588 7359332 5261396 30.19 6662268 5370424 96 09:48:55 09:08:01 3665652 11442980 4498420 27.46 264604 7359336 5261396 30.19 6662236 5370432 264 09:48:55 09:09:01 3665716 11443052 4498376 27.46 264608 7359340 5261396 30.19 6661812 5370432 84 09:48:55 09:10:01 4007872 11784984 4156840 25.38 264628 7359044 5698652 32.69 6324432 5370128 216 09:48:55 09:11:01 2368660 10146600 5794448 35.37 265352 7359136 6671084 38.27 7960652 5370208 180 09:48:55 09:12:01 2211296 9989684 5951052 36.33 265360 7359568 6769116 38.84 8116476 5370640 188 09:48:55 09:13:01 2140624 9919308 6021308 36.76 265368 7359856 6802588 39.03 8186864 5370932 328 09:48:55 09:14:01 2105164 9884140 6056448 36.97 265372 7360156 6834620 39.21 8222164 5371216 336 09:48:55 09:15:01 2083972 9863332 6077196 37.10 265372 7360524 6851232 39.31 8241684 5371596 416 09:48:55 09:16:01 2071828 9851480 6088980 37.17 265380 7360840 6851232 39.31 8253532 5371880 32 09:48:55 09:17:01 2067300 9847192 6093344 37.20 265384 7361056 6867392 39.40 8257472 5372116 284 09:48:55 09:18:01 2044872 9824820 6115684 37.33 265396 7361080 6884092 39.50 8280292 5372140 308 09:48:55 09:19:01 2043888 9823852 6116652 37.34 265404 7361088 6884092 39.50 8279836 5372144 260 09:48:55 09:20:01 2043928 9823908 6116580 37.34 265416 7361092 6884092 39.50 8279888 5372148 256 09:48:55 09:21:01 5341736 13121836 2820444 17.22 265528 7361048 4123296 23.66 4993348 5372100 440 09:48:55 09:22:01 2545460 10326140 5614672 34.27 265836 7361280 6477184 37.16 7781624 5372320 164 09:48:55 09:23:01 2369024 10150140 5790384 35.35 265840 7361716 6575220 37.72 7957628 5372672 440 09:48:55 09:24:01 2284784 10066304 5874152 35.86 265840 7362116 6624324 38.01 8039232 5373072 276 09:48:55 09:25:01 2277712 10059360 5881080 35.90 265860 7362224 6624324 38.01 8046888 5373180 108 09:48:55 09:26:01 2262756 10044608 5895776 35.99 265860 7362436 6624324 38.01 8061396 5373384 204 09:48:55 09:27:01 2251204 10033212 5907164 36.06 265868 7362592 6624324 38.01 8072160 5373532 164 09:48:55 09:28:01 2243068 10025368 5914984 36.11 265880 7362860 6640312 38.10 8080276 5373812 316 09:48:55 09:29:01 2214364 9996788 5943544 36.28 265896 7362968 6672328 38.28 8108812 5373920 432 09:48:55 09:30:01 2186808 9969600 5970636 36.45 265900 7363356 6704628 38.47 8133624 5374288 220 09:48:55 09:31:01 6502504 14528548 1414432 8.63 271944 7591212 2206536 12.66 3645928 5555500 217208 09:48:55 09:32:01 3500712 11526772 4414328 26.95 272628 7590148 5230288 30.01 6647248 5543164 1924 09:48:55 09:33:01 3343112 11369472 4571400 27.91 272648 7590428 5349364 30.69 6801864 5543072 304 09:48:55 09:34:01 3888120 11915348 4026036 24.58 273240 7590552 5018124 28.79 6282900 5522256 272 09:48:55 09:35:01 3561772 11589408 4351660 26.56 273248 7590952 5163160 29.62 6607452 5521572 392 09:48:55 09:36:01 3552528 11580368 4360684 26.62 273252 7591148 5179200 29.71 6616476 5521708 172 09:48:55 09:37:01 3525264 11553364 4387640 26.78 273256 7591416 5179200 29.71 6643100 5521956 232 09:48:55 09:38:01 3520452 11548840 4392144 26.81 273264 7591684 5179200 29.71 6647684 5522236 172 09:48:55 09:39:01 3478084 11507008 4433856 27.07 273264 7592220 5179200 29.71 6688696 5522752 424 09:48:55 09:40:01 3477068 11506292 4434528 27.07 273268 7592516 5179200 29.71 6688228 5523048 272 09:48:55 09:41:01 3476408 11505652 4435248 27.07 273272 7592532 5179200 29.71 6688708 5523060 284 09:48:55 09:42:01 3476636 11505884 4435020 27.07 273272 7592536 5163132 29.62 6688124 5523064 44 09:48:55 09:43:01 3476928 11506176 4434712 27.07 273272 7592536 5163132 29.62 6687836 5523064 40 09:48:55 09:44:01 4091956 12120928 3820616 23.32 273352 7592188 4962912 28.47 6090288 5511644 192 09:48:55 09:45:01 2659436 10688972 5251596 32.06 273540 7592500 6249312 35.85 7517620 5511804 300 09:48:55 09:46:01 2445320 10475664 5464744 33.36 273552 7593284 6298268 36.13 7731704 5512516 240 09:48:55 09:47:01 2365004 10396208 5544348 33.85 273572 7594108 6298268 36.13 7810128 5513340 428 09:48:55 09:48:01 7003820 15117796 825256 5.04 277828 7663860 1671968 9.59 3114984 5578516 73660 09:48:55 Average: 3884317 11604938 4337226 26.48 256299 7317165 5211664 29.90 6448215 5375877 43240 09:48:55 09:48:55 08:08:02 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 09:48:55 08:09:01 ens3 89.05 73.55 822.88 9.24 0.00 0.00 0.00 0.00 09:48:55 08:09:01 lo 0.75 0.75 0.07 0.07 0.00 0.00 0.00 0.00 09:48:55 08:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:10:01 ens3 469.86 384.75 7297.99 41.80 0.00 0.00 0.00 0.00 09:48:55 08:10:01 lo 6.33 6.33 0.64 0.64 0.00 0.00 0.00 0.00 09:48:55 08:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:11:01 ens3 442.38 348.01 6045.54 31.89 0.00 0.00 0.00 0.00 09:48:55 08:11:01 lo 0.80 0.80 0.08 0.08 0.00 0.00 0.00 0.00 09:48:55 08:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:12:02 ens3 77.48 46.42 1783.43 6.83 0.00 0.00 0.00 0.00 09:48:55 08:12:02 lo 1.06 1.06 0.10 0.10 0.00 0.00 0.00 0.00 09:48:55 08:12:02 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:13:01 ens3 145.72 60.17 2096.68 4.45 0.00 0.00 0.00 0.00 09:48:55 08:13:01 lo 4.42 4.42 0.45 0.45 0.00 0.00 0.00 0.00 09:48:55 08:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:14:01 ens3 1.63 1.88 0.26 0.27 0.00 0.00 0.00 0.00 09:48:55 08:14:01 lo 27.54 27.54 29.56 29.56 0.00 0.00 0.00 0.00 09:48:55 08:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:15:01 ens3 1.93 1.87 0.54 0.47 0.00 0.00 0.00 0.00 09:48:55 08:15:01 lo 35.02 35.02 28.41 28.41 0.00 0.00 0.00 0.00 09:48:55 08:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:16:01 ens3 1.00 0.87 0.15 0.16 0.00 0.00 0.00 0.00 09:48:55 08:16:01 lo 30.78 30.78 13.52 13.52 0.00 0.00 0.00 0.00 09:48:55 08:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:17:01 ens3 1.62 2.02 0.78 0.71 0.00 0.00 0.00 0.00 09:48:55 08:17:01 lo 9.17 9.17 7.29 7.29 0.00 0.00 0.00 0.00 09:48:55 08:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:18:01 ens3 0.48 0.32 0.15 0.08 0.00 0.00 0.00 0.00 09:48:55 08:18:01 lo 0.80 0.80 0.08 0.08 0.00 0.00 0.00 0.00 09:48:55 08:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:19:01 ens3 0.68 0.38 0.10 0.06 0.00 0.00 0.00 0.00 09:48:55 08:19:01 lo 2.88 2.88 0.31 0.31 0.00 0.00 0.00 0.00 09:48:55 08:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:20:01 ens3 1.32 1.12 0.42 0.35 0.00 0.00 0.00 0.00 09:48:55 08:20:01 lo 13.90 13.90 14.61 14.61 0.00 0.00 0.00 0.00 09:48:55 08:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:21:01 ens3 0.53 0.43 0.10 0.09 0.00 0.00 0.00 0.00 09:48:55 08:21:01 lo 21.96 21.96 12.37 12.37 0.00 0.00 0.00 0.00 09:48:55 08:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:22:01 ens3 0.82 0.30 0.10 0.05 0.00 0.00 0.00 0.00 09:48:55 08:22:01 lo 18.85 18.85 8.87 8.87 0.00 0.00 0.00 0.00 09:48:55 08:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:23:01 ens3 1.95 0.50 0.60 0.32 0.00 0.00 0.00 0.00 09:48:55 08:23:01 lo 21.20 21.20 7.12 7.12 0.00 0.00 0.00 0.00 09:48:55 08:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:24:01 ens3 12.46 10.45 3.71 7.28 0.00 0.00 0.00 0.00 09:48:55 08:24:01 lo 10.56 10.56 15.65 15.65 0.00 0.00 0.00 0.00 09:48:55 08:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:25:01 ens3 1.12 0.90 0.20 0.18 0.00 0.00 0.00 0.00 09:48:55 08:25:01 lo 13.45 13.45 7.03 7.03 0.00 0.00 0.00 0.00 09:48:55 08:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:26:01 ens3 1.18 1.03 0.23 0.21 0.00 0.00 0.00 0.00 09:48:55 08:26:01 lo 27.93 27.93 9.09 9.09 0.00 0.00 0.00 0.00 09:48:55 08:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:27:01 ens3 1.18 0.93 0.20 0.18 0.00 0.00 0.00 0.00 09:48:55 08:27:01 lo 16.11 16.11 4.85 4.85 0.00 0.00 0.00 0.00 09:48:55 08:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:28:01 ens3 2.87 1.18 0.72 0.43 0.00 0.00 0.00 0.00 09:48:55 08:28:01 lo 39.13 39.13 18.73 18.73 0.00 0.00 0.00 0.00 09:48:55 08:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:29:01 ens3 3.60 1.50 1.00 0.64 0.00 0.00 0.00 0.00 09:48:55 08:29:01 lo 22.00 22.00 6.75 6.75 0.00 0.00 0.00 0.00 09:48:55 08:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:30:01 ens3 1.53 1.15 0.70 0.55 0.00 0.00 0.00 0.00 09:48:55 08:30:01 lo 26.66 26.66 11.60 11.60 0.00 0.00 0.00 0.00 09:48:55 08:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:31:01 ens3 1.95 2.57 0.84 0.78 0.00 0.00 0.00 0.00 09:48:55 08:31:01 lo 9.32 9.32 3.01 3.01 0.00 0.00 0.00 0.00 09:48:55 08:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:32:01 ens3 2.57 1.80 0.61 0.48 0.00 0.00 0.00 0.00 09:48:55 08:32:01 lo 10.20 10.20 7.55 7.55 0.00 0.00 0.00 0.00 09:48:55 08:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:33:01 ens3 1.52 0.98 0.55 0.39 0.00 0.00 0.00 0.00 09:48:55 08:33:01 lo 13.38 13.38 4.66 4.66 0.00 0.00 0.00 0.00 09:48:55 08:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:34:01 ens3 1.15 0.98 0.22 0.20 0.00 0.00 0.00 0.00 09:48:55 08:34:01 lo 21.61 21.61 10.69 10.69 0.00 0.00 0.00 0.00 09:48:55 08:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:35:01 ens3 1.00 0.82 0.17 0.16 0.00 0.00 0.00 0.00 09:48:55 08:35:01 lo 10.25 10.25 3.36 3.36 0.00 0.00 0.00 0.00 09:48:55 08:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:36:01 ens3 0.80 0.68 0.13 0.12 0.00 0.00 0.00 0.00 09:48:55 08:36:01 lo 5.62 5.62 6.27 6.27 0.00 0.00 0.00 0.00 09:48:55 08:36:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:37:01 ens3 0.65 0.37 0.09 0.08 0.00 0.00 0.00 0.00 09:48:55 08:37:01 lo 8.32 8.32 3.18 3.18 0.00 0.00 0.00 0.00 09:48:55 08:37:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:38:01 ens3 0.98 0.70 0.24 0.16 0.00 0.00 0.00 0.00 09:48:55 08:38:01 lo 4.30 4.30 1.11 1.11 0.00 0.00 0.00 0.00 09:48:55 08:38:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:39:01 ens3 0.82 0.72 0.14 0.13 0.00 0.00 0.00 0.00 09:48:55 08:39:01 lo 33.38 33.38 16.73 16.73 0.00 0.00 0.00 0.00 09:48:55 08:39:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:40:01 ens3 1.02 0.90 0.18 0.17 0.00 0.00 0.00 0.00 09:48:55 08:40:01 lo 16.10 16.10 6.17 6.17 0.00 0.00 0.00 0.00 09:48:55 08:40:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:41:01 ens3 0.63 0.53 0.11 0.10 0.00 0.00 0.00 0.00 09:48:55 08:41:01 lo 19.46 19.46 19.57 19.57 0.00 0.00 0.00 0.00 09:48:55 08:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:42:01 ens3 0.93 0.85 0.14 0.13 0.00 0.00 0.00 0.00 09:48:55 08:42:01 lo 3.93 3.93 0.73 0.73 0.00 0.00 0.00 0.00 09:48:55 08:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:43:01 ens3 0.92 0.72 0.27 0.19 0.00 0.00 0.00 0.00 09:48:55 08:43:01 lo 44.84 44.84 17.87 17.87 0.00 0.00 0.00 0.00 09:48:55 08:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:44:01 ens3 0.68 0.60 0.13 0.11 0.00 0.00 0.00 0.00 09:48:55 08:44:01 lo 35.93 35.93 10.21 10.21 0.00 0.00 0.00 0.00 09:48:55 08:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:45:01 ens3 0.78 0.25 0.11 0.05 0.00 0.00 0.00 0.00 09:48:55 08:45:01 lo 12.40 12.40 3.90 3.90 0.00 0.00 0.00 0.00 09:48:55 08:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:46:01 ens3 1.60 0.38 0.42 0.24 0.00 0.00 0.00 0.00 09:48:55 08:46:01 lo 0.20 0.20 0.01 0.01 0.00 0.00 0.00 0.00 09:48:55 08:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:47:01 ens3 0.97 0.60 0.58 0.44 0.00 0.00 0.00 0.00 09:48:55 08:47:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:48:01 ens3 0.80 0.57 0.20 0.13 0.00 0.00 0.00 0.00 09:48:55 08:48:01 lo 1.57 1.57 0.14 0.14 0.00 0.00 0.00 0.00 09:48:55 08:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:49:01 ens3 0.67 0.50 0.11 0.09 0.00 0.00 0.00 0.00 09:48:55 08:49:01 lo 30.69 30.69 22.17 22.17 0.00 0.00 0.00 0.00 09:48:55 08:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:50:01 ens3 0.87 0.65 0.14 0.12 0.00 0.00 0.00 0.00 09:48:55 08:50:01 lo 11.78 11.78 7.17 7.17 0.00 0.00 0.00 0.00 09:48:55 08:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:51:01 ens3 0.55 0.45 0.10 0.09 0.00 0.00 0.00 0.00 09:48:55 08:51:01 lo 13.40 13.40 5.74 5.74 0.00 0.00 0.00 0.00 09:48:55 08:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:52:01 ens3 0.63 0.52 0.10 0.09 0.00 0.00 0.00 0.00 09:48:55 08:52:01 lo 23.43 23.43 10.00 10.00 0.00 0.00 0.00 0.00 09:48:55 08:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:53:01 ens3 0.78 0.60 0.24 0.17 0.00 0.00 0.00 0.00 09:48:55 08:53:01 lo 18.26 18.26 8.09 8.09 0.00 0.00 0.00 0.00 09:48:55 08:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:54:01 ens3 0.58 0.47 0.10 0.09 0.00 0.00 0.00 0.00 09:48:55 08:54:01 lo 7.90 7.90 3.13 3.13 0.00 0.00 0.00 0.00 09:48:55 08:54:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:55:01 ens3 0.53 0.38 0.09 0.08 0.00 0.00 0.00 0.00 09:48:55 08:55:01 lo 16.06 16.06 8.27 8.27 0.00 0.00 0.00 0.00 09:48:55 08:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:56:01 ens3 0.38 0.22 0.04 0.03 0.00 0.00 0.00 0.00 09:48:55 08:56:01 lo 19.91 19.91 6.80 6.80 0.00 0.00 0.00 0.00 09:48:55 08:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:57:01 ens3 0.93 0.00 0.10 0.00 0.00 0.00 0.00 0.00 09:48:55 08:57:01 lo 0.37 0.37 0.03 0.03 0.00 0.00 0.00 0.00 09:48:55 08:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:58:01 ens3 1.92 0.47 0.56 0.31 0.00 0.00 0.00 0.00 09:48:55 08:58:01 lo 0.72 0.72 0.08 0.08 0.00 0.00 0.00 0.00 09:48:55 08:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 08:59:01 ens3 2.25 0.87 0.95 0.64 0.00 0.00 0.00 0.00 09:48:55 08:59:01 lo 1.90 1.90 0.17 0.17 0.00 0.00 0.00 0.00 09:48:55 08:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:00:01 ens3 1.18 0.87 0.38 0.31 0.00 0.00 0.00 0.00 09:48:55 09:00:01 lo 34.36 34.36 12.99 12.99 0.00 0.00 0.00 0.00 09:48:55 09:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:01:01 ens3 0.65 0.65 0.11 0.13 0.00 0.00 0.00 0.00 09:48:55 09:01:01 lo 19.06 19.06 6.38 6.38 0.00 0.00 0.00 0.00 09:48:55 09:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:02:01 ens3 0.57 0.50 0.08 0.07 0.00 0.00 0.00 0.00 09:48:55 09:02:01 lo 52.54 52.54 16.26 16.26 0.00 0.00 0.00 0.00 09:48:55 09:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:03:01 ens3 0.78 0.70 0.22 0.16 0.00 0.00 0.00 0.00 09:48:55 09:03:01 lo 31.69 31.69 9.22 9.22 0.00 0.00 0.00 0.00 09:48:55 09:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:04:01 ens3 1.18 0.77 0.35 0.28 0.00 0.00 0.00 0.00 09:48:55 09:04:01 lo 21.29 21.29 6.54 6.54 0.00 0.00 0.00 0.00 09:48:55 09:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:05:01 ens3 0.88 0.42 0.32 0.22 0.00 0.00 0.00 0.00 09:48:55 09:05:01 lo 37.11 37.11 11.78 11.78 0.00 0.00 0.00 0.00 09:48:55 09:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:06:01 ens3 0.22 0.08 0.01 0.01 0.00 0.00 0.00 0.00 09:48:55 09:06:01 lo 64.57 64.57 19.44 19.44 0.00 0.00 0.00 0.00 09:48:55 09:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:07:01 ens3 0.28 0.08 0.02 0.01 0.00 0.00 0.00 0.00 09:48:55 09:07:01 lo 0.55 0.55 0.05 0.05 0.00 0.00 0.00 0.00 09:48:55 09:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:08:01 ens3 1.03 0.58 0.44 0.29 0.00 0.00 0.00 0.00 09:48:55 09:08:01 lo 0.77 0.77 0.08 0.08 0.00 0.00 0.00 0.00 09:48:55 09:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:09:01 ens3 0.15 0.00 0.01 0.00 0.00 0.00 0.00 0.00 09:48:55 09:09:01 lo 0.35 0.35 0.03 0.03 0.00 0.00 0.00 0.00 09:48:55 09:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:10:01 ens3 0.80 0.78 0.10 0.10 0.00 0.00 0.00 0.00 09:48:55 09:10:01 lo 2.60 2.60 0.23 0.23 0.00 0.00 0.00 0.00 09:48:55 09:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:11:01 ens3 0.68 0.72 0.11 0.11 0.00 0.00 0.00 0.00 09:48:55 09:11:01 lo 23.16 23.16 22.63 22.63 0.00 0.00 0.00 0.00 09:48:55 09:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:12:01 ens3 0.70 0.83 0.13 0.13 0.00 0.00 0.00 0.00 09:48:55 09:12:01 lo 32.66 32.66 13.65 13.65 0.00 0.00 0.00 0.00 09:48:55 09:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:13:01 ens3 2.30 1.05 0.65 0.40 0.00 0.00 0.00 0.00 09:48:55 09:13:01 lo 18.20 18.20 7.74 7.74 0.00 0.00 0.00 0.00 09:48:55 09:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:14:01 ens3 1.88 1.18 0.97 0.73 0.00 0.00 0.00 0.00 09:48:55 09:14:01 lo 29.06 29.06 12.67 12.67 0.00 0.00 0.00 0.00 09:48:55 09:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:15:01 ens3 0.42 0.28 0.07 0.06 0.00 0.00 0.00 0.00 09:48:55 09:15:01 lo 32.28 32.28 10.71 10.71 0.00 0.00 0.00 0.00 09:48:55 09:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:16:01 ens3 0.92 0.90 0.16 0.16 0.00 0.00 0.00 0.00 09:48:55 09:16:01 lo 17.38 17.38 8.29 8.29 0.00 0.00 0.00 0.00 09:48:55 09:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:17:01 ens3 0.58 0.47 0.09 0.07 0.00 0.00 0.00 0.00 09:48:55 09:17:01 lo 21.41 21.41 8.29 8.29 0.00 0.00 0.00 0.00 09:48:55 09:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:18:01 ens3 0.62 0.53 0.19 0.12 0.00 0.00 0.00 0.00 09:48:55 09:18:01 lo 3.22 3.22 2.01 2.01 0.00 0.00 0.00 0.00 09:48:55 09:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:19:01 ens3 0.03 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:19:01 lo 0.47 0.47 0.04 0.04 0.00 0.00 0.00 0.00 09:48:55 09:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:20:01 ens3 0.78 0.10 0.07 0.01 0.00 0.00 0.00 0.00 09:48:55 09:20:01 lo 0.68 0.68 0.07 0.07 0.00 0.00 0.00 0.00 09:48:55 09:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:21:01 ens3 0.87 0.85 0.33 0.28 0.00 0.00 0.00 0.00 09:48:55 09:21:01 lo 2.18 2.18 0.20 0.20 0.00 0.00 0.00 0.00 09:48:55 09:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:22:01 ens3 1.33 0.77 0.17 0.10 0.00 0.00 0.00 0.00 09:48:55 09:22:01 lo 22.61 22.61 22.57 22.57 0.00 0.00 0.00 0.00 09:48:55 09:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:23:01 ens3 3.22 4.02 0.68 13.71 0.00 0.00 0.00 0.00 09:48:55 09:23:01 lo 32.93 32.93 13.68 13.68 0.00 0.00 0.00 0.00 09:48:55 09:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:24:01 ens3 0.42 0.30 0.06 0.05 0.00 0.00 0.00 0.00 09:48:55 09:24:01 lo 18.53 18.53 9.72 9.72 0.00 0.00 0.00 0.00 09:48:55 09:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:25:01 ens3 0.82 0.67 0.15 0.14 0.00 0.00 0.00 0.00 09:48:55 09:25:01 lo 10.56 10.56 5.99 5.99 0.00 0.00 0.00 0.00 09:48:55 09:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:26:01 ens3 0.52 0.43 0.09 0.08 0.00 0.00 0.00 0.00 09:48:55 09:26:01 lo 23.56 23.56 12.29 12.29 0.00 0.00 0.00 0.00 09:48:55 09:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:27:01 ens3 0.61 0.44 0.10 0.09 0.00 0.00 0.00 0.00 09:48:55 09:27:01 lo 8.37 8.37 5.82 5.82 0.00 0.00 0.00 0.00 09:48:55 09:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:28:01 ens3 1.65 2.25 0.23 2.00 0.00 0.00 0.00 0.00 09:48:55 09:28:01 lo 25.38 25.38 12.08 12.08 0.00 0.00 0.00 0.00 09:48:55 09:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:29:01 ens3 0.43 0.33 0.13 0.07 0.00 0.00 0.00 0.00 09:48:55 09:29:01 lo 9.47 9.47 6.10 6.10 0.00 0.00 0.00 0.00 09:48:55 09:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:30:01 ens3 0.40 0.22 0.04 0.03 0.00 0.00 0.00 0.00 09:48:55 09:30:01 lo 35.91 35.91 12.61 12.61 0.00 0.00 0.00 0.00 09:48:55 09:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:31:01 ens3 1.80 2.07 0.83 0.74 0.00 0.00 0.00 0.00 09:48:55 09:31:01 lo 5.45 5.45 2.62 2.62 0.00 0.00 0.00 0.00 09:48:55 09:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:32:01 ens3 1.70 0.80 0.42 0.27 0.00 0.00 0.00 0.00 09:48:55 09:32:01 lo 34.91 34.91 32.57 32.57 0.00 0.00 0.00 0.00 09:48:55 09:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:33:01 ens3 1.82 1.50 0.69 0.54 0.00 0.00 0.00 0.00 09:48:55 09:33:01 lo 35.26 35.26 14.29 14.29 0.00 0.00 0.00 0.00 09:48:55 09:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:34:01 ens3 1.15 0.73 0.16 0.11 0.00 0.00 0.00 0.00 09:48:55 09:34:01 lo 8.68 8.68 7.80 7.80 0.00 0.00 0.00 0.00 09:48:55 09:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:35:01 ens3 1.18 0.92 0.46 0.38 0.00 0.00 0.00 0.00 09:48:55 09:35:01 lo 32.94 32.94 12.51 12.51 0.00 0.00 0.00 0.00 09:48:55 09:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:36:01 ens3 0.77 0.68 0.15 0.13 0.00 0.00 0.00 0.00 09:48:55 09:36:01 lo 12.51 12.51 5.33 5.33 0.00 0.00 0.00 0.00 09:48:55 09:36:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:37:01 ens3 0.62 0.50 0.11 0.10 0.00 0.00 0.00 0.00 09:48:55 09:37:01 lo 26.51 26.51 10.62 10.62 0.00 0.00 0.00 0.00 09:48:55 09:37:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:38:01 ens3 0.87 0.67 0.25 0.17 0.00 0.00 0.00 0.00 09:48:55 09:38:01 lo 16.33 16.33 5.79 5.79 0.00 0.00 0.00 0.00 09:48:55 09:38:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:39:01 ens3 1.52 1.02 0.45 0.35 0.00 0.00 0.00 0.00 09:48:55 09:39:01 lo 43.49 43.49 15.23 15.23 0.00 0.00 0.00 0.00 09:48:55 09:39:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:40:01 ens3 0.63 0.68 0.10 0.10 0.00 0.00 0.00 0.00 09:48:55 09:40:01 lo 33.89 33.89 11.14 11.14 0.00 0.00 0.00 0.00 09:48:55 09:40:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:41:01 ens3 1.43 0.77 0.41 0.28 0.00 0.00 0.00 0.00 09:48:55 09:41:01 lo 3.52 3.52 0.99 0.99 0.00 0.00 0.00 0.00 09:48:55 09:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:42:01 ens3 1.03 0.30 0.34 0.21 0.00 0.00 0.00 0.00 09:48:55 09:42:01 lo 0.58 0.58 0.06 0.06 0.00 0.00 0.00 0.00 09:48:55 09:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:43:01 ens3 0.55 0.17 0.15 0.07 0.00 0.00 0.00 0.00 09:48:55 09:43:01 lo 0.23 0.23 0.02 0.02 0.00 0.00 0.00 0.00 09:48:55 09:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:44:01 ens3 0.72 0.60 0.09 0.08 0.00 0.00 0.00 0.00 09:48:55 09:44:01 lo 2.32 2.32 0.21 0.21 0.00 0.00 0.00 0.00 09:48:55 09:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:45:01 ens3 0.82 0.65 0.14 0.12 0.00 0.00 0.00 0.00 09:48:55 09:45:01 lo 44.61 44.61 21.94 21.94 0.00 0.00 0.00 0.00 09:48:55 09:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:46:01 ens3 0.90 0.72 0.16 0.14 0.00 0.00 0.00 0.00 09:48:55 09:46:01 lo 71.32 71.32 25.35 25.35 0.00 0.00 0.00 0.00 09:48:55 09:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:47:01 ens3 0.42 0.37 0.08 0.07 0.00 0.00 0.00 0.00 09:48:55 09:47:01 lo 57.31 57.31 20.10 20.10 0.00 0.00 0.00 0.00 09:48:55 09:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:48:01 ens3 13.88 17.91 71.38 4.14 0.00 0.00 0.00 0.00 09:48:55 09:48:01 lo 40.89 40.89 13.20 13.20 0.00 0.00 0.00 0.00 09:48:55 09:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 Average: ens3 13.46 10.11 181.23 1.40 0.00 0.00 0.00 0.00 09:48:55 Average: lo 18.51 18.51 8.54 8.54 0.00 0.00 0.00 0.00 09:48:55 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:48:55 09:48:55 09:48:55 ---> sar -P ALL: 09:48:55 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-40485) 10/08/24 _x86_64_ (4 CPU) 09:48:55 09:48:55 08:07:08 LINUX RESTART (4 CPU) 09:48:55 09:48:55 08:08:02 CPU %user %nice %system %iowait %steal %idle 09:48:55 08:09:01 all 18.17 8.21 6.92 2.37 0.08 64.25 09:48:55 08:09:01 0 27.08 7.20 6.85 2.46 0.08 56.32 09:48:55 08:09:01 1 19.10 9.39 7.82 1.67 0.09 61.94 09:48:55 08:09:01 2 15.61 7.42 6.49 4.22 0.07 66.19 09:48:55 08:09:01 3 10.82 8.84 6.51 1.10 0.09 72.64 09:48:55 08:10:01 all 74.56 0.00 5.00 4.04 0.14 16.27 09:48:55 08:10:01 0 73.00 0.00 5.08 3.57 0.13 18.22 09:48:55 08:10:01 1 77.95 0.00 5.33 4.64 0.15 11.93 09:48:55 08:10:01 2 71.82 0.00 4.62 3.98 0.13 19.44 09:48:55 08:10:01 3 75.47 0.00 4.97 3.95 0.13 15.47 09:48:55 08:11:01 all 54.67 0.00 2.68 1.90 0.13 40.63 09:48:55 08:11:01 0 48.96 0.00 1.57 0.30 0.13 49.03 09:48:55 08:11:01 1 76.98 0.00 4.94 1.47 0.17 16.44 09:48:55 08:11:01 2 53.20 0.00 2.09 1.54 0.12 43.05 09:48:55 08:11:01 3 39.50 0.00 2.10 4.27 0.12 54.01 09:48:55 08:12:02 all 85.23 0.00 3.84 5.68 0.14 5.10 09:48:55 08:12:02 0 83.80 0.00 3.22 5.42 0.13 7.43 09:48:55 08:12:02 1 86.53 0.00 4.16 3.09 0.15 6.07 09:48:55 08:12:02 2 86.04 0.00 3.89 5.71 0.15 4.21 09:48:55 08:12:02 3 84.54 0.00 4.11 8.51 0.13 2.71 09:48:55 08:13:01 all 83.21 0.00 3.73 9.28 0.16 3.63 09:48:55 08:13:01 0 82.96 0.00 3.96 9.43 0.15 3.50 09:48:55 08:13:01 1 81.70 0.00 4.25 11.11 0.15 2.78 09:48:55 08:13:01 2 83.28 0.00 3.30 10.28 0.15 2.98 09:48:55 08:13:01 3 84.89 0.00 3.40 6.27 0.17 5.28 09:48:55 08:14:01 all 56.46 0.00 2.08 3.26 0.11 38.10 09:48:55 08:14:01 0 53.61 0.00 1.83 3.63 0.12 40.81 09:48:55 08:14:01 1 56.71 0.00 2.57 6.02 0.12 34.59 09:48:55 08:14:01 2 57.41 0.00 1.69 3.11 0.10 37.69 09:48:55 08:14:01 3 58.15 0.00 2.21 0.25 0.10 39.29 09:48:55 08:15:01 all 31.65 0.00 1.09 0.39 0.10 66.77 09:48:55 08:15:01 0 30.42 0.00 1.19 0.86 0.08 67.45 09:48:55 08:15:01 1 32.79 0.00 0.89 0.17 0.10 66.05 09:48:55 08:15:01 2 31.80 0.00 1.30 0.39 0.10 66.41 09:48:55 08:15:01 3 31.58 0.00 0.99 0.13 0.12 67.18 09:48:55 08:16:01 all 40.06 0.00 1.53 0.43 0.09 57.89 09:48:55 08:16:01 0 39.81 0.00 1.76 1.11 0.08 57.23 09:48:55 08:16:01 1 37.81 0.00 1.55 0.18 0.08 60.38 09:48:55 08:16:01 2 40.34 0.00 1.58 0.34 0.10 57.65 09:48:55 08:16:01 3 42.32 0.00 1.24 0.08 0.08 56.27 09:48:55 08:17:01 all 36.85 0.00 1.72 1.15 0.10 60.17 09:48:55 08:17:01 0 37.25 0.00 1.47 0.22 0.10 60.95 09:48:55 08:17:01 1 34.74 0.00 1.74 2.71 0.10 60.72 09:48:55 08:17:01 2 40.51 0.00 1.92 0.45 0.08 57.03 09:48:55 08:17:01 3 34.91 0.00 1.76 1.23 0.12 61.99 09:48:55 08:18:01 all 1.09 0.00 0.37 0.05 0.06 98.44 09:48:55 08:18:01 0 1.16 0.00 0.25 0.00 0.05 98.54 09:48:55 08:18:01 1 1.12 0.00 0.42 0.05 0.05 98.36 09:48:55 08:18:01 2 0.92 0.00 0.35 0.12 0.07 98.55 09:48:55 08:18:01 3 1.17 0.00 0.45 0.02 0.07 98.30 09:48:55 08:19:01 all 22.18 0.00 1.08 0.24 0.08 76.41 09:48:55 08:19:01 0 22.93 0.00 0.92 0.13 0.10 75.92 09:48:55 08:19:01 1 21.66 0.00 1.07 0.32 0.07 76.89 09:48:55 08:19:01 2 21.04 0.00 1.07 0.25 0.08 77.56 09:48:55 08:19:01 3 23.10 0.00 1.27 0.25 0.08 75.29 09:48:55 09:48:55 08:19:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 08:20:01 all 51.93 0.00 1.70 0.51 0.11 45.75 09:48:55 08:20:01 0 51.52 0.00 1.52 0.25 0.10 46.61 09:48:55 08:20:01 1 54.23 0.00 1.49 1.54 0.12 42.62 09:48:55 08:20:01 2 55.15 0.00 1.97 0.20 0.10 42.58 09:48:55 08:20:01 3 46.82 0.00 1.83 0.05 0.12 51.19 09:48:55 08:21:01 all 9.48 0.00 0.53 0.13 0.08 89.79 09:48:55 08:21:01 0 9.27 0.00 0.38 0.00 0.08 90.26 09:48:55 08:21:01 1 9.00 0.00 0.63 0.50 0.07 89.80 09:48:55 08:21:01 2 9.67 0.00 0.50 0.00 0.07 89.76 09:48:55 08:21:01 3 9.96 0.00 0.62 0.00 0.08 89.34 09:48:55 08:22:01 all 4.77 0.00 0.45 0.06 0.07 94.65 09:48:55 08:22:01 0 5.42 0.00 0.48 0.18 0.07 93.85 09:48:55 08:22:01 1 4.85 0.00 0.48 0.07 0.08 94.52 09:48:55 08:22:01 2 4.07 0.00 0.48 0.00 0.07 95.38 09:48:55 08:22:01 3 4.74 0.00 0.37 0.00 0.05 94.84 09:48:55 08:23:01 all 3.20 0.00 0.41 0.22 0.51 95.67 09:48:55 08:23:01 0 3.15 0.00 0.40 0.17 0.45 95.83 09:48:55 08:23:01 1 3.25 0.00 0.47 0.40 0.58 95.30 09:48:55 08:23:01 2 3.36 0.00 0.38 0.28 0.47 95.51 09:48:55 08:23:01 3 3.02 0.00 0.38 0.02 0.55 96.03 09:48:55 08:24:01 all 38.07 0.00 1.60 0.79 0.11 59.42 09:48:55 08:24:01 0 34.50 0.00 1.38 0.33 0.10 63.69 09:48:55 08:24:01 1 39.35 0.00 1.55 0.50 0.12 58.48 09:48:55 08:24:01 2 38.93 0.00 1.60 2.07 0.12 57.28 09:48:55 08:24:01 3 39.53 0.00 1.87 0.25 0.10 58.25 09:48:55 08:25:01 all 31.50 0.00 1.26 0.68 0.13 66.43 09:48:55 08:25:01 0 32.31 0.00 0.95 0.08 0.13 66.52 09:48:55 08:25:01 1 31.78 0.00 1.79 1.57 0.12 64.74 09:48:55 08:25:01 2 31.57 0.00 1.03 0.82 0.13 66.44 09:48:55 08:25:01 3 30.33 0.00 1.29 0.23 0.12 68.03 09:48:55 08:26:01 all 3.53 0.00 0.36 0.03 0.06 96.02 09:48:55 08:26:01 0 3.69 0.00 0.37 0.02 0.07 95.86 09:48:55 08:26:01 1 3.54 0.00 0.37 0.07 0.07 95.96 09:48:55 08:26:01 2 3.45 0.00 0.30 0.05 0.05 96.15 09:48:55 08:26:01 3 3.43 0.00 0.42 0.00 0.05 96.11 09:48:55 08:27:01 all 23.18 0.00 0.99 0.05 0.07 75.70 09:48:55 08:27:01 0 20.72 0.00 1.49 0.02 0.08 77.69 09:48:55 08:27:01 1 23.46 0.00 0.72 0.00 0.07 75.75 09:48:55 08:27:01 2 25.84 0.00 0.85 0.17 0.08 73.06 09:48:55 08:27:01 3 22.72 0.00 0.90 0.03 0.07 76.28 09:48:55 08:28:01 all 21.20 0.00 0.77 0.26 0.09 77.68 09:48:55 08:28:01 0 20.68 0.00 0.77 0.03 0.08 78.44 09:48:55 08:28:01 1 19.77 0.00 0.75 0.05 0.10 79.33 09:48:55 08:28:01 2 21.89 0.00 0.84 0.67 0.08 76.52 09:48:55 08:28:01 3 22.46 0.00 0.73 0.28 0.08 76.45 09:48:55 08:29:01 all 3.73 0.00 0.42 0.02 0.08 95.75 09:48:55 08:29:01 0 4.03 0.00 0.62 0.02 0.10 95.23 09:48:55 08:29:01 1 3.13 0.00 0.35 0.00 0.05 96.47 09:48:55 08:29:01 2 3.20 0.00 0.42 0.08 0.08 96.21 09:48:55 08:29:01 3 4.54 0.00 0.28 0.00 0.08 95.10 09:48:55 08:30:01 all 32.42 0.00 0.84 0.76 0.08 65.90 09:48:55 08:30:01 0 33.10 0.00 0.99 0.23 0.07 65.61 09:48:55 08:30:01 1 32.13 0.00 0.92 0.03 0.10 66.81 09:48:55 08:30:01 2 32.97 0.00 0.69 2.68 0.08 63.58 09:48:55 08:30:01 3 31.45 0.00 0.77 0.08 0.08 67.61 09:48:55 09:48:55 08:30:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 08:31:01 all 41.60 0.00 1.49 0.70 0.10 56.10 09:48:55 08:31:01 0 42.58 0.00 1.61 1.46 0.10 54.25 09:48:55 08:31:01 1 39.93 0.00 1.46 0.05 0.10 58.46 09:48:55 08:31:01 2 41.62 0.00 1.30 0.79 0.12 56.17 09:48:55 08:31:01 3 42.28 0.00 1.61 0.50 0.10 55.51 09:48:55 08:32:01 all 31.43 0.00 1.13 0.05 0.08 67.31 09:48:55 08:32:01 0 28.85 0.00 1.19 0.10 0.07 69.80 09:48:55 08:32:01 1 32.85 0.00 1.04 0.05 0.07 66.00 09:48:55 08:32:01 2 30.80 0.00 1.29 0.00 0.08 67.83 09:48:55 08:32:01 3 33.23 0.00 1.01 0.07 0.08 65.61 09:48:55 08:33:01 all 47.13 0.00 1.46 0.50 0.11 50.80 09:48:55 08:33:01 0 47.34 0.00 1.29 1.11 0.10 50.17 09:48:55 08:33:01 1 48.60 0.00 1.71 0.47 0.12 49.11 09:48:55 08:33:01 2 42.42 0.00 1.41 0.05 0.12 56.01 09:48:55 08:33:01 3 50.18 0.00 1.45 0.37 0.10 47.90 09:48:55 08:34:01 all 11.26 0.00 0.32 0.18 0.07 88.17 09:48:55 08:34:01 0 11.31 0.00 0.27 0.02 0.08 88.32 09:48:55 08:34:01 1 10.83 0.00 0.38 0.03 0.07 88.69 09:48:55 08:34:01 2 11.20 0.00 0.28 0.59 0.07 87.86 09:48:55 08:34:01 3 11.68 0.00 0.35 0.07 0.07 87.83 09:48:55 08:35:01 all 25.51 0.00 0.96 0.23 0.09 73.21 09:48:55 08:35:01 0 26.03 0.00 1.02 0.00 0.07 72.88 09:48:55 08:35:01 1 25.48 0.00 1.02 0.33 0.08 73.08 09:48:55 08:35:01 2 24.76 0.00 0.87 0.52 0.10 73.75 09:48:55 08:35:01 3 25.76 0.00 0.94 0.05 0.10 73.15 09:48:55 08:36:01 all 29.31 0.00 0.98 0.55 0.12 69.05 09:48:55 08:36:01 0 30.11 0.00 1.14 0.05 0.10 68.61 09:48:55 08:36:01 1 26.99 0.00 1.25 0.17 0.13 71.46 09:48:55 08:36:01 2 30.34 0.00 0.79 1.95 0.12 66.81 09:48:55 08:36:01 3 29.80 0.00 0.75 0.03 0.12 69.30 09:48:55 08:37:01 all 6.45 0.00 0.22 0.05 0.06 93.22 09:48:55 08:37:01 0 6.36 0.00 0.28 0.00 0.07 93.29 09:48:55 08:37:01 1 7.56 0.00 0.21 0.03 0.05 92.14 09:48:55 08:37:01 2 5.54 0.00 0.12 0.15 0.05 94.15 09:48:55 08:37:01 3 6.33 0.00 0.25 0.00 0.08 93.33 09:48:55 08:38:01 all 32.07 0.00 1.15 0.54 0.09 66.15 09:48:55 08:38:01 0 34.10 0.00 1.19 0.25 0.08 64.38 09:48:55 08:38:01 1 34.22 0.00 1.05 0.08 0.08 64.56 09:48:55 08:38:01 2 29.32 0.00 1.49 1.46 0.08 67.65 09:48:55 08:38:01 3 30.61 0.00 0.87 0.39 0.10 68.03 09:48:55 08:39:01 all 39.85 0.00 1.34 0.33 0.10 58.39 09:48:55 08:39:01 0 38.77 0.00 1.18 0.69 0.10 59.26 09:48:55 08:39:01 1 41.51 0.00 1.46 0.17 0.08 56.78 09:48:55 08:39:01 2 40.47 0.00 1.31 0.20 0.12 57.91 09:48:55 08:39:01 3 38.64 0.00 1.41 0.25 0.08 59.62 09:48:55 08:40:01 all 27.32 0.00 1.19 0.06 0.09 71.34 09:48:55 08:40:01 0 27.87 0.00 1.43 0.12 0.08 70.50 09:48:55 08:40:01 1 26.71 0.00 0.95 0.00 0.08 72.25 09:48:55 08:40:01 2 27.46 0.00 0.97 0.00 0.08 71.49 09:48:55 08:40:01 3 27.23 0.00 1.41 0.13 0.10 71.13 09:48:55 08:41:01 all 20.98 0.00 0.76 0.35 0.07 77.83 09:48:55 08:41:01 0 21.75 0.00 0.72 1.33 0.08 76.12 09:48:55 08:41:01 1 21.67 0.00 0.83 0.05 0.07 77.38 09:48:55 08:41:01 2 20.88 0.00 0.75 0.00 0.08 78.29 09:48:55 08:41:01 3 19.64 0.00 0.73 0.03 0.07 79.54 09:48:55 09:48:55 08:41:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 08:42:01 all 40.32 0.00 1.60 0.03 0.09 57.96 09:48:55 08:42:01 0 41.05 0.00 1.55 0.07 0.08 57.25 09:48:55 08:42:01 1 39.87 0.00 1.65 0.00 0.10 58.38 09:48:55 08:42:01 2 41.54 0.00 1.25 0.03 0.08 57.09 09:48:55 08:42:01 3 38.84 0.00 1.92 0.02 0.08 59.15 09:48:55 08:43:01 all 20.58 0.00 0.72 0.35 0.10 78.25 09:48:55 08:43:01 0 21.44 0.00 0.73 0.92 0.12 76.79 09:48:55 08:43:01 1 19.61 0.00 0.65 0.27 0.10 79.38 09:48:55 08:43:01 2 20.94 0.00 0.75 0.02 0.08 78.20 09:48:55 08:43:01 3 20.33 0.00 0.75 0.20 0.08 78.63 09:48:55 08:44:01 all 4.12 0.00 0.35 0.10 0.05 95.38 09:48:55 08:44:01 0 3.65 0.00 0.30 0.00 0.03 96.01 09:48:55 08:44:01 1 4.28 0.00 0.45 0.17 0.07 95.03 09:48:55 08:44:01 2 4.06 0.00 0.28 0.18 0.05 95.42 09:48:55 08:44:01 3 4.48 0.00 0.38 0.03 0.07 95.04 09:48:55 08:45:01 all 1.88 0.00 0.26 0.13 0.05 97.67 09:48:55 08:45:01 0 1.62 0.00 0.23 0.00 0.05 98.10 09:48:55 08:45:01 1 1.67 0.00 0.17 0.00 0.03 98.13 09:48:55 08:45:01 2 2.08 0.00 0.38 0.20 0.07 97.27 09:48:55 08:45:01 3 2.17 0.00 0.27 0.33 0.07 97.16 09:48:55 08:46:01 all 0.56 0.00 0.23 0.10 0.06 99.05 09:48:55 08:46:01 0 0.38 0.00 0.13 0.00 0.05 99.43 09:48:55 08:46:01 1 0.43 0.00 0.15 0.00 0.07 99.35 09:48:55 08:46:01 2 0.65 0.00 0.23 0.20 0.07 98.84 09:48:55 08:46:01 3 0.75 0.00 0.38 0.22 0.07 98.58 09:48:55 08:47:01 all 0.53 0.00 0.23 0.03 0.06 99.15 09:48:55 08:47:01 0 0.32 0.00 0.12 0.00 0.05 99.52 09:48:55 08:47:01 1 0.60 0.00 0.22 0.00 0.08 99.10 09:48:55 08:47:01 2 0.92 0.00 0.40 0.02 0.08 98.58 09:48:55 08:47:01 3 0.27 0.00 0.17 0.12 0.03 99.42 09:48:55 08:48:01 all 33.66 0.00 1.30 0.06 0.08 64.90 09:48:55 08:48:01 0 34.03 0.00 1.39 0.02 0.08 64.48 09:48:55 08:48:01 1 35.30 0.00 1.29 0.02 0.08 63.31 09:48:55 08:48:01 2 34.25 0.00 1.23 0.08 0.07 64.38 09:48:55 08:48:01 3 31.07 0.00 1.30 0.12 0.10 67.41 09:48:55 08:49:01 all 25.61 0.00 0.61 0.30 0.11 73.37 09:48:55 08:49:01 0 25.64 0.00 0.54 0.38 0.08 73.36 09:48:55 08:49:01 1 25.51 0.00 0.65 0.75 0.18 72.90 09:48:55 08:49:01 2 24.95 0.00 0.35 0.03 0.07 74.60 09:48:55 08:49:01 3 26.36 0.00 0.89 0.02 0.10 72.64 09:48:55 08:50:01 all 2.81 0.00 0.21 0.03 0.06 96.90 09:48:55 08:50:01 0 2.81 0.00 0.17 0.00 0.05 96.97 09:48:55 08:50:01 1 2.73 0.00 0.15 0.07 0.07 96.99 09:48:55 08:50:01 2 2.31 0.00 0.17 0.03 0.05 97.44 09:48:55 08:50:01 3 3.38 0.00 0.35 0.00 0.07 96.21 09:48:55 08:51:01 all 2.27 0.00 0.22 0.07 0.05 97.40 09:48:55 08:51:01 0 2.04 0.00 0.20 0.00 0.05 97.70 09:48:55 08:51:01 1 2.36 0.00 0.30 0.25 0.05 97.03 09:48:55 08:51:01 2 1.77 0.00 0.15 0.02 0.03 98.03 09:48:55 08:51:01 3 2.89 0.00 0.22 0.00 0.07 96.83 09:48:55 08:52:01 all 2.84 0.00 0.22 0.10 0.05 96.80 09:48:55 08:52:01 0 2.49 0.00 0.30 0.00 0.07 97.14 09:48:55 08:52:01 1 2.23 0.00 0.17 0.13 0.05 97.42 09:48:55 08:52:01 2 2.28 0.00 0.18 0.15 0.03 97.36 09:48:55 08:52:01 3 4.34 0.00 0.22 0.10 0.05 95.30 09:48:55 09:48:55 08:52:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 08:53:01 all 2.13 0.00 0.22 0.03 0.06 97.56 09:48:55 08:53:01 0 1.84 0.00 0.28 0.00 0.07 97.81 09:48:55 08:53:01 1 2.07 0.00 0.22 0.07 0.05 97.59 09:48:55 08:53:01 2 2.65 0.00 0.12 0.05 0.07 97.12 09:48:55 08:53:01 3 1.95 0.00 0.27 0.00 0.07 97.72 09:48:55 08:54:01 all 1.25 0.00 0.17 0.02 0.05 98.51 09:48:55 08:54:01 0 1.00 0.00 0.12 0.03 0.05 98.79 09:48:55 08:54:01 1 1.32 0.00 0.28 0.00 0.07 98.33 09:48:55 08:54:01 2 1.70 0.00 0.07 0.03 0.03 98.17 09:48:55 08:54:01 3 0.99 0.00 0.20 0.00 0.05 98.76 09:48:55 08:55:01 all 1.88 0.00 0.18 0.11 0.05 97.77 09:48:55 08:55:01 0 1.60 0.00 0.15 0.12 0.05 98.08 09:48:55 08:55:01 1 1.87 0.00 0.25 0.08 0.07 97.72 09:48:55 08:55:01 2 1.71 0.00 0.12 0.20 0.03 97.93 09:48:55 08:55:01 3 2.31 0.00 0.22 0.05 0.07 97.35 09:48:55 08:56:01 all 1.91 0.00 0.21 0.62 0.07 97.19 09:48:55 08:56:01 0 1.79 0.00 0.18 2.38 0.07 95.58 09:48:55 08:56:01 1 1.66 0.00 0.20 0.00 0.07 98.07 09:48:55 08:56:01 2 2.21 0.00 0.23 0.10 0.07 97.38 09:48:55 08:56:01 3 1.99 0.00 0.22 0.00 0.08 97.70 09:48:55 08:57:01 all 0.66 0.00 0.15 0.15 0.06 98.97 09:48:55 08:57:01 0 0.42 0.00 0.12 0.37 0.05 99.05 09:48:55 08:57:01 1 0.49 0.00 0.25 0.00 0.07 99.20 09:48:55 08:57:01 2 0.30 0.00 0.13 0.25 0.07 99.25 09:48:55 08:57:01 3 1.45 0.00 0.12 0.00 0.05 98.39 09:48:55 08:58:01 all 0.42 0.00 0.13 0.15 0.06 99.23 09:48:55 08:58:01 0 0.33 0.00 0.20 0.33 0.08 99.05 09:48:55 08:58:01 1 0.42 0.00 0.15 0.25 0.07 99.11 09:48:55 08:58:01 2 0.22 0.00 0.08 0.00 0.03 99.66 09:48:55 08:58:01 3 0.72 0.00 0.10 0.00 0.07 99.11 09:48:55 08:59:01 all 25.11 0.00 1.20 0.29 0.09 73.31 09:48:55 08:59:01 0 23.68 0.00 1.28 0.44 0.10 74.50 09:48:55 08:59:01 1 25.67 0.00 1.24 0.07 0.10 72.92 09:48:55 08:59:01 2 25.66 0.00 0.84 0.37 0.07 73.06 09:48:55 08:59:01 3 25.41 0.00 1.45 0.27 0.10 72.77 09:48:55 09:00:01 all 37.40 0.00 1.35 0.79 0.12 60.34 09:48:55 09:00:01 0 36.25 0.00 1.55 2.89 0.12 59.20 09:48:55 09:00:01 1 39.23 0.00 1.35 0.12 0.12 59.19 09:48:55 09:00:01 2 38.86 0.00 1.38 0.18 0.10 59.48 09:48:55 09:00:01 3 35.25 0.00 1.13 0.00 0.14 63.49 09:48:55 09:01:01 all 3.17 0.00 0.26 0.06 0.06 96.44 09:48:55 09:01:01 0 3.20 0.00 0.23 0.13 0.05 96.38 09:48:55 09:01:01 1 3.11 0.00 0.34 0.02 0.07 96.47 09:48:55 09:01:01 2 3.32 0.00 0.20 0.10 0.05 96.33 09:48:55 09:01:01 3 3.07 0.00 0.27 0.00 0.08 96.58 09:48:55 09:02:01 all 6.36 0.00 0.34 0.07 0.08 93.16 09:48:55 09:02:01 0 6.63 0.00 0.38 0.17 0.10 92.72 09:48:55 09:02:01 1 5.97 0.00 0.32 0.00 0.05 93.66 09:48:55 09:02:01 2 6.54 0.00 0.32 0.10 0.07 92.98 09:48:55 09:02:01 3 6.31 0.00 0.34 0.00 0.08 93.27 09:48:55 09:03:01 all 3.07 0.00 0.27 0.05 0.05 96.56 09:48:55 09:03:01 0 2.67 0.00 0.34 0.15 0.05 96.79 09:48:55 09:03:01 1 2.86 0.00 0.34 0.00 0.05 96.76 09:48:55 09:03:01 2 3.95 0.00 0.18 0.03 0.07 95.77 09:48:55 09:03:01 3 2.79 0.00 0.23 0.00 0.05 96.93 09:48:55 09:48:55 09:03:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 09:04:01 all 2.18 0.00 0.17 0.01 0.13 97.50 09:48:55 09:04:01 0 2.01 0.00 0.13 0.02 0.07 97.77 09:48:55 09:04:01 1 2.26 0.00 0.15 0.00 0.03 97.55 09:48:55 09:04:01 2 2.27 0.00 0.22 0.03 0.37 97.11 09:48:55 09:04:01 3 2.18 0.00 0.18 0.00 0.05 97.59 09:48:55 09:05:01 all 3.25 0.00 0.27 0.03 0.05 96.40 09:48:55 09:05:01 0 3.56 0.00 0.30 0.12 0.05 95.97 09:48:55 09:05:01 1 3.35 0.00 0.25 0.00 0.07 96.33 09:48:55 09:05:01 2 2.98 0.00 0.28 0.00 0.03 96.71 09:48:55 09:05:01 3 3.12 0.00 0.25 0.00 0.05 96.58 09:48:55 09:06:01 all 5.26 0.00 0.33 0.09 0.05 94.26 09:48:55 09:06:01 0 6.10 0.00 0.35 0.12 0.05 93.39 09:48:55 09:06:01 1 5.09 0.00 0.35 0.00 0.03 94.53 09:48:55 09:06:01 2 4.72 0.00 0.34 0.20 0.08 94.66 09:48:55 09:06:01 3 5.12 0.00 0.30 0.05 0.05 94.48 09:48:55 09:07:01 all 0.34 0.00 0.13 0.06 0.05 99.41 09:48:55 09:07:01 0 0.44 0.00 0.17 0.15 0.07 99.18 09:48:55 09:07:01 1 0.44 0.00 0.12 0.00 0.05 99.40 09:48:55 09:07:01 2 0.32 0.00 0.15 0.08 0.05 99.40 09:48:55 09:07:01 3 0.18 0.00 0.10 0.00 0.05 99.66 09:48:55 09:08:01 all 0.31 0.00 0.15 0.04 0.06 99.44 09:48:55 09:08:01 0 0.29 0.00 0.10 0.02 0.07 99.53 09:48:55 09:08:01 1 0.54 0.00 0.18 0.00 0.07 99.21 09:48:55 09:08:01 2 0.22 0.00 0.17 0.15 0.05 99.41 09:48:55 09:08:01 3 0.18 0.00 0.13 0.00 0.07 99.61 09:48:55 09:09:01 all 0.32 0.00 0.11 0.01 0.08 99.48 09:48:55 09:09:01 0 0.40 0.00 0.22 0.02 0.10 99.26 09:48:55 09:09:01 1 0.28 0.00 0.07 0.00 0.05 99.60 09:48:55 09:09:01 2 0.43 0.00 0.10 0.02 0.12 99.33 09:48:55 09:09:01 3 0.15 0.00 0.05 0.00 0.05 99.75 09:48:55 09:10:01 all 46.84 0.00 1.78 0.10 0.11 51.16 09:48:55 09:10:01 0 42.78 0.00 1.71 0.23 0.12 55.17 09:48:55 09:10:01 1 48.30 0.00 1.69 0.03 0.10 49.88 09:48:55 09:10:01 2 47.83 0.00 1.87 0.15 0.12 50.03 09:48:55 09:10:01 3 48.47 0.00 1.87 0.00 0.12 49.54 09:48:55 09:11:01 all 25.32 0.00 0.94 0.30 0.08 73.36 09:48:55 09:11:01 0 25.12 0.00 1.43 1.20 0.08 72.16 09:48:55 09:11:01 1 24.79 0.00 0.72 0.00 0.08 74.41 09:48:55 09:11:01 2 24.45 0.00 0.67 0.00 0.08 74.80 09:48:55 09:11:01 3 26.91 0.00 0.93 0.00 0.08 72.07 09:48:55 09:12:01 all 9.57 0.00 0.44 0.06 0.06 89.87 09:48:55 09:12:01 0 9.33 0.00 0.48 0.22 0.07 89.90 09:48:55 09:12:01 1 10.02 0.00 0.47 0.00 0.07 89.45 09:48:55 09:12:01 2 9.53 0.00 0.45 0.02 0.07 89.94 09:48:55 09:12:01 3 9.41 0.00 0.37 0.00 0.05 90.18 09:48:55 09:13:01 all 4.84 0.00 0.40 0.02 0.07 94.67 09:48:55 09:13:01 0 4.33 0.00 0.42 0.02 0.07 95.17 09:48:55 09:13:01 1 5.75 0.00 0.50 0.00 0.10 93.65 09:48:55 09:13:01 2 4.54 0.00 0.33 0.03 0.05 95.04 09:48:55 09:13:01 3 4.72 0.00 0.37 0.02 0.07 94.83 09:48:55 09:14:01 all 5.18 0.00 0.39 0.02 0.06 94.36 09:48:55 09:14:01 0 5.36 0.00 0.35 0.03 0.05 94.21 09:48:55 09:14:01 1 4.82 0.00 0.45 0.00 0.07 94.66 09:48:55 09:14:01 2 5.09 0.00 0.40 0.05 0.07 94.39 09:48:55 09:14:01 3 5.42 0.00 0.35 0.00 0.05 94.18 09:48:55 09:48:55 09:14:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 09:15:01 all 3.05 0.00 0.38 0.10 0.06 96.41 09:48:55 09:15:01 0 3.19 0.00 0.43 0.37 0.07 95.94 09:48:55 09:15:01 1 3.04 0.00 0.33 0.00 0.07 96.56 09:48:55 09:15:01 2 2.91 0.00 0.28 0.02 0.05 96.74 09:48:55 09:15:01 3 3.07 0.00 0.45 0.02 0.05 96.41 09:48:55 09:16:01 all 2.06 0.00 0.28 0.02 0.07 97.57 09:48:55 09:16:01 0 2.18 0.00 0.30 0.03 0.07 97.41 09:48:55 09:16:01 1 2.05 0.00 0.30 0.00 0.07 97.58 09:48:55 09:16:01 2 2.11 0.00 0.18 0.03 0.10 97.57 09:48:55 09:16:01 3 1.91 0.00 0.33 0.00 0.05 97.71 09:48:55 09:17:01 all 2.46 0.00 0.31 0.03 0.06 97.14 09:48:55 09:17:01 0 2.52 0.00 0.42 0.07 0.07 96.93 09:48:55 09:17:01 1 2.39 0.00 0.33 0.00 0.05 97.23 09:48:55 09:17:01 2 2.24 0.00 0.32 0.05 0.07 97.33 09:48:55 09:17:01 3 2.69 0.00 0.18 0.00 0.05 97.07 09:48:55 09:18:01 all 1.33 0.00 0.27 0.03 0.05 98.32 09:48:55 09:18:01 0 0.47 0.00 0.27 0.03 0.05 99.18 09:48:55 09:18:01 1 0.85 0.00 0.30 0.00 0.07 98.78 09:48:55 09:18:01 2 2.70 0.00 0.28 0.08 0.05 96.89 09:48:55 09:18:01 3 1.28 0.00 0.25 0.00 0.03 98.43 09:48:55 09:19:01 all 0.80 0.00 0.24 0.00 0.05 98.91 09:48:55 09:19:01 0 0.58 0.00 0.22 0.02 0.05 99.13 09:48:55 09:19:01 1 1.59 0.00 0.35 0.00 0.05 98.01 09:48:55 09:19:01 2 0.73 0.00 0.32 0.00 0.05 98.90 09:48:55 09:19:01 3 0.30 0.00 0.08 0.00 0.03 99.58 09:48:55 09:20:01 all 0.55 0.00 0.26 0.01 0.05 99.13 09:48:55 09:20:01 0 0.48 0.00 0.20 0.02 0.03 99.27 09:48:55 09:20:01 1 0.62 0.00 0.37 0.00 0.07 98.94 09:48:55 09:20:01 2 0.58 0.00 0.30 0.03 0.05 99.03 09:48:55 09:20:01 3 0.52 0.00 0.18 0.00 0.03 99.27 09:48:55 09:21:01 all 32.67 0.00 1.25 0.07 0.08 65.93 09:48:55 09:21:01 0 33.23 0.00 1.05 0.00 0.07 65.65 09:48:55 09:21:01 1 28.95 0.00 1.39 0.08 0.10 69.47 09:48:55 09:21:01 2 33.99 0.00 0.98 0.17 0.08 64.77 09:48:55 09:21:01 3 34.49 0.00 1.59 0.03 0.07 63.82 09:48:55 09:22:01 all 33.23 0.00 1.22 0.34 0.09 65.12 09:48:55 09:22:01 0 31.65 0.00 0.85 0.07 0.08 67.35 09:48:55 09:22:01 1 31.80 0.00 1.29 0.05 0.08 66.78 09:48:55 09:22:01 2 34.10 0.00 1.59 0.87 0.10 63.34 09:48:55 09:22:01 3 35.36 0.00 1.14 0.38 0.10 63.02 09:48:55 09:23:01 all 8.71 0.00 0.49 0.03 0.07 90.70 09:48:55 09:23:01 0 8.87 0.00 0.42 0.02 0.07 90.63 09:48:55 09:23:01 1 9.00 0.00 0.57 0.00 0.07 90.37 09:48:55 09:23:01 2 8.69 0.00 0.40 0.00 0.07 90.85 09:48:55 09:23:01 3 8.29 0.00 0.57 0.10 0.07 90.97 09:48:55 09:24:01 all 4.79 0.00 0.30 0.01 0.06 94.84 09:48:55 09:24:01 0 4.83 0.00 0.18 0.02 0.05 94.92 09:48:55 09:24:01 1 4.82 0.00 0.20 0.00 0.05 94.92 09:48:55 09:24:01 2 4.69 0.00 0.45 0.00 0.07 94.79 09:48:55 09:24:01 3 4.82 0.00 0.37 0.03 0.07 94.72 09:48:55 09:25:01 all 2.68 0.00 0.26 0.01 0.07 96.98 09:48:55 09:25:01 0 2.09 0.00 0.23 0.03 0.07 97.58 09:48:55 09:25:01 1 2.95 0.00 0.37 0.00 0.07 96.61 09:48:55 09:25:01 2 3.04 0.00 0.18 0.00 0.07 96.71 09:48:55 09:25:01 3 2.64 0.00 0.27 0.02 0.07 97.01 09:48:55 09:48:55 09:25:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 09:26:01 all 3.02 0.00 0.29 0.02 0.06 96.61 09:48:55 09:26:01 0 2.86 0.00 0.27 0.02 0.05 96.81 09:48:55 09:26:01 1 3.16 0.00 0.28 0.00 0.07 96.49 09:48:55 09:26:01 2 3.21 0.00 0.37 0.02 0.07 96.34 09:48:55 09:26:01 3 2.85 0.00 0.23 0.03 0.07 96.81 09:48:55 09:27:01 all 1.12 0.00 0.28 0.01 0.05 98.54 09:48:55 09:27:01 0 1.24 0.00 0.25 0.02 0.03 98.46 09:48:55 09:27:01 1 1.04 0.00 0.36 0.00 0.05 98.56 09:48:55 09:27:01 2 1.14 0.00 0.27 0.00 0.05 98.54 09:48:55 09:27:01 3 1.07 0.00 0.22 0.03 0.05 98.62 09:48:55 09:28:01 all 2.82 0.00 0.26 0.01 0.06 96.84 09:48:55 09:28:01 0 3.37 0.00 0.30 0.00 0.05 96.28 09:48:55 09:28:01 1 2.49 0.00 0.27 0.00 0.05 97.19 09:48:55 09:28:01 2 3.14 0.00 0.20 0.02 0.07 96.58 09:48:55 09:28:01 3 2.29 0.00 0.28 0.03 0.07 97.33 09:48:55 09:29:01 all 1.17 0.00 0.22 0.02 0.07 98.53 09:48:55 09:29:01 0 1.05 0.00 0.27 0.00 0.08 98.59 09:48:55 09:29:01 1 1.12 0.00 0.13 0.00 0.07 98.68 09:48:55 09:29:01 2 1.22 0.00 0.12 0.03 0.05 98.58 09:48:55 09:29:01 3 1.27 0.00 0.35 0.03 0.08 98.27 09:48:55 09:30:01 all 3.12 0.00 0.37 0.02 0.07 96.43 09:48:55 09:30:01 0 3.01 0.00 0.38 0.00 0.07 96.54 09:48:55 09:30:01 1 4.17 0.00 0.51 0.00 0.07 95.25 09:48:55 09:30:01 2 2.52 0.00 0.25 0.03 0.07 97.13 09:48:55 09:30:01 3 2.77 0.00 0.33 0.03 0.07 96.79 09:48:55 09:31:01 all 27.98 0.00 1.18 0.37 0.09 70.38 09:48:55 09:31:01 0 26.95 0.00 1.17 0.33 0.08 71.46 09:48:55 09:31:01 1 27.11 0.00 1.38 0.37 0.08 71.06 09:48:55 09:31:01 2 24.34 0.00 1.20 0.72 0.10 73.64 09:48:55 09:31:01 3 33.52 0.00 0.95 0.07 0.10 65.36 09:48:55 09:32:01 all 38.50 0.00 1.44 0.90 0.12 59.04 09:48:55 09:32:01 0 37.96 0.00 1.57 0.07 0.13 60.27 09:48:55 09:32:01 1 39.10 0.00 1.79 0.93 0.15 58.04 09:48:55 09:32:01 2 37.31 0.00 1.26 0.25 0.10 61.08 09:48:55 09:32:01 3 39.64 0.00 1.13 2.35 0.10 56.77 09:48:55 09:33:01 all 5.22 0.00 0.37 0.08 0.07 94.27 09:48:55 09:33:01 0 5.18 0.00 0.35 0.00 0.07 94.40 09:48:55 09:33:01 1 5.01 0.00 0.37 0.10 0.05 94.47 09:48:55 09:33:01 2 5.35 0.00 0.32 0.00 0.07 94.26 09:48:55 09:33:01 3 5.34 0.00 0.43 0.20 0.08 93.94 09:48:55 09:34:01 all 46.02 0.00 1.54 0.28 0.09 52.08 09:48:55 09:34:01 0 45.28 0.00 1.88 0.25 0.08 52.50 09:48:55 09:34:01 1 47.18 0.00 1.39 0.12 0.08 51.23 09:48:55 09:34:01 2 45.79 0.00 1.34 0.05 0.08 52.75 09:48:55 09:34:01 3 45.82 0.00 1.55 0.69 0.10 51.84 09:48:55 09:35:01 all 11.85 0.00 0.48 0.03 0.06 87.57 09:48:55 09:35:01 0 11.18 0.00 0.48 0.00 0.07 88.27 09:48:55 09:35:01 1 11.69 0.00 0.42 0.00 0.07 87.83 09:48:55 09:35:01 2 11.77 0.00 0.57 0.07 0.07 87.53 09:48:55 09:35:01 3 12.78 0.00 0.47 0.05 0.05 86.66 09:48:55 09:36:01 all 2.66 0.00 0.27 0.01 0.06 97.01 09:48:55 09:36:01 0 2.58 0.00 0.33 0.00 0.05 97.04 09:48:55 09:36:01 1 2.37 0.00 0.27 0.00 0.07 97.29 09:48:55 09:36:01 2 2.84 0.00 0.20 0.02 0.05 96.89 09:48:55 09:36:01 3 2.84 0.00 0.27 0.02 0.07 96.81 09:48:55 09:48:55 09:36:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 09:37:01 all 3.15 0.00 0.32 0.11 0.06 96.37 09:48:55 09:37:01 0 2.87 0.00 0.22 0.00 0.05 96.86 09:48:55 09:37:01 1 3.25 0.00 0.39 0.00 0.07 96.30 09:48:55 09:37:01 2 3.34 0.00 0.40 0.13 0.07 96.06 09:48:55 09:37:01 3 3.12 0.00 0.27 0.30 0.05 96.26 09:48:55 09:38:01 all 1.88 0.00 0.25 0.08 0.07 97.72 09:48:55 09:38:01 0 1.79 0.00 0.33 0.08 0.08 97.71 09:48:55 09:38:01 1 1.78 0.00 0.25 0.00 0.07 97.90 09:48:55 09:38:01 2 1.75 0.00 0.12 0.20 0.05 97.88 09:48:55 09:38:01 3 2.20 0.00 0.30 0.03 0.08 97.38 09:48:55 09:39:01 all 4.49 0.00 0.41 0.22 0.07 94.81 09:48:55 09:39:01 0 4.67 0.00 0.33 0.00 0.05 94.94 09:48:55 09:39:01 1 4.25 0.00 0.30 0.07 0.12 95.26 09:48:55 09:39:01 2 4.06 0.00 0.53 0.25 0.05 95.10 09:48:55 09:39:01 3 4.98 0.00 0.47 0.57 0.05 93.94 09:48:55 09:40:01 all 3.01 0.00 0.32 0.30 0.05 96.33 09:48:55 09:40:01 0 2.90 0.00 0.30 0.00 0.03 96.77 09:48:55 09:40:01 1 3.10 0.00 0.42 0.18 0.05 96.24 09:48:55 09:40:01 2 2.86 0.00 0.35 0.35 0.05 96.39 09:48:55 09:40:01 3 3.17 0.00 0.20 0.65 0.05 95.93 09:48:55 09:41:01 all 0.90 0.00 0.26 0.01 0.05 98.78 09:48:55 09:41:01 0 0.63 0.00 0.13 0.00 0.03 99.20 09:48:55 09:41:01 1 1.02 0.00 0.32 0.00 0.05 98.62 09:48:55 09:41:01 2 1.39 0.00 0.28 0.02 0.05 98.26 09:48:55 09:41:01 3 0.53 0.00 0.32 0.03 0.07 99.05 09:48:55 09:42:01 all 0.79 0.00 0.22 0.02 0.04 98.93 09:48:55 09:42:01 0 0.42 0.00 0.23 0.00 0.05 99.30 09:48:55 09:42:01 1 0.63 0.00 0.30 0.00 0.05 99.02 09:48:55 09:42:01 2 1.80 0.00 0.15 0.02 0.03 98.00 09:48:55 09:42:01 3 0.32 0.00 0.18 0.07 0.03 99.40 09:48:55 09:43:01 all 0.55 0.00 0.20 0.19 0.04 99.02 09:48:55 09:43:01 0 0.70 0.00 0.37 0.00 0.05 98.88 09:48:55 09:43:01 1 0.53 0.00 0.18 0.00 0.05 99.23 09:48:55 09:43:01 2 0.57 0.00 0.03 0.17 0.02 99.22 09:48:55 09:43:01 3 0.40 0.00 0.20 0.60 0.03 98.76 09:48:55 09:44:01 all 38.50 0.00 1.35 0.01 0.08 60.06 09:48:55 09:44:01 0 38.23 0.00 1.37 0.00 0.08 60.32 09:48:55 09:44:01 1 40.14 0.00 1.37 0.00 0.08 58.41 09:48:55 09:44:01 2 38.91 0.00 1.48 0.03 0.08 59.50 09:48:55 09:44:01 3 36.70 0.00 1.17 0.02 0.08 62.03 09:48:55 09:45:01 all 27.24 0.00 0.93 0.37 0.09 71.38 09:48:55 09:45:01 0 26.18 0.00 1.15 0.00 0.08 72.59 09:48:55 09:45:01 1 28.68 0.00 0.70 0.00 0.08 70.53 09:48:55 09:45:01 2 27.46 0.00 0.94 0.02 0.08 71.51 09:48:55 09:45:01 3 26.65 0.00 0.92 1.45 0.10 70.88 09:48:55 09:46:01 all 9.07 0.00 0.45 0.01 0.06 90.41 09:48:55 09:46:01 0 8.91 0.00 0.60 0.02 0.07 90.41 09:48:55 09:46:01 1 8.66 0.00 0.34 0.00 0.07 90.93 09:48:55 09:46:01 2 9.55 0.00 0.47 0.03 0.07 89.88 09:48:55 09:46:01 3 9.14 0.00 0.38 0.00 0.05 90.43 09:48:55 09:47:01 all 5.63 0.00 0.40 0.02 0.05 93.91 09:48:55 09:47:01 0 5.07 0.00 0.38 0.02 0.03 94.49 09:48:55 09:47:01 1 6.30 0.00 0.27 0.00 0.05 93.38 09:48:55 09:47:01 2 5.59 0.00 0.47 0.05 0.05 93.84 09:48:55 09:47:01 3 5.54 0.00 0.47 0.00 0.05 93.94 09:48:55 09:48:55 09:47:01 CPU %user %nice %system %iowait %steal %idle 09:48:55 09:48:01 all 12.68 0.00 0.85 0.21 0.06 86.19 09:48:55 09:48:01 0 10.05 0.00 0.97 0.60 0.07 88.31 09:48:55 09:48:01 1 8.66 0.00 0.76 0.00 0.05 90.54 09:48:55 09:48:01 2 13.43 0.00 0.77 0.08 0.07 85.65 09:48:55 09:48:01 3 18.58 0.00 0.92 0.17 0.07 80.27 09:48:55 Average: all 17.04 0.08 0.84 0.44 0.08 81.52 09:48:55 Average: 0 16.81 0.07 0.83 0.46 0.08 81.75 09:48:55 Average: 1 17.31 0.09 0.90 0.42 0.08 81.20 09:48:55 Average: 2 17.06 0.07 0.79 0.50 0.08 81.50 09:48:55 Average: 3 16.98 0.09 0.83 0.38 0.08 81.64 09:48:55 09:48:55 09:48:55