You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ceph-deploy安装命令执行失败,提示configparser.NoSectionError: No section: 'main'故障求助

ceph-deploy安装命令执行失败,提示configparser.NoSectionError: No section: 'main'故障求助

我在执行ceph-deploy install admin datanode_dn2命令时遇到了报错,具体的执行日志如下:

[ceph_deploy.install][INFO  ] Distro info: rocky 9.1 blue onyx

[admin][INFO  ] installing Ceph on admin

[admin][INFO  ] Running command: sudo yum clean all

[admin][DEBUG ] 57 files removed

[admin][INFO  ] Running command: sudo yum -y install epel-release

[admin][DEBUG ] CentOS-9-stream - Ceph Quincy                   113 kB/s | 474 kB     00:04

[admin][DEBUG ] Ceph aarch64                                     87  B/s | 257  B     00:02

[admin][DEBUG ] Ceph noarch                                     2.4 kB/s | 8.8 kB     00:03

[admin][DEBUG ] Ceph SRPMS                                      629  B/s | 1.8 kB     00:02

[admin][DEBUG ] Extra Packages for Enterprise Linux 9 - aarch64 3.7 MB/s |  14 MB     00:03

[admin][DEBUG ] Rocky Linux 9 - BaseOS                          544 kB/s | 1.4 MB     00:02

[admin][DEBUG ] Rocky Linux 9 - AppStream                       2.0 MB/s | 5.5 MB     00:02

[admin][DEBUG ] Rocky Linux 9 - Extras                          3.1 kB/s | 9.1 kB     00:02

[admin][DEBUG ] Package epel-release-9-4.el9.noarch is already installed.

[admin][DEBUG ] Dependencies resolved.

[admin][DEBUG ] Nothing to do.

[admin][DEBUG ] Complete!

[ceph_deploy][ERROR ] RuntimeError: configparser.NoSectionError: No section: 'main'

目前我已经排查了~/.cephdeploy.conf和ceph.conf这两个文件,确认它们都没有问题,但还是搞不清楚ceph-deploy到底在找哪个配置文件。我也尝试用调试器运行,但调试过程中丢失了配置文件位置的相关信息,实在找不到问题所在。有没有大佬遇到过类似的情况,能帮忙指点下到底是哪个配置文件缺少了[main]段吗?

备注:内容来源于stack exchange,提问作者Kabira K

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 12:24:07