09:48:33 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/113874 09:48:33 Running as SYSTEM 09:48:33 [EnvInject] - Loading node environment variables. 09:48:33 Building remotely on prd-ubuntu2004-docker-4c-16g-1149 (ubuntu2004-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 09:48:33 [ssh-agent] Looking for ssh-agent implementation... 09:48:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:48:33 $ ssh-agent 09:48:33 SSH_AUTH_SOCK=/tmp/ssh-wozLlXFDJgBK/agent.12802 09:48:33 SSH_AGENT_PID=12806 09:48:33 [ssh-agent] Started. 09:48:33 Running ssh-add (command line suppressed) 09:48:33 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_10558859526821996520.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_10558859526821996520.key) 09:48:33 [ssh-agent] Using credentials jenkins (jenkins-ssh) 09:48:33 The recommended git tool is: NONE 09:48:36 using credential jenkins-ssh 09:48:36 Wiping out workspace first. 09:48:36 Cloning the remote Git repository 09:48:36 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 09:48:36 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 09:48:36 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 09:48:36 > git --version # timeout=10 09:48:36 > git --version # 'git version 2.25.1' 09:48:36 using GIT_SSH to set credentials jenkins-ssh 09:48:36 Verifying host key using known hosts file 09:48:36 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. 09:48:36 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 09:48:39 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 09:48:39 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 09:48:40 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 09:48:40 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 09:48:40 using GIT_SSH to set credentials jenkins-ssh 09:48:40 Verifying host key using known hosts file 09:48:40 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. 09:48:40 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/74/113874/6 # timeout=10 09:48:40 > git rev-parse e5ab8f82f8ee11f2eb48efbf543538edd591ae60^{commit} # timeout=10 09:48:40 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 09:48:40 Checking out Revision e5ab8f82f8ee11f2eb48efbf543538edd591ae60 (refs/changes/74/113874/6) 09:48:40 > git config core.sparsecheckout # timeout=10 09:48:40 > git checkout -f e5ab8f82f8ee11f2eb48efbf543538edd591ae60 # timeout=10 09:48:43 Commit message: "Correct bugs handling spectrum constraint" 09:48:43 > git rev-parse FETCH_HEAD^{commit} # timeout=10 09:48:43 > git rev-list --no-walk ee77c94d73171d4eb7a8f85abdfd387dc14ffd3a # timeout=10 09:48:43 > git remote # timeout=10 09:48:43 > git submodule init # timeout=10 09:48:43 > git submodule sync # timeout=10 09:48:43 > git config --get remote.origin.url # timeout=10 09:48:43 > git submodule init # timeout=10 09:48:43 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 09:48:43 ERROR: No submodules found. 09:48:44 provisioning config files... 09:48:44 copy managed file [npmrc] to file:/home/jenkins/.npmrc 09:48:44 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 09:48:44 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11870045379792805684.sh 09:48:44 ---> python-tools-install.sh 09:48:44 Setup pyenv: 09:48:44 * system (set by /opt/pyenv/version) 09:48:44 * 3.8.13 (set by /opt/pyenv/version) 09:48:44 * 3.9.13 (set by /opt/pyenv/version) 09:48:44 * 3.10.13 (set by /opt/pyenv/version) 09:48:44 * 3.11.7 (set by /opt/pyenv/version) 09:48:49 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-x23Y 09:48:49 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 09:48:52 lf-activate-venv(): INFO: Installing: lftools 09:49:25 lf-activate-venv(): INFO: Adding /tmp/venv-x23Y/bin to PATH 09:49:25 Generating Requirements File 09:49:45 Python 3.11.7 09:49:45 pip 24.2 from /tmp/venv-x23Y/lib/python3.11/site-packages/pip (python 3.11) 09:49:46 appdirs==1.4.4 09:49:46 argcomplete==3.5.1 09:49:46 aspy.yaml==1.3.0 09:49:46 attrs==24.2.0 09:49:46 autopage==0.5.2 09:49:46 beautifulsoup4==4.12.3 09:49:46 boto3==1.35.48 09:49:46 botocore==1.35.48 09:49:46 bs4==0.0.2 09:49:46 cachetools==5.5.0 09:49:46 certifi==2024.8.30 09:49:46 cffi==1.17.1 09:49:46 cfgv==3.4.0 09:49:46 chardet==5.2.0 09:49:46 charset-normalizer==3.4.0 09:49:46 click==8.1.7 09:49:46 cliff==4.7.0 09:49:46 cmd2==2.5.0 09:49:46 cryptography==3.3.2 09:49:46 debtcollector==3.0.0 09:49:46 decorator==5.1.1 09:49:46 defusedxml==0.7.1 09:49:46 Deprecated==1.2.14 09:49:46 distlib==0.3.9 09:49:46 dnspython==2.7.0 09:49:46 docker==4.2.2 09:49:46 dogpile.cache==1.3.3 09:49:46 durationpy==0.9 09:49:46 email_validator==2.2.0 09:49:46 filelock==3.16.1 09:49:46 future==1.0.0 09:49:46 gitdb==4.0.11 09:49:46 GitPython==3.1.43 09:49:46 google-auth==2.35.0 09:49:46 httplib2==0.22.0 09:49:46 identify==2.6.1 09:49:46 idna==3.10 09:49:46 importlib-resources==1.5.0 09:49:46 iso8601==2.1.0 09:49:46 Jinja2==3.1.4 09:49:46 jmespath==1.0.1 09:49:46 jsonpatch==1.33 09:49:46 jsonpointer==3.0.0 09:49:46 jsonschema==4.23.0 09:49:46 jsonschema-specifications==2024.10.1 09:49:46 keystoneauth1==5.8.0 09:49:46 kubernetes==31.0.0 09:49:46 lftools==0.37.10 09:49:46 lxml==5.3.0 09:49:46 MarkupSafe==3.0.2 09:49:46 msgpack==1.1.0 09:49:46 multi_key_dict==2.0.3 09:49:46 munch==4.0.0 09:49:46 netaddr==1.3.0 09:49:46 netifaces==0.11.0 09:49:46 niet==1.4.2 09:49:46 nodeenv==1.9.1 09:49:46 oauth2client==4.1.3 09:49:46 oauthlib==3.2.2 09:49:46 openstacksdk==4.1.0 09:49:46 os-client-config==2.1.0 09:49:46 os-service-types==1.7.0 09:49:46 osc-lib==3.1.0 09:49:46 oslo.config==9.6.0 09:49:46 oslo.context==5.6.0 09:49:46 oslo.i18n==6.4.0 09:49:46 oslo.log==6.1.2 09:49:46 oslo.serialization==5.5.0 09:49:46 oslo.utils==7.3.0 09:49:46 packaging==24.1 09:49:46 pbr==6.1.0 09:49:46 platformdirs==4.3.6 09:49:46 prettytable==3.11.0 09:49:46 pyasn1==0.6.1 09:49:46 pyasn1_modules==0.4.1 09:49:46 pycparser==2.22 09:49:46 pygerrit2==2.0.15 09:49:46 PyGithub==2.4.0 09:49:46 PyJWT==2.9.0 09:49:46 PyNaCl==1.5.0 09:49:46 pyparsing==2.4.7 09:49:46 pyperclip==1.9.0 09:49:46 pyrsistent==0.20.0 09:49:46 python-cinderclient==9.6.0 09:49:46 python-dateutil==2.9.0.post0 09:49:46 python-heatclient==4.0.0 09:49:46 python-jenkins==1.8.2 09:49:46 python-keystoneclient==5.5.0 09:49:46 python-magnumclient==4.7.0 09:49:46 python-openstackclient==7.2.0 09:49:46 python-swiftclient==4.6.0 09:49:46 PyYAML==6.0.2 09:49:46 referencing==0.35.1 09:49:46 requests==2.32.3 09:49:46 requests-oauthlib==2.0.0 09:49:46 requestsexceptions==1.4.0 09:49:46 rfc3986==2.0.0 09:49:46 rpds-py==0.20.0 09:49:46 rsa==4.9 09:49:46 ruamel.yaml==0.18.6 09:49:46 ruamel.yaml.clib==0.2.12 09:49:46 s3transfer==0.10.3 09:49:46 simplejson==3.19.3 09:49:46 six==1.16.0 09:49:46 smmap==5.0.1 09:49:46 soupsieve==2.6 09:49:46 stevedore==5.3.0 09:49:46 tabulate==0.9.0 09:49:46 toml==0.10.2 09:49:46 tomlkit==0.13.2 09:49:46 tqdm==4.66.5 09:49:46 typing_extensions==4.12.2 09:49:46 tzdata==2024.2 09:49:46 urllib3==1.26.20 09:49:46 virtualenv==20.27.0 09:49:46 wcwidth==0.2.13 09:49:46 websocket-client==1.8.0 09:49:46 wrapt==1.16.0 09:49:46 xdg==6.0.0 09:49:46 xmltodict==0.14.2 09:49:46 yq==3.4.3 09:49:46 [EnvInject] - Injecting environment variables from a build step. 09:49:46 [EnvInject] - Injecting as environment variables the properties content 09:49:46 PYTHON=python3 09:49:46 09:49:46 [EnvInject] - Variables injected successfully. 09:49:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins1324032006177052724.sh 09:49:46 ---> tox-install.sh 09:49:46 + source /home/jenkins/lf-env.sh 09:49:46 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 09:49:46 ++ mktemp -d /tmp/venv-XXXX 09:49:46 + lf_venv=/tmp/venv-MECD 09:49:46 + local venv_file=/tmp/.os_lf_venv 09:49:46 + local python=python3 09:49:46 + local options 09:49:46 + local set_path=true 09:49:46 + local install_args= 09:49:46 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 09:49:46 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:49:46 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:49:46 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 09:49:46 + true 09:49:46 + case $1 in 09:49:46 + venv_file=/tmp/.toxenv 09:49:46 + shift 2 09:49:46 + true 09:49:46 + case $1 in 09:49:46 + shift 09:49:46 + break 09:49:46 + case $python in 09:49:46 + local pkg_list= 09:49:46 + [[ -d /opt/pyenv ]] 09:49:46 + echo 'Setup pyenv:' 09:49:46 Setup pyenv: 09:49:46 + export PYENV_ROOT=/opt/pyenv 09:49:46 + PYENV_ROOT=/opt/pyenv 09:49:46 + export PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:46 + PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:46 + pyenv versions 09:49:46 system 09:49:46 3.8.13 09:49:46 3.9.13 09:49:46 3.10.13 09:49:46 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:49:46 + command -v pyenv 09:49:46 ++ pyenv init - --no-rehash 09:49:46 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 09:49:46 for i in ${!paths[@]}; do 09:49:46 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 09:49:46 fi; done; 09:49:46 echo "${paths[*]}"'\'')" 09:49:46 export PATH="/opt/pyenv/shims:${PATH}" 09:49:46 export PYENV_SHELL=bash 09:49:46 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 09:49:46 pyenv() { 09:49:46 local command 09:49:46 command="${1:-}" 09:49:46 if [ "$#" -gt 0 ]; then 09:49:46 shift 09:49:46 fi 09:49:46 09:49:46 case "$command" in 09:49:46 rehash|shell) 09:49:46 eval "$(pyenv "sh-$command" "$@")" 09:49:46 ;; 09:49:46 *) 09:49:46 command pyenv "$command" "$@" 09:49:46 ;; 09:49:46 esac 09:49:46 }' 09:49:46 +++ bash --norc -ec 'IFS=:; paths=($PATH); 09:49:46 for i in ${!paths[@]}; do 09:49:46 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 09:49:46 fi; done; 09:49:46 echo "${paths[*]}"' 09:49:46 ++ PATH=/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:46 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:46 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:46 ++ export PYENV_SHELL=bash 09:49:46 ++ PYENV_SHELL=bash 09:49:46 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 09:49:46 +++ complete -F _pyenv pyenv 09:49:46 ++ lf-pyver python3 09:49:46 ++ local py_version_xy=python3 09:49:46 ++ local py_version_xyz= 09:49:46 ++ pyenv versions 09:49:46 ++ sed 's/^[ *]* //' 09:49:46 ++ local command 09:49:46 ++ command=versions 09:49:46 ++ '[' 1 -gt 0 ']' 09:49:46 ++ shift 09:49:46 ++ grep -E '^[0-9.]*[0-9]$' 09:49:46 ++ case "$command" in 09:49:46 ++ command pyenv versions 09:49:46 ++ pyenv versions 09:49:46 ++ awk '{ print $1 }' 09:49:46 ++ [[ ! -s /tmp/.pyenv_versions ]] 09:49:46 +++ grep '^3' /tmp/.pyenv_versions 09:49:46 +++ sort -V 09:49:46 +++ tail -n 1 09:49:46 ++ py_version_xyz=3.11.7 09:49:46 ++ [[ -z 3.11.7 ]] 09:49:46 ++ echo 3.11.7 09:49:46 ++ return 0 09:49:46 + pyenv local 3.11.7 09:49:46 + local command 09:49:46 + command=local 09:49:46 + '[' 2 -gt 0 ']' 09:49:46 + shift 09:49:46 + case "$command" in 09:49:46 + command pyenv local 3.11.7 09:49:46 + pyenv local 3.11.7 09:49:46 + for arg in "$@" 09:49:46 + case $arg in 09:49:46 + pkg_list+='tox ' 09:49:46 + for arg in "$@" 09:49:46 + case $arg in 09:49:46 + pkg_list+='virtualenv ' 09:49:46 + for arg in "$@" 09:49:46 + case $arg in 09:49:46 + pkg_list+='urllib3~=1.26.15 ' 09:49:46 + [[ -f /tmp/.toxenv ]] 09:49:46 + [[ ! -f /tmp/.toxenv ]] 09:49:46 + [[ -n '' ]] 09:49:46 + python3 -m venv /tmp/venv-MECD 09:49:50 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-MECD' 09:49:50 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-MECD 09:49:50 + echo /tmp/venv-MECD 09:49:50 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 09:49:50 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 09:49:50 + /tmp/venv-MECD/bin/python3 -m pip install --upgrade --quiet pip virtualenv 09:49:53 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 09:49:53 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 09:49:53 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 09:49:53 + /tmp/venv-MECD/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 09:49:55 + type python3 09:49:55 + true 09:49:55 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-MECD/bin to PATH' 09:49:55 lf-activate-venv(): INFO: Adding /tmp/venv-MECD/bin to PATH 09:49:55 + PATH=/tmp/venv-MECD/bin:/opt/pyenv/shims:/opt/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:55 + return 0 09:49:55 + python3 --version 09:49:55 Python 3.11.7 09:49:55 + python3 -m pip --version 09:49:55 pip 24.2 from /tmp/venv-MECD/lib/python3.11/site-packages/pip (python 3.11) 09:49:55 + python3 -m pip freeze 09:49:55 cachetools==5.5.0 09:49:55 chardet==5.2.0 09:49:55 colorama==0.4.6 09:49:55 distlib==0.3.9 09:49:55 filelock==3.16.1 09:49:55 packaging==24.1 09:49:55 platformdirs==4.3.6 09:49:55 pluggy==1.5.0 09:49:55 pyproject-api==1.8.0 09:49:55 tox==4.23.2 09:49:55 urllib3==1.26.20 09:49:55 virtualenv==20.27.0 09:49:55 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins2044339783144122324.sh 09:49:55 [EnvInject] - Injecting environment variables from a build step. 09:49:55 [EnvInject] - Injecting as environment variables the properties content 09:49:55 PARALLEL=True 09:49:55 09:49:55 [EnvInject] - Variables injected successfully. 09:49:56 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins15776718569527117564.sh 09:49:56 ---> tox-run.sh 09:49:56 + PATH=/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:56 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 09:49:56 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 09:49:56 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 09:49:56 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 09:49:56 + source /home/jenkins/lf-env.sh 09:49:56 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 09:49:56 ++ mktemp -d /tmp/venv-XXXX 09:49:56 + lf_venv=/tmp/venv-06nq 09:49:56 + local venv_file=/tmp/.os_lf_venv 09:49:56 + local python=python3 09:49:56 + local options 09:49:56 + local set_path=true 09:49:56 + local install_args= 09:49: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 09:49:56 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:49:56 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:49:56 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 09:49:56 + true 09:49:56 + case $1 in 09:49:56 + venv_file=/tmp/.toxenv 09:49:56 + shift 2 09:49:56 + true 09:49:56 + case $1 in 09:49:56 + shift 09:49:56 + break 09:49:56 + case $python in 09:49:56 + local pkg_list= 09:49:56 + [[ -d /opt/pyenv ]] 09:49:56 + echo 'Setup pyenv:' 09:49:56 Setup pyenv: 09:49:56 + export PYENV_ROOT=/opt/pyenv 09:49:56 + PYENV_ROOT=/opt/pyenv 09:49:56 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:56 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:56 + pyenv versions 09:49:56 system 09:49:56 3.8.13 09:49:56 3.9.13 09:49:56 3.10.13 09:49:56 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:49:56 + command -v pyenv 09:49:56 ++ pyenv init - --no-rehash 09:49:56 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 09:49:56 for i in ${!paths[@]}; do 09:49:56 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 09:49:56 fi; done; 09:49:56 echo "${paths[*]}"'\'')" 09:49:56 export PATH="/opt/pyenv/shims:${PATH}" 09:49:56 export PYENV_SHELL=bash 09:49:56 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 09:49:56 pyenv() { 09:49:56 local command 09:49:56 command="${1:-}" 09:49:56 if [ "$#" -gt 0 ]; then 09:49:56 shift 09:49:56 fi 09:49:56 09:49:56 case "$command" in 09:49:56 rehash|shell) 09:49:56 eval "$(pyenv "sh-$command" "$@")" 09:49:56 ;; 09:49:56 *) 09:49:56 command pyenv "$command" "$@" 09:49:56 ;; 09:49:56 esac 09:49:56 }' 09:49:56 +++ bash --norc -ec 'IFS=:; paths=($PATH); 09:49:56 for i in ${!paths[@]}; do 09:49:56 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 09:49:56 fi; done; 09:49:56 echo "${paths[*]}"' 09:49:56 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:56 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:56 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:56 ++ export PYENV_SHELL=bash 09:49:56 ++ PYENV_SHELL=bash 09:49:56 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 09:49:56 +++ complete -F _pyenv pyenv 09:49:56 ++ lf-pyver python3 09:49:56 ++ local py_version_xy=python3 09:49:56 ++ local py_version_xyz= 09:49:56 ++ pyenv versions 09:49:56 ++ local command 09:49:56 ++ command=versions 09:49:56 ++ '[' 1 -gt 0 ']' 09:49:56 ++ shift 09:49:56 ++ case "$command" in 09:49:56 ++ command pyenv versions 09:49:56 ++ pyenv versions 09:49:56 ++ sed 's/^[ *]* //' 09:49:56 ++ grep -E '^[0-9.]*[0-9]$' 09:49:56 ++ awk '{ print $1 }' 09:49:56 ++ [[ ! -s /tmp/.pyenv_versions ]] 09:49:56 +++ grep '^3' /tmp/.pyenv_versions 09:49:56 +++ sort -V 09:49:56 +++ tail -n 1 09:49:56 ++ py_version_xyz=3.11.7 09:49:56 ++ [[ -z 3.11.7 ]] 09:49:56 ++ echo 3.11.7 09:49:56 ++ return 0 09:49:56 + pyenv local 3.11.7 09:49:56 + local command 09:49:56 + command=local 09:49:56 + '[' 2 -gt 0 ']' 09:49:56 + shift 09:49:56 + case "$command" in 09:49:56 + command pyenv local 3.11.7 09:49:56 + pyenv local 3.11.7 09:49:56 + for arg in "$@" 09:49:56 + case $arg in 09:49:56 + pkg_list+='tox ' 09:49:56 + for arg in "$@" 09:49:56 + case $arg in 09:49:56 + pkg_list+='virtualenv ' 09:49:56 + for arg in "$@" 09:49:56 + case $arg in 09:49:56 + pkg_list+='urllib3~=1.26.15 ' 09:49:56 + [[ -f /tmp/.toxenv ]] 09:49:56 ++ cat /tmp/.toxenv 09:49:56 + lf_venv=/tmp/venv-MECD 09:49:56 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-MECD from' file:/tmp/.toxenv 09:49:56 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-MECD from file:/tmp/.toxenv 09:49:56 + /tmp/venv-MECD/bin/python3 -m pip install --upgrade --quiet pip virtualenv 09:49:57 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 09:49:57 + echo 'lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 ' 09:49:57 lf-activate-venv(): INFO: Installing: tox virtualenv urllib3~=1.26.15 09:49:57 + /tmp/venv-MECD/bin/python3 -m pip install --upgrade --quiet --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 09:49:58 + type python3 09:49:58 + true 09:49:58 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-MECD/bin to PATH' 09:49:58 lf-activate-venv(): INFO: Adding /tmp/venv-MECD/bin to PATH 09:49:58 + PATH=/tmp/venv-MECD/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:58 + return 0 09:49:58 + [[ -d /opt/pyenv ]] 09:49:58 + echo '---> Setting up pyenv' 09:49:58 ---> Setting up pyenv 09:49:58 + export PYENV_ROOT=/opt/pyenv 09:49:58 + PYENV_ROOT=/opt/pyenv 09:49:58 + export PATH=/opt/pyenv/bin:/tmp/venv-MECD/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:58 + PATH=/opt/pyenv/bin:/tmp/venv-MECD/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 09:49:58 ++ pwd 09:49:58 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 09:49:58 + export PYTHONPATH 09:49:58 + export TOX_TESTENV_PASSENV=PYTHONPATH 09:49:58 + TOX_TESTENV_PASSENV=PYTHONPATH 09:49:58 + tox --version 09:49:58 4.23.2 from /tmp/venv-MECD/lib/python3.11/site-packages/tox/__init__.py 09:49:58 + PARALLEL=True 09:49:58 + TOX_OPTIONS_LIST= 09:49:58 + [[ -n '' ]] 09:49:58 + case ${PARALLEL,,} in 09:49:58 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 09:49:58 + tox --parallel auto --parallel-live 09:49:58 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 09:50:00 checkbashisms: freeze> python -m pip freeze --all 09:50:00 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:50:00 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 09:50:00 docs: install_deps> python -I -m pip install -r docs/requirements.txt 09:50:00 checkbashisms: pip==24.2,setuptools==75.2.0,wheel==0.44.0 09:50:00 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 09:50:00 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 09:50:00 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 09:50:01 script ./reflectwarn.sh does not appear to have a #! interpreter line; 09:50:01 you may get strange results 09:50:02 checkbashisms: OK ✔ in 2.91 seconds 09:50:02 pre-commit: install_deps> python -I -m pip install pre-commit 09:50:10 pre-commit: freeze> python -m pip freeze --all 09:50:10 pre-commit: cfgv==3.4.0,distlib==0.3.9,filelock==3.16.1,identify==2.6.1,nodeenv==1.9.1,pip==24.2,platformdirs==4.3.6,pre_commit==4.0.1,PyYAML==6.0.2,setuptools==75.2.0,virtualenv==20.27.0,wheel==0.44.0 09:50:10 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 09:50:10 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 09:50:10 /usr/bin/cpan 09:50:10 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 09:50:10 [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. 09:50:10 [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. 09:50:10 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 09:50:11 [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. 09:50:11 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 09:50:11 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 09:50:12 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 09:50:12 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 09:50:13 buildcontroller: freeze> python -m pip freeze --all 09:50:13 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 09:50:13 buildcontroller: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 09:50:13 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 09:50:13 + update-java-alternatives -l 09:50:13 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 09:50:13 java-1.12.0-openjdk-amd64 1211 /usr/lib/jvm/java-1.12.0-openjdk-amd64 09:50:13 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 09:50:13 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 09:50:13 java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64 09:50:13 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 09:50:13 + java -version 09:50:13 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 09:50:13 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 09:50:13 [INFO] Once installed this environment will be reused. 09:50:13 [INFO] This may take a few minutes... 09:50:14 + JAVA_VER=21 09:50:14 + echo 21 09:50:14 21 09:50:14 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 09:50:14 + javac -version 09:50:14 + JAVAC_VER=21 09:50:14 + echo 21 09:50:14 21 09:50:14 ok, java is 21 or newer 09:50:14 + [ 21 -ge 21 ] 09:50:14 + [ 21 -ge 21 ] 09:50:14 + echo ok, java is 21 or newer 09:50:14 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz -P /tmp 09:50:14 2024-10-25 09:50:14 URL:https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz [9083702/9083702] -> "/tmp/apache-maven-3.9.8-bin.tar.gz" [1] 09:50:14 + sudo mkdir -p /opt 09:50:14 + sudo tar xf /tmp/apache-maven-3.9.8-bin.tar.gz -C /opt 09:50:14 + sudo ln -s /opt/apache-maven-3.9.8 /opt/maven 09:50:15 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 09:50:15 + mvn --version 09:50:15 Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) 09:50:15 Maven home: /opt/maven 09:50:15 Java version: 21.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 09:50:15 Default locale: en, platform encoding: UTF-8 09:50:15 OS name: "linux", version: "5.4.0-190-generic", arch: "amd64", family: "unix" 09:50:16 NOTE: Picked up JDK_JAVA_OPTIONS: 09:50:16 --add-opens=java.base/java.io=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.lang=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.net=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.nio=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.util=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:50:16 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:50:16 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:50:16 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:50:16 -Xlog:disable 09:50:18 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 09:50:18 [INFO] Once installed this environment will be reused. 09:50:18 [INFO] This may take a few minutes... 09:50:24 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 09:50:24 [INFO] Once installed this environment will be reused. 09:50:24 [INFO] This may take a few minutes... 09:50:27 [INFO] Installing environment for https://github.com/perltidy/perltidy. 09:50:27 [INFO] Once installed this environment will be reused. 09:50:27 [INFO] This may take a few minutes... 09:50:32 docs: freeze> python -m pip freeze --all 09:50:32 docs-linkcheck: freeze> python -m pip freeze --all 09:50:32 docs: alabaster==1.0.0,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.4.0,contourpy==1.3.0,cycler==0.12.1,docutils==0.21.2,fonttools==4.54.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.10,imagesize==1.4.1,Jinja2==3.1.4,jsonschema==3.2.0,kiwisolver==1.4.7,lfdocs-conf==0.9.0,MarkupSafe==3.0.2,matplotlib==3.9.2,numpy==2.1.2,nwdiag==3.0.0,packaging==24.1,pillow==11.0.0,pip==24.2,Pygments==2.18.0,pyparsing==3.2.0,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==75.2.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==8.1.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.1,sphinx-tabs==3.4.7,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.2.3,webcolors==24.8.0,wheel==0.44.0 09:50:32 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 09:50:33 docs-linkcheck: alabaster==1.0.0,attrs==24.2.0,babel==2.16.0,blockdiag==3.0.0,certifi==2024.8.30,charset-normalizer==3.4.0,contourpy==1.3.0,cycler==0.12.1,docutils==0.21.2,fonttools==4.54.1,funcparserlib==2.0.0a0,future==1.0.0,idna==3.10,imagesize==1.4.1,Jinja2==3.1.4,jsonschema==3.2.0,kiwisolver==1.4.7,lfdocs-conf==0.9.0,MarkupSafe==3.0.2,matplotlib==3.9.2,numpy==2.1.2,nwdiag==3.0.0,packaging==24.1,pillow==11.0.0,pip==24.2,Pygments==2.18.0,pyparsing==3.2.0,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.2,requests==2.32.3,requests-file==1.5.1,seqdiag==3.0.0,setuptools==75.2.0,six==1.16.0,snowballstemmer==2.2.0,Sphinx==8.1.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-rtd-theme==3.0.1,sphinx-tabs==3.4.7,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.30,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.2.3,webcolors==24.8.0,wheel==0.44.0 09:50:33 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 09:50:35 docs: OK ✔ in 36.55 seconds 09:50:35 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 09:50:38 trim trailing whitespace.................................................Passed 09:50:38 Tabs remover.............................................................Passed 09:50:39 autopep8.................................................................docs-linkcheck: OK ✔ in 37.7 seconds 09:50:39 pylint: freeze> python -m pip freeze --all 09:50:39 pylint: astroid==3.3.5,dill==0.3.9,isort==5.13.2,mccabe==0.7.0,pip==24.2,platformdirs==4.3.6,pylint==3.3.1,setuptools==75.2.0,tomlkit==0.13.2,wheel==0.44.0 09:50:39 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 09:50:43 Passed 09:50:43 perltidy.................................................................Passed 09:50:44 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 09:50:44 [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. 09:50:44 [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. 09:50:44 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 09:50:44 [INFO] Once installed this environment will be reused. 09:50:44 [INFO] This may take a few minutes... 09:50:50 gitlint..................................................................Passed 09:51:00 09:51:00 ------------------------------------ 09:51:00 Your code has been rated at 10.00/10 09:51:00 09:51:48 pre-commit: OK ✔ in 49.24 seconds 09:51:48 pylint: OK ✔ in 26.66 seconds 09:51:48 buildcontroller: OK ✔ in 1 minute 49.13 seconds 09:51:48 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:51:48 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:51:48 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:51:48 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:51:55 build_karaf_tests121: freeze> python -m pip freeze --all 09:51:55 build_karaf_tests221: freeze> python -m pip freeze --all 09:51:55 sims: freeze> python -m pip freeze --all 09:51:55 build_karaf_tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 09:51:55 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:51:55 build_karaf_tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 09:51:55 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:51:55 NOTE: Picked up JDK_JAVA_OPTIONS: 09:51:55 --add-opens=java.base/java.io=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.lang=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.net=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.nio=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.util=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:51:55 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:51:55 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:51:55 -Xlog:disable 09:51:55 NOTE: Picked up JDK_JAVA_OPTIONS: 09:51:55 --add-opens=java.base/java.io=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.lang=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.net=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.nio=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.util=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:51:55 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:51:55 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:51:55 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:51:55 -Xlog:disable 09:51:55 sims: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 09:51:55 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 09:51:55 Using lighynode version 20.1.0.2 09:51:55 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 09:51:59 sims: OK ✔ in 11.48 seconds 09:51:59 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:52:11 build_karaf_tests71: freeze> python -m pip freeze --all 09:52:11 build_karaf_tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 09:52:11 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:52:12 NOTE: Picked up JDK_JAVA_OPTIONS: 09:52:12 --add-opens=java.base/java.io=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.lang=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.net=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.nio=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.util=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:52:12 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:52:12 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:52:12 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:52:12 -Xlog:disable 09:52:39 build_karaf_tests221: OK ✔ in 50.94 seconds 09:52:39 build_karaf_tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:52:39 build_karaf_tests121: OK ✔ in 51.94 seconds 09:52:39 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:52:48 build_karaf_tests_hybrid: freeze> python -m pip freeze --all 09:52:48 tests_tapi: freeze> python -m pip freeze --all 09:52:48 build_karaf_tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 09:52:48 build_karaf_tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:52:48 NOTE: Picked up JDK_JAVA_OPTIONS: 09:52:48 --add-opens=java.base/java.io=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.lang=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.net=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.nio=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.util=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:52:48 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:52:48 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:52:48 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:52:48 -Xlog:disable 09:52:49 tests_tapi: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 09:52:49 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 09:52:49 using environment variables from ./karaf221.env 09:52:49 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 09:52:50 testsPCE: freeze> python -m pip freeze --all 09:52:51 testsPCE: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,click==8.1.7,contourpy==1.3.0,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.6,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.54.1,gnpy4tpce==2.4.7,idna==3.10,iniconfig==2.0.0,injector==0.22.0,itsdangerous==2.2.0,Jinja2==3.1.4,kiwisolver==1.4.7,lxml==5.3.0,MarkupSafe==3.0.2,matplotlib==3.9.2,netconf-client==3.1.1,networkx==2.8.8,numpy==1.26.4,packaging==24.1,pandas==1.5.3,paramiko==3.5.0,pbr==5.11.1,pillow==11.0.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pyparsing==3.2.0,pytest==8.3.3,python-dateutil==2.9.0.post0,pytz==2024.2,requests==2.32.3,scipy==1.14.1,setuptools==50.3.2,six==1.16.0,urllib3==2.2.3,Werkzeug==2.0.3,wheel==0.44.0,xlrd==1.2.0 09:52:51 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 09:52:51 pytest -q transportpce_tests/pce/test01_pce.py 09:53:52 .................................... [100%] 09:54:56 20 passed in 124.40s (0:02:04) 09:54:56 pytest -q transportpce_tests/pce/test02_pce_400G.py 09:54:56 ......................... [100%] 09:55:40 9 passed in 44.31s 09:55:40 pytest -q transportpce_tests/pce/test03_gnpy.py 09:55:49 .............. [100%] 09:56:18 8 passed in 37.18s 09:56:18 pytest -q transportpce_tests/pce/test04_pce_bug_fix.py 09:56:33 ........ [100%] 09:56:54 3 passed in 35.90s 09:56:54 build_karaf_tests71: OK ✔ in 52.44 seconds 09:56:54 build_karaf_tests_hybrid: OK ✔ in 56.68 seconds 09:56:54 testsPCE: OK ✔ in 5 minutes 6.52 seconds 09:56:54 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 09:57:00 tests121: freeze> python -m pip freeze --all 09:57:00 tests121: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 09:57:00 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 09:57:00 using environment variables from ./karaf121.env 09:57:00 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 09:59:33 ....... [100%] 09:59:38 50 passed in 408.92s (0:06:48) 09:59:38 pytest -q transportpce_tests/tapi/test02_full_topology.py 10:00:32 ............................... [100%] 10:01:22 21 passed in 261.28s (0:04:21) 10:01:22 pytest -q transportpce_tests/1.2.1/test02_topo_portmapping.py 10:01:22 .................... [100%] 10:04:11 30 passed in 273.50s (0:04:33) 10:04:12 pytest -q transportpce_tests/tapi/test03_tapi_device_change_notifications.py 10:04:53 ...... [100%] 10:05:06 6 passed in 224.37s (0:03:44) 10:05:07 pytest -q transportpce_tests/1.2.1/test03_topology.py 10:05:13 ...................................................................... [100%] 10:08:46 70 passed in 274.74s (0:04:34) 10:08:47 tests_tapi: OK ✔ in 16 minutes 7.15 seconds 10:08:47 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 10:08:51 .tests71: freeze> python -m pip freeze --all 10:08:53 tests71: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 10:08:53 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 10:08:53 using environment variables from ./karaf71.env 10:08:53 pytest -q transportpce_tests/7.1/test01_portmapping.py 10:08:53 ....................... [100%] 10:09:36 12 passed in 43.39s 10:09:36 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 10:10:01 .............................................................. [100%] 10:12:11 62 passed in 154.01s (0:02:34) 10:12:11 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 10:12:17 ........................................................ [100%] 10:14:26 48 passed in 135.03s (0:02:15) 10:14:26 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 10:14:51 ......................... [100%] 10:15:38 22 passed in 72.02s (0:01:12) 10:15:38 tests71: OK ✔ in 6 minutes 51.54 seconds 10:15:38 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 10:15:39 ...tests221: freeze> python -m pip freeze --all 10:15:44 tests221: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 10:15:44 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 10:15:44 using environment variables from ./karaf221.env 10:15:44 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 10:15:45 ..................... [100%] 10:16:23 44 passed in 676.47s (0:11:16) 10:16:23 pytest -q transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py 10:16:24 ................................ [100%] 10:17:02 35 passed in 76.91s (0:01:16) 10:17:02 pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py 10:17:34 ...... [100%] 10:17:49 6 passed in 46.74s 10:17:49 pytest -q transportpce_tests/2.2.1/test03_topology.py 10:18:34 .................................................. [100%] 10:20:08 44 passed in 139.07s (0:02:19) 10:20:08 pytest -q transportpce_tests/2.2.1/test04_otn_topology.py 10:20:08 .................... [100%] 10:20:46 24 passed in 262.41s (0:04:22) 10:20:46 pytest -q transportpce_tests/1.2.1/test05_olm.py 10:20:47 .......... [100%] 10:21:07 12 passed in 59.38s 10:21:08 pytest -q transportpce_tests/2.2.1/test05_flex_grid.py 10:21:36 ............................................. [100%] 10:23:11 16 passed in 123.41s (0:02:03) 10:23:11 pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py 10:23:21 .................................... [100%] 10:23:47 31 passed in 35.52s 10:23:47 .pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py 10:23:48 ..... [100%] 10:24:01 40 passed in 194.86s (0:03:14) 10:24:01 pytest -q transportpce_tests/1.2.1/test06_end2end.py 10:24:30 .......................... [100%] 10:25:26 26 passed in 99.26s (0:01:39) 10:25:26 pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py 10:26:04 ...................... [100%] 10:27:07 22 passed in 100.50s (0:01:40) 10:27:07 pytest -q transportpce_tests/2.2.1/test09_olm.py 10:27:44 ......................................... [100%] 10:30:09 40 passed in 181.99s (0:03:01) 10:30:09 pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py 10:30:45 .......................................................................... [ 74%] 10:36:28 ..........FFFF....FFFFFFFFFFF.......FFFFF...FF.FF...F...F.... [100%] 10:38:20 =================================== FAILURES =================================== 10:38:20 ________________ TransportPCEtesting.test_83_check_service_list ________________ 10:38:20 10:38:20 self = 10:38:20 10:38:20 def test_83_check_service_list(self): 10:38:20 response = test_utils.get_ordm_serv_list_request() 10:38:20 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:20 > self.assertEqual(len(response['service-list']['services']), 2) 10:38:20 E AssertionError: 3 != 2 10:38:20 10:38:20 transportpce_tests/2.2.1/test11_otn_end2end.py:1311: AssertionError 10:38:20 _____________ TransportPCEtesting.test_93_check_openroadm_topology _____________ 10:38:20 10:38:20 self = 10:38:20 10:38:20 def test_93_check_openroadm_topology(self): 10:38:20 response = test_utils.get_ietf_network_request('openroadm-topology', 'config') 10:38:20 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:20 > self.assertEqual(18, 10:38:20 len(response['network'][0]['ietf-network-topology:link']), 10:38:20 'Topology should contain 18 links') 10:38:20 E AssertionError: 18 != 40 : Topology should contain 18 links 10:38:20 10:38:20 transportpce_tests/2.2.1/test11_otn_end2end.py:1388: AssertionError 10:38:20 =========================== short test summary info ============================ 10:38:20 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_83_check_service_list 10:38:20 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_93_check_openroadm_topology 10:38:20 2 failed, 95 passed in 490.58s (0:08:10) 10:38:20 tests221: exit 1 (1355.72 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=43556 10:38:36 .FFFFFFFFFFFFFF [100%] 10:38:41 =================================== FAILURES =================================== 10:38:41 ________ TransportPCEFulltesting.test_05_connect_xpdrA_N1_to_roadmA_PP1 ________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_05_connect_xpdrA_N1_to_roadmA_PP1(self): 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'transportpce-networkutils', 'init-xpdr-rdm-links', 10:38:41 {'links-input': {'xpdr-node': 'XPDRA01', 'xpdr-num': '1', 'network-num': '1', 10:38:41 'rdm-node': 'ROADMA01', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX'}}) 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 204 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:114: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_05_connect_xpdrA_N1_to_roadmA_PP1 10:38:41 ________ TransportPCEFulltesting.test_06_connect_roadmA_PP1_to_xpdrA_N1 ________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_06_connect_roadmA_PP1_to_xpdrA_N1(self): 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'transportpce-networkutils', 'init-rdm-xpdr-links', 10:38:41 {'links-input': {'xpdr-node': 'XPDRA01', 'xpdr-num': '1', 'network-num': '1', 10:38:41 'rdm-node': 'ROADMA01', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX'}}) 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 204 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:123: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_06_connect_roadmA_PP1_to_xpdrA_N1 10:38:41 ________ TransportPCEFulltesting.test_07_connect_xpdrC_N1_to_roadmC_PP1 ________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_07_connect_xpdrC_N1_to_roadmC_PP1(self): 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'transportpce-networkutils', 'init-xpdr-rdm-links', 10:38:41 {'links-input': {'xpdr-node': 'XPDRC01', 'xpdr-num': '1', 'network-num': '1', 10:38:41 'rdm-node': 'ROADMC01', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX'}}) 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 204 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:132: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_07_connect_xpdrC_N1_to_roadmC_PP1 10:38:41 ________ TransportPCEFulltesting.test_08_connect_roadmC_PP1_to_xpdrC_N1 ________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_08_connect_roadmC_PP1_to_xpdrC_N1(self): 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'transportpce-networkutils', 'init-rdm-xpdr-links', 10:38:41 {'links-input': {'xpdr-node': 'XPDRC01', 'xpdr-num': '1', 'network-num': '1', 10:38:41 'rdm-node': 'ROADMC01', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX'}}) 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 204 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:141: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_08_connect_roadmC_PP1_to_xpdrC_N1 10:38:41 _______________ TransportPCEFulltesting.test_12_get_eth_service1 _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_12_get_eth_service1(self): 10:38:41 response = test_utils.get_ordm_serv_list_attr_request("services", "service1") 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:191: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_12_get_eth_service1 10:38:41 _______________ TransportPCEFulltesting.test_13_check_xc1_ROADMA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_13_check_xc1_ROADMA(self): 10:38:41 response = test_utils.check_node_attribute_request( 10:38:41 "ROADMA01", "roadm-connections", "SRG1-PP1-TXRX-DEG1-TTP-TXRX-761:768") 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:201: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_13_check_xc1_ROADMA 10:38:41 _______________ TransportPCEFulltesting.test_14_check_xc1_ROADMC _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_14_check_xc1_ROADMC(self): 10:38:41 response = test_utils.check_node_attribute_request( 10:38:41 "ROADMC01", "roadm-connections", "SRG1-PP1-TXRX-DEG2-TTP-TXRX-761:768") 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:216: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_14_check_xc1_ROADMC 10:38:41 _______________ TransportPCEFulltesting.test_15_check_topo_XPDRA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_15_check_topo_XPDRA(self): 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'XPDRA01-XPDR1', 'config') 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:230: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_15_check_topo_XPDRA 10:38:41 ____________ TransportPCEFulltesting.test_16_check_topo_ROADMA_SRG1 ____________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_16_check_topo_ROADMA_SRG1(self): 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADMA01-SRG1', 'config') 10:38:41 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 freq_map = base64.b64decode( 10:38:41 response['node']['org-openroadm-network-topology:srg-attributes']['avail-freq-maps'][0]['freq-map']) 10:38:41 freq_map_array = [int(x) for x in freq_map] 10:38:41 > self.assertEqual(freq_map_array[95], 0, "Lambda 1 should not be available") 10:38:41 E AssertionError: 255 != 0 : Lambda 1 should not be available 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:252: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_16_check_topo_ROADMA_SRG1 10:38:41 ____________ TransportPCEFulltesting.test_17_check_topo_ROADMA_DEG1 ____________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_17_check_topo_ROADMA_DEG1(self): 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADMA01-DEG1', 'config') 10:38:41 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 freq_map = base64.b64decode( 10:38:41 response['node']['org-openroadm-network-topology:degree-attributes']['avail-freq-maps'][0]['freq-map']) 10:38:41 freq_map_array = [int(x) for x in freq_map] 10:38:41 > self.assertEqual(freq_map_array[95], 0, "Lambda 1 should not be available") 10:38:41 E AssertionError: 255 != 0 : Lambda 1 should not be available 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:270: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_17_check_topo_ROADMA_DEG1 10:38:41 ________ TransportPCEFulltesting.test_18_connect_xpdrA_N2_to_roadmA_PP2 ________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_18_connect_xpdrA_N2_to_roadmA_PP2(self): 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'transportpce-networkutils', 'init-xpdr-rdm-links', 10:38:41 {'links-input': {'xpdr-node': 'XPDRA01', 'xpdr-num': '1', 'network-num': '2', 10:38:41 'rdm-node': 'ROADMA01', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX'}}) 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 204 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:290: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_18_connect_xpdrA_N2_to_roadmA_PP2 10:38:41 ________ TransportPCEFulltesting.test_19_connect_roadmA_PP2_to_xpdrA_N2 ________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_19_connect_roadmA_PP2_to_xpdrA_N2(self): 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'transportpce-networkutils', 'init-rdm-xpdr-links', 10:38:41 {'links-input': {'xpdr-node': 'XPDRA01', 'xpdr-num': '1', 'network-num': '2', 10:38:41 'rdm-node': 'ROADMA01', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX'}}) 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 204 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:299: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_19_connect_roadmA_PP2_to_xpdrA_N2 10:38:41 ________ TransportPCEFulltesting.test_20_connect_xpdrC_N2_to_roadmC_PP2 ________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_20_connect_xpdrC_N2_to_roadmC_PP2(self): 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'transportpce-networkutils', 'init-xpdr-rdm-links', 10:38:41 {'links-input': {'xpdr-node': 'XPDRC01', 'xpdr-num': '1', 'network-num': '2', 10:38:41 'rdm-node': 'ROADMC01', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX'}}) 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 204 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:308: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_20_connect_xpdrC_N2_to_roadmC_PP2 10:38:41 ________ TransportPCEFulltesting.test_21_connect_roadmC_PP2_to_xpdrC_N2 ________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_21_connect_roadmC_PP2_to_xpdrC_N2(self): 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'transportpce-networkutils', 'init-rdm-xpdr-links', 10:38:41 {'links-input': {'xpdr-node': 'XPDRC01', 'xpdr-num': '1', 'network-num': '2', 10:38:41 'rdm-node': 'ROADMC01', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX'}}) 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 204 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:317: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_21_connect_roadmC_PP2_to_xpdrC_N2 10:38:41 _______________ TransportPCEFulltesting.test_23_get_eth_service2 _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_23_get_eth_service2(self): 10:38:41 response = test_utils.get_ordm_serv_list_attr_request("services", "service2") 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:333: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_23_get_eth_service2 10:38:41 _______________ TransportPCEFulltesting.test_24_check_xc2_ROADMA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_24_check_xc2_ROADMA(self): 10:38:41 response = test_utils.check_node_attribute_request( 10:38:41 "ROADMA01", "roadm-connections", "DEG1-TTP-TXRX-SRG1-PP2-TXRX-753:760") 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:343: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_24_check_xc2_ROADMA 10:38:41 _______________ TransportPCEFulltesting.test_25_check_topo_XPDRA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_25_check_topo_XPDRA(self): 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'XPDRA01-XPDR1', 'config') 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:357: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_25_check_topo_XPDRA 10:38:41 ____________ TransportPCEFulltesting.test_26_check_topo_ROADMA_SRG1 ____________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_26_check_topo_ROADMA_SRG1(self): 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADMA01-SRG1', 'config') 10:38:41 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 freq_map = base64.b64decode( 10:38:41 response['node']['org-openroadm-network-topology:srg-attributes']['avail-freq-maps'][0]['freq-map']) 10:38:41 freq_map_array = [int(x) for x in freq_map] 10:38:41 > self.assertEqual(freq_map_array[95], 0, "Lambda 1 should not be available") 10:38:41 E AssertionError: 255 != 0 : Lambda 1 should not be available 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:384: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_26_check_topo_ROADMA_SRG1 10:38:41 ____________ TransportPCEFulltesting.test_27_check_topo_ROADMA_DEG1 ____________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_27_check_topo_ROADMA_DEG1(self): 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADMA01-DEG1', 'config') 10:38:41 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 freq_map = base64.b64decode( 10:38:41 response['node']['org-openroadm-network-topology:degree-attributes']['avail-freq-maps'][0]['freq-map']) 10:38:41 freq_map_array = [int(x) for x in freq_map] 10:38:41 > self.assertEqual(freq_map_array[95], 0, "Lambda 1 should not be available") 10:38:41 E AssertionError: 255 != 0 : Lambda 1 should not be available 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:410: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_27_check_topo_ROADMA_DEG1 10:38:41 _____________ TransportPCEFulltesting.test_30_delete_eth_service1 ______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_30_delete_eth_service1(self): 10:38:41 self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service1" 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'org-openroadm-service', 'service-delete', 10:38:41 self.del_serv_input_data) 10:38:41 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 > self.assertIn('Renderer service delete in progress', 10:38:41 response['output']['configuration-response-common']['response-message']) 10:38:41 E AssertionError: 'Renderer service delete in progress' not found in "Service 'service1' does not exist in datastore" 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:460: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_30_delete_eth_service1 10:38:41 _____________ TransportPCEFulltesting.test_31_delete_eth_service2 ______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_31_delete_eth_service2(self): 10:38:41 self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service2" 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 'org-openroadm-service', 'service-delete', 10:38:41 self.del_serv_input_data) 10:38:41 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 > self.assertIn('Renderer service delete in progress', 10:38:41 response['output']['configuration-response-common']['response-message']) 10:38:41 E AssertionError: 'Renderer service delete in progress' not found in "Service 'service2' does not exist in datastore" 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:470: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_31_delete_eth_service2 10:38:41 _______________ TransportPCEFulltesting.test_33_check_topo_XPDRA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_33_check_topo_XPDRA(self): 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'XPDRA01-XPDR1', 'config') 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:483: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_33_check_topo_XPDRA 10:38:41 ____________ TransportPCEFulltesting.test_34_check_topo_ROADMA_SRG1 ____________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_34_check_topo_ROADMA_SRG1(self): 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADMA01-SRG1', 'config') 10:38:41 self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 freq_map = base64.b64decode( 10:38:41 response['node']['org-openroadm-network-topology:srg-attributes']['avail-freq-maps'][0]['freq-map']) 10:38:41 freq_map_array = [int(x) for x in freq_map] 10:38:41 self.assertEqual(freq_map_array[95], 255, "Lambda 1 should be available") 10:38:41 self.assertEqual(freq_map_array[94], 255, "Lambda 2 should be available") 10:38:41 liste_tp = response['node']['ietf-network-topology:termination-point'] 10:38:41 for ele in liste_tp: 10:38:41 if ele['tp-id'] == 'SRG1-PP1-TXRX' or ele['tp-id'] == 'SRG1-PP2-TXRX': 10:38:41 freq_map = base64.b64decode( 10:38:41 > ele['org-openroadm-network-topology:pp-attributes']['avail-freq-maps'][0]['freq-map']) 10:38:41 E KeyError: 'org-openroadm-network-topology:pp-attributes' 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:512: KeyError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_34_check_topo_ROADMA_SRG1 10:38:41 _______________ TransportPCEFulltesting.test_37_get_oc_service1 ________________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_37_get_oc_service1(self): 10:38:41 response = test_utils.get_ordm_serv_list_attr_request("services", "service1") 10:38:41 > self.assertEqual(response['status_code'], requests.codes.ok) 10:38:41 E AssertionError: 409 != 200 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:569: AssertionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_37_get_oc_service1 10:38:41 _______________ TransportPCEFulltesting.test_41_get_oc_service2 ________________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/org-openroadm-service:service-list/services=service2?content=nonconfig' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/org-openroadm-service:service-list/services=service2', query='content=nonconfig', fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/org-openroadm-service:service-list/services=service2?content=nonconfig' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/org-openroadm-service:service-list/services=service2?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_41_get_oc_service2(self): 10:38:41 > response = test_utils.get_ordm_serv_list_attr_request("services", "service2") 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:624: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:629: in get_ordm_serv_list_attr_request 10:38:41 response = get_request(url[RESTCONF_VERSION].format(*format_args)) 10:38:41 transportpce_tests/common/test_utils.py:116: in get_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/org-openroadm-service:service-list/services=service2?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_41_get_oc_service2 10:38:41 _______________ TransportPCEFulltesting.test_42_check_xc2_ROADMA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/roadm-connections=SRG1-PP2-TXRX-DEG1-TTP-TXRX-753:760?content=nonconfig' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topolog...:org-openroadm-device/roadm-connections=SRG1-PP2-TXRX-DEG1-TTP-TXRX-753:760', query='content=nonconfig', fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/roadm-connections=SRG1-PP2-TXRX-DEG1-TTP-TXRX-753:760?content=nonconfig' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 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/yang-ext:mount/org-openroadm-device:org-openroadm-device/roadm-connections=SRG1-PP2-TXRX-DEG1-TTP-TXRX-753:760?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_42_check_xc2_ROADMA(self): 10:38:41 > response = test_utils.check_node_attribute_request( 10:38:41 "ROADMA01", "roadm-connections", "SRG1-PP2-TXRX-DEG1-TTP-TXRX-753:760") 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:633: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:401: in check_node_attribute_request 10:38:41 response = get_request(url[RESTCONF_VERSION].format('{}', node, attribute, attribute_value)) 10:38:41 transportpce_tests/common/test_utils.py:116: in get_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 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/yang-ext:mount/org-openroadm-device:org-openroadm-device/roadm-connections=SRG1-PP2-TXRX-DEG1-TTP-TXRX-753:760?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_42_check_xc2_ROADMA 10:38:41 ______________ TransportPCEFulltesting.test_43_check_topo_ROADMA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1?content=config' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1', query='content=config', fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1?content=config' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1?content=config (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_43_check_topo_ROADMA(self): 10:38:41 > self.test_26_check_topo_ROADMA_SRG1() 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:649: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:379: in test_26_check_topo_ROADMA_SRG1 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADMA01-SRG1', 'config') 10:38:41 transportpce_tests/common/test_utils.py:580: in get_ietf_network_node_request 10:38:41 response = get_request(url[RESTCONF_VERSION].format(*format_args)) 10:38:41 transportpce_tests/common/test_utils.py:116: in get_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1?content=config (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_43_check_topo_ROADMA 10:38:41 ______________ TransportPCEFulltesting.test_44_delete_oc_service1 ______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'POST', url = '/rests/operations/org-openroadm-service:service-delete' 10:38:41 body = '{"input": {"sdnc-request-header": {"request-id": "e3028bae-a90f-4ddd-a83f-cf224eba0e58", "rpc-action": "service-delet...st:8585/NotificationServer/notify"}, "service-delete-req-info": {"service-name": "service1", "tail-retention": "no"}}}' 10:38:41 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '306', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/operations/org-openroadm-service:service-delete', query=None, fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'POST', url = '/rests/operations/org-openroadm-service:service-delete' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/operations/org-openroadm-service:service-delete (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_44_delete_oc_service1(self): 10:38:41 self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service1" 10:38:41 > response = test_utils.transportpce_api_rpc_request( 10:38:41 'org-openroadm-service', 'service-delete', 10:38:41 self.del_serv_input_data) 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:655: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:684: in transportpce_api_rpc_request 10:38:41 response = post_request(url, data) 10:38:41 transportpce_tests/common/test_utils.py:142: in post_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/operations/org-openroadm-service:service-delete (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_44_delete_oc_service1 10:38:41 ______________ TransportPCEFulltesting.test_45_delete_oc_service2 ______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'POST', url = '/rests/operations/org-openroadm-service:service-delete' 10:38:41 body = '{"input": {"sdnc-request-header": {"request-id": "e3028bae-a90f-4ddd-a83f-cf224eba0e58", "rpc-action": "service-delet...st:8585/NotificationServer/notify"}, "service-delete-req-info": {"service-name": "service2", "tail-retention": "no"}}}' 10:38:41 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '306', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/operations/org-openroadm-service:service-delete', query=None, fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'POST', url = '/rests/operations/org-openroadm-service:service-delete' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/operations/org-openroadm-service:service-delete (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_45_delete_oc_service2(self): 10:38:41 self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service2" 10:38:41 > response = test_utils.transportpce_api_rpc_request( 10:38:41 'org-openroadm-service', 'service-delete', 10:38:41 self.del_serv_input_data) 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:665: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:684: in transportpce_api_rpc_request 10:38:41 response = post_request(url, data) 10:38:41 transportpce_tests/common/test_utils.py:142: in post_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/operations/org-openroadm-service:service-delete (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_45_delete_oc_service2 10:38:41 ______________ TransportPCEFulltesting.test_46_get_no_oc_services ______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/org-openroadm-service:service-list?content=nonconfig' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/org-openroadm-service:service-list', query='content=nonconfig', fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/org-openroadm-service:service-list?content=nonconfig' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/org-openroadm-service:service-list?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_46_get_no_oc_services(self): 10:38:41 > response = test_utils.get_ordm_serv_list_request() 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:674: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:613: in get_ordm_serv_list_request 10:38:41 response = get_request(url[RESTCONF_VERSION]) 10:38:41 transportpce_tests/common/test_utils.py:116: in get_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/org-openroadm-service:service-list?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_46_get_no_oc_services 10:38:41 _______________ TransportPCEFulltesting.test_47_get_no_xc_ROADMA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device?content=config' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device', query='content=config', fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device?content=config' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 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/yang-ext:mount/org-openroadm-device:org-openroadm-device?content=config (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_47_get_no_xc_ROADMA(self): 10:38:41 > response = test_utils.check_node_request("ROADMA01") 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:693: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:385: in check_node_request 10:38:41 response = get_request(url[RESTCONF_VERSION].format('{}', node)) 10:38:41 transportpce_tests/common/test_utils.py:116: in get_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 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/yang-ext:mount/org-openroadm-device:org-openroadm-device?content=config (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_47_get_no_xc_ROADMA 10:38:41 ______________ TransportPCEFulltesting.test_48_check_topo_ROADMA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1?content=config' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1', query='content=config', fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1?content=config' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1?content=config (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_48_check_topo_ROADMA(self): 10:38:41 > self.test_34_check_topo_ROADMA_SRG1() 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:699: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:501: in test_34_check_topo_ROADMA_SRG1 10:38:41 response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADMA01-SRG1', 'config') 10:38:41 transportpce_tests/common/test_utils.py:580: in get_ietf_network_node_request 10:38:41 response = get_request(url[RESTCONF_VERSION].format(*format_args)) 10:38:41 transportpce_tests/common/test_utils.py:116: in get_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/ietf-network:networks/network=openroadm-topology/node=ROADMA01-SRG1?content=config (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_48_check_topo_ROADMA 10:38:41 ___________ TransportPCEFulltesting.test_49_loop_create_eth_service ____________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'POST', url = '/rests/operations/org-openroadm-service:service-create' 10:38:41 body = '{"input": {"sdnc-request-header": {"request-id": "e3028bae-a90f-4ddd-a83f-cf224eba0e58", "rpc-action": "service-creat...-direction": [{"index": 0}], "optic-type": "gray"}, "due-date": "2016-11-28T00:00:01Z", "operator-contact": "pw1234"}}' 10:38:41 headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Content-Length': '777', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/operations/org-openroadm-service:service-create', query=None, fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'POST', url = '/rests/operations/org-openroadm-service:service-create' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/operations/org-openroadm-service:service-create (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_49_loop_create_eth_service(self): 10:38:41 # pylint: disable=consider-using-f-string 10:38:41 for i in range(1, 4): 10:38:41 print("iteration number {}".format(i)) 10:38:41 print("eth service creation") 10:38:41 > self.test_11_create_eth_service1() 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:707: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:181: in test_11_create_eth_service1 10:38:41 response = test_utils.transportpce_api_rpc_request( 10:38:41 transportpce_tests/common/test_utils.py:684: in transportpce_api_rpc_request 10:38:41 response = post_request(url, data) 10:38:41 transportpce_tests/common/test_utils.py:142: in post_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/operations/org-openroadm-service:service-create (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_49_loop_create_eth_service 10:38:41 iteration number 1 10:38:41 eth service creation 10:38:41 ____________ TransportPCEFulltesting.test_50_loop_create_oc_service ____________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/org-openroadm-service:service-list/services=service1?content=nonconfig' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/org-openroadm-service:service-list/services=service1', query='content=nonconfig', fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'GET' 10:38:41 url = '/rests/data/org-openroadm-service:service-list/services=service1?content=nonconfig' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/org-openroadm-service:service-list/services=service1?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_50_loop_create_oc_service(self): 10:38:41 > response = test_utils.get_ordm_serv_list_attr_request("services", "service1") 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:716: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:629: in get_ordm_serv_list_attr_request 10:38:41 response = get_request(url[RESTCONF_VERSION].format(*format_args)) 10:38:41 transportpce_tests/common/test_utils.py:116: in get_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/org-openroadm-service:service-list/services=service1?content=nonconfig (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_50_loop_create_oc_service 10:38:41 _______________ TransportPCEFulltesting.test_51_disconnect_XPDRA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'DELETE' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 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) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'DELETE' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRA01' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 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')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_51_disconnect_XPDRA(self): 10:38:41 > response = test_utils.unmount_device("XPDRA01") 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:737: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:358: in unmount_device 10:38:41 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 10:38:41 transportpce_tests/common/test_utils.py:133: in delete_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 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')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_51_disconnect_XPDRA 10:38:41 _______________ TransportPCEFulltesting.test_52_disconnect_XPDRC _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'DELETE' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRC01' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRC01', query=None, fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'DELETE' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRC01' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRC01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_52_disconnect_XPDRC(self): 10:38:41 > response = test_utils.unmount_device("XPDRC01") 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:741: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:358: in unmount_device 10:38:41 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 10:38:41 transportpce_tests/common/test_utils.py:133: in delete_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDRC01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_52_disconnect_XPDRC 10:38:41 ______________ TransportPCEFulltesting.test_53_disconnect_ROADMA _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'DELETE' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 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) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'DELETE' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMA01' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 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')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_53_disconnect_ROADMA(self): 10:38:41 > response = test_utils.unmount_device("ROADMA01") 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:745: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:358: in unmount_device 10:38:41 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 10:38:41 transportpce_tests/common/test_utils.py:133: in delete_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 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')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_53_disconnect_ROADMA 10:38:41 ______________ TransportPCEFulltesting.test_54_disconnect_ROADMC _______________ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 > sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:199: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:85: in create_connection 10:38:41 raise err 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 address = ('localhost', 8182), timeout = 10, source_address = None 10:38:41 socket_options = [(6, 1, 1)] 10:38:41 10:38:41 def create_connection( 10:38:41 address: tuple[str, int], 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 source_address: tuple[str, int] | None = None, 10:38:41 socket_options: _TYPE_SOCKET_OPTIONS | None = None, 10:38:41 ) -> socket.socket: 10:38:41 """Connect to *address* and return the socket object. 10:38:41 10:38:41 Convenience function. Connect to *address* (a 2-tuple ``(host, 10:38:41 port)``) and return the socket object. Passing the optional 10:38:41 *timeout* parameter will set the timeout on the socket instance 10:38:41 before attempting to connect. If no *timeout* is supplied, the 10:38:41 global default timeout setting returned by :func:`socket.getdefaulttimeout` 10:38:41 is used. If *source_address* is set it must be a tuple of (host, port) 10:38:41 for the socket to bind as a source address before making the connection. 10:38:41 An host of '' or port 0 tells the OS to use the default. 10:38:41 """ 10:38:41 10:38:41 host, port = address 10:38:41 if host.startswith("["): 10:38:41 host = host.strip("[]") 10:38:41 err = None 10:38:41 10:38:41 # Using the value from allowed_gai_family() in the context of getaddrinfo lets 10:38:41 # us select whether to work with IPv4 DNS records, IPv6 records, or both. 10:38:41 # The original create_connection function always returns all records. 10:38:41 family = allowed_gai_family() 10:38:41 10:38:41 try: 10:38:41 host.encode("idna") 10:38:41 except UnicodeError: 10:38:41 raise LocationParseError(f"'{host}', label empty or too long") from None 10:38:41 10:38:41 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 10:38:41 af, socktype, proto, canonname, sa = res 10:38:41 sock = None 10:38:41 try: 10:38:41 sock = socket.socket(af, socktype, proto) 10:38:41 10:38:41 # If provided, set socket level options before connecting. 10:38:41 _set_socket_options(sock, socket_options) 10:38:41 10:38:41 if timeout is not _DEFAULT_TIMEOUT: 10:38:41 sock.settimeout(timeout) 10:38:41 if source_address: 10:38:41 sock.bind(source_address) 10:38:41 > sock.connect(sa) 10:38:41 E ConnectionRefusedError: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 method = 'DELETE' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMC01' 10:38:41 body = None 10:38:41 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='} 10:38:41 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 redirect = False, assert_same_host = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), pool_timeout = None 10:38:41 release_conn = False, chunked = False, body_pos = None, preload_content = False 10:38:41 decode_content = False, response_kw = {} 10:38:41 parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMC01', query=None, fragment=None) 10:38:41 destination_scheme = None, conn = None, release_this_conn = True 10:38:41 http_tunnel_required = False, err = None, clean_exit = False 10:38:41 10:38:41 def urlopen( # type: ignore[override] 10:38:41 self, 10:38:41 method: str, 10:38:41 url: str, 10:38:41 body: _TYPE_BODY | None = None, 10:38:41 headers: typing.Mapping[str, str] | None = None, 10:38:41 retries: Retry | bool | int | None = None, 10:38:41 redirect: bool = True, 10:38:41 assert_same_host: bool = True, 10:38:41 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 10:38:41 pool_timeout: int | None = None, 10:38:41 release_conn: bool | None = None, 10:38:41 chunked: bool = False, 10:38:41 body_pos: _TYPE_BODY_POSITION | None = None, 10:38:41 preload_content: bool = True, 10:38:41 decode_content: bool = True, 10:38:41 **response_kw: typing.Any, 10:38:41 ) -> BaseHTTPResponse: 10:38:41 """ 10:38:41 Get a connection from the pool and perform an HTTP request. This is the 10:38:41 lowest level call for making a request, so you'll need to specify all 10:38:41 the raw details. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 More commonly, it's appropriate to use a convenience method 10:38:41 such as :meth:`request`. 10:38:41 10:38:41 .. note:: 10:38:41 10:38:41 `release_conn` will only behave as expected if 10:38:41 `preload_content=False` because we want to make 10:38:41 `preload_content=False` the default behaviour someday soon without 10:38:41 breaking backwards compatibility. 10:38:41 10:38:41 :param method: 10:38:41 HTTP request method (such as GET, POST, PUT, etc.) 10:38:41 10:38:41 :param url: 10:38:41 The URL to perform the request on. 10:38:41 10:38:41 :param body: 10:38:41 Data to send in the request body, either :class:`str`, :class:`bytes`, 10:38:41 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 10:38:41 10:38:41 :param headers: 10:38:41 Dictionary of custom headers to send, such as User-Agent, 10:38:41 If-None-Match, etc. If None, pool headers are used. If provided, 10:38:41 these headers completely replace any pool-specific headers. 10:38:41 10:38:41 :param retries: 10:38:41 Configure the number of retries to allow before raising a 10:38:41 :class:`~urllib3.exceptions.MaxRetryError` exception. 10:38:41 10:38:41 If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a 10:38:41 :class:`~urllib3.util.retry.Retry` object for fine-grained control 10:38:41 over different types of retries. 10:38:41 Pass an integer number to retry connection errors that many times, 10:38:41 but no other types of errors. Pass zero to never retry. 10:38:41 10:38:41 If ``False``, then retries are disabled and any exception is raised 10:38:41 immediately. Also, instead of raising a MaxRetryError on redirects, 10:38:41 the redirect response will be returned. 10:38:41 10:38:41 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 10:38:41 10:38:41 :param redirect: 10:38:41 If True, automatically handle redirects (status codes 301, 302, 10:38:41 303, 307, 308). Each redirect counts as a retry. Disabling retries 10:38:41 will disable redirect, too. 10:38:41 10:38:41 :param assert_same_host: 10:38:41 If ``True``, will make sure that the host of the pool requests is 10:38:41 consistent else will raise HostChangedError. When ``False``, you can 10:38:41 use the pool on an HTTP proxy and request foreign hosts. 10:38:41 10:38:41 :param timeout: 10:38:41 If specified, overrides the default timeout for this one 10:38:41 request. It may be a float (in seconds) or an instance of 10:38:41 :class:`urllib3.util.Timeout`. 10:38:41 10:38:41 :param pool_timeout: 10:38:41 If set and the pool is set to block=True, then this method will 10:38:41 block for ``pool_timeout`` seconds and raise EmptyPoolError if no 10:38:41 connection is available within the time period. 10:38:41 10:38:41 :param bool preload_content: 10:38:41 If True, the response's body will be preloaded into memory. 10:38:41 10:38:41 :param bool decode_content: 10:38:41 If True, will attempt to decode the body based on the 10:38:41 'content-encoding' header. 10:38:41 10:38:41 :param release_conn: 10:38:41 If False, then the urlopen call will not release the connection 10:38:41 back into the pool once a response is received (but will release if 10:38:41 you read the entire contents of the response such as when 10:38:41 `preload_content=True`). This is useful if you're not preloading 10:38:41 the response's content immediately. You will need to call 10:38:41 ``r.release_conn()`` on the response ``r`` to return the connection 10:38:41 back into the pool. If None, it takes the value of ``preload_content`` 10:38:41 which defaults to ``True``. 10:38:41 10:38:41 :param bool chunked: 10:38:41 If True, urllib3 will send the body using chunked transfer 10:38:41 encoding. Otherwise, urllib3 will send the body using the standard 10:38:41 content-length form. Defaults to False. 10:38:41 10:38:41 :param int body_pos: 10:38:41 Position to seek to in file-like body in the event of a retry or 10:38:41 redirect. Typically this won't need to be set because urllib3 will 10:38:41 auto-populate the value when needed. 10:38:41 """ 10:38:41 parsed_url = parse_url(url) 10:38:41 destination_scheme = parsed_url.scheme 10:38:41 10:38:41 if headers is None: 10:38:41 headers = self.headers 10:38:41 10:38:41 if not isinstance(retries, Retry): 10:38:41 retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 10:38:41 10:38:41 if release_conn is None: 10:38:41 release_conn = preload_content 10:38:41 10:38:41 # Check host 10:38:41 if assert_same_host and not self.is_same_host(url): 10:38:41 raise HostChangedError(self, url, retries) 10:38:41 10:38:41 # Ensure that the URL we're connecting to is properly encoded 10:38:41 if url.startswith("/"): 10:38:41 url = to_str(_encode_target(url)) 10:38:41 else: 10:38:41 url = to_str(parsed_url.url) 10:38:41 10:38:41 conn = None 10:38:41 10:38:41 # Track whether `conn` needs to be released before 10:38:41 # returning/raising/recursing. Update this variable if necessary, and 10:38:41 # leave `release_conn` constant throughout the function. That way, if 10:38:41 # the function recurses, the original value of `release_conn` will be 10:38:41 # passed down into the recursive call, and its value will be respected. 10:38:41 # 10:38:41 # See issue #651 [1] for details. 10:38:41 # 10:38:41 # [1] 10:38:41 release_this_conn = release_conn 10:38:41 10:38:41 http_tunnel_required = connection_requires_http_tunnel( 10:38:41 self.proxy, self.proxy_config, destination_scheme 10:38:41 ) 10:38:41 10:38:41 # Merge the proxy headers. Only done when not using HTTP CONNECT. We 10:38:41 # have to copy the headers dict so we can safely change it without those 10:38:41 # changes being reflected in anyone else's copy. 10:38:41 if not http_tunnel_required: 10:38:41 headers = headers.copy() # type: ignore[attr-defined] 10:38:41 headers.update(self.proxy_headers) # type: ignore[union-attr] 10:38:41 10:38:41 # Must keep the exception bound to a separate variable or else Python 3 10:38:41 # complains about UnboundLocalError. 10:38:41 err = None 10:38:41 10:38:41 # Keep track of whether we cleanly exited the except block. This 10:38:41 # ensures we do proper cleanup in finally. 10:38:41 clean_exit = False 10:38:41 10:38:41 # Rewind body position, if needed. Record current position 10:38:41 # for future rewinds in the event of a redirect/retry. 10:38:41 body_pos = set_file_position(body, body_pos) 10:38:41 10:38:41 try: 10:38:41 # Request a connection from the queue. 10:38:41 timeout_obj = self._get_timeout(timeout) 10:38:41 conn = self._get_conn(timeout=pool_timeout) 10:38:41 10:38:41 conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 10:38:41 10:38:41 # Is this a closed/new connection that requires CONNECT tunnelling? 10:38:41 if self.proxy is not None and http_tunnel_required and conn.is_closed: 10:38:41 try: 10:38:41 self._prepare_proxy(conn) 10:38:41 except (BaseSSLError, OSError, SocketTimeout) as e: 10:38:41 self._raise_timeout( 10:38:41 err=e, url=self.proxy.url, timeout_value=conn.timeout 10:38:41 ) 10:38:41 raise 10:38:41 10:38:41 # If we're going to release the connection in ``finally:``, then 10:38:41 # the response doesn't need to know about the connection. Otherwise 10:38:41 # it will also try to release it and we'll have a double-release 10:38:41 # mess. 10:38:41 response_conn = conn if not release_conn else None 10:38:41 10:38:41 # Make the request on the HTTPConnection object 10:38:41 > response = self._make_request( 10:38:41 conn, 10:38:41 method, 10:38:41 url, 10:38:41 timeout=timeout_obj, 10:38:41 body=body, 10:38:41 headers=headers, 10:38:41 chunked=chunked, 10:38:41 retries=retries, 10:38:41 response_conn=response_conn, 10:38:41 preload_content=preload_content, 10:38:41 decode_content=decode_content, 10:38:41 **response_kw, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:789: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:495: in _make_request 10:38:41 conn.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:441: in request 10:38:41 self.endheaders() 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1289: in endheaders 10:38:41 self._send_output(message_body, encode_chunked=encode_chunked) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:1048: in _send_output 10:38:41 self.send(msg) 10:38:41 /opt/pyenv/versions/3.11.7/lib/python3.11/http/client.py:986: in send 10:38:41 self.connect() 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:279: in connect 10:38:41 self.sock = self._new_conn() 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 10:38:41 def _new_conn(self) -> socket.socket: 10:38:41 """Establish a socket connection and set nodelay settings on it. 10:38:41 10:38:41 :return: New socket connection. 10:38:41 """ 10:38:41 try: 10:38:41 sock = connection.create_connection( 10:38:41 (self._dns_host, self.port), 10:38:41 self.timeout, 10:38:41 source_address=self.source_address, 10:38:41 socket_options=self.socket_options, 10:38:41 ) 10:38:41 except socket.gaierror as e: 10:38:41 raise NameResolutionError(self.host, self, e) from e 10:38:41 except SocketTimeout as e: 10:38:41 raise ConnectTimeoutError( 10:38:41 self, 10:38:41 f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 10:38:41 ) from e 10:38:41 10:38:41 except OSError as e: 10:38:41 > raise NewConnectionError( 10:38:41 self, f"Failed to establish a new connection: {e}" 10:38:41 ) from e 10:38:41 E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connection.py:214: NewConnectionError 10:38:41 10:38:41 The above exception was the direct cause of the following exception: 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 > resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:667: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/connectionpool.py:843: in urlopen 10:38:41 retries = retries.increment( 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 10:38:41 method = 'DELETE' 10:38:41 url = '/rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMC01' 10:38:41 response = None 10:38:41 error = NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused') 10:38:41 _pool = 10:38:41 _stacktrace = 10:38:41 10:38:41 def increment( 10:38:41 self, 10:38:41 method: str | None = None, 10:38:41 url: str | None = None, 10:38:41 response: BaseHTTPResponse | None = None, 10:38:41 error: Exception | None = None, 10:38:41 _pool: ConnectionPool | None = None, 10:38:41 _stacktrace: TracebackType | None = None, 10:38:41 ) -> Self: 10:38:41 """Return a new Retry object with incremented retry counters. 10:38:41 10:38:41 :param response: A response object, or None, if the server did not 10:38:41 return a response. 10:38:41 :type response: :class:`~urllib3.response.BaseHTTPResponse` 10:38:41 :param Exception error: An error encountered during the request, or 10:38:41 None if the response was received successfully. 10:38:41 10:38:41 :return: A new ``Retry`` object. 10:38:41 """ 10:38:41 if self.total is False and error: 10:38:41 # Disabled, indicate to re-raise the error. 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 10:38:41 total = self.total 10:38:41 if total is not None: 10:38:41 total -= 1 10:38:41 10:38:41 connect = self.connect 10:38:41 read = self.read 10:38:41 redirect = self.redirect 10:38:41 status_count = self.status 10:38:41 other = self.other 10:38:41 cause = "unknown" 10:38:41 status = None 10:38:41 redirect_location = None 10:38:41 10:38:41 if error and self._is_connection_error(error): 10:38:41 # Connect retry? 10:38:41 if connect is False: 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif connect is not None: 10:38:41 connect -= 1 10:38:41 10:38:41 elif error and self._is_read_error(error): 10:38:41 # Read retry? 10:38:41 if read is False or method is None or not self._is_method_retryable(method): 10:38:41 raise reraise(type(error), error, _stacktrace) 10:38:41 elif read is not None: 10:38:41 read -= 1 10:38:41 10:38:41 elif error: 10:38:41 # Other retry? 10:38:41 if other is not None: 10:38:41 other -= 1 10:38:41 10:38:41 elif response and response.get_redirect_location(): 10:38:41 # Redirect retry? 10:38:41 if redirect is not None: 10:38:41 redirect -= 1 10:38:41 cause = "too many redirects" 10:38:41 response_redirect_location = response.get_redirect_location() 10:38:41 if response_redirect_location: 10:38:41 redirect_location = response_redirect_location 10:38:41 status = response.status 10:38:41 10:38:41 else: 10:38:41 # Incrementing because of a server error like a 500 in 10:38:41 # status_forcelist and the given method is in the allowed_methods 10:38:41 cause = ResponseError.GENERIC_ERROR 10:38:41 if response and response.status: 10:38:41 if status_count is not None: 10:38:41 status_count -= 1 10:38:41 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 10:38:41 status = response.status 10:38:41 10:38:41 history = self.history + ( 10:38:41 RequestHistory(method, url, error, status, redirect_location), 10:38:41 ) 10:38:41 10:38:41 new_retry = self.new( 10:38:41 total=total, 10:38:41 connect=connect, 10:38:41 read=read, 10:38:41 redirect=redirect, 10:38:41 status=status_count, 10:38:41 other=other, 10:38:41 history=history, 10:38:41 ) 10:38:41 10:38:41 if new_retry.is_exhausted(): 10:38:41 reason = error or ResponseError(cause) 10:38:41 > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 10:38:41 E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMC01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/urllib3/util/retry.py:519: MaxRetryError 10:38:41 10:38:41 During handling of the above exception, another exception occurred: 10:38:41 10:38:41 self = 10:38:41 10:38:41 def test_54_disconnect_ROADMC(self): 10:38:41 > response = test_utils.unmount_device("ROADMC01") 10:38:41 10:38:41 transportpce_tests/1.2.1/test06_end2end.py:749: 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 transportpce_tests/common/test_utils.py:358: in unmount_device 10:38:41 response = delete_request(url[RESTCONF_VERSION].format('{}', node)) 10:38:41 transportpce_tests/common/test_utils.py:133: in delete_request 10:38:41 return requests.request( 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/api.py:59: in request 10:38:41 return session.request(method=method, url=url, **kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:589: in request 10:38:41 resp = self.send(prep, **send_kwargs) 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/sessions.py:703: in send 10:38:41 r = adapter.send(request, **kwargs) 10:38:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:38:41 10:38:41 self = 10:38:41 request = , stream = False 10:38:41 timeout = Timeout(connect=10, read=10, total=None), verify = True, cert = None 10:38:41 proxies = OrderedDict() 10:38:41 10:38:41 def send( 10:38:41 self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 10:38:41 ): 10:38:41 """Sends PreparedRequest object. Returns Response object. 10:38:41 10:38:41 :param request: The :class:`PreparedRequest ` being sent. 10:38:41 :param stream: (optional) Whether to stream the request content. 10:38:41 :param timeout: (optional) How long to wait for the server to send 10:38:41 data before giving up, as a float, or a :ref:`(connect timeout, 10:38:41 read timeout) ` tuple. 10:38:41 :type timeout: float or tuple or urllib3 Timeout object 10:38:41 :param verify: (optional) Either a boolean, in which case it controls whether 10:38:41 we verify the server's TLS certificate, or a string, in which case it 10:38:41 must be a path to a CA bundle to use 10:38:41 :param cert: (optional) Any user-provided SSL certificate to be trusted. 10:38:41 :param proxies: (optional) The proxies dictionary to apply to the request. 10:38:41 :rtype: requests.Response 10:38:41 """ 10:38:41 10:38:41 try: 10:38:41 conn = self.get_connection_with_tls_context( 10:38:41 request, verify, proxies=proxies, cert=cert 10:38:41 ) 10:38:41 except LocationValueError as e: 10:38:41 raise InvalidURL(e, request=request) 10:38:41 10:38:41 self.cert_verify(conn, request.url, verify, cert) 10:38:41 url = self.request_url(request, proxies) 10:38:41 self.add_headers( 10:38:41 request, 10:38:41 stream=stream, 10:38:41 timeout=timeout, 10:38:41 verify=verify, 10:38:41 cert=cert, 10:38:41 proxies=proxies, 10:38:41 ) 10:38:41 10:38:41 chunked = not (request.body is None or "Content-Length" in request.headers) 10:38:41 10:38:41 if isinstance(timeout, tuple): 10:38:41 try: 10:38:41 connect, read = timeout 10:38:41 timeout = TimeoutSauce(connect=connect, read=read) 10:38:41 except ValueError: 10:38:41 raise ValueError( 10:38:41 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 10:38:41 f"or a single float to set both timeouts to the same value." 10:38:41 ) 10:38:41 elif isinstance(timeout, TimeoutSauce): 10:38:41 pass 10:38:41 else: 10:38:41 timeout = TimeoutSauce(connect=timeout, read=timeout) 10:38:41 10:38:41 try: 10:38:41 resp = conn.urlopen( 10:38:41 method=request.method, 10:38:41 url=url, 10:38:41 body=request.body, 10:38:41 headers=request.headers, 10:38:41 redirect=False, 10:38:41 assert_same_host=False, 10:38:41 preload_content=False, 10:38:41 decode_content=False, 10:38:41 retries=self.max_retries, 10:38:41 timeout=timeout, 10:38:41 chunked=chunked, 10:38:41 ) 10:38:41 10:38:41 except (ProtocolError, OSError) as err: 10:38:41 raise ConnectionError(err, request=request) 10:38:41 10:38:41 except MaxRetryError as e: 10:38:41 if isinstance(e.reason, ConnectTimeoutError): 10:38:41 # TODO: Remove this in 3.0.0: see #2811 10:38:41 if not isinstance(e.reason, NewConnectionError): 10:38:41 raise ConnectTimeout(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, ResponseError): 10:38:41 raise RetryError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _ProxyError): 10:38:41 raise ProxyError(e, request=request) 10:38:41 10:38:41 if isinstance(e.reason, _SSLError): 10:38:41 # This branch is for urllib3 v1.22 and later. 10:38:41 raise SSLError(e, request=request) 10:38:41 10:38:41 > raise ConnectionError(e, request=request) 10:38:41 E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8182): Max retries exceeded with url: /rests/data/network-topology:network-topology/topology=topology-netconf/node=ROADMC01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 10:38:41 10:38:41 ../.tox/tests121/lib/python3.11/site-packages/requests/adapters.py:700: ConnectionError 10:38:41 ----------------------------- Captured stdout call ----------------------------- 10:38:41 execution of test_54_disconnect_ROADMC 10:38:41 --------------------------- Captured stdout teardown --------------------------- 10:38:41 all processes killed 10:38:41 =========================== short test summary info ============================ 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_05_connect_xpdrA_N1_to_roadmA_PP1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_06_connect_roadmA_PP1_to_xpdrA_N1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_07_connect_xpdrC_N1_to_roadmC_PP1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_08_connect_roadmC_PP1_to_xpdrC_N1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_12_get_eth_service1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_13_check_xc1_ROADMA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_14_check_xc1_ROADMC 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_15_check_topo_XPDRA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_16_check_topo_ROADMA_SRG1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_17_check_topo_ROADMA_DEG1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_18_connect_xpdrA_N2_to_roadmA_PP2 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_19_connect_roadmA_PP2_to_xpdrA_N2 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_20_connect_xpdrC_N2_to_roadmC_PP2 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_21_connect_roadmC_PP2_to_xpdrC_N2 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_23_get_eth_service2 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_24_check_xc2_ROADMA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_25_check_topo_XPDRA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_26_check_topo_ROADMA_SRG1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_27_check_topo_ROADMA_DEG1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_30_delete_eth_service1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_31_delete_eth_service2 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_33_check_topo_XPDRA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_34_check_topo_ROADMA_SRG1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_37_get_oc_service1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_41_get_oc_service2 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_42_check_xc2_ROADMA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_43_check_topo_ROADMA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_44_delete_oc_service1 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_45_delete_oc_service2 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_46_get_no_oc_services 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_47_get_no_xc_ROADMA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_48_check_topo_ROADMA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_49_loop_create_eth_service 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_50_loop_create_oc_service 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_51_disconnect_XPDRA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_52_disconnect_XPDRC 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_53_disconnect_ROADMA 10:38:41 FAILED transportpce_tests/1.2.1/test06_end2end.py::TransportPCEFulltesting::test_54_disconnect_ROADMC 10:38:41 38 failed, 16 passed in 880.30s (0:14:40) 10:38:42 tests221: FAIL ✖ in 22 minutes 42.15 seconds 10:38:42 tests121: exit 1 (2501.10 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 pid=35045 10:38:42 tests121: FAIL ✖ in 41 minutes 47.59 seconds 10:38:42 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 10:38:48 tests_hybrid: freeze> python -m pip freeze --all 10:38:49 tests_hybrid: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 10:38:49 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 10:38:49 using environment variables from ./karaf121.env 10:38:49 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 10:39:36 ................................................... [100%] 10:41:22 51 passed in 153.29s (0:02:33) 10:41:22 pytest -q transportpce_tests/hybrid/test02_B100G_end2end.py 10:42:03 ........................................................................ [ 66%] 10:46:24 ..................................... [100%] 10:51:30 109 passed in 607.32s (0:10:07) 10:51:30 pytest -q transportpce_tests/hybrid/test03_autonomous_reroute.py 10:52:16 ..................................................... [100%] 10:58:48 53 passed in 438.18s (0:07:18) 10:58:48 tests_hybrid: OK ✔ in 20 minutes 6.65 seconds 10:58:48 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 10:58:54 buildlighty: freeze> python -m pip freeze --all 10:58:55 buildlighty: bcrypt==4.2.0,certifi==2024.8.30,cffi==1.17.1,charset-normalizer==3.4.0,cryptography==43.0.3,dict2xml==1.7.6,idna==3.10,iniconfig==2.0.0,lxml==5.3.0,netconf-client==3.1.1,packaging==24.1,paramiko==3.5.0,pip==24.2,pluggy==1.5.0,psutil==6.1.0,pycparser==2.22,PyNaCl==1.5.0,pytest==8.3.3,requests==2.32.3,setuptools==75.2.0,urllib3==2.2.3,wheel==0.44.0 10:58:55 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 10:58:55 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 10:59:15 [ERROR] COMPILATION ERROR : 10:59:15 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 10:59:15 symbol: class YangModuleInfo 10:59:15 location: package org.opendaylight.yangtools.binding 10:59:15 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 10:59:15 symbol: class YangModuleInfo 10:59:15 location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:59:15 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 10:59:15 symbol: class YangModuleInfo 10:59:15 location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:59:15 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 10:59:15 symbol: class YangModuleInfo 10:59:15 location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:59:15 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project tpce: Compilation failure: Compilation failure: 10:59:15 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[17,42] cannot find symbol 10:59:15 [ERROR] symbol: class YangModuleInfo 10:59:15 [ERROR] location: package org.opendaylight.yangtools.binding 10:59:15 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[21,30] cannot find symbol 10:59:15 [ERROR] symbol: class YangModuleInfo 10:59:15 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:59:15 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[343,30] cannot find symbol 10:59:15 [ERROR] symbol: class YangModuleInfo 10:59:15 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:59:15 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/utils/TPCEUtils.java:[350,23] cannot find symbol 10:59:15 [ERROR] symbol: class YangModuleInfo 10:59:15 [ERROR] location: class io.lighty.controllers.tpce.utils.TPCEUtils 10:59:15 [ERROR] -> [Help 1] 10:59:15 [ERROR] 10:59:15 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 10:59:15 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 10:59:15 [ERROR] 10:59:15 [ERROR] For more information about the errors and possible solutions, please read the following articles: 10:59:15 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 10:59:15 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 10:59:15 buildlighty: exit 9 (20.66 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=59669 10:59:15 buildlighty: command failed but is marked ignore outcome so handling it as success 10:59:15 buildcontroller: OK (109.13=setup[14.56]+cmd[94.56] seconds) 10:59:15 testsPCE: OK (306.52=setup[63.65]+cmd[242.87] seconds) 10:59:15 sims: OK (11.48=setup[7.57]+cmd[3.91] seconds) 10:59:15 build_karaf_tests121: OK (51.94=setup[7.49]+cmd[44.45] seconds) 10:59:15 tests121: FAIL code 1 (2507.59=setup[6.49]+cmd[2501.10] seconds) 10:59:15 build_karaf_tests221: OK (50.93=setup[7.51]+cmd[43.42] seconds) 10:59:15 tests_tapi: OK (967.15=setup[9.22]+cmd[957.93] seconds) 10:59:15 tests221: FAIL code 1 (1362.15=setup[6.43]+cmd[1355.72] seconds) 10:59:15 build_karaf_tests71: OK (52.44=setup[12.41]+cmd[40.03] seconds) 10:59:15 tests71: OK (411.54=setup[6.21]+cmd[405.33] seconds) 10:59:15 build_karaf_tests_hybrid: OK (56.68=setup[9.96]+cmd[46.73] seconds) 10:59:15 tests_hybrid: OK (1206.65=setup[7.15]+cmd[1199.50] seconds) 10:59:15 buildlighty: OK (27.03=setup[6.38]+cmd[20.66] seconds) 10:59:15 docs: OK (36.55=setup[34.22]+cmd[2.33] seconds) 10:59:15 docs-linkcheck: OK (37.70=setup[34.56]+cmd[3.14] seconds) 10:59:15 checkbashisms: OK (2.91=setup[1.94]+cmd[0.02,0.06,0.89] seconds) 10:59:15 pre-commit: OK (49.24=setup[9.08]+cmd[0.00,0.00,33.61,6.54] seconds) 10:59:15 pylint: OK (26.65=setup[4.40]+cmd[22.25] seconds) 10:59:15 evaluation failed :( (4157.00 seconds) 10:59:15 + tox_status=255 10:59:15 + echo '---> Completed tox runs' 10:59:15 ---> Completed tox runs 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/build_karaf_tests121/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=build_karaf_tests121 10:59:15 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/build_karaf_tests221/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=build_karaf_tests221 10:59:15 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/build_karaf_tests71/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=build_karaf_tests71 10:59:15 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/build_karaf_tests_hybrid/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=build_karaf_tests_hybrid 10:59:15 + cp -r .tox/build_karaf_tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests_hybrid 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/buildcontroller/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=buildcontroller 10:59:15 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/buildlighty/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=buildlighty 10:59:15 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/checkbashisms/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=checkbashisms 10:59:15 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/docs-linkcheck/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=docs-linkcheck 10:59:15 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/docs/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=docs 10:59:15 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 10:59:15 + for i in .tox/*/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 ++ echo .tox/pre-commit/log 10:59:15 + tox_env=pre-commit 10:59:15 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/pylint/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=pylint 10:59:15 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/sims/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=sims 10:59:15 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/tests121/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=tests121 10:59:15 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests121 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/tests221/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=tests221 10:59:15 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/tests71/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=tests71 10:59:15 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/testsPCE/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=testsPCE 10:59:15 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 10:59:15 + for i in .tox/*/log 10:59:15 ++ echo .tox/tests_hybrid/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 + tox_env=tests_hybrid 10:59:15 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 10:59:15 + for i in .tox/*/log 10:59:15 ++ awk -F/ '{print $2}' 10:59:15 ++ echo .tox/tests_tapi/log 10:59:15 + tox_env=tests_tapi 10:59:15 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 10:59:15 + DOC_DIR=docs/_build/html 10:59:15 + [[ -d docs/_build/html ]] 10:59:15 + echo '---> Archiving generated docs' 10:59:15 ---> Archiving generated docs 10:59:15 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 10:59:15 + echo '---> tox-run.sh ends' 10:59:15 ---> tox-run.sh ends 10:59:15 + test 255 -eq 0 10:59:15 + exit 255 10:59:15 ++ '[' 1 = 1 ']' 10:59:15 ++ '[' -x /usr/bin/clear_console ']' 10:59:15 ++ /usr/bin/clear_console -q 10:59:15 Build step 'Execute shell' marked build as failure 10:59:15 $ ssh-agent -k 10:59:15 unset SSH_AUTH_SOCK; 10:59:15 unset SSH_AGENT_PID; 10:59:15 echo Agent pid 12806 killed; 10:59:15 [ssh-agent] Stopped. 10:59:16 [PostBuildScript] - [INFO] Executing post build scripts. 10:59:16 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11564276392485242063.sh 10:59:16 ---> sysstat.sh 10:59:16 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins18060989234086386658.sh 10:59:16 ---> package-listing.sh 10:59:16 ++ facter osfamily 10:59:16 ++ tr '[:upper:]' '[:lower:]' 10:59:16 + OS_FAMILY=debian 10:59:16 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 10:59:16 + START_PACKAGES=/tmp/packages_start.txt 10:59:16 + END_PACKAGES=/tmp/packages_end.txt 10:59:16 + DIFF_PACKAGES=/tmp/packages_diff.txt 10:59:16 + PACKAGES=/tmp/packages_start.txt 10:59:16 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 10:59:16 + PACKAGES=/tmp/packages_end.txt 10:59:16 + case "${OS_FAMILY}" in 10:59:16 + dpkg -l 10:59:16 + grep '^ii' 10:59:16 + '[' -f /tmp/packages_start.txt ']' 10:59:16 + '[' -f /tmp/packages_end.txt ']' 10:59:16 + diff /tmp/packages_start.txt /tmp/packages_end.txt 10:59:16 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 10:59:16 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 10:59:16 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 10:59:16 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins15396292943651723559.sh 10:59:16 ---> capture-instance-metadata.sh 10:59:16 Setup pyenv: 10:59:17 system 10:59:17 3.8.13 10:59:17 3.9.13 10:59:17 3.10.13 10:59:17 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:59:17 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-x23Y from file:/tmp/.os_lf_venv 10:59:18 lf-activate-venv(): INFO: Installing: lftools 10:59:29 lf-activate-venv(): INFO: Adding /tmp/venv-x23Y/bin to PATH 10:59:30 INFO: Running in OpenStack, capturing instance metadata 10:59:30 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13572462711921946668.sh 10:59:30 provisioning config files... 10:59:31 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #2108 10:59:31 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config10807232086229512236tmp 10:59:31 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 10:59:31 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 10:59:31 provisioning config files... 10:59:31 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 10:59:31 [EnvInject] - Injecting environment variables from a build step. 10:59:31 [EnvInject] - Injecting as environment variables the properties content 10:59:31 SERVER_ID=logs 10:59:31 10:59:31 [EnvInject] - Variables injected successfully. 10:59:31 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12238118731220470725.sh 10:59:31 ---> create-netrc.sh 10:59:31 WARN: Log server credential not found. 10:59:31 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1687421218387842875.sh 10:59:31 ---> python-tools-install.sh 10:59:31 Setup pyenv: 10:59:31 system 10:59:31 3.8.13 10:59:31 3.9.13 10:59:31 3.10.13 10:59:31 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:59:31 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-x23Y from file:/tmp/.os_lf_venv 10:59:32 lf-activate-venv(): INFO: Installing: lftools 10:59:42 lf-activate-venv(): INFO: Adding /tmp/venv-x23Y/bin to PATH 10:59:42 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins15717170787982899258.sh 10:59:42 ---> sudo-logs.sh 10:59:42 Archiving 'sudo' log.. 10:59:43 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6421499948815650308.sh 10:59:43 ---> job-cost.sh 10:59:43 Setup pyenv: 10:59:43 system 10:59:43 3.8.13 10:59:43 3.9.13 10:59:43 3.10.13 10:59:43 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:59:43 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-x23Y from file:/tmp/.os_lf_venv 10:59:44 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 10:59:48 lf-activate-venv(): INFO: Adding /tmp/venv-x23Y/bin to PATH 10:59:48 INFO: No Stack... 10:59:48 INFO: Retrieving Pricing Info for: v3-standard-4 10:59:49 INFO: Archiving Costs 10:59:49 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins11084048631487518612.sh 10:59:49 ---> logs-deploy.sh 10:59:49 Setup pyenv: 10:59:49 system 10:59:49 3.8.13 10:59:49 3.9.13 10:59:49 3.10.13 10:59:49 * 3.11.7 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 10:59:49 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-x23Y from file:/tmp/.os_lf_venv 10:59:50 lf-activate-venv(): INFO: Installing: lftools 10:59:59 lf-activate-venv(): INFO: Adding /tmp/venv-x23Y/bin to PATH 10:59:59 WARNING: Nexus logging server not set 10:59:59 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/2108/ 10:59:59 INFO: archiving logs to S3 11:00:01 ---> uname -a: 11:00:01 Linux prd-ubuntu2004-docker-4c-16g-1149 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 11:00:01 11:00:01 11:00:01 ---> lscpu: 11:00:01 Architecture: x86_64 11:00:01 CPU op-mode(s): 32-bit, 64-bit 11:00:01 Byte Order: Little Endian 11:00:01 Address sizes: 40 bits physical, 48 bits virtual 11:00:01 CPU(s): 4 11:00:01 On-line CPU(s) list: 0-3 11:00:01 Thread(s) per core: 1 11:00:01 Core(s) per socket: 1 11:00:01 Socket(s): 4 11:00:01 NUMA node(s): 1 11:00:01 Vendor ID: AuthenticAMD 11:00:01 CPU family: 23 11:00:01 Model: 49 11:00:01 Model name: AMD EPYC-Rome Processor 11:00:01 Stepping: 0 11:00:01 CPU MHz: 2800.000 11:00:01 BogoMIPS: 5600.00 11:00:01 Virtualization: AMD-V 11:00:01 Hypervisor vendor: KVM 11:00:01 Virtualization type: full 11:00:01 L1d cache: 128 KiB 11:00:01 L1i cache: 128 KiB 11:00:01 L2 cache: 2 MiB 11:00:01 L3 cache: 64 MiB 11:00:01 NUMA node0 CPU(s): 0-3 11:00:01 Vulnerability Gather data sampling: Not affected 11:00:01 Vulnerability Itlb multihit: Not affected 11:00:01 Vulnerability L1tf: Not affected 11:00:01 Vulnerability Mds: Not affected 11:00:01 Vulnerability Meltdown: Not affected 11:00:01 Vulnerability Mmio stale data: Not affected 11:00:01 Vulnerability Retbleed: Vulnerable 11:00:01 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 11:00:01 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 11:00:01 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 11:00:01 Vulnerability Srbds: Not affected 11:00:01 Vulnerability Tsx async abort: Not affected 11:00:01 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 11:00:01 11:00:01 11:00:01 ---> nproc: 11:00:01 4 11:00:01 11:00:01 11:00:01 ---> df -h: 11:00:01 Filesystem Size Used Avail Use% Mounted on 11:00:01 udev 7.8G 0 7.8G 0% /dev 11:00:01 tmpfs 1.6G 1.1M 1.6G 1% /run 11:00:01 /dev/vda1 78G 17G 62G 21% / 11:00:01 tmpfs 7.9G 0 7.9G 0% /dev/shm 11:00:01 tmpfs 5.0M 0 5.0M 0% /run/lock 11:00:01 tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup 11:00:01 /dev/loop0 68M 68M 0 100% /snap/lxd/22753 11:00:01 /dev/loop2 62M 62M 0 100% /snap/core20/1405 11:00:01 /dev/loop1 44M 44M 0 100% /snap/snapd/15177 11:00:01 /dev/vda15 105M 6.1M 99M 6% /boot/efi 11:00:01 tmpfs 1.6G 0 1.6G 0% /run/user/1001 11:00:01 /dev/loop3 64M 64M 0 100% /snap/core20/2434 11:00:01 /dev/loop4 92M 92M 0 100% /snap/lxd/29619 11:00:01 11:00:01 11:00:01 ---> free -m: 11:00:01 total used free shared buff/cache available 11:00:01 Mem: 15997 675 6981 1 8340 14982 11:00:01 Swap: 1023 0 1023 11:00:01 11:00:01 11:00:01 ---> ip addr: 11:00:01 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 11:00:01 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 11:00:01 inet 127.0.0.1/8 scope host lo 11:00:01 valid_lft forever preferred_lft forever 11:00:01 inet6 ::1/128 scope host 11:00:01 valid_lft forever preferred_lft forever 11:00:01 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 11:00:01 link/ether fa:16:3e:da:51:34 brd ff:ff:ff:ff:ff:ff 11:00:01 inet 10.30.170.73/23 brd 10.30.171.255 scope global dynamic ens3 11:00:01 valid_lft 82074sec preferred_lft 82074sec 11:00:01 inet6 fe80::f816:3eff:feda:5134/64 scope link 11:00:01 valid_lft forever preferred_lft forever 11:00:01 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 11:00:01 link/ether 02:42:5d:27:60:56 brd ff:ff:ff:ff:ff:ff 11:00:01 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 11:00:01 valid_lft forever preferred_lft forever 11:00:01 11:00:01 11:00:01 ---> sar -b -r -n DEV: 11:00:01 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-1149) 10/25/24 _x86_64_ (4 CPU) 11:00:01 11:00:01 09:47:58 LINUX RESTART (4 CPU) 11:00:01 11:00:01 09:48:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 11:00:01 09:49:01 340.49 157.07 183.42 0.00 11694.05 108703.48 0.00 11:00:01 09:50:01 118.58 38.04 80.54 0.00 1288.05 11479.97 0.00 11:00:01 09:51:01 245.11 40.79 204.32 0.00 2719.68 45329.51 0.00 11:00:01 09:52:01 63.34 1.62 61.72 0.00 89.59 26176.57 0.00 11:00:01 09:53:01 180.38 7.68 172.70 0.00 265.27 155193.09 0.00 11:00:01 09:54:01 261.77 10.04 251.72 0.00 4724.73 74692.56 0.00 11:00:01 09:55:01 53.08 2.42 50.67 0.00 198.73 1040.19 0.00 11:00:01 09:56:01 142.92 0.50 142.42 0.00 47.58 2347.75 0.00 11:00:01 09:57:01 70.39 0.30 70.09 0.00 48.93 1461.76 0.00 11:00:01 09:58:01 104.90 2.52 102.38 0.00 456.86 9705.45 0.00 11:00:01 09:59:01 2.92 0.00 2.92 0.00 0.00 47.46 0.00 11:00:01 10:00:01 26.76 0.47 26.30 0.00 23.60 811.86 0.00 11:00:01 10:01:01 67.82 0.00 67.82 0.00 0.00 917.85 0.00 11:00:01 10:02:01 71.04 0.02 71.02 0.00 0.13 1283.52 0.00 11:00:01 10:03:01 4.22 0.98 3.23 0.00 22.66 59.46 0.00 11:00:01 10:04:01 3.27 0.00 3.27 0.00 0.00 58.12 0.00 11:00:01 10:05:01 46.32 0.00 46.32 0.00 0.00 746.02 0.00 11:00:01 10:06:01 130.09 0.00 130.09 0.00 0.00 1897.28 0.00 11:00:01 10:07:01 3.20 0.00 3.20 0.00 0.00 63.46 0.00 11:00:01 10:08:01 1.88 0.00 1.88 0.00 0.00 35.99 0.00 11:00:01 10:09:01 9.17 0.03 9.13 0.00 0.40 738.41 0.00 11:00:01 10:10:01 171.02 0.02 171.00 0.00 0.13 10677.69 0.00 11:00:01 10:11:01 2.62 0.00 2.62 0.00 0.00 53.86 0.00 11:00:01 10:12:01 2.43 0.00 2.43 0.00 0.00 44.13 0.00 11:00:01 10:13:01 67.97 0.00 67.97 0.00 0.00 1007.83 0.00 11:00:01 10:14:01 3.22 0.00 3.22 0.00 0.00 61.59 0.00 11:00:01 10:15:01 77.94 0.00 77.94 0.00 0.00 1131.28 0.00 11:00:01 10:16:01 32.31 0.02 32.29 0.00 0.13 1266.46 0.00 11:00:01 10:17:01 115.86 0.05 115.81 0.00 1.07 3122.41 0.00 11:00:01 10:18:01 88.90 0.00 88.90 0.00 0.00 1320.98 0.00 11:00:01 10:19:01 56.37 0.00 56.37 0.00 0.00 818.00 0.00 11:00:01 10:20:01 2.18 0.00 2.18 0.00 0.00 45.05 0.00 11:00:01 10:21:01 102.90 0.00 102.90 0.00 0.00 1519.61 0.00 11:00:01 10:22:01 115.01 0.00 115.01 0.00 0.00 1669.32 0.00 11:00:01 10:23:01 2.80 0.00 2.80 0.00 0.00 65.71 0.00 11:00:01 10:24:01 87.97 0.00 87.97 0.00 0.00 1339.38 0.00 11:00:01 10:25:01 84.47 0.02 84.45 0.00 0.27 1648.53 0.00 11:00:01 10:26:01 67.76 0.00 67.76 0.00 0.00 999.30 0.00 11:00:01 10:27:01 2.57 0.00 2.57 0.00 0.00 52.79 0.00 11:00:01 10:28:01 68.87 0.00 68.87 0.00 0.00 1214.73 0.00 11:00:01 10:29:01 2.68 0.00 2.68 0.00 0.00 59.05 0.00 11:00:01 10:30:01 3.27 0.00 3.27 0.00 0.00 62.12 0.00 11:00:01 10:31:01 73.05 0.00 73.05 0.00 0.00 1071.82 0.00 11:00:01 10:32:01 3.73 0.00 3.73 0.00 0.00 79.87 0.00 11:00:01 10:33:01 2.67 0.00 2.67 0.00 0.00 45.33 0.00 11:00:01 10:34:01 2.37 0.00 2.37 0.00 0.00 47.72 0.00 11:00:01 10:35:01 2.78 0.00 2.78 0.00 0.00 50.66 0.00 11:00:01 10:36:01 1.83 0.00 1.83 0.00 0.00 44.13 0.00 11:00:01 10:37:01 2.22 0.00 2.22 0.00 0.00 36.79 0.00 11:00:01 10:38:01 2.92 0.00 2.92 0.00 0.00 67.31 0.00 11:00:01 10:39:01 15.06 0.07 15.00 0.00 2.00 1586.00 0.00 11:00:01 10:40:01 104.05 0.00 104.05 0.00 0.00 8536.44 0.00 11:00:01 10:41:01 2.58 0.00 2.58 0.00 0.00 100.37 0.00 11:00:01 10:42:01 79.05 0.00 79.05 0.00 0.00 1278.05 0.00 11:00:01 10:43:01 2.35 0.00 2.35 0.00 0.00 51.99 0.00 11:00:01 10:44:01 2.07 0.00 2.07 0.00 0.00 40.26 0.00 11:00:01 10:45:01 2.65 0.00 2.65 0.00 0.00 44.13 0.00 11:00:01 10:46:01 2.15 0.00 2.15 0.00 0.00 39.99 0.00 11:00:01 10:47:01 2.42 0.00 2.42 0.00 0.00 47.19 0.00 11:00:01 10:48:01 2.18 0.00 2.18 0.00 0.00 56.39 0.00 11:00:01 10:49:01 1.75 0.00 1.75 0.00 0.00 24.40 0.00 11:00:01 10:50:01 1.33 0.00 1.33 0.00 0.00 16.53 0.00 11:00:01 10:51:01 1.53 0.00 1.53 0.00 0.00 18.93 0.00 11:00:01 10:52:01 22.74 0.00 22.74 0.00 0.00 363.21 0.00 11:00:01 10:53:01 51.37 0.00 51.37 0.00 0.00 854.79 0.00 11:00:01 10:54:01 2.37 0.00 2.37 0.00 0.00 58.40 0.00 11:00:01 10:55:01 2.58 0.00 2.58 0.00 0.00 66.52 0.00 11:00:01 10:56:01 1.92 0.00 1.92 0.00 0.00 54.79 0.00 11:00:01 10:57:01 2.17 0.00 2.17 0.00 0.00 28.80 0.00 11:00:01 10:58:01 1.50 0.00 1.50 0.00 0.00 18.93 0.00 11:00:01 10:59:01 10.05 3.20 6.85 0.00 64.51 339.89 0.00 11:00:01 Average: 49.44 3.74 45.70 0.00 304.95 6811.65 0.00 11:00:01 11:00:01 09:48:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 11:00:01 09:49:01 13596848 15437640 553532 3.38 51952 1997264 1308696 7.51 761404 1769332 92552 11:00:01 09:50:01 13013172 15316368 646400 3.95 83424 2399900 1517000 8.70 943160 2113936 253056 11:00:01 09:51:01 10603824 14434276 1521712 9.29 137552 3758732 2235124 12.82 2003152 3340892 435836 11:00:01 09:52:01 8853528 14335460 1621392 9.90 162992 5308080 2644348 15.17 2432020 4587224 1303984 11:00:01 09:53:01 5877016 14246888 1708092 10.43 207508 8023732 2526948 14.50 3412384 6453132 829080 11:00:01 09:54:01 3866036 13282144 2662796 16.26 228796 9016556 3725140 21.37 4913440 6911292 2704 11:00:01 09:55:01 631340 9431224 6511448 39.75 224060 8417820 7572080 43.44 8627208 6428824 880 11:00:01 09:56:01 185936 8785548 7156396 43.69 231048 8212348 8439252 48.42 9274880 6226556 1816 11:00:01 09:57:01 944484 9593652 6348560 38.75 235216 8253904 7358024 42.21 8469796 6272612 62704 11:00:01 09:58:01 174108 7517948 8423444 51.42 241096 6963224 9586908 55.00 10461780 5063192 576 11:00:01 09:59:01 174724 7518584 8422740 51.42 241120 6963224 9586908 55.00 10462456 5062836 104 11:00:01 10:00:01 5646412 12991604 2952084 18.02 241480 6964068 3999088 22.94 5019660 5054128 960 11:00:01 10:01:01 2048212 9396116 6546348 39.96 243512 6964684 7485544 42.95 8607880 5052420 500 11:00:01 10:02:01 1958176 9308796 6633360 40.49 245216 6965612 7582452 43.50 8717356 5031996 420 11:00:01 10:03:01 1927676 9279272 6662568 40.67 245296 6966472 7650424 43.89 8746836 5030508 276 11:00:01 10:04:01 1924236 9276120 6666032 40.69 245308 6966748 7650424 43.89 8749412 5030736 124 11:00:01 10:05:01 3360516 10713284 5229680 31.92 245668 6967232 6458468 37.05 7328224 5022220 252 11:00:01 10:06:01 941388 8298568 7642900 46.66 248944 6968216 8839920 50.72 9746804 5012072 380 11:00:01 10:07:01 896876 8254256 7687176 46.93 248956 6968408 8888720 51.00 9793036 5011992 140 11:00:01 10:08:01 871808 8229504 7711900 47.08 248980 6968684 8920752 51.18 9817752 5012260 260 11:00:01 10:09:01 3986776 11578896 4363164 26.63 255036 7190488 5630328 32.30 6514532 5205612 223500 11:00:01 10:10:01 2676840 10276884 5665048 34.58 257752 7195496 6682148 38.34 7865956 5158156 540 11:00:01 10:11:01 2647052 10247232 5694680 34.76 257784 7195648 6714244 38.52 7896468 5157620 160 11:00:01 10:12:01 2619524 10219856 5722044 34.93 257808 7195776 6730240 38.61 7924252 5157728 168 11:00:01 10:13:01 1754132 9355864 6585720 40.20 258916 7196004 7446644 42.72 8796028 5146328 424 11:00:01 10:14:01 1739716 9341628 6599944 40.29 258924 7196180 7462680 42.82 8811752 5146496 132 11:00:01 10:15:01 2533464 10136976 5804844 35.44 260288 7196384 6703116 38.46 8021600 5146160 184 11:00:01 10:16:01 2705932 10376200 5565552 33.97 262628 7256816 6757412 38.77 7786824 5205052 44980 11:00:01 10:17:01 4106212 11777792 4164312 25.42 263716 7257048 5179416 29.72 6393792 5204292 480 11:00:01 10:18:01 4903768 12576728 3365668 20.55 264512 7257560 4465968 25.62 5613168 5190284 448 11:00:01 10:19:01 1948316 9622288 6319480 38.58 265064 7258016 7447300 42.73 8558832 5190736 328 11:00:01 10:20:01 1717228 9391392 6550348 39.99 265072 7258184 7512876 43.10 8789380 5190900 200 11:00:01 10:21:01 4937736 12613520 3329548 20.33 266096 7258792 4458912 25.58 5578064 5190724 624 11:00:01 10:22:01 2566096 10243028 5698740 34.79 266644 7259368 6672240 38.28 7943428 5190188 236 11:00:01 10:23:01 2283300 9960556 5981072 36.51 266652 7259676 6754460 38.75 8224964 5190444 508 11:00:01 10:24:01 6892180 14570428 1372752 8.38 267004 7260284 2192592 12.58 3630252 5190716 836 11:00:01 10:25:01 3082956 10762456 5179500 31.62 267512 7260932 6507620 37.34 7425772 5190460 608 11:00:01 10:26:01 2446828 10127040 5814940 35.50 267900 7261224 7290728 41.83 8063984 5190728 276 11:00:01 10:27:01 2216180 9896744 6044992 36.90 267908 7261564 7405992 42.49 8293124 5191064 136 11:00:01 10:28:01 838288 8519588 7421392 45.30 268132 7262056 8865968 50.87 9665040 5190764 776 11:00:01 10:29:01 619488 8301048 7639728 46.64 268132 7262320 8963524 51.43 9881532 5191020 240 11:00:01 10:30:01 598644 8280512 7660332 46.76 268132 7262624 8979516 51.52 9902584 5191324 228 11:00:01 10:31:01 830976 8513532 7427476 45.34 268436 7263000 8631676 49.52 9672328 5191580 576 11:00:01 10:32:01 619416 8302368 7638204 46.63 268448 7263384 8764168 50.28 9881756 5191960 108 11:00:01 10:33:01 609124 8292260 7648284 46.69 268452 7263564 8780168 50.37 9892592 5192140 372 11:00:01 10:34:01 388000 8071432 7869060 48.04 268460 7263856 8828428 50.65 10110736 5192432 228 11:00:01 10:35:01 379692 8063340 7877020 48.09 268460 7264064 8844544 50.74 10118932 5192640 328 11:00:01 10:36:01 372360 8056392 7883932 48.13 268460 7264448 8860540 50.84 10125528 5193024 160 11:00:01 10:37:01 313980 7998252 7942068 48.48 268460 7264660 8894880 51.03 10181696 5193228 204 11:00:01 10:38:01 289456 7974184 7966060 48.63 268464 7265116 8943364 51.31 10206924 5193656 52 11:00:01 10:39:01 6906824 14827648 1117124 6.82 274336 7487320 1910564 10.96 3418156 5384740 205628 11:00:01 10:40:01 3627516 11554604 4388144 26.79 274884 7492704 5138148 29.48 6704888 5363116 1812 11:00:01 10:41:01 3473848 11401224 4541384 27.72 274892 7492980 5278720 30.29 6857116 5363236 272 11:00:01 10:42:01 4068684 11996340 3946760 24.09 275040 7492996 4993072 28.65 6286436 5343528 164 11:00:01 10:43:01 3625012 11553092 4389520 26.80 275040 7493420 5224124 29.97 6729204 5341640 152 11:00:01 10:44:01 3617964 11546240 4396368 26.84 275048 7493612 5224124 29.97 6736332 5341768 88 11:00:01 10:45:01 3602040 11530508 4412200 26.93 275060 7493788 5224124 29.97 6751872 5341940 104 11:00:01 10:46:01 3593968 11522676 4419980 26.98 275068 7494020 5224124 29.97 6759632 5342172 40 11:00:01 10:47:01 3542748 11471972 4470584 27.29 275080 7494524 5240144 30.06 6808672 5342652 468 11:00:01 10:48:01 3543124 11472732 4469788 27.29 275092 7494908 5256200 30.16 6807988 5343028 308 11:00:01 10:49:01 3542960 11472604 4470024 27.29 275092 7494924 5256200 30.16 6808760 5343052 64 11:00:01 10:50:01 3542852 11472500 4470156 27.29 275092 7494928 5256200 30.16 6808156 5343056 64 11:00:01 10:51:01 3542372 11472020 4470592 27.29 275096 7494928 5239644 30.06 6808064 5343056 72 11:00:01 10:52:01 4512852 12442312 3501080 21.37 275120 7494700 4872468 27.95 5854576 5331488 192 11:00:01 10:53:01 2767416 10697520 5244744 32.02 275284 7495108 6061028 34.77 7595904 5331748 244 11:00:01 10:54:01 2711796 10642496 5299668 32.35 275288 7495696 6093164 34.96 7651756 5332256 212 11:00:01 10:55:01 2622076 10553720 5388416 32.89 275292 7496640 6125168 35.14 7739440 5333192 456 11:00:01 10:56:01 2597128 10529144 5412960 33.04 275292 7497008 6125168 35.14 7763376 5333560 108 11:00:01 10:57:01 2596664 10528820 5413240 33.05 275292 7497140 6125168 35.14 7762628 5333700 60 11:00:01 10:58:01 2595964 10528128 5413892 33.05 275296 7497144 6125168 35.14 7762808 5333704 76 11:00:01 10:59:01 7102876 15113212 831412 5.08 278504 7564392 1672332 9.59 3203820 5396688 69444 11:00:01 Average: 3082488 10611622 5332007 32.55 253346 7138624 6324126 36.28 7460282 5173224 49925 11:00:01 11:00:01 09:48:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 11:00:01 09:49:01 ens3 368.92 236.08 1523.31 66.04 0.00 0.00 0.00 0.00 11:00:01 09:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:49:01 lo 1.83 1.83 0.17 0.17 0.00 0.00 0.00 0.00 11:00:01 09:50:01 ens3 77.25 65.51 794.14 9.93 0.00 0.00 0.00 0.00 11:00:01 09:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:50:01 lo 0.93 0.93 0.09 0.09 0.00 0.00 0.00 0.00 11:00:01 09:51:01 ens3 474.59 396.20 7567.31 40.90 0.00 0.00 0.00 0.00 11:00:01 09:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:51:01 lo 5.87 5.87 0.59 0.59 0.00 0.00 0.00 0.00 11:00:01 09:52:01 ens3 365.91 265.02 5646.74 26.40 0.00 0.00 0.00 0.00 11:00:01 09:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:52:01 lo 0.87 0.87 0.09 0.09 0.00 0.00 0.00 0.00 11:00:01 09:53:01 ens3 77.08 46.24 1801.60 6.50 0.00 0.00 0.00 0.00 11:00:01 09:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:53:01 lo 1.02 1.02 0.10 0.10 0.00 0.00 0.00 0.00 11:00:01 09:54:01 ens3 161.30 94.07 2101.19 6.59 0.00 0.00 0.00 0.00 11:00:01 09:54:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:54:01 lo 5.81 5.81 1.40 1.40 0.00 0.00 0.00 0.00 11:00:01 09:55:01 ens3 1.88 2.18 0.31 0.32 0.00 0.00 0.00 0.00 11:00:01 09:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:55:01 lo 33.71 33.71 41.37 41.37 0.00 0.00 0.00 0.00 11:00:01 09:56:01 ens3 1.18 1.42 0.21 0.22 0.00 0.00 0.00 0.00 11:00:01 09:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:56:01 lo 29.77 29.77 15.93 15.93 0.00 0.00 0.00 0.00 11:00:01 09:57:01 ens3 7.88 6.85 6.29 1.06 0.00 0.00 0.00 0.00 11:00:01 09:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:57:01 lo 29.56 29.56 14.01 14.01 0.00 0.00 0.00 0.00 11:00:01 09:58:01 ens3 0.43 0.27 0.04 0.03 0.00 0.00 0.00 0.00 11:00:01 09:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:58:01 lo 9.18 9.18 8.50 8.50 0.00 0.00 0.00 0.00 11:00:01 09:59:01 ens3 0.40 0.17 0.09 0.07 0.00 0.00 0.00 0.00 11:00:01 09:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 09:59:01 lo 1.25 1.25 0.13 0.13 0.00 0.00 0.00 0.00 11:00:01 10:00:01 ens3 0.57 0.42 0.09 0.07 0.00 0.00 0.00 0.00 11:00:01 10:00:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:00:01 lo 4.80 4.80 0.51 0.51 0.00 0.00 0.00 0.00 11:00:01 10:01:01 ens3 1.07 0.82 0.19 0.13 0.00 0.00 0.00 0.00 11:00:01 10:01:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:01:01 lo 18.80 18.80 17.11 17.11 0.00 0.00 0.00 0.00 11:00:01 10:02:01 ens3 1.38 1.53 0.27 0.26 0.00 0.00 0.00 0.00 11:00:01 10:02:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:02:01 lo 28.61 28.61 14.88 14.88 0.00 0.00 0.00 0.00 11:00:01 10:03:01 ens3 0.45 0.33 0.05 0.05 0.00 0.00 0.00 0.00 11:00:01 10:03:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:03:01 lo 16.88 16.88 7.36 7.36 0.00 0.00 0.00 0.00 11:00:01 10:04:01 ens3 0.40 0.42 0.12 0.11 0.00 0.00 0.00 0.00 11:00:01 10:04:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:04:01 lo 21.90 21.90 7.04 7.04 0.00 0.00 0.00 0.00 11:00:01 10:05:01 ens3 0.93 0.93 0.13 0.13 0.00 0.00 0.00 0.00 11:00:01 10:05:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:05:01 lo 12.93 12.93 3.13 3.13 0.00 0.00 0.00 0.00 11:00:01 10:06:01 ens3 1.10 1.18 0.17 0.17 0.00 0.00 0.00 0.00 11:00:01 10:06:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:06:01 lo 41.91 41.91 16.04 16.04 0.00 0.00 0.00 0.00 11:00:01 10:07:01 ens3 1.12 1.25 0.24 0.19 0.00 0.00 0.00 0.00 11:00:01 10:07:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:07:01 lo 8.90 8.90 6.14 6.14 0.00 0.00 0.00 0.00 11:00:01 10:08:01 ens3 0.98 1.32 0.20 0.21 0.00 0.00 0.00 0.00 11:00:01 10:08:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:08:01 lo 11.96 11.96 7.85 7.85 0.00 0.00 0.00 0.00 11:00:01 10:09:01 ens3 2.32 2.72 0.95 0.86 0.00 0.00 0.00 0.00 11:00:01 10:09:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:09:01 lo 27.60 27.60 9.08 9.08 0.00 0.00 0.00 0.00 11:00:01 10:10:01 ens3 1.27 1.05 0.26 0.19 0.00 0.00 0.00 0.00 11:00:01 10:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:10:01 lo 20.21 20.21 23.83 23.83 0.00 0.00 0.00 0.00 11:00:01 10:11:01 ens3 1.35 1.02 0.24 0.20 0.00 0.00 0.00 0.00 11:00:01 10:11:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:11:01 lo 26.61 26.61 8.68 8.68 0.00 0.00 0.00 0.00 11:00:01 10:12:01 ens3 1.22 1.00 0.23 0.21 0.00 0.00 0.00 0.00 11:00:01 10:12:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:12:01 lo 26.33 26.33 8.28 8.28 0.00 0.00 0.00 0.00 11:00:01 10:13:01 ens3 1.13 1.02 0.20 0.19 0.00 0.00 0.00 0.00 11:00:01 10:13:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:13:01 lo 24.83 24.83 15.38 15.38 0.00 0.00 0.00 0.00 11:00:01 10:14:01 ens3 1.27 1.07 0.30 0.27 0.00 0.00 0.00 0.00 11:00:01 10:14:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:14:01 lo 31.78 31.78 10.49 10.49 0.00 0.00 0.00 0.00 11:00:01 10:15:01 ens3 0.92 0.82 0.16 0.15 0.00 0.00 0.00 0.00 11:00:01 10:15:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:15:01 lo 25.26 25.26 10.62 10.62 0.00 0.00 0.00 0.00 11:00:01 10:16:01 ens3 2.57 2.70 0.98 0.88 0.00 0.00 0.00 0.00 11:00:01 10:16:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:16:01 lo 28.20 28.20 9.68 9.68 0.00 0.00 0.00 0.00 11:00:01 10:17:01 ens3 2.10 1.98 0.41 0.38 0.00 0.00 0.00 0.00 11:00:01 10:17:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:17:01 lo 23.71 23.71 13.77 13.77 0.00 0.00 0.00 0.00 11:00:01 10:18:01 ens3 0.75 0.62 0.11 0.11 0.00 0.00 0.00 0.00 11:00:01 10:18:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:18:01 lo 14.31 14.31 4.72 4.72 0.00 0.00 0.00 0.00 11:00:01 10:19:01 ens3 1.10 1.15 0.22 0.21 0.00 0.00 0.00 0.00 11:00:01 10:19:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:19:01 lo 14.98 14.98 6.78 6.78 0.00 0.00 0.00 0.00 11:00:01 10:20:01 ens3 1.37 1.67 0.36 0.26 0.00 0.00 0.00 0.00 11:00:01 10:20:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:20:01 lo 18.31 18.31 8.85 8.85 0.00 0.00 0.00 0.00 11:00:01 10:21:01 ens3 1.73 2.23 0.32 0.34 0.00 0.00 0.00 0.00 11:00:01 10:21:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:21:01 lo 21.28 21.28 10.62 10.62 0.00 0.00 0.00 0.00 11:00:01 10:22:01 ens3 1.20 1.43 0.20 0.21 0.00 0.00 0.00 0.00 11:00:01 10:22:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:22:01 lo 25.75 25.75 12.32 12.32 0.00 0.00 0.00 0.00 11:00:01 10:23:01 ens3 1.12 1.42 0.21 0.23 0.00 0.00 0.00 0.00 11:00:01 10:23:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:23:01 lo 44.64 44.64 13.55 13.55 0.00 0.00 0.00 0.00 11:00:01 10:24:01 ens3 1.42 1.73 0.31 0.32 0.00 0.00 0.00 0.00 11:00:01 10:24:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:24:01 lo 48.46 48.46 15.44 15.44 0.00 0.00 0.00 0.00 11:00:01 10:25:01 ens3 1.28 1.40 0.24 0.20 0.00 0.00 0.00 0.00 11:00:01 10:25:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:25:01 lo 15.51 15.51 14.65 14.65 0.00 0.00 0.00 0.00 11:00:01 10:26:01 ens3 0.75 0.88 0.13 0.13 0.00 0.00 0.00 0.00 11:00:01 10:26:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:26:01 lo 15.05 15.05 9.60 9.60 0.00 0.00 0.00 0.00 11:00:01 10:27:01 ens3 0.87 1.08 0.16 0.17 0.00 0.00 0.00 0.00 11:00:01 10:27:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:27:01 lo 19.71 19.71 15.14 15.14 0.00 0.00 0.00 0.00 11:00:01 10:28:01 ens3 0.95 1.05 0.15 0.15 0.00 0.00 0.00 0.00 11:00:01 10:28:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:28:01 lo 19.66 19.66 9.03 9.03 0.00 0.00 0.00 0.00 11:00:01 10:29:01 ens3 0.97 1.03 0.21 0.21 0.00 0.00 0.00 0.00 11:00:01 10:29:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:29:01 lo 34.54 34.54 11.84 11.84 0.00 0.00 0.00 0.00 11:00:01 10:30:01 ens3 0.88 0.85 0.36 0.31 0.00 0.00 0.00 0.00 11:00:01 10:30:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:30:01 lo 42.96 42.96 12.54 12.54 0.00 0.00 0.00 0.00 11:00:01 10:31:01 ens3 0.82 0.87 0.12 0.12 0.00 0.00 0.00 0.00 11:00:01 10:31:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:31:01 lo 17.60 17.60 15.91 15.91 0.00 0.00 0.00 0.00 11:00:01 10:32:01 ens3 1.48 1.05 0.28 0.16 0.00 0.00 0.00 0.00 11:00:01 10:32:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:32:01 lo 24.90 24.90 11.29 11.29 0.00 0.00 0.00 0.00 11:00:01 10:33:01 ens3 0.93 1.00 0.35 0.30 0.00 0.00 0.00 0.00 11:00:01 10:33:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:33:01 lo 8.88 8.88 5.05 5.05 0.00 0.00 0.00 0.00 11:00:01 10:34:01 ens3 0.87 0.98 0.21 0.20 0.00 0.00 0.00 0.00 11:00:01 10:34:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:34:01 lo 22.83 22.83 11.59 11.59 0.00 0.00 0.00 0.00 11:00:01 10:35:01 ens3 0.73 0.58 0.16 0.10 0.00 0.00 0.00 0.00 11:00:01 10:35:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:35:01 lo 20.16 20.16 7.39 7.39 0.00 0.00 0.00 0.00 11:00:01 10:36:01 ens3 0.43 0.32 0.07 0.06 0.00 0.00 0.00 0.00 11:00:01 10:36:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:36:01 lo 16.65 16.65 7.45 7.45 0.00 0.00 0.00 0.00 11:00:01 10:37:01 ens3 0.68 0.52 0.11 0.10 0.00 0.00 0.00 0.00 11:00:01 10:37:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:37:01 lo 20.83 20.83 8.18 8.18 0.00 0.00 0.00 0.00 11:00:01 10:38:01 ens3 1.00 0.53 0.16 0.11 0.00 0.00 0.00 0.00 11:00:01 10:38:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:38:01 lo 34.39 34.39 12.69 12.69 0.00 0.00 0.00 0.00 11:00:01 10:39:01 ens3 17.21 11.78 4.50 10.46 0.00 0.00 0.00 0.00 11:00:01 10:39:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:39:01 lo 9.87 9.87 4.18 4.18 0.00 0.00 0.00 0.00 11:00:01 10:40:01 ens3 1.43 0.73 0.38 0.27 0.00 0.00 0.00 0.00 11:00:01 10:40:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:40:01 lo 35.38 35.38 32.60 32.60 0.00 0.00 0.00 0.00 11:00:01 10:41:01 ens3 2.55 1.70 0.94 0.68 0.00 0.00 0.00 0.00 11:00:01 10:41:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:41:01 lo 34.96 34.96 14.30 14.30 0.00 0.00 0.00 0.00 11:00:01 10:42:01 ens3 0.75 0.58 0.10 0.09 0.00 0.00 0.00 0.00 11:00:01 10:42:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:42:01 lo 3.78 3.78 0.84 0.84 0.00 0.00 0.00 0.00 11:00:01 10:43:01 ens3 1.83 1.13 0.49 0.37 0.00 0.00 0.00 0.00 11:00:01 10:43:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:43:01 lo 37.94 37.94 19.46 19.46 0.00 0.00 0.00 0.00 11:00:01 10:44:01 ens3 0.88 0.92 0.22 0.21 0.00 0.00 0.00 0.00 11:00:01 10:44:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:44:01 lo 11.91 11.91 5.29 5.29 0.00 0.00 0.00 0.00 11:00:01 10:45:01 ens3 0.62 0.63 0.10 0.10 0.00 0.00 0.00 0.00 11:00:01 10:45:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:45:01 lo 21.76 21.76 8.35 8.35 0.00 0.00 0.00 0.00 11:00:01 10:46:01 ens3 0.80 0.95 0.19 0.14 0.00 0.00 0.00 0.00 11:00:01 10:46:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:46:01 lo 20.73 20.73 8.04 8.04 0.00 0.00 0.00 0.00 11:00:01 10:47:01 ens3 0.78 0.95 0.14 0.15 0.00 0.00 0.00 0.00 11:00:01 10:47:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:47:01 lo 42.56 42.56 14.79 14.79 0.00 0.00 0.00 0.00 11:00:01 10:48:01 ens3 0.62 0.68 0.11 0.11 0.00 0.00 0.00 0.00 11:00:01 10:48:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:48:01 lo 36.44 36.44 11.68 11.68 0.00 0.00 0.00 0.00 11:00:01 10:49:01 ens3 0.55 0.62 0.15 0.14 0.00 0.00 0.00 0.00 11:00:01 10:49:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:49:01 lo 3.63 3.63 0.99 0.99 0.00 0.00 0.00 0.00 11:00:01 10:50:01 ens3 0.13 0.00 0.01 0.00 0.00 0.00 0.00 0.00 11:00:01 10:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:50:01 lo 0.60 0.60 0.07 0.07 0.00 0.00 0.00 0.00 11:00:01 10:51:01 ens3 0.23 0.10 0.01 0.01 0.00 0.00 0.00 0.00 11:00:01 10:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:51:01 lo 0.57 0.57 0.04 0.04 0.00 0.00 0.00 0.00 11:00:01 10:52:01 ens3 1.05 0.67 0.14 0.09 0.00 0.00 0.00 0.00 11:00:01 10:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:52:01 lo 2.33 2.33 0.21 0.21 0.00 0.00 0.00 0.00 11:00:01 10:53:01 ens3 1.23 1.33 0.40 0.36 0.00 0.00 0.00 0.00 11:00:01 10:53:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:53:01 lo 43.36 43.36 21.55 21.55 0.00 0.00 0.00 0.00 11:00:01 10:54:01 ens3 1.57 1.07 0.41 0.23 0.00 0.00 0.00 0.00 11:00:01 10:54:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:54:01 lo 42.95 42.95 15.89 15.89 0.00 0.00 0.00 0.00 11:00:01 10:55:01 ens3 0.93 0.65 0.35 0.28 0.00 0.00 0.00 0.00 11:00:01 10:55:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:55:01 lo 88.30 88.30 29.94 29.94 0.00 0.00 0.00 0.00 11:00:01 10:56:01 ens3 0.30 0.15 0.04 0.03 0.00 0.00 0.00 0.00 11:00:01 10:56:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:56:01 lo 40.03 40.03 13.12 13.12 0.00 0.00 0.00 0.00 11:00:01 10:57:01 ens3 0.18 0.08 0.01 0.01 0.00 0.00 0.00 0.00 11:00:01 10:57:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:57:01 lo 0.55 0.55 0.04 0.04 0.00 0.00 0.00 0.00 11:00:01 10:58:01 ens3 0.15 0.00 0.01 0.00 0.00 0.00 0.00 0.00 11:00:01 10:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:58:01 lo 0.57 0.57 0.07 0.07 0.00 0.00 0.00 0.00 11:00:01 10:59:01 ens3 10.63 12.68 58.53 2.93 0.00 0.00 0.00 0.00 11:00:01 10:59:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 10:59:01 lo 1.30 1.30 0.12 0.12 0.00 0.00 0.00 0.00 11:00:01 Average: ens3 22.87 16.83 274.56 2.58 0.00 0.00 0.00 0.00 11:00:01 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11:00:01 Average: lo 21.16 21.16 9.84 9.84 0.00 0.00 0.00 0.00 11:00:01 11:00:01 11:00:01 ---> sar -P ALL: 11:00:01 Linux 5.4.0-190-generic (prd-ubuntu2004-docker-4c-16g-1149) 10/25/24 _x86_64_ (4 CPU) 11:00:01 11:00:01 09:47:58 LINUX RESTART (4 CPU) 11:00:01 11:00:01 09:48:01 CPU %user %nice %system %iowait %steal %idle 11:00:01 09:49:01 all 14.92 17.50 15.36 4.83 0.13 47.27 11:00:01 09:49:01 0 16.95 17.46 15.11 4.01 0.14 46.33 11:00:01 09:49:01 1 13.51 16.12 15.64 5.03 0.14 49.56 11:00:01 09:49:01 2 10.24 19.54 15.62 2.55 0.12 51.93 11:00:01 09:49:01 3 18.99 16.86 15.05 7.70 0.12 41.27 11:00:01 09:50:01 all 19.83 5.14 5.91 2.86 0.08 66.19 11:00:01 09:50:01 0 11.13 4.65 5.37 2.54 0.10 76.21 11:00:01 09:50:01 1 19.84 4.61 5.32 1.78 0.07 68.38 11:00:01 09:50:01 2 17.96 6.02 6.59 5.27 0.07 64.09 11:00:01 09:50:01 3 30.56 5.30 6.35 1.83 0.07 55.89 11:00:01 09:51:01 all 76.97 0.00 4.00 3.29 0.12 15.62 11:00:01 09:51:01 0 76.00 0.00 4.37 4.97 0.12 14.54 11:00:01 09:51:01 1 77.37 0.00 4.26 2.38 0.12 15.88 11:00:01 09:51:01 2 77.09 0.00 4.16 3.26 0.12 15.37 11:00:01 09:51:01 3 77.41 0.00 3.21 2.56 0.12 16.70 11:00:01 09:52:01 all 54.27 0.00 2.64 1.89 0.10 41.11 11:00:01 09:52:01 0 46.18 0.00 2.21 2.37 0.10 49.14 11:00:01 09:52:01 1 45.72 0.00 2.09 0.64 0.10 51.45 11:00:01 09:52:01 2 71.42 0.00 4.21 2.85 0.10 21.42 11:00:01 09:52:01 3 53.75 0.00 2.04 1.71 0.10 42.41 11:00:01 09:53:01 all 85.50 0.00 3.99 8.10 0.12 2.29 11:00:01 09:53:01 0 78.60 0.00 5.00 13.89 0.12 2.40 11:00:01 09:53:01 1 89.69 0.00 3.38 5.62 0.12 1.20 11:00:01 09:53:01 2 90.21 0.00 3.32 1.87 0.12 4.48 11:00:01 09:53:01 3 83.48 0.00 4.28 11.04 0.12 1.08 11:00:01 09:54:01 all 87.31 0.00 3.89 2.06 0.13 6.61 11:00:01 09:54:01 0 87.14 0.00 4.41 2.30 0.12 6.04 11:00:01 09:54:01 1 87.43 0.00 3.78 1.67 0.15 6.96 11:00:01 09:54:01 2 87.39 0.00 3.56 2.69 0.13 6.22 11:00:01 09:54:01 3 87.29 0.00 3.80 1.57 0.12 7.22 11:00:01 09:55:01 all 53.05 0.00 2.20 0.33 0.10 44.31 11:00:01 09:55:01 0 54.41 0.00 2.10 0.89 0.12 42.48 11:00:01 09:55:01 1 51.98 0.00 1.99 0.03 0.10 45.89 11:00:01 09:55:01 2 52.83 0.00 2.61 0.30 0.10 44.17 11:00:01 09:55:01 3 52.99 0.00 2.11 0.12 0.10 44.68 11:00:01 09:56:01 all 44.74 0.00 1.74 0.60 0.11 52.82 11:00:01 09:56:01 0 43.67 0.00 1.89 1.49 0.12 52.83 11:00:01 09:56:01 1 47.37 0.00 1.44 0.27 0.10 50.83 11:00:01 09:56:01 2 45.21 0.00 1.86 0.45 0.12 52.37 11:00:01 09:56:01 3 42.72 0.00 1.76 0.17 0.12 55.24 11:00:01 09:57:01 all 26.71 0.00 1.22 0.49 0.10 71.48 11:00:01 09:57:01 0 23.44 0.00 1.31 1.20 0.12 73.94 11:00:01 09:57:01 1 24.89 0.00 1.14 0.37 0.10 73.51 11:00:01 09:57:01 2 31.95 0.00 1.27 0.28 0.10 66.40 11:00:01 09:57:01 3 26.58 0.00 1.15 0.12 0.08 72.07 11:00:01 09:58:01 all 35.36 0.00 1.45 1.04 0.10 62.04 11:00:01 09:58:01 0 36.54 0.00 1.19 0.10 0.10 62.07 11:00:01 09:58:01 1 35.54 0.00 1.56 0.17 0.10 62.63 11:00:01 09:58:01 2 36.07 0.00 1.46 2.11 0.12 60.25 11:00:01 09:58:01 3 33.27 0.00 1.61 1.79 0.10 63.23 11:00:01 09:59:01 all 1.27 0.00 0.32 0.07 0.09 98.25 11:00:01 09:59:01 0 0.87 0.00 0.30 0.00 0.08 98.75 11:00:01 09:59:01 1 0.70 0.00 0.27 0.00 0.08 98.95 11:00:01 09:59:01 2 2.45 0.00 0.33 0.18 0.08 96.95 11:00:01 09:59:01 3 1.04 0.00 0.39 0.10 0.10 98.37 11:00:01 11:00:01 09:59:01 CPU %user %nice %system %iowait %steal %idle 11:00:01 10:00:01 all 28.55 0.00 1.34 0.16 0.08 69.87 11:00:01 10:00:01 0 29.66 0.00 1.27 0.08 0.08 68.89 11:00:01 10:00:01 1 28.57 0.00 1.37 0.13 0.08 69.84 11:00:01 10:00:01 2 27.94 0.00 1.48 0.35 0.08 70.14 11:00:01 10:00:01 3 28.02 0.00 1.22 0.08 0.08 70.59 11:00:01 10:01:01 all 49.38 0.00 1.63 0.33 0.10 48.57 11:00:01 10:01:01 0 51.59 0.00 1.66 0.08 0.12 46.55 11:00:01 10:01:01 1 48.50 0.00 1.51 0.05 0.10 49.84 11:00:01 10:01:01 2 46.80 0.00 1.73 0.80 0.10 50.57 11:00:01 10:01:01 3 50.64 0.00 1.61 0.37 0.08 47.31 11:00:01 10:02:01 all 40.89 0.00 1.49 0.33 0.10 57.19 11:00:01 10:02:01 0 41.76 0.00 1.22 0.03 0.10 56.89 11:00:01 10:02:01 1 39.74 0.00 1.59 0.10 0.10 58.46 11:00:01 10:02:01 2 40.10 0.00 1.91 1.21 0.08 56.70 11:00:01 10:02:01 3 41.95 0.00 1.24 0.00 0.10 56.71 11:00:01 10:03:01 all 3.78 0.00 0.50 0.03 0.09 95.61 11:00:01 10:03:01 0 3.62 0.00 0.63 0.00 0.08 95.67 11:00:01 10:03:01 1 3.83 0.00 0.44 0.02 0.08 95.63 11:00:01 10:03:01 2 4.00 0.00 0.58 0.02 0.10 95.30 11:00:01 10:03:01 3 3.67 0.00 0.35 0.07 0.08 95.83 11:00:01 10:04:01 all 3.30 0.00 0.53 0.02 0.09 96.06 11:00:01 10:04:01 0 3.11 0.00 0.58 0.00 0.08 96.23 11:00:01 10:04:01 1 3.52 0.00 0.60 0.00 0.08 95.80 11:00:01 10:04:01 2 3.27 0.00 0.42 0.05 0.08 96.18 11:00:01 10:04:01 3 3.32 0.00 0.50 0.03 0.10 96.05 11:00:01 10:05:01 all 57.01 0.00 2.00 0.04 0.10 40.85 11:00:01 10:05:01 0 58.29 0.00 1.84 0.00 0.10 39.77 11:00:01 10:05:01 1 55.35 0.00 1.96 0.03 0.12 42.54 11:00:01 10:05:01 2 61.90 0.00 1.92 0.07 0.08 36.03 11:00:01 10:05:01 3 52.49 0.00 2.29 0.07 0.08 45.07 11:00:01 10:06:01 all 62.69 0.00 1.91 0.37 0.10 34.93 11:00:01 10:06:01 0 63.76 0.00 1.57 0.02 0.10 34.55 11:00:01 10:06:01 1 60.68 0.00 1.90 0.03 0.10 37.29 11:00:01 10:06:01 2 63.23 0.00 2.06 0.03 0.12 34.56 11:00:01 10:06:01 3 63.07 0.00 2.11 1.39 0.10 33.33 11:00:01 10:07:01 all 2.57 0.00 0.35 0.02 0.08 96.98 11:00:01 10:07:01 0 3.02 0.00 0.44 0.00 0.10 96.45 11:00:01 10:07:01 1 2.57 0.00 0.30 0.03 0.08 97.01 11:00:01 10:07:01 2 2.13 0.00 0.38 0.00 0.07 97.42 11:00:01 10:07:01 3 2.56 0.00 0.28 0.05 0.08 97.03 11:00:01 10:08:01 all 2.19 0.00 0.39 0.01 0.08 97.32 11:00:01 10:08:01 0 2.36 0.00 0.45 0.00 0.08 97.11 11:00:01 10:08:01 1 2.31 0.00 0.42 0.02 0.08 97.17 11:00:01 10:08:01 2 2.01 0.00 0.45 0.00 0.10 97.43 11:00:01 10:08:01 3 2.09 0.00 0.23 0.03 0.07 97.58 11:00:01 10:09:01 all 15.63 0.00 0.97 0.13 0.08 83.19 11:00:01 10:09:01 0 14.27 0.00 0.72 0.02 0.08 84.91 11:00:01 10:09:01 1 13.90 0.00 0.74 0.02 0.08 85.26 11:00:01 10:09:01 2 21.17 0.00 1.42 0.08 0.07 77.26 11:00:01 10:09:01 3 13.17 0.00 0.98 0.42 0.08 85.35 11:00:01 10:10:01 all 56.09 0.00 1.65 1.30 0.12 40.85 11:00:01 10:10:01 0 56.70 0.00 1.51 0.38 0.12 41.29 11:00:01 10:10:01 1 55.95 0.00 2.16 2.63 0.12 39.15 11:00:01 10:10:01 2 57.82 0.00 1.18 0.08 0.12 40.80 11:00:01 10:10:01 3 53.87 0.00 1.76 2.10 0.12 42.16 11:00:01 11:00:01 10:10:01 CPU %user %nice %system %iowait %steal %idle 11:00:01 10:11:01 all 5.50 0.00 0.43 0.02 0.08 93.97 11:00:01 10:11:01 0 5.33 0.00 0.47 0.00 0.07 94.14 11:00:01 10:11:01 1 5.57 0.00 0.33 0.02 0.08 93.99 11:00:01 10:11:01 2 5.70 0.00 0.42 0.00 0.10 93.78 11:00:01 10:11:01 3 5.40 0.00 0.49 0.05 0.08 93.98 11:00:01 10:12:01 all 3.33 0.00 0.39 0.01 0.08 96.19 11:00:01 10:12:01 0 3.32 0.00 0.42 0.00 0.08 96.18 11:00:01 10:12:01 1 3.03 0.00 0.35 0.02 0.07 96.53 11:00:01 10:12:01 2 2.52 0.00 0.38 0.00 0.08 97.01 11:00:01 10:12:01 3 4.45 0.00 0.40 0.03 0.08 95.04 11:00:01 10:13:01 all 40.76 0.00 1.32 0.30 0.09 57.52 11:00:01 10:13:01 0 43.01 0.00 1.34 0.07 0.08 55.50 11:00:01 10:13:01 1 41.12 0.00 1.40 0.32 0.10 57.06 11:00:01 10:13:01 2 41.21 0.00 1.35 0.03 0.08 57.32 11:00:01 10:13:01 3 37.72 0.00 1.20 0.78 0.10 60.19 11:00:01 10:14:01 all 4.93 0.00 0.38 0.02 0.08 94.59 11:00:01 10:14:01 0 4.93 0.00 0.37 0.00 0.08 94.62 11:00:01 10:14:01 1 5.29 0.00 0.45 0.02 0.08 94.16 11:00:01 10:14:01 2 5.16 0.00 0.33 0.00 0.08 94.42 11:00:01 10:14:01 3 4.34 0.00 0.39 0.05 0.08 95.14 11:00:01 10:15:01 all 31.67 0.00 1.04 0.35 0.10 66.83 11:00:01 10:15:01 0 30.31 0.00 1.14 0.02 0.10 68.43 11:00:01 10:15:01 1 33.22 0.00 0.90 0.02 0.10 65.76 11:00:01 10:15:01 2 30.72 0.00 1.01 0.03 0.10 68.14 11:00:01 10:15:01 3 32.43 0.00 1.12 1.34 0.10 65.01 11:00:01 10:16:01 all 25.37 0.00 1.07 0.22 0.09 73.24 11:00:01 10:16:01 0 21.92 0.00 1.45 0.08 0.10 76.44 11:00:01 10:16:01 1 23.81 0.00 1.13 0.22 0.08 74.76 11:00:01 10:16:01 2 28.45 0.00 0.90 0.15 0.10 70.40 11:00:01 10:16:01 3 27.29 0.00 0.82 0.44 0.08 71.37 11:00:01 10:17:01 all 54.54 0.00 2.07 0.94 0.12 42.33 11:00:01 10:17:01 0 54.99 0.00 1.89 0.90 0.12 42.10 11:00:01 10:17:01 1 51.30 0.00 2.35 0.60 0.12 45.62 11:00:01 10:17:01 2 56.07 0.00 1.87 0.10 0.12 41.84 11:00:01 10:17:01 3 55.80 0.00 2.16 2.16 0.12 39.76 11:00:01 10:18:01 all 54.94 0.00 1.87 0.35 0.11 42.73 11:00:01 10:18:01 0 54.23 0.00 1.93 0.05 0.10 43.68 11:00:01 10:18:01 1 55.27 0.00 2.22 0.22 0.12 42.18 11:00:01 10:18:01 2 55.26 0.00 1.93 0.12 0.10 42.59 11:00:01 10:18:01 3 55.01 0.00 1.38 1.03 0.12 42.47 11:00:01 10:19:01 all 34.70 0.00 1.23 0.28 0.10 63.70 11:00:01 10:19:01 0 34.13 0.00 1.19 0.20 0.08 64.40 11:00:01 10:19:01 1 34.94 0.00 0.86 0.00 0.10 64.11 11:00:01 10:19:01 2 34.18 0.00 1.62 0.88 0.12 63.21 11:00:01 10:19:01 3 35.54 0.00 1.24 0.05 0.10 63.07 11:00:01 10:20:01 all 5.02 0.00 0.27 0.01 0.08 94.61 11:00:01 10:20:01 0 4.44 0.00 0.23 0.00 0.08 95.24 11:00:01 10:20:01 1 5.84 0.00 0.25 0.02 0.07 93.82 11:00:01 10:20:01 2 4.67 0.00 0.30 0.03 0.08 94.91 11:00:01 10:20:01 3 5.15 0.00 0.30 0.00 0.10 94.45 11:00:01 10:21:01 all 52.32 0.00 1.88 0.36 0.11 45.33 11:00:01 10:21:01 0 53.72 0.00 2.42 0.07 0.10 43.69 11:00:01 10:21:01 1 51.19 0.00 1.60 0.05 0.12 47.04 11:00:01 10:21:01 2 52.36 0.00 1.87 1.31 0.12 44.34 11:00:01 10:21:01 3 51.98 0.00 1.64 0.00 0.12 46.26 11:00:01 11:00:01 10:21:01 CPU %user %nice %system %iowait %steal %idle 11:00:01 10:22:01 all 59.95 0.00 2.16 0.24 0.11 37.54 11:00:01 10:22:01 0 58.31 0.00 1.94 0.03 0.12 39.60 11:00:01 10:22:01 1 62.13 0.00 1.99 0.07 0.12 35.70 11:00:01 10:22:01 2 59.25 0.00 2.51 0.84 0.10 37.30 11:00:01 10:22:01 3 60.11 0.00 2.19 0.02 0.10 37.58 11:00:01 10:23:01 all 9.88 0.00 0.68 0.02 0.09 89.34 11:00:01 10:23:01 0 9.82 0.00 0.65 0.00 0.10 89.43 11:00:01 10:23:01 1 9.97 0.00 0.63 0.02 0.08 89.29 11:00:01 10:23:01 2 9.60 0.00 0.65 0.05 0.08 89.61 11:00:01 10:23:01 3 10.14 0.00 0.77 0.00 0.08 89.01 11:00:01 10:24:01 all 59.23 0.00 2.35 0.27 0.11 38.05 11:00:01 10:24:01 0 60.69 0.00 2.14 0.02 0.10 37.05 11:00:01 10:24:01 1 59.89 0.00 2.27 0.00 0.10 37.74 11:00:01 10:24:01 2 59.47 0.00 2.81 1.04 0.12 36.56 11:00:01 10:24:01 3 56.84 0.00 2.16 0.03 0.12 40.85 11:00:01 10:25:01 all 56.54 0.00 1.98 0.05 0.12 41.31 11:00:01 10:25:01 0 57.07 0.00 1.54 0.00 0.12 41.27 11:00:01 10:25:01 1 57.80 0.00 2.05 0.02 0.12 40.01 11:00:01 10:25:01 2 55.43 0.00 2.01 0.17 0.12 42.27 11:00:01 10:25:01 3 55.85 0.00 2.30 0.02 0.12 41.71 11:00:01 10:26:01 all 37.44 0.00 1.44 0.24 0.10 60.78 11:00:01 10:26:01 0 38.13 0.00 1.55 0.10 0.10 60.11 11:00:01 10:26:01 1 39.52 0.00 1.62 0.30 0.10 58.47 11:00:01 10:26:01 2 39.29 0.00 1.25 0.50 0.10 58.85 11:00:01 10:26:01 3 32.81 0.00 1.32 0.05 0.10 65.71 11:00:01 10:27:01 all 8.52 0.00 0.35 0.01 0.08 91.03 11:00:01 10:27:01 0 8.36 0.00 0.44 0.00 0.08 91.12 11:00:01 10:27:01 1 7.97 0.00 0.40 0.00 0.08 91.54 11:00:01 10:27:01 2 8.98 0.00 0.22 0.02 0.07 90.72 11:00:01 10:27:01 3 8.79 0.00 0.35 0.03 0.08 90.74 11:00:01 10:28:01 all 50.57 0.00 1.62 0.35 0.10 47.36 11:00:01 10:28:01 0 51.60 0.00 1.22 0.00 0.10 47.08 11:00:01 10:28:01 1 45.57 0.00 1.54 0.00 0.12 52.78 11:00:01 10:28:01 2 53.66 0.00 2.08 1.29 0.10 42.87 11:00:01 10:28:01 3 51.44 0.00 1.65 0.10 0.10 46.71 11:00:01 10:29:01 all 7.45 0.00 0.41 0.02 0.08 92.05 11:00:01 10:29:01 0 6.55 0.00 0.47 0.03 0.08 92.86 11:00:01 10:29:01 1 8.89 0.00 0.40 0.00 0.08 90.63 11:00:01 10:29:01 2 7.34 0.00 0.34 0.03 0.07 92.23 11:00:01 10:29:01 3 7.01 0.00 0.42 0.00 0.08 92.48 11:00:01 10:30:01 all 4.08 0.00 0.34 0.04 0.09 95.45 11:00:01 10:30:01 0 3.97 0.00 0.30 0.03 0.10 95.59 11:00:01 10:30:01 1 4.88 0.00 0.33 0.00 0.08 94.70 11:00:01 10:30:01 2 3.63 0.00 0.42 0.13 0.10 95.72 11:00:01 10:30:01 3 3.82 0.00 0.29 0.00 0.08 95.81 11:00:01 10:31:01 all 52.97 0.00 1.69 0.06 0.10 45.19 11:00:01 10:31:01 0 52.25 0.00 1.66 0.03 0.08 45.97 11:00:01 10:31:01 1 54.33 0.00 2.23 0.02 0.12 43.31 11:00:01 10:31:01 2 52.87 0.00 1.46 0.17 0.10 45.41 11:00:01 10:31:01 3 52.42 0.00 1.39 0.03 0.10 46.05 11:00:01 10:32:01 all 9.01 0.00 0.37 0.03 0.08 90.51 11:00:01 10:32:01 0 8.82 0.00 0.30 0.02 0.08 90.77 11:00:01 10:32:01 1 8.63 0.00 0.37 0.00 0.08 90.92 11:00:01 10:32:01 2 9.25 0.00 0.35 0.07 0.08 90.25 11:00:01 10:32:01 3 9.34 0.00 0.45 0.02 0.08 90.11 11:00:01 11:00:01 10:32:01 CPU %user %nice %system %iowait %steal %idle 11:00:01 10:33:01 all 2.00 0.00 0.22 0.01 0.07 97.69 11:00:01 10:33:01 0 1.87 0.00 0.30 0.00 0.07 97.76 11:00:01 10:33:01 1 1.96 0.00 0.22 0.00 0.08 97.74 11:00:01 10:33:01 2 2.05 0.00 0.20 0.03 0.07 97.65 11:00:01 10:33:01 3 2.14 0.00 0.15 0.02 0.07 97.63 11:00:01 10:34:01 all 5.37 0.00 0.29 0.03 0.08 94.24 11:00:01 10:34:01 0 5.46 0.00 0.32 0.00 0.07 94.16 11:00:01 10:34:01 1 5.49 0.00 0.24 0.00 0.08 94.19 11:00:01 10:34:01 2 5.13 0.00 0.27 0.12 0.07 94.42 11:00:01 10:34:01 3 5.41 0.00 0.34 0.00 0.08 94.17 11:00:01 10:35:01 all 2.74 0.00 0.25 0.01 0.08 96.92 11:00:01 10:35:01 0 2.77 0.00 0.25 0.00 0.08 96.90 11:00:01 10:35:01 1 2.06 0.00 0.17 0.00 0.08 97.68 11:00:01 10:35:01 2 2.39 0.00 0.27 0.05 0.08 97.21 11:00:01 10:35:01 3 3.74 0.00 0.30 0.00 0.07 95.90 11:00:01 10:36:01 all 1.96 0.00 0.24 0.01 0.08 97.70 11:00:01 10:36:01 0 1.74 0.00 0.23 0.00 0.08 97.94 11:00:01 10:36:01 1 2.09 0.00 0.24 0.00 0.08 97.59 11:00:01 10:36:01 2 1.98 0.00 0.30 0.05 0.08 97.58 11:00:01 10:36:01 3 2.03 0.00 0.20 0.00 0.08 97.68 11:00:01 10:37:01 all 2.35 0.00 0.28 0.01 0.07 97.29 11:00:01 10:37:01 0 2.53 0.00 0.23 0.00 0.07 97.17 11:00:01 10:37:01 1 2.00 0.00 0.45 0.02 0.08 97.44 11:00:01 10:37:01 2 2.05 0.00 0.24 0.02 0.07 97.63 11:00:01 10:37:01 3 2.80 0.00 0.19 0.02 0.07 96.93 11:00:01 10:38:01 all 4.26 0.00 0.31 0.03 0.08 95.32 11:00:01 10:38:01 0 4.39 0.00 0.30 0.02 0.08 95.20 11:00:01 10:38:01 1 4.20 0.00 0.34 0.08 0.07 95.31 11:00:01 10:38:01 2 4.52 0.00 0.34 0.00 0.08 95.06 11:00:01 10:38:01 3 3.92 0.00 0.25 0.02 0.10 95.71 11:00:01 10:39:01 all 20.24 0.00 1.09 0.22 0.08 78.37 11:00:01 10:39:01 0 17.80 0.00 1.42 0.05 0.08 80.64 11:00:01 10:39:01 1 20.67 0.00 1.01 0.57 0.10 77.65 11:00:01 10:39:01 2 19.25 0.00 0.80 0.23 0.07 79.65 11:00:01 10:39:01 3 23.24 0.00 1.11 0.03 0.08 75.54 11:00:01 10:40:01 all 46.55 0.00 1.34 0.77 0.10 51.24 11:00:01 10:40:01 0 46.93 0.00 1.13 2.02 0.10 49.83 11:00:01 10:40:01 1 43.43 0.00 1.38 0.02 0.08 55.09 11:00:01 10:40:01 2 48.73 0.00 1.66 1.02 0.12 48.48 11:00:01 10:40:01 3 47.12 0.00 1.21 0.02 0.10 51.56 11:00:01 10:41:01 all 4.92 0.00 0.26 0.02 0.08 94.73 11:00:01 10:41:01 0 5.27 0.00 0.22 0.05 0.07 94.40 11:00:01 10:41:01 1 4.60 0.00 0.32 0.00 0.08 94.99 11:00:01 10:41:01 2 5.08 0.00 0.23 0.02 0.07 94.61 11:00:01 10:41:01 3 4.73 0.00 0.27 0.00 0.08 94.92 11:00:01 10:42:01 all 39.41 0.00 1.37 0.29 0.09 58.84 11:00:01 10:42:01 0 39.32 0.00 1.20 0.75 0.10 58.62 11:00:01 10:42:01 1 38.80 0.00 1.24 0.00 0.08 59.87 11:00:01 10:42:01 2 40.38 0.00 1.46 0.02 0.08 58.06 11:00:01 10:42:01 3 39.15 0.00 1.58 0.40 0.08 58.79 11:00:01 10:43:01 all 17.35 0.00 0.39 0.01 0.09 82.16 11:00:01 10:43:01 0 17.02 0.00 0.32 0.03 0.10 82.53 11:00:01 10:43:01 1 17.80 0.00 0.37 0.02 0.08 81.73 11:00:01 10:43:01 2 17.25 0.00 0.39 0.00 0.10 82.26 11:00:01 10:43:01 3 17.32 0.00 0.49 0.00 0.07 82.13 11:00:01 11:00:01 10:43:01 CPU %user %nice %system %iowait %steal %idle 11:00:01 10:44:01 all 2.92 0.00 0.16 0.01 0.07 96.84 11:00:01 10:44:01 0 3.89 0.00 0.12 0.03 0.05 95.91 11:00:01 10:44:01 1 2.77 0.00 0.20 0.02 0.08 96.93 11:00:01 10:44:01 2 2.54 0.00 0.18 0.00 0.05 97.22 11:00:01 10:44:01 3 2.46 0.00 0.13 0.00 0.08 97.32 11:00:01 10:45:01 all 2.64 0.00 0.17 0.01 0.07 97.11 11:00:01 10:45:01 0 2.92 0.00 0.18 0.03 0.07 96.80 11:00:01 10:45:01 1 2.69 0.00 0.18 0.02 0.07 97.05 11:00:01 10:45:01 2 2.46 0.00 0.13 0.00 0.08 97.32 11:00:01 10:45:01 3 2.51 0.00 0.17 0.00 0.07 97.26 11:00:01 10:46:01 all 2.14 0.00 0.20 0.01 0.07 97.59 11:00:01 10:46:01 0 2.29 0.00 0.23 0.02 0.07 97.39 11:00:01 10:46:01 1 2.04 0.00 0.15 0.02 0.07 97.72 11:00:01 10:46:01 2 2.19 0.00 0.18 0.00 0.05 97.57 11:00:01 10:46:01 3 2.03 0.00 0.22 0.00 0.08 97.67 11:00:01 10:47:01 all 4.00 0.00 0.25 0.02 0.06 95.67 11:00:01 10:47:01 0 4.27 0.00 0.28 0.03 0.07 95.34 11:00:01 10:47:01 1 4.17 0.00 0.25 0.02 0.07 95.49 11:00:01 10:47:01 2 3.95 0.00 0.27 0.02 0.07 95.70 11:00:01 10:47:01 3 3.60 0.00 0.18 0.00 0.05 96.16 11:00:01 10:48:01 all 2.67 0.00 0.18 0.01 0.06 97.08 11:00:01 10:48:01 0 2.90 0.00 0.17 0.03 0.07 96.83 11:00:01 10:48:01 1 2.49 0.00 0.13 0.02 0.03 97.32 11:00:01 10:48:01 2 2.94 0.00 0.18 0.00 0.07 96.81 11:00:01 10:48:01 3 2.33 0.00 0.23 0.00 0.07 97.37 11:00:01 10:49:01 all 0.51 0.00 0.10 0.01 0.06 99.31 11:00:01 10:49:01 0 0.42 0.00 0.15 0.02 0.07 99.35 11:00:01 10:49:01 1 0.34 0.00 0.07 0.02 0.05 99.53 11:00:01 10:49:01 2 1.00 0.00 0.05 0.00 0.07 98.88 11:00:01 10:49:01 3 0.30 0.00 0.15 0.02 0.07 99.46 11:00:01 10:50:01 all 0.30 0.00 0.10 0.01 0.06 99.53 11:00:01 10:50:01 0 0.17 0.00 0.12 0.02 0.05 99.65 11:00:01 10:50:01 1 0.18 0.00 0.08 0.02 0.08 99.63 11:00:01 10:50:01 2 0.18 0.00 0.07 0.00 0.05 99.70 11:00:01 10:50:01 3 0.65 0.00 0.13 0.00 0.07 99.14 11:00:01 10:51:01 all 0.50 0.00 0.10 0.01 0.07 99.32 11:00:01 10:51:01 0 0.25 0.00 0.12 0.03 0.08 99.51 11:00:01 10:51:01 1 0.18 0.00 0.03 0.02 0.07 99.70 11:00:01 10:51:01 2 1.35 0.00 0.17 0.00 0.08 98.41 11:00:01 10:51:01 3 0.22 0.00 0.08 0.00 0.05 99.65 11:00:01 10:52:01 all 35.11 0.00 1.22 0.02 0.09 63.56 11:00:01 10:52:01 0 36.76 0.00 1.29 0.05 0.08 61.82 11:00:01 10:52:01 1 33.03 0.00 1.13 0.00 0.08 65.76 11:00:01 10:52:01 2 36.73 0.00 1.29 0.02 0.10 61.87 11:00:01 10:52:01 3 33.96 0.00 1.17 0.00 0.10 64.77 11:00:01 10:53:01 all 28.65 0.00 0.67 0.32 0.09 70.27 11:00:01 10:53:01 0 28.26 0.00 0.62 0.94 0.10 70.09 11:00:01 10:53:01 1 29.16 0.00 0.72 0.02 0.08 70.02 11:00:01 10:53:01 2 27.98 0.00 0.75 0.28 0.08 70.90 11:00:01 10:53:01 3 29.22 0.00 0.57 0.03 0.08 70.09 11:00:01 10:54:01 all 6.20 0.00 0.27 0.07 0.07 93.40 11:00:01 10:54:01 0 6.77 0.00 0.32 0.03 0.07 92.81 11:00:01 10:54:01 1 5.80 0.00 0.20 0.03 0.07 93.90 11:00:01 10:54:01 2 5.99 0.00 0.33 0.00 0.07 93.60 11:00:01 10:54:01 3 6.24 0.00 0.22 0.20 0.07 93.28 11:00:01 11:00:01 10:54:01 CPU %user %nice %system %iowait %steal %idle 11:00:01 10:55:01 all 7.85 0.00 0.31 0.01 0.08 91.74 11:00:01 10:55:01 0 8.12 0.00 0.42 0.02 0.10 91.34 11:00:01 10:55:01 1 7.98 0.00 0.32 0.03 0.08 91.59 11:00:01 10:55:01 2 8.01 0.00 0.29 0.00 0.08 91.62 11:00:01 10:55:01 3 7.31 0.00 0.23 0.00 0.03 92.42 11:00:01 10:56:01 all 2.51 0.00 0.18 0.01 0.06 97.23 11:00:01 10:56:01 0 2.48 0.00 0.18 0.02 0.07 97.25 11:00:01 10:56:01 1 2.32 0.00 0.20 0.02 0.05 97.42 11:00:01 10:56:01 2 2.62 0.00 0.17 0.02 0.07 97.13 11:00:01 10:56:01 3 2.61 0.00 0.18 0.00 0.07 97.14 11:00:01 10:57:01 all 0.23 0.00 0.11 0.01 0.07 99.58 11:00:01 10:57:01 0 0.18 0.00 0.17 0.00 0.05 99.60 11:00:01 10:57:01 1 0.20 0.00 0.13 0.02 0.08 99.57 11:00:01 10:57:01 2 0.20 0.00 0.08 0.02 0.07 99.63 11:00:01 10:57:01 3 0.35 0.00 0.07 0.00 0.07 99.51 11:00:01 10:58:01 all 0.22 0.00 0.12 0.01 0.06 99.59 11:00:01 10:58:01 0 0.32 0.00 0.13 0.00 0.05 99.50 11:00:01 10:58:01 1 0.25 0.00 0.10 0.02 0.05 99.58 11:00:01 10:58:01 2 0.17 0.00 0.10 0.03 0.07 99.63 11:00:01 10:58:01 3 0.13 0.00 0.13 0.00 0.07 99.66 11:00:01 10:59:01 all 8.47 0.00 0.55 0.14 0.08 90.76 11:00:01 10:59:01 0 6.31 0.00 0.62 0.10 0.08 92.89 11:00:01 10:59:01 1 6.18 0.00 0.35 0.02 0.07 93.39 11:00:01 10:59:01 2 7.57 0.00 0.55 0.42 0.08 91.38 11:00:01 10:59:01 3 13.84 0.00 0.69 0.03 0.08 85.35 11:00:01 Average: all 24.54 0.32 1.29 0.48 0.09 73.28 11:00:01 Average: 0 24.21 0.31 1.28 0.56 0.09 73.54 11:00:01 Average: 1 24.25 0.29 1.26 0.33 0.09 73.77 11:00:01 Average: 2 25.10 0.36 1.34 0.48 0.09 72.63 11:00:01 Average: 3 24.59 0.31 1.26 0.56 0.09 73.18 11:00:01 11:00:01 11:00:01