Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-110317

Can not find network create and rm message from podman event when set --events-backend to journald - [RHEL 9.7] 0day

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.7.z
    • rhel-9.7
    • podman
    • No
    • Moderate
    • 1
    • rhel-container-tools
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • RUN 277
    • Bug Fix
    • Hide
      .Event logs from `podman events` command are now available

      Previously, an error in the `journald` driver prevented the preservation of network event attributes, so these events were not included in logs. With this update, `podman events` now displays `network create` and `network rm` events.
      Show
      .Event logs from `podman events` command are now available Previously, an error in the `journald` driver prevented the preservation of network event attributes, so these events were not included in logs. With this update, `podman events` now displays `network create` and `network rm` events.
    • Done
    • Done
    • Done
    • Not Required
    • None

      What were you trying to do that didn't work?

      Set the envent-backend to journald and create network and then remove it. Use podman events to check the the output, can not find related items.

      What is the impact of this issue to you?

      Can not find the event log from podman events command

      Please provide the package NVR for which the bug is seen:

      podman-5.6.0-1.el10.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Create one container with network set to bridge
        $ podman create --network bridge quay.io/libpod/alpine:latest top
      2. Create a new network, connect, disconnect it to the container and than remove it.
        $ podman network create 1c14a7bd9fb4b1720dc588d702ecd7129587ec2641c3b977e7d6b8bd47b358d2
        $ podman network connect 1c14a7bd9fb4b1720dc588d702ecd7129587ec2641c3b977e7d6b8bd47b358d2 ac0f6c4192e7a6d7786bb47877546a43bba55d25a8eb376ec172e4da09ffa9de
        $ podman network disconnect 1c14a7bd9fb4b1720dc588d702ecd7129587ec2641c3b977e7d6b8bd47b358d2 ac0f6c4192e7a6d7786bb47877546a43bba55d25a8eb376ec172e4da09ffa9de
        $ podman network rm 1c14a7bd9fb4b1720dc588d702ecd7129587ec2641c3b977e7d6b8bd47b358d2
      3. Check the events log
        $ podman events --stream=false --since 300s
      2025-08-19 02:14:52.833482077 -0400 EDT container create ac0f6c4192e7a6d7786bb47877546a43bba55d25a8eb376ec172e4da09ffa9de (image=quay.io/libpod/alpine:latest, name=jolly_albattani)
      2025-08-19 02:14:52.820617995 -0400 EDT image pull 961769676411f082461f9ef46626dd7a2d1e2b2a38e6a44364bcbecf51e66dd4 quay.io/libpod/alpine:latest
      
      2025-08-19 02:15:49.04440483 -0400 EDT network connect ac0f6c4192e7a6d7786bb47877546a43bba55d25a8eb376ec172e4da09ffa9de (container=ac0f6c4192e7a6d7786bb47877546a43bba55d25a8eb376ec172e4da09ffa9de, name=1c14a7bd9fb4b1720dc588d702ecd7129587ec2641c3b977e7d6b8bd47b358d2)
      2025-08-19 02:16:02.420166596 -0400 EDT network disconnect ac0f6c4192e7a6d7786bb47877546a43bba55d25a8eb376ec172e4da09ffa9de (container=ac0f6c4192e7a6d7786bb47877546a43bba55d25a8eb376ec172e4da09ffa9de, name=1c14a7bd9fb4b1720dc588d702ecd7129587ec2641c3b977e7d6b8bd47b358d2)
      

      Expected results

      The network create and rm event can be seen the podman events output

      Actual results

      Only have network connect and disconnect event.

      Addtional

      if we set the event-backend to file. The test works as expected.

              rhn-support-jnovy Jindrich Novy
              ypu@redhat.com Yiqiao Pu
              Container Runtime Eng Bot Container Runtime Eng Bot
              Yuhui Jiang Yuhui Jiang
              Mugdha Soni Mugdha Soni
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: