Skip to content

Commit 3b79ca6

Browse files
committed
Get podman ps from $HOST instead of localhost
1 parent 3c983c7 commit 3b79ca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

run_ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function getlogs(){
1818
for HOST in $(sudo virsh net-dhcp-leases baremetal | grep -o '192.168.111.[0-9]\+') ; do
1919
sshpass -p notworking $SSH core@$HOST sudo journalctl > $LOGDIR/$HOST-system.journal || true
2020
sshpass -p notworking $SSH core@$HOST sudo journalctl -u ironic.service > $LOGDIR/$HOST-ironic.journal || true
21-
for c in $(sudo podman ps -a | grep -e ironic -e downloader -e httpd -e dnsmasq -e mariadb | awk '{print $NF}'); do
21+
for c in $(sshpass -p notworking $SSH core@HOST sudo podman ps -a | grep -e ironic -e downloader -e httpd -e dnsmasq -e mariadb | awk '{print $NF}'); do
2222
sshpass -p notworking $SSH core@$HOST sudo podman logs $c > $LOGDIR/${HOST}-${c}-container.log || true
2323
done
2424
done

0 commit comments

Comments
 (0)