Skip to content

[Bug]: Malformed logr calls drop errors; validator transform errors are ignored #3064

Closed

Description

@CloneOfAlex

Describe the bug
Seven calls pass printf-style arguments to logr's key/value API:

  • controllers/resource_manager.go:72
  • controllers/object_controls.go:2374, 2406, 4013, 4065, 4856, 5261

e.g. n.logger.Info("Could not get PodList", err). With zap in production mode this logs an "odd number of arguments" DPanic and the error is not logged as an error; with --zap-devel=true DPanic panics.

At 2374 and 2406, errors from TransformValidatorComponent are only logged as WARN and rendering continues, so a partially transformed validator DaemonSet can be deployed.

To Reproduce
Found by code review. Any failing path above, e.g. a List error in isDaemonSetReady, produces the malformed log line.

Expected behavior
Errors logged with logger.Error(err, msg); transform errors returned so the state reports NotReady.

Suggested fix
Fix the seven calls, return the validator transform error, and enable loggercheck in .golangci.yml.

Environment (please provide the following information):

  • GPU Operator Version: main @ f806d6b (code inspection)

Activity

  1. added
    bug
    needs-triage
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions