Fix: Pin urllib3 in OpenStack-related scripts 42/73642/1 v0.92.4
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 22 Sep 2025 07:56:46 +0000 (17:56 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 22 Sep 2025 08:15:50 +0000 (18:15 +1000)
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 <abelur@linuxfoundation.org>
releasenotes/notes/pin-urllib3-openstack-scripts-6e81d9ecac4f6789.yaml [new file with mode: 0644]
shell/openstack-cleanup-orphaned-stacks.sh
shell/openstack-kubernetes-create.sh
shell/openstack-stack-copy-ssh-keys.sh
shell/openstack-stack-create.sh
shell/openstack-stack-delete.sh

diff --git a/releasenotes/notes/pin-urllib3-openstack-scripts-6e81d9ecac4f6789.yaml b/releasenotes/notes/pin-urllib3-openstack-scripts-6e81d9ecac4f6789.yaml
new file mode 100644 (file)
index 0000000..67c08e1
--- /dev/null
@@ -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.
index e9299b5..e72f6d0 100644 (file)
@@ -66,6 +66,7 @@ lf-activate-venv --python python3 "lftools[openstack]" \
     python-heatclient \
     python-openstackclient \
     python-magnumclient \
+    urllib3~=1.26.15 \
     yq
 
 set -x
index b4054c3..915ec98 100755 (executable)
@@ -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}"
index f20e1d9..5864c9c 100644 (file)
@@ -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
index d4ce787..6cba9a6 100644 (file)
@@ -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
index 09e1ed5..158dcfc 100644 (file)
@@ -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