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

Error for rule dataproc/warn_2022_002_job_throttling_rate_limit #57

Open
abhigupta1207 opened this issue Apr 25, 2023 · 3 comments
Open

Comments

@abhigupta1207
Copy link
Contributor

Traceback (most recent call last):
File "/opt/gcpdiag/bin/gcpdiag", line 70, in
main(sys.argv)
File "/opt/gcpdiag/bin/gcpdiag", line 43, in main
lint_command.run(argv)
File "/opt/gcpdiag/gcpdiag/lint/command.py", line 290, in run
repo.run_rules(context)
File "/opt/gcpdiag/gcpdiag/lint/init.py", line 495, in run_rules
self.execution_strategy.run_rules(context, self.result, rules_to_run)
File "/opt/gcpdiag/gcpdiag/lint/init.py", line 575, in run_rules
rule.run_rule_f(context, rule_report)
File "/opt/gcpdiag/gcpdiag/lint/dataproc/warn_2022_002_job_throttling_rate_limit.py", line 73, in run_rule
clusters_with_throttling = get_clusters_having_relevant_log_entries(context)
File "/opt/gcpdiag/gcpdiag/lint/dataproc/warn_2022_002_job_throttling_rate_limit.py", line 61, in get_clusters_having_relevant_log_entries
return {
File "/opt/gcpdiag/gcpdiag/lint/dataproc/warn_2022_002_job_throttling_rate_limit.py", line 62, in
e.cluster_name
AttributeError: 'dict' object has no attribute 'cluster_name'

@kaushik853
Copy link
Contributor

How this is an issue, it runs ok in the project shell. Can you please elaborate a little more on this?

@abhigupta1207
Copy link
Contributor Author

@kaushik853 please run it in a project where dataproc cluster is deployed

@kaushik853
Copy link
Contributor

@abhigupta1207 I ran it in my project with dataproc cluster, it was absolutely fine

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