ceph / ceph/python-crush

some mapping failed

未关闭
#5 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
22
派生
8
PR 合并指标
30 天内没有已合并 PR

描述

Running Ceph 12.2.5, crush 1.0.35 (current PyPI version).

default ceph report does not have information about pg,so I using

```
ceph pg dump -f json > pg_dump.json
# edit crush/ceph/__init__.py,add line 72
report['pgmap'] = json.load(open('pg_dump.json'))
# replace crush_ruleset with crush_rule in line 115
ruleset = pool['crush_rule']
```

and then output is:

```
2018-07-16 16:35:04,999 42.7e map to [32, 320, 144] instead of [32, 320, 167]
2018-07-16 16:35:04,999 42.73 map to [134, 295, 144] instead of [134, 295, 196]
2018-07-16 16:35:05,000 43.57 map to [21, 416, 144] instead of [21, 416, 185]
2018-07-16 16:35:05,004 44.87 map to [41, 144, 314] instead of [41, 314]
2018-07-16 16:35:05,005 44.7d map to [144, 371, 34] instead of [227, 371, 34]
2018-07-16 16:35:05,006 45.f2 map to [144, 414, 48] instead of [237, 414, 48]
2018-07-16 16:35:05,007 45.46 map to [144, 336, 14] instead of [234, 336, 14]
2018-07-16 16:35:05,008 46.45 map to [361, 144, 47] instead of [361, 256, 47]
2018-07-16 16:35:05,008 46.65 map to [144, 377, 23] instead of [218, 377, 23]
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

先从 crush/ceph/__init__.py 的第72行和第115行附近开始,然后使用 Ceph 12.2.5 以及来自 `ceph pg dump -f json` 的 pg_dump.json 数据重现报告。比较 issue 报告的映射与预期映射,并确定应修正哪种行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
distributed-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。