mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
compose test: diagnose flakes v3
From the debug output we know that rootlesskit does not bind the port correctly. The rootlesskit port forwarder has a quite a few debug statements so lets see the debug log when the test fails. Also check if it binded the port inside the rootless cni namespace. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
@ -173,15 +173,16 @@ function test_port() {
|
|||||||
|
|
||||||
if [ $curl_rc -ne 0 ]; then
|
if [ $curl_rc -ne 0 ]; then
|
||||||
_show_ok 0 "$testname - curl (port $port) failed with status $curl_rc"
|
_show_ok 0 "$testname - curl (port $port) failed with status $curl_rc"
|
||||||
# FIXME: is this useful? What else can we do to diagnose?
|
|
||||||
echo "# docker-compose logs:"
|
|
||||||
docker-compose logs
|
|
||||||
echo "# podman ps -a:"
|
echo "# podman ps -a:"
|
||||||
$PODMAN_BIN --root $WORKDIR/root --runroot $WORKDIR/runroot ps -a
|
$PODMAN_BIN --root $WORKDIR/root --runroot $WORKDIR/runroot ps -a
|
||||||
if type -p ss; then
|
if type -p ss; then
|
||||||
echo "# ss -tulpn:"
|
echo "# ss -tulpn:"
|
||||||
ss -tulpn
|
ss -tulpn
|
||||||
|
echo "# podman unshare --rootless-cni ss -tulpn:"
|
||||||
|
$PODMAN_BIN --root $WORKDIR/root --runroot $WORKDIR/runroot unshare --rootless-cni ss -tulpn
|
||||||
fi
|
fi
|
||||||
|
echo "# cat $WORKDIR/server.log:"
|
||||||
|
cat $WORKDIR/server.log
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -212,6 +213,7 @@ function start_service() {
|
|||||||
cp /etc/cni/net.d/*podman*conflist $WORKDIR/cni/
|
cp /etc/cni/net.d/*podman*conflist $WORKDIR/cni/
|
||||||
|
|
||||||
$PODMAN_BIN \
|
$PODMAN_BIN \
|
||||||
|
--log-level debug \
|
||||||
--root $WORKDIR/root \
|
--root $WORKDIR/root \
|
||||||
--runroot $WORKDIR/runroot \
|
--runroot $WORKDIR/runroot \
|
||||||
--cgroup-manager=systemd \
|
--cgroup-manager=systemd \
|
||||||
|
Reference in New Issue
Block a user