找回密码
 注册
查看: 45|回复: 0

failed to probe daemons or devices 问题ceph -s出现的错误

[复制链接]

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
发表于 2025-4-9 17:00:42 | 显示全部楼层 |阅读模式
[WRN] CEPHADM_REFRESH_FAILED: failed to probe daemons or devices: x6 @9 ?2 q3 W; g  p; y
host private-registry.example.com `cephadm ceph-volume` failed: cephadm exited with an error code: 1, stderr:Non-zero exit code 125 from /bin/podman run --rm --ipc=host --net=host --entrypoint stat --init -e CONTAINER_IMAGE=ceph5-2-1-registry.example.com:5000/rhceph/rhceph-5-rhel8@sha256:d42c0d99ddeaa001570dce4eb90b71699e0401fe449966b935f669ffad22bd01 -e NODE_NAME=private-registry.example.com -e CEPH_USE_RANDOM_NONCE=1 ceph5-2-1-registry.example.com:5000/rhceph/rhceph-5-rhel8@sha256:d42c0d99ddeaa001570dce4eb90b71699e0401fe449966b935f669ffad22bd01 -c %u %g /var/lib/ceph6 U$ i* V) o1 O/ `* S* W8 S" H
stat: stderr Trying to pull ceph5-2-1-registry.example.com:5000/rhceph/rhceph-5-rhel8@sha256:d42c0d99ddeaa001570dce4eb90b71699e0401fe449966b935f669ffad22bd01...
* k9 L: ~1 o4 D5 Zstat: stderr Error: initializing source docker://ceph5-2-1-registry.example.com:5000/rhceph/rhceph-5-rhel8@sha256:d42c0d99ddeaa001570dce4eb90b71699e0401fe449966b935f669ffad22bd01: reading manifest sha256:d42c0d99ddeaa001570dce4eb90b71699e0401fe449966b935f669ffad22bd01 in ceph5-2-1-registry.example.com:5000/rhceph/rhceph-5-rhel8: unauthorized: authentication required
2 y) X6 D1 ?2 A$ d$ yHow to eliminate this warning?
2 Q9 P" S/ {# z. V: b6 Y+ yResolution- [+ d. A3 [4 \- C4 v: b/ B
Login to the cephadm shell on the lead monitor node.3 |+ X( r! [  m7 z4 i) s# R- s
$ r: f  [% r; {0 f9 l4 G3 g
Raw9 `; h7 `; t' _4 R' d
# cephadm shell $ V* f9 o+ O8 R
Log in manually to the custom registry on all the new hosts simultaneously:" c  r" `  P) i$ D  K# D# {

! V( H) \) q* T' s" h# q" _) g/ YRaw! A; A' g% _- ~" m$ F
# ceph cephadm registry-login --registry-url <CUSTOM_REGISTRY_NAME>  --registry_username <REGISTRY_USERNAME> --registry_password <PASSWORD>
! K$ i* U& b1 a1 r5 o8 p! fExecuting the aforementioned command will produce a podman-auth.json file in the /etc/ceph directory that contains the custom registry's authentication details.
6 z! A2 W4 S. q' }& x6 |6 `! [7 P) A; I5 x( ?/ c
Wait 3-5 minutes to see if the daemon starts up." C: N, [6 Q4 Z5 P9 Q( t

) K3 _4 \8 P% {0 {& [5 DRaw
' l5 ^7 L0 C5 }# watch ceph orch ls
, g9 @4 E  T; D; Z5 W- uOPTIONAL: Restart the daemon if it is still not in running state.
# I2 T; e2 |8 X0 a& i$ `* Q* O. @$ E. S- ?& h) ~2 z
Raw
0 u& M$ Z/ p  x& T4 P. k4 ^# ceph orch restart <DAEMON_NAME>
8 [7 N  J" A6 u  }3 X+ M  f* j  ]SPECIAL CASE:
. a7 }5 o3 o; j* S& I9 X7 bFor daemons like node-exporter, prometheus, alertmanager, grafana:! L- _. Y( F& l

9 U$ f2 I  Q- b& ~) LAfter logging into the custom registry, use the ceph config command to configure the custom container images:6 B( ]# m" R. k7 v. c% p
1 W3 `# I! E: G6 u. o
Raw
: w. j6 K9 u, G# ceph config set mgr mgr/cephadm/OPTION_NAME CUSTOM_REGISTRY_NAME/CONTAINER_NAME& x  o1 @6 w; f
Use the following options for OPTION_NAME:
1 M8 Q5 d8 G9 Q1 U* C# G& m# n/ y* b/ Y$ F# j2 A# A' g
Raw
" `( o8 r, b' I/ hcontainer_image_prometheus; e5 m; J0 {7 D3 i
container_image_grafana
" T* g& i5 n8 V& r# Bcontainer_image_alertmanager
1 ~( G( u" P7 `5 }2 bcontainer_image_node_exporter. P! d% Z2 W4 ]. ^* ]
Redeploy each daemon:
3 S1 ?- j6 `5 f; @% ]( j6 }+ ~* o0 b8 r( I9 a, m( z7 |9 R
Raw$ y3 C2 A) ]$ E# j: J
# ceph orch redeploy DAEMON_NAME
# S( S) g; p2 mRoot Cause. F  Z: A- l4 S( J& G: g
While adding ceph daemons on newly added hosts, cephadm is not able to determine the custom registry credentials under podman-auth.json file under the /etc/ceph directory or the file itself is missing.+ J3 e* D) ~3 a! ]2 d
2 R) M0 Z1 {, u5 b3 k3 W
Behind the scene, when we run this command it actually only logs in the host where the command is run. As a result, when cephadm attempts to pull the image on other hosts it still fails due to not logged in on the other hosts." B  c+ W* A" X

  p6 P. u3 |: Q& S! qFor this, instead of running the command on the host itself, use the ceph cephadm registry-login command from inside the cephadm shell and it should log in all the hosts in the cluster.
% e  R0 _$ @' h  n- P
( }) ^3 t* o- R, [, W# |* p1 \/ ZDiagnostic Steps
- f1 y# N" F( L. y1 Z6 [, ZCheck if the podman-auth.json file is present under /etc/ceph/ on each node., ^7 l' G+ q0 \
# Q: x, a% u3 H% V  ]/ O
Raw( ~# I4 d, D, d6 s  G/ a
# ls -l /etc/ceph/" I) |# m# @' i- C8 t" K
Verify the daemon status:
3 |9 G; I9 ?" j0 s. ^/ D( D* D( U+ |+ n' y+ Y# H, \2 x
Raw, n* J# V# b& Y
# ceph orch ls
% e) B0 [7 w% c( U4 E# ceph orch ps
9 ^  G4 Z1 w7 K+ }  X2 q5 b
! r" N7 c( P# ^' n
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 22:04 , Processed in 0.018053 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表