Bug #20053
crush compile / decompile looses precision on weight
Status:
New
Priority:
Normal
Assignee:
-
Category:
Administration/Usability
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
CRUSH, ceph cli
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
The weight of an item is displayed with %.3f and looses precision that makes a difference in mapping.
Steps to reproduce:
bin/crushtool --outfn /tmp/a --build --set-chooseleaf-vary-r 0 --num_osds 5 node straw2 5 root straw2 0 -o /tmp/a bin/crushtool -i /tmp/a -o /tmp/a --reweight-item osd.0 0.8009 bin/crushtool -i /tmp/a -o /tmp/a --reweight-item osd.1 0.8001 bin/crushtool -d /tmp/a -o /tmp/a.txt bin/crushtool -c /tmp/a.txt -o /tmp/b $ bin/crushtool -i /tmp/a --tree ID WEIGHT TYPE NAME -2 4.60098 root root -1 4.60098 node node0 0 0.80089 osd.0 1 0.80009 osd.1 2 1.00000 osd.2 3 1.00000 osd.3 4 1.00000 osd.4 $ bin/crushtool -i /tmp/b --tree ID WEIGHT TYPE NAME -2 4.60100 root root -1 4.60100 node node0 0 0.80099 osd.0 1 0.79999 osd.1 2 1.00000 osd.2 3 1.00000 osd.3 4 1.00000 osd.4 $ bin/crushtool -i /tmp/a --show-mappings --test --rule 0 --x 1064 --num-rep 1 CRUSH rule 0 x 1064 [1] $ bin/crushtool -i /tmp/b --show-mappings --test --rule 0 --x 1064 --num-rep 1 CRUSH rule 0 x 1064 [3]
History
#1 Updated by Loïc Dachary almost 7 years ago
- Description updated (diff)
#2 Updated by Greg Farnum almost 7 years ago
- Project changed from Ceph to RADOS
- Category deleted (
10)
#3 Updated by Greg Farnum almost 7 years ago
- Category set to Administration/Usability
- Component(RADOS) CRUSH, ceph cli added
#4 Updated by Loïc Dachary over 6 years ago
- Status changed from In Progress to 12
- Assignee deleted (
Loïc Dachary)
#5 Updated by Patrick Donnelly over 4 years ago
- Status changed from 12 to New