From e5d8502209f223fec988e053a591362bc3046417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20B=C3=BCchse?= Date: Tue, 20 Jan 2026 21:44:28 +0100 Subject: [PATCH] Fix: stale ec2 credentials would be used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Büchse --- Tests/iaas/scs_0123_mandatory_services/mandatory_services.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/iaas/scs_0123_mandatory_services/mandatory_services.py b/Tests/iaas/scs_0123_mandatory_services/mandatory_services.py index 5634b730d..001d9e038 100644 --- a/Tests/iaas/scs_0123_mandatory_services/mandatory_services.py +++ b/Tests/iaas/scs_0123_mandatory_services/mandatory_services.py @@ -126,6 +126,9 @@ def compute_scs_0123_swift_s3(conn: openstack.connection.Connection): # Get S3 endpoint (swift) and ec2 creds from OpenStack (keystone) try: usable_credentials = remove_leftovers(get_usable_credentials(conn), conn) + # we could use any credential from the list usable_credentials, but let's not do that, + # because they could be stale + del usable_credentials[:] s3_creds = s3_from_ostack(ensure_ec2_credentials(usable_credentials, conn), conn) # This is to be used for local debugging purposes ONLY