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>
--- /dev/null
+---
+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.
python-heatclient \
python-openstackclient \
python-magnumclient \
+ urllib3~=1.26.15 \
yq
set -x
python-heatclient \
python-openstackclient \
python-magnumclient \
+ urllib3~=1.26.15 \
yq
os_cloud="${OS_CLOUD:-vex}"
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
python-heatclient \
python-openstackclient \
python-magnumclient \
+ urllib3~=1.26.15 \
yq
openstack --os-cloud "$os_cloud" limits show --absolute
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