Uploaded image for project: 'OpenShift Runtimes'
  1. OpenShift Runtimes
  2. RUN-2143

[containers/podman] podman healthcheck + sdnotify: Error: container is stopped

XMLWordPrintable

    • 3
    • RUN 254

      [2306414428] Upstream Reporter: Ed Santiago
      Upstream issue status: Closed
      Upstream description:

      <+015ms> # # podman run --name IK28z8EJtw --health-cmd=touch /terminate --sdnotify=healthy quay.io/libpod/testimage:20240123 sh -c while test ! -e /terminate; do sleep 0.1; done; echo finished
      <+572ms> # finished
               # Error: container is stopped
      <+004ms> # [ rc=126 (** EXPECTED 0 **) ]

      Reproducer fails within seconds on 1mt:

      # while :;do bin/podman run --health-cmd="touch /terminate" --sdnotify=healthy quay.io/libpod/testimage:20240123 sh -c "while test ! -e /terminate; do sleep 0.1; done; echo finished" || break; done
      finished
      finished
      finished
      finished
      finished
      finished
      finished
      finished
      finished
      finished
      Error: container is stopped

      While I'm at it, this is probably a bug too: (above command, with run --rm, fails instantly):

      # bin/podman run --rm --health-cmd="touch /terminate" --sdnotify=healthy quay.io/libpod/testimage:20240123 sh -c "while test ! -e /terminate; do sleep 0.1; done; echo finished"
      finished
      # echo $?
      127

      Almost certainly related to #22658. @giuseppe PTAL. Only seen on aarch64, but that's consistent with the previous flake that you fixed in your PR.

      • fedora-40-aarch64 : sys podman fedora-40-aarch64 root host sqlite
      x x x x x x
      sys(2) podman(2) fedora-40-aarch64(2) root(2) host(2) sqlite(2)

      Upstream URL: https://github.com/containers/podman/issues/22760

            gscrivan@redhat.com Giuseppe Scrivano
            upstream-sync Upstream Sync
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: