-
Notifications
You must be signed in to change notification settings - Fork 13
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
[doctor][stack] check ceph.config #208
base: master
Are you sure you want to change the base?
Conversation
@@ -13,12 +13,12 @@ auth_cluster_required = cephx | |||
auth_service_required = cephx | |||
auth_client_required = cephx | |||
filestore_xattr_use_omap = true | |||
osd_pool_default_size = 2 | |||
osd_pool_default_size = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
osd_pool_size 是 fuel 部署之前设置,我们一般都是 3 ,但是从 fuel 的 api 里 cluster 的 attributes 里或者任一台节点的 facts 里取比较好。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
例如:我们目前fuel cluster attributes和节点的facts及配置文件里面都是3,如果我们后面有需求把配置文件里的值修改成了4,我们在修改的时候会不会同时修改fuel cluster attributes及节点的facts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
恩,这里会引发另外一个问题,ceph.conf 中 osd_pool_default_xxx 这些配置只对于新建 pool 而且不指定对应参数时有效,这些参数在后期都可以手动调整。而手动调整的情况如果只针对个别 pool ,则没有必要修改 ceph.conf 。
也就是 pool 的实际参数和 ceph.conf 不必保持一致,fuel 里面的 facts 其实也只对 fuel 布署时生效,后期也会对这些参数进行检查。
所以从检查配置文件的目的看,似乎从 fule 里取比较合理。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先过滤掉这种fuel根据环境配置生成的变量的检测,后续单独增加获取这些特殊变量的正确值的方法(不再从template里获取)
796bb9a
to
17431a9
Compare
redmine #6354 Signed-off-by: blkart <[email protected]>
17431a9
to
722f418
Compare
if parser.PROFILE and not parser.SERVICE and not parser.CHECK_ALL: | ||
if parser.CONTROLLER: | ||
check('controller', 'profile') | ||
if parser.COMPUTE: | ||
check('compute', 'profile') | ||
if parser.MONGO: | ||
check('mongo', 'profile') | ||
if parser.CEPHOSD: | ||
check('ceph_osd', 'profile') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ceph-osd
redmine #6354
Signed-off-by: blkart [email protected]