Skip to content

Kubelet returns container logs from a random event #3205

@smarterclayton

Description

@smarterclayton

The kubelet logic for figuring out which docker container to use to show logs from is flawed. It's currently returning a container uuid to actually look at somewhat randomly (especially when many attempts occur in a row because the pod is restarting).

A short term fix would be to use the most recent attempt. In the long term, it would be more appropriate for the logs to be across attempts (perhaps delimited by the attempt id) with a more sophisticated set of parameters available for consumers to clarify which logs exactly they need.

Metadata

Metadata

Assignees

Labels

area/loggingkind/bugCategorizes issue or PR as related to a bug.priority/backlogHigher priority than priority/awaiting-more-evidence.sig/nodeCategorizes an issue or PR as relevant to SIG Node.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions