Uploaded image for project: 'Network Observability'
  1. Network Observability
  2. NETOBSERV-1317

Agents showing false-positive errors at startup

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • None
    • False
    • NetObserv - Sprint 242

      When agents are starting as unprivileged, they would show this error:

      time="2023-09-20T07:26:57Z" level=error msg="can't detect any network-namespaces" component=ifaces.Watcher error="open /var/run/netns: no such file or directory"
      time="2023-09-20T07:26:57Z" level=error msg="failed to add watcher to netns directory" component=ifaces.Watcher error="no such file or directory"
      

      ... which could make users worry about something not working, although this is something expected as unprivlleged (which is the default).

      Maybe just show a warning instead, when "/var/run/netns" doesn't exist (likely because it wasn't mounted), with something like "[...] Ignore this warning if agent pods don't run as privileged"

            mmahmoud@redhat.com Mohamed Mahmoud
            jtakvori Joel Takvorian
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: