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

pybind/mgr/balancer: two more fixes #20788

Merged
merged 3 commits into from Mar 9, 2018
Merged

Commits on Mar 7, 2018

  1. pybind/mgr/balancer: skip out/crush-out osds

    Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
    xiexingguo committed Mar 7, 2018
    Copy the full SHA
    201fc98 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2018

  1. pybind/mgr/balancer: s/iteritems/iterkeys/

    We don't care about the values here.
    
    Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
    xiexingguo committed Mar 8, 2018
    Copy the full SHA
    193c3af View commit details
    Browse the repository at this point in the history
  2. pybind/mgr/balancer: sanity check against empty roots

    To avoid crashes as below:
    ```
    File "/usr/lib/ceph/mgr/balancer/module.py", line 181, in calc_stats
        score += target[k] * (math.erf(((adjusted - avg)/avg) / math.sqrt(2.0)))
    ZeroDivisionError: float division by zero
    ```
    
    Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
    xiexingguo committed Mar 8, 2018
    Copy the full SHA
    1e3498a View commit details
    Browse the repository at this point in the history