Skip to content

CNI logging issues #39983

@howardjohn

Description

@howardjohn

CNI logging works by sending logs over a UDS socket from the istio-cni binary up to the user-space install-cni container. There are a few issues here around logging levels and scopes.

  • log.FindScope("default").SetOutputLevel(getLogLevel(conf.LogLevel))
    sets the scope as configured by logLevel in the configmap, which is Values.cni.logLevel. This only handles default scope. if we have other scopes, we cannot configure them. Either we should apply this to all scopes, or allow the standard parsing of scopes that log_output_level does
  • Daemonset doesn't allow setting the level at all:
  • Maybe not a bug, but something we should consider:
    pluginLog.Debug(m.Msg)
    loses the original scope of the log. If we send scoped logs, we lose that info. Either we can lookup the original scope, or we should add a key to do the equivalent

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/networking/cniIstio CNI-related issueslifecycle/automatically-closedIndicates a PR or issue that has been closed automatically.lifecycle/staleIndicates a PR or issue hasn't been manipulated by an Istio team member for a while

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions