Skip to content

'NoneType' object has no attribute 'get_cluster_summary' #578

Open

Description

@black-snow

Describe the bug

Ran krr simple got:

           ERROR    Wasn't able to connect to any Prometheus service in arn:aws:eks:xxx cluster                                                       runner.py:70
                    Try using port-forwarding and/or setting the url manually (using the -p flag.).
                    For more information, see 'Giving the Explicit Prometheus URL' at https://github.com/robusta-dev/krr?tab=readme-ov-file#usage
           INFO     Listing scannable objects in arn:aws:eks:xxx                                                                                   __init__.py:104
           ERROR    An unexpected error occurred                                                                                                                                           runner.py:517
                    Traceback (most recent call last):
                      File "robusta_krr/core/runner.py", line 509, in run
                      File "robusta_krr/core/runner.py", line 458, in _collect_result
                    AttributeError: 'NoneType' object has no attribute 'get_cluster_summary'

To Reproduce
Not sure - perhaps just have a cluster with no prom.

Expected behavior
Should not crash with an attribute error.

Screenshots

Are you interested in contributing a fix for this?
no (sorry)

Desktop (please complete the following information):

  • OS: macOS
  • Browser irrelevant

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