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

[containers/conmon] Long lines will be splitted when journald logs

XMLWordPrintable

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

      None

      Show
      None
    • False

      [1233891113] Upstream Reporter: Lars Solberg
      Upstream issue status: Closed
      Upstream description:

      In https://github.com/containers/conmon/blob/2b087348289664b75c874ce44796f762d636c060/src/ctr_logging.c#L320-L322, CONTAINER_PARTIAL_MESSAGE is set static to true. I find no way to turn this off.

      This can be problematic example when using ansible tower/awx, which uses conmon/podman to start jobs inside containers running its job since those jobs often contains a bunch of json from ansible. You will end up with a splitted message in journald, which is not even in order..

      If you send journald messages to another system as well, you will have no way of putting it together, and it will often break parsing and cause all sorts of problems since there are unbalanced quotes per line.

      There should be a way to log without setting CONTAINER_PARTIAL_MESSAGE to true


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

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

                Created:
                Updated:
                Resolved: