Skip to content

Commit c6d7b4e

Browse files
committed
add logging for EKS update status during auto-mode cluster tests
1 parent 087286a commit c6d7b4e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/e2e/tests/test_cluster_automode_updates.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,21 @@ def test_enable_auto_mode_on_standard_cluster(self, eks_client, simple_cluster):
188188
cr_after_update = k8s.get_resource(ref)
189189
eks_describe_after_update = eks_client.describe_cluster(name=cluster_name)
190190

191+
# Log current pending/active updates for diagnostic purposes
192+
try:
193+
updates_summary = eks_client.list_updates(name=cluster_name)
194+
logging.info(f"EKS list_updates response: {updates_summary}")
195+
for update_id in updates_summary.get("updateIds", []) or []:
196+
try:
197+
upd_desc = eks_client.describe_update(
198+
name=cluster_name, updateId=update_id
199+
)
200+
logging.info(f"EKS describe_update {update_id}: {upd_desc}")
201+
except Exception as e:
202+
logging.warning(f"Failed to describe update {update_id}: {e}")
203+
except Exception as e:
204+
logging.warning(f"Failed to list updates for cluster {cluster_name}: {e}")
205+
191206
# Verify on AWS EKS API that auto-mode is enabled with polling (in case propagation lags)
192207
max_poll_seconds = 180
193208
poll_interval = 10

0 commit comments

Comments
 (0)