Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]Holmes cannot load custom toolsets from a custom path #264

Closed
tommy04062019 opened this issue Feb 3, 2025 · 2 comments
Closed

[Bug]Holmes cannot load custom toolsets from a custom path #264

tommy04062019 opened this issue Feb 3, 2025 · 2 comments

Comments

@tommy04062019
Copy link

  • Version: 0.8.1
  • Command:
    holmes ask -t /tmp/custom_toolset_mac.yaml "switch to cluster abc_test" --show-tool-output
  • Output:
Grafana config not provided                                                                                                                                                       base_grafana_toolset.py:33
Grafana config not provided                                                                                                                                                       base_grafana_toolset.py:33
Failed loading toolset slab from None: (Prerequisites check failed because environment variable SLAB_API_KEY was not set)                                                                      config.py:227
Loaded toolset kubernetes/core from None                                                                                                                                                       config.py:223
Loaded toolset kubernetes/live-metrics from None                                                                                                                                               config.py:223
Loaded toolset kubernetes/kube-prometheus-stack from None                                                                                                                                      config.py:223
Loaded toolset kubernetes/krew-extras from None                                                                                                                                                config.py:223
Loaded toolset helm/core from None                                                                                                                                                             config.py:223
Loaded toolset kubernetes/logs from None                                                                                                                                                       config.py:223
Failed loading toolset aws/security from None: (Prerequisites check failed with errorcode 127: Command 'aws sts get-caller-identity' returned non-zero exit status 127.)                       config.py:227
Failed loading toolset aws/rds from None: (Prerequisites check failed with errorcode 127: Command 'aws sts get-caller-identity' returned non-zero exit status 127.)                            config.py:227
Failed loading toolset argocd/core from None: (Prerequisites check failed with errorcode 1: Command 'argocd version' returned non-zero exit status 1.)                                         config.py:227
Failed loading toolset docker/core from None: (Prerequisites check failed with errorcode 127: Command 'docker version' returned non-zero exit status 127.)                                     config.py:227
Failed loading toolset confluence from None: (Prerequisites check failed because environment variable CONFLUENCE_USER was not set)                                                             config.py:227
Loaded toolset internet from None                                                                                                                                                              config.py:223
Disabled toolset: robusta from None)                                                                                                                                                           config.py:225
Disabled toolset: opensearch from None)                                                                                                                                                        config.py:225
Disabled toolset: grafana/loki from None)                                                                                                                                                      config.py:225
Disabled toolset: grafana/tempo from None)                                                                                                                                                     config.py:225
User: switch to cluster abc_test
AI: I don't have access to switch clusters. Please switch to the desired cluster using your local Kubernetes configuration or command-line tools. If you need assistance with specific tasks on the cluster, let
me know!

It is loaded If I move this file to ...holmesgpt/0.8.1/libexec/_internal/holmes/plugins/toolsets/

@tommy04062019
Copy link
Author

tommy04062019 commented Feb 3, 2025

It seems due to the custom tool set path only depends on CUSTOM_TOOLSET_LOCATION.

CUSTOM_TOOLSET_LOCATION = "/etc/holmes/config/custom_toolset.yaml"

@tommy04062019 tommy04062019 changed the title Holmes cannot load custom toolsets from a custom path [Bug]Holmes cannot load custom toolsets from a custom path Feb 3, 2025
@itisallgood
Copy link
Contributor

@tommy04062019 Thanks for reporting the issue! We've fixed this bug in the upcoming version of Holmes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants