Skip to content
This repository was archived by the owner on May 26, 2026. It is now read-only.

Remove misleading logs about connecting to agent when running with --force-config #923

Description

@ppalucki

Describe the bug
when run like this:

./cri-resmgr --force-config config.yaml 

with no intetion of using cri-regmgr-agent

I'm getting such warnings in output:

W1116 15:10:52.288077  680245 log/ratelimit.go:97] <rate-limited> [core]grpc: addrConn.createTransport failed to connect to {/var/run/cri-resmgr/cri-resmgr-agent.sock /var/run/cri-resmgr/cri-resmgr-agent.sock <nil
> 0 <nil>}. Err: connection error: desc = "transport: Error while dialing dial unix /var/run/cri-resmgr/cri-resmgr-agent.sock: connect: no such file or directory". Reconnecting...

Expected behavior
With --force-config when I don't want to use agent, there should be no errors like this.

To Reproduce
just run ./cri-resmgr with --force-config but without agent

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions