Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-2323

[containers/podman] health-startup-cmd leaks a failed systemd unit

XMLWordPrintable

    • False
    • None
    • False
    • rhel-sst-container-tools

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

      Setup: first make sure you have an empty failed list:

      Unable to find source-code formatter for language: console. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      $ systemctl --user list-units --failed
        UNIT LOAD ACTIVE SUB DESCRIPTION
      
      0 loaded units listed.
      

      If you've ever run bats tests on your laptop, you may see a long list. Kill it with systemctl --user reset-failed. To the best of my knowledge there's no harm in nuking these. I really don't know why these linger.

      Now:

      Unable to find source-code formatter for language: console. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      $ run -d --name foo --health-cmd /home/podman/healthcheck --health-startup-cmd /home/podman/healthcheck quay.io/libpod/testimage:20241011 /home/podman/pause
      e506e3994ba7bd5df664c8f0b71da085609be70d122df002646aa58193aabb2c
      
      $ systemctl --user list-units --failed
        UNIT                                                                                             LOAD   ACTIVE SUB    DESCRIPTION        >
      ? e506e3994ba7bd5df664c8f0b71da085609be70d122df002646aa58193aabb2c-startup-61bf67e6fec5d89.service loaded failed failed /home/esm/src/.....>
      
      Legend: LOAD   ? Reflects whether the unit definition was properly loaded.
              ACTIVE ? The high-level unit activation state, i.e. generalization of SUB.
              SUB    ? The low-level unit activation state, values depend on unit type.
      
      1 loaded units listed.
      

      This failed unit will now linger until reboot or until reset-failed.


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

              Unassigned Unassigned
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: