Skip to content

KRR computes recommendation for lots of Kubernetes objects, but if just one errors out no results are printed #301

Closed

Description

@matheuscscp

Describe the bug
KRR computes recommendations for lots of Kubernetes objects but if just one errors out, no useful results are printed.

To Reproduce
Steps to reproduce the behavior:

  1. Have an unstable Prometheus cluster
  2. Run krr simple
  3. Observe that even though lots of INFO Calculated recommendations for ... lines are printed, if one object errors out, none of these recommendations are printed, only the error/traceback is printed.

Expected behavior
A partial result is printed with the recommendations of the objects for which KRR was able to compute, and a list of errors for the objects that had errors.

Are you interested in contributing a fix for this?
Yes!!

Desktop (please complete the following information):

  • OS: MacBook-Pro 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64
  • Version: v1.10.0

Activity

  1. aantn commented on Jun 20, 2024

    @aantn
    Contributor

    Strongly in favor of a fix! It would be best to do it on top of the prometheus-workload-loader branch as that has some major changes that will be merged soon.

    We would love to receive a PR for this.

  2. added a commit that references this issue on Jun 28, 2024
    c757c6c
  3. aantn commented on Jun 28, 2024

    @aantn
    Contributor

    Hey, I had an easy test case for this so I fixed it myself. Please test and confirm that this works.

  4. aantn commented on Jun 28, 2024

    @aantn
    Contributor

    Note that the fix isn't merged yet - it is on #307

  5. matheuscscp commented on Jun 28, 2024

    @matheuscscp
    Author

    @aantn it works for me! thanks for this fix!!!

  6. aantn commented on Jun 28, 2024

    @aantn
    Contributor

    Wonderful, happy to hear it!

  7. added a commit that references this issue on Jul 1, 2024
    66389e6
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