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

hammer: osd: Ceph Pools' MAX AVAIL is 0 if some OSDs' weight is 0 #6834

Merged
merged 1 commit into from Jan 14, 2016

Conversation

smithfarm
Copy link
Contributor

In get_rule_avail(), even p->second is 0, it's possible to be used
as divisor and quotient is infinity, then is converted to an integer
which is negative value.
So we should check p->second value before calculation.

It fixes BUG ceph#13840.

Signed-off-by: Chengyuan Li <chengyli@ebay.com>
(cherry picked from commit 18713e6)
@smithfarm smithfarm self-assigned this Dec 7, 2015
@smithfarm smithfarm added this to the hammer milestone Dec 7, 2015
ghost pushed a commit that referenced this pull request Jan 11, 2016
…OSDs' weight is 0

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Jan 11, 2016
…OSDs' weight is 0

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Jan 11, 2016
…OSDs' weight is 0

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost
Copy link

ghost commented Jan 14, 2016

@liewegas does this backport look good to merge ? It passed a run of the hammer rados suite ( see http://tracker.ceph.com/issues/13356#note-34 for details ) and the upgrade/hammer suite ( see http://tracker.ceph.com/issues/13356#note-37 for details ).

@ghost ghost assigned liewegas and unassigned smithfarm Jan 14, 2016
liewegas added a commit that referenced this pull request Jan 14, 2016
hammer: Ceph Pools' MAX AVAIL is 0 if some OSDs' weight is 0

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 1c4ba85 into ceph:hammer Jan 14, 2016
@smithfarm smithfarm deleted the wip-13930-hammer branch January 14, 2016 14:29
@ghost ghost changed the title hammer: Ceph Pools' MAX AVAIL is 0 if some OSDs' weight is 0 hammer: osd: Ceph Pools' MAX AVAIL is 0 if some OSDs' weight is 0 Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants