From: Anil Belur Date: Mon, 22 Sep 2025 07:56:46 +0000 (+1000) Subject: Fix: Pin urllib3 in OpenStack-related scripts X-Git-Tag: v0.92.4^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=05c8bc21a55d90fe327add099a51819fa74b42b6;p=releng%2Fglobal-jjb.git Fix: Pin urllib3 in OpenStack-related scripts This change pins urllib3 to version 1.26.15 in all OpenStack-related scripts to fix connection issues with OpenStack API where connections are being aborted with RemoteDisconnected errors. These errors occur specifically during stack creation and deletion operations. The version pinning ensures compatibility with the OpenStack client libraries and is consistent with the approach used in other scripts that interact with remote services. Issue: IT-28704 Change-Id: I791c967670f28a28517c57d062834b78ec1712df Signed-off-by: Anil Belur --- diff --git a/releasenotes/notes/pin-urllib3-openstack-scripts-6e81d9ecac4f6789.yaml b/releasenotes/notes/pin-urllib3-openstack-scripts-6e81d9ecac4f6789.yaml new file mode 100644 index 00000000..67c08e1e --- /dev/null +++ b/releasenotes/notes/pin-urllib3-openstack-scripts-6e81d9ecac4f6789.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Pin urllib3~=1.26.15 in OpenStack-related scripts. This fixes connection issues + with OpenStack API where the connection was being aborted with + RemoteDisconnected errors. The version pinning ensures compatibility with + the OpenStack client libraries. diff --git a/shell/openstack-cleanup-orphaned-stacks.sh b/shell/openstack-cleanup-orphaned-stacks.sh index e9299b53..e72f6d09 100644 --- a/shell/openstack-cleanup-orphaned-stacks.sh +++ b/shell/openstack-cleanup-orphaned-stacks.sh @@ -66,6 +66,7 @@ lf-activate-venv --python python3 "lftools[openstack]" \ python-heatclient \ python-openstackclient \ python-magnumclient \ + urllib3~=1.26.15 \ yq set -x diff --git a/shell/openstack-kubernetes-create.sh b/shell/openstack-kubernetes-create.sh index b4054c33..915ec984 100755 --- a/shell/openstack-kubernetes-create.sh +++ b/shell/openstack-kubernetes-create.sh @@ -22,6 +22,7 @@ lf-activate-venv --python python3 "lftools[openstack]" \ python-heatclient \ python-openstackclient \ python-magnumclient \ + urllib3~=1.26.15 \ yq os_cloud="${OS_CLOUD:-vex}" diff --git a/shell/openstack-stack-copy-ssh-keys.sh b/shell/openstack-stack-copy-ssh-keys.sh index f20e1d91..5864c9c4 100644 --- a/shell/openstack-stack-copy-ssh-keys.sh +++ b/shell/openstack-stack-copy-ssh-keys.sh @@ -56,7 +56,8 @@ source ~/lf-env.sh lf-activate-venv --python python3 "lftools[openstack]" \ kubernetes \ python-heatclient \ - python-openstackclient + python-openstackclient \ + urllib3~=1.26.15 # IP Addresses are returned as a space separated list so word splitting is ok # shellcheck disable=SC2207 diff --git a/shell/openstack-stack-create.sh b/shell/openstack-stack-create.sh index d4ce7879..6cba9a60 100644 --- a/shell/openstack-stack-create.sh +++ b/shell/openstack-stack-create.sh @@ -27,6 +27,7 @@ lf-activate-venv --python python3 "lftools[openstack]" \ python-heatclient \ python-openstackclient \ python-magnumclient \ + urllib3~=1.26.15 \ yq openstack --os-cloud "$os_cloud" limits show --absolute diff --git a/shell/openstack-stack-delete.sh b/shell/openstack-stack-delete.sh index 09e1ed52..158dcfc2 100644 --- a/shell/openstack-stack-delete.sh +++ b/shell/openstack-stack-delete.sh @@ -18,7 +18,8 @@ source ~/lf-env.sh lf-activate-venv --python python3 "lftools[openstack]" \ kubernetes \ python-heatclient \ - python-openstackclient + python-openstackclient \ + urllib3~=1.26.15 echo "INFO: Retrieving stack cost for: $OS_STACK_NAME" if ! lftools openstack --os-cloud "$OS_CLOUD" stack cost "$OS_STACK_NAME" > stack-cost; then