From 6149799a6d5de1756da2479eb5a5c75f6ca85617 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Wed, 9 Apr 2025 16:18:34 +0200 Subject: [PATCH] [CI] Use ss instead of netstat In case of rabbitmq container is unhealthy let's use `ss` command instead of `netstat` as ``netstat`` is not present in distros anymore and in containers we already have iproute2 [debian/ubuntu] and iproute [rhel based] package installed. [1] https://zuul.opendev.org/t/openstack/build/c70df1ecb52841579207c26cdc159327 + echo 'rabbitmq - netstat -an' rabbitmq - netstat -an + sudo docker exec rabbitmq netstat -an OCI runtime exec failed: exec failed: unable to start container process: exec: "netstat": executable file not found in $PATH: unknown Change-Id: I8417545735ea02d14dc1f83e18aa75b94213f814 --- tests/check-failure.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/check-failure.sh b/tests/check-failure.sh index 78fa9877eb..73f657e9bf 100755 --- a/tests/check-failure.sh +++ b/tests/check-failure.sh @@ -34,8 +34,8 @@ check_podman_unhealthies() { echo "Discovered unhealthy container: $container" echo "$container - ps axwuf" sudo podman exec $container ps axwuf - echo "$container - netstat -an" - sudo podman exec $container netstat -an + echo "$container - ss -an" + sudo podman exec $container ss -an done } @@ -73,8 +73,8 @@ check_docker_unhealthies() { echo "Discovered unhealthy container: $container" echo "$container - ps axwuf" sudo docker exec $container ps axwuf - echo "$container - netstat -an" - sudo docker exec $container netstat -an + echo "$container - ss -an" + sudo docker exec $container ss -an done }