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

key error - on healthy cluster #40

Open
dthpulse opened this issue Apr 15, 2024 · 0 comments
Open

key error - on healthy cluster #40

dthpulse opened this issue Apr 15, 2024 · 0 comments

Comments

@dthpulse
Copy link

Hi,
trying to run with options

 -v balance --osdsize device --osdused delta --max-pg-moves 2 --osdfrom fullest

getting error:

[2024-04-15 12:31:58,685] gathering cluster state via ceph api...
[2024-04-15 12:32:33,852] running pg balancer
Traceback (most recent call last):
  File "jj.py", line 5496, in <module>
    exit(main())
  File "jj.py", line 5490, in main
    run()
  File "jj.py", line 5454, in <lambda>
    run = lambda: balance(args, state)
  File "jj.py", line 4607, in balance
    pg_mappings = PGMappings(cluster,
  File "jj.py", line 3265, in __init__
    self.init_analyzer.analyze(self)
  File "jj.py", line 4288, in analyze
    self._update_stats()
  File "jj.py", line 4374, in _update_stats
    self.cluster_variance = self.pg_mappings.get_cluster_variance()
  File "jj.py", line 3788, in get_cluster_variance
    for crushclass, usages in self.get_class_osd_usages().items():
  File "jj.py", line 3526, in get_class_osd_usages
    ret[crushclass] = {osdid: self.get_osd_usage(osdid) for osdid in self.osd_candidates_class[crushclass]}
  File "jj.py", line 3526, in <dictcomp>
    ret[crushclass] = {osdid: self.get_osd_usage(osdid) for osdid in self.osd_candidates_class[crushclass]}
  File "jj.py", line 3774, in get_osd_usage
    used = self.get_osd_usage_size(osdid, add_size)
  File "jj.py", line 3731, in get_osd_usage_size
    used += self.cluster.osd_transfer_remainings[osdid]
KeyError: 3

Cluster is Ceph Quincy, with 1500 OSDs, SSDs, HDDs, with more pools, but main and most utilized is EC.
Any other details you need?

Thank you

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

1 participant