diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-15 15:18:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 15:18:09 -0400 |
commit | f7ab6b85547aee8a744176e90272b3740307cccb (patch) | |
tree | 13d31cf235e0e81f3b7e764005a8dc4bb637939e | |
parent | 81ce39f10b1aec8b67e9b6e0e114ad63ff6c4596 (diff) | |
parent | 4f0a080fdc1b6fc82969185280c4701392db4886 (diff) | |
download | podman-f7ab6b85547aee8a744176e90272b3740307cccb.tar.gz podman-f7ab6b85547aee8a744176e90272b3740307cccb.tar.bz2 podman-f7ab6b85547aee8a744176e90272b3740307cccb.zip |
Merge pull request #10045 from Luap99/compose-test-debug
compose test: diagnose flakes v3
-rwxr-xr-x | test/compose/test-compose | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/compose/test-compose b/test/compose/test-compose index c4c484190..46ca80321 100755 --- a/test/compose/test-compose +++ b/test/compose/test-compose @@ -173,15 +173,16 @@ function test_port() { if [ $curl_rc -ne 0 ]; then _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:" $PODMAN_BIN --root $WORKDIR/root --runroot $WORKDIR/runroot ps -a if type -p ss; then echo "# 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 + echo "# cat $WORKDIR/server.log:" + cat $WORKDIR/server.log return fi @@ -212,6 +213,7 @@ function start_service() { cp /etc/cni/net.d/*podman*conflist $WORKDIR/cni/ $PODMAN_BIN \ + --log-level debug \ --root $WORKDIR/root \ --runroot $WORKDIR/runroot \ --cgroup-manager=systemd \ |