podman icon indicating copy to clipboard operation
podman copied to clipboard

Events for Network

Open PHHENS opened this issue 1 year ago • 1 comments

Issue Description

Podman does not generate events about network.

Steps to reproduce the issue

  1. In one console run : podman events
  2. In a another console create a new network : podman network create -d macvlan -o parent=eth0 newnet
  3. Preceding "podman events" command should return a network creation event.

This works using docker, "docker events" returns :
2024-09-22T11:13:53.675328084+02:00 network create e8b293029385f147e18459e093bd5ac40226323ef2a28c504f16cad4f6b54278 (name=newnet, type=macvlan)

Thanks for feedback

Describe the results you received

No result

Describe the results you expected

2024-09-22T11:13:53.675328084+02:00 network create e8b293029385f147e18459e093bd5ac40226323ef2a28c504f16cad4f6b54278 (name=newnet, type=macvlan)

podman info output

host:
  arch: amd64
  buildahVersion: 1.37.2
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - rdma
  - misc
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon_2.1.10+ds1-1+b1_amd64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.10, commit: unknown'
  cpuUtilization:
    idlePercent: 99.53
    systemPercent: 0.24
    userPercent: 0.23
  cpus: 4
  databaseBackend: sqlite
  distribution:
    codename: trixie
    distribution: debian
    version: unknown
  eventLogger: journald
  freeLocks: 2048
  hostname: Debian11LaboVideoC101
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 6.10.9-amd64
  linkmode: dynamic
  logDriver: journald
  memFree: 23782264832
  memTotal: 33616388096
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns_1.12.2-1_amd64
      path: /usr/lib/podman/aardvark-dns
      version: aardvark-dns 1.12.2
    package: netavark_1.12.1-3_amd64
    path: /usr/lib/podman/netavark
    version: netavark 1.12.1
  ociRuntime:
    name: crun
    package: crun_1.17-1_amd64
    path: /usr/bin/crun
    version: |-
      crun version 1.17
      commit: 000fa0d4eeed8938301f3bcf8206405315bc1017
      rundir: /run/user/0/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +WASM:wasmedge +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt_0.0~git20240906.6b38f07-1_amd64
    version: |
      pasta 0.0~git20240906.6b38f07-1
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: true
    path: /run/podman/podman.sock
  rootlessNetworkCmd: pasta
  security:
    apparmorEnabled: true
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: false
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns_1.2.1-1+b1_amd64
    version: |-
      slirp4netns version 1.2.1
      commit: 09e31e92fa3d2a1d3ca261adaeb012c8d75a8194
      libslirp: 4.8.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.5
  swapFree: 1023406080
  swapTotal: 1023406080
  uptime: 74h 41m 46.00s (Approximately 3.08 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries: {}
store:
  configFile: /usr/share/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions:
    overlay.mountopt: nodev
  graphRoot: /var/lib/containers/storage
  graphRootAllocated: 255034654720
  graphRootUsed: 68488167424
  graphStatus:
    Backing Filesystem: btrfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "true"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 2
  runRoot: /run/containers/storage
  transientStore: false
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 5.2.2
  Built: 0
  BuiltTime: Thu Jan  1 01:00:00 1970
  GitCommit: ""
  GoVersion: go1.22.7
  Os: linux
  OsArch: linux/amd64
  Version: 5.2.2

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

PHHENS avatar Sep 22 '24 09:09 PHHENS

We do have events for network connect/disconnect. The fact that we do have have them for create/remove seems like an oversight.

Luap99 avatar Sep 23 '24 15:09 Luap99

we have always been hesitant to do this due to "event fatigue". But agree with @Luap99 , it makes sense for certain.

baude avatar Sep 25 '24 13:09 baude

It makes sense for a container management GUI (gnome pods) with a network management panel : (https://github.com/marhkb/pods/tree/feat/networks/panel)...

Le mer. 25 sept. 2024 à 06:55:57 -07:00:00, Brent Baude @.***> a écrit :

we have always been hesitant to do this due to "event fatigue". But agree with @Luap99 https://github.com/Luap99 , it makes sense for certain.

— Reply to this email directly, view it on GitHub https://github.com/containers/podman/issues/24032#issuecomment-2374165179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI2HQZFOYI4QZA3SRA24N3TZYK6G3AVCNFSM6AAAAABOUMZOUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZUGE3DKMJXHE. You are receiving this because you authored the thread.Message ID: @.***>

PHHENS avatar Sep 26 '24 08:09 PHHENS

I would like to work on this issue 👀 .

Sativarsainath-26 avatar Sep 30 '24 10:09 Sativarsainath-26

Thanks @Sativarsainath-26 It is all yours.

rhatdan avatar Sep 30 '24 14:09 rhatdan

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Oct 31 '24 00:10 github-actions[bot]