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

[containers/conmon] Inconsistent error messages when runtime fails due to race condition in error handling

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • conmon
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • rhel-container-tools

      [3556994227] Upstream Reporter: Jindrich Novy
      Upstream issue status: Closed
      Upstream description:

      When the OCI runtime (runc) fails due to missing cgroup v2 controllers, conmon attempts to read the error message from the runtime's stderr pipe. But there's a race condition:

      1. If runc writes to stderr before exiting -> conmon reads the message and sends valid JSON to podman -> Error message 2 (the consistent one)
      2. If runc exits quickly or the stderr read returns 0 -> conmon exits without writing anything to the sync pipe -> podman receives empty data -> Error message 1 (JSON parse error)

      Upstream URL: https://github.com/containers/conmon/issues/617

              rhn-support-jnovy Jindrich Novy
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: