kubernetes-sigs / kueue

Kubernetes-native Job Queueing
https://kueue.sigs.k8s.io
Apache License 2.0
1.47k stars 262 forks source link

Imprecise log line: LocalQueue for workload didn't exist #3527

Open gabesaba opened 1 week ago

gabesaba commented 1 week ago

What would you like to be cleaned: When AddOrUpdateWorkloadWithoutLock returns false, there are several lines which may log that a LocalQueue does not exist

e.g. https://github.com/kubernetes-sigs/kueue/blob/2c8e7da1a23f2bc7218a2f08a2c9858a316fb053/pkg/controller/core/workload_controller.go#L732-L734

Unfortunately, this function can also return false when the ClusterQueue is not located https://github.com/kubernetes-sigs/kueue/blob/2c8e7da1a23f2bc7218a2f08a2c9858a316fb053/pkg/queue/manager.go#L336-L339

We should differentiate whether the ClusterQueue or LocalQueue is missing in the log lines which depend on (directly or indirectly) the return value of this function.

Why is this needed: To assist with future debugging, and to make our logging more precise.

mimowo commented 6 days ago

it seems like /good-first-issue

k8s-ci-robot commented 6 days ago

@mimowo: This request has been marked as suitable for new contributors.

Guidelines

Please ensure that the issue body includes answers to the following questions:

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to [this](https://github.com/kubernetes-sigs/kueue/issues/3527): >it seems like >/good-first-issue Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
7h3-3mp7y-m4n commented 5 days ago

I'll pick it up :)

7h3-3mp7y-m4n commented 5 days ago

/assign