Ceph部署出错-No section: 'ceph'

本文介绍了解决ceph-jewel部署过程中遇到的“RuntimeError:NoSectionError:Nosection:'ceph'”错误的方法。通过移除旧的ceph安装包、删除配置文件并重新执行部署命令来解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

按照官方文档部署ceph-jewel

执行到

ceph-deploy install admin  node1 node2 node3
报错:

[ceph_deploy][ERROR ] RuntimeError: NoSectionError: No section: 'ceph'

解决步骤:


1.  yum remove ceph-release
2.  rm /etc/yum.repos.d/ceph.repo.rpmsave
3. ceph-deploy install admin  node1 node2 node3


参考

2025-03-29 10:14:00.654114 I | op-mgr: deployment for mgr rook-ceph-mgr-a already exists. updating if needed 2025-03-29 10:14:00.660132 I | op-k8sutil: deployment "rook-ceph-mgr-a" did not change, nothing to update 2025-03-29 10:14:00.660179 I | cephclient: getting or creating ceph auth key "mgr.b" 2025-03-29 10:14:00.918206 I | op-mgr: deployment for mgr rook-ceph-mgr-b already exists. updating if needed 2025-03-29 10:14:00.922071 I | op-k8sutil: deployment "rook-ceph-mgr-b" did not change, nothing to update 2025-03-29 10:14:02.012907 E | ceph-cluster-controller: failed to reconcile CephCluster "rook-ceph/rook-ceph". failed to reconcile cluster "rook-ceph": failed to configure local ceph cluster: failed to create cluster: failed to start ceph mgr: failed to enable mgr services: failed to enable service monitor: service monitor could not be enabled: failed to retrieve servicemonitor. servicemonitors.monitoring.coreos.com "rook-ceph-mgr" is forbidden: User "system:serviceaccount:rook-ceph:rook-ceph-system" cannot get resource "servicemonitors" in API group "monitoring.coreos.com" in the namespace "rook-ceph" 2025-03-29 10:14:02.052359 E | ceph-spec: failed to update cluster condition to {Type:Ready Status:True Reason:ClusterCreated Message:Cluster created successfully LastHeartbeatTime:2025-03-29 10:14:02.048230153 +0000 UTC m=+9812.323876586 LastTransitionTime:2025-03-29 08:40:15 +0000 UTC}. failed to update object "rook-ceph/rook-ceph" status: Operation cannot be fulfilled on cephclusters.ceph.rook.io "rook-ceph": the object has been modified; please apply your changes to the latest version and try again 2025-03-29 10:25:15.419892 E | ceph-nodedaemon-controller: node reconcile failed: failed to enable service monitor: service monitor could not be enabled: failed to retrieve servicemonitor. servicemonitors.monitoring.coreos.com "rook-ceph-exporter" is forbidden: User "system:serviceaccount:rook-ceph:rook-ceph-system" cannot get resource "servicemonitors" in API group "monitoring.coreos.com" in the namespace "rook-ceph" 2025-03-29 10:25:16.017269 E | ceph-nodedaemon-controller: node reconcile failed: failed to enable service monitor: service monitor could not be enabled: failed to retrieve servicemonitor. servicemonitors.monitoring.coreos.com "rook-ceph-exporter" is forbidden: User "system:serviceaccount:rook-ceph:rook-ceph-system" cannot get resource "servicemonitors" in API group "monitoring.coreos.com" in the namespace "rook-ceph" 2025-03-29 10:25:18.622406 E | ceph-nodedaemon-controller: node reconcile failed: failed to enable service monitor: service monitor could not be enabled: failed to retrieve servicemonitor. servicemonitors.monitoring.coreos.com "rook-ceph-exporter" is forbidden: User "system:serviceaccount:rook-ceph:rook-ceph-system" cannot get resource "servicemonitors" in API group "monitoring.coreos.com" in the namespace "rook-ceph"
最新发布
03-30
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值