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

crush-reweight-by-utilization.py after upgrade to Nautilus #28

Open
vaclove opened this issue May 3, 2020 · 1 comment
Open

crush-reweight-by-utilization.py after upgrade to Nautilus #28

vaclove opened this issue May 3, 2020 · 1 comment

Comments

@vaclove
Copy link

vaclove commented May 3, 2020

Hi,

thank you for creating such a great collection of scripts. After upgrade my Ceph cluster to Nautilus the crush-reweight-by-utilization.py script stopped working.

# python crush-reweight-by-utilization.py --verbose --max-change=0.05 
Traceback (most recent call last):
  File "crush-reweight-by-utilization.py", line 211, in <module>
    if VERBOSE: raise(e)
KeyError: 'osd_stats'
@vaclove
Copy link
Author

vaclove commented May 3, 2020

If anyone else experiences the same problem, I have found the solution. If you replace:

pgm = cephinfo.pg_data

on line 42 with this:

pgm = cephinfo.pg_data['pg_map']

It starts working. I did not check others scripts, so the solution may be similar (perhaps change in cephinfo library would be better?).

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