找回密码
 注册
查看: 3229|回复: 2

[ceph_deploy.gatherkeys][ERROR ] Failed to connect to host

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-8-6 12:01:09 | 显示全部楼层 |阅读模式

' o0 L& A& [( k9 V( V  C[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: compute06
- S" w0 h# b8 e! b" W1 Q- U5 }[compute07][DEBUG ] connected to host: compute07
! c1 A& }/ L5 V  O6 z' j: V[compute07][DEBUG ] detect platform information from remote host& z# ]/ Z) [9 \) J: Y: c; z
[compute07][DEBUG ] detect machine type+ V! p. m; h" ^, }5 r
[compute07][DEBUG ] get remote short hostname
5 u+ x/ {9 L( [  \7 _[compute07][DEBUG ] fetch remote file
5 }6 G# a  S: S) S# N[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: compute072 d' l3 {6 n1 }0 t
[compute08][DEBUG ] connected to host: compute08
( [. o) i: k5 a[compute08][DEBUG ] detect platform information from remote host
, C* T! [& G' N4 L5 J[compute08][DEBUG ] detect machine type
4 d' i5 C0 @( k9 i) Z7 w[compute08][DEBUG ] get remote short hostname" e/ s+ ?1 F) g  v: v% P
[compute08][DEBUG ] fetch remote file
1 K: J: H: r5 d' @: o3 H* Q2 P[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: compute08' b8 s; r% |1 r: d, `
[compute09][DEBUG ] connected to host: compute09
4 L- t( ]. M; ~8 N7 v8 q% q# ?5 Q[compute09][DEBUG ] detect platform information from remote host
, `: o" _' F. _$ @9 x" ?[compute09][DEBUG ] detect machine type1 @! S% b* b3 n3 F3 Q6 J5 u
[compute09][DEBUG ] get remote short hostname
( ]& ~% [9 X7 q8 R2 z" M1 I[compute09][DEBUG ] fetch remote file
$ G. w5 |5 _  I6 j3 v2 V[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: compute09" [  o0 n2 D2 l) j6 B3 S5 t
[ceph_deploy.gatherkeys][ERROR ] Failed to connect to host:compute06, compute07, compute08, compute09# c1 }7 f. L& Y( P7 }
[ceph_deploy.gatherkeys][INFO  ] Destroy temp directory /tmp/tmpPXym0f
6 ~' ]& m3 b1 ]' c[ceph_deploy][ERROR ] RuntimeError: Failed to connect any mon- Z2 i8 k9 d! x& y- o8 [1 N  c3 {7 y

# O6 [* s7 P, L# E8 g7 N0 [7 R8 n+ x) \
[ceph_deploy.gatherkeys][WARNING] No mon key found in host: compute 09
. q9 M) ~) ?1 _  T
6 H9 k/ k7 E) g  H# ~4 H思路,通过warning  no mon key found
' ^' n) c8 f0 q7 x7 v. ?+ x6 I9 {. J; a* L' e1 r6 H6 o
思路0 {: v/ y* z$ z  M
检查文件keyring
6 _) g; c# h5 |+ m$ h2 S3 P1 O[root@hostceph1 deploy]# ls
1 W7 @( k4 K0 R$ q$ Fceph.bootstrap-mds.keyring  ceph.client.cinder-backup.keyring  ceph.client.cinder-volume.keyring  ceph.client.gnocchi.keyring  ceph.conf             osdcreate.sh
/ Z  e2 S& M2 e7 T8 q4 Z$ zceph.client.admin.keyring   ceph.client.cinder.keyring         ceph.client.glance.keyring         ceph.client.nova.keyring     ceph-deploy-ceph.log+ w, E! n+ o9 D2 ~) ]! A- w5 k
[root@hostceph1 deploy]# ( I9 e* |; @% c, B8 F: i5 f
/ `# d. n1 {  G; @$ P( q. U
1 I/ J8 U5 E* J& L) p3 i/ Q
解决步骤:( J$ L4 P1 L) ~) C

9 T8 w1 \/ s; N% w' W1 E; e8 r8 ]8 U6 |
ceph auth get client.bootstrap-mds -o /ceph/deploy/ceph.bootstrap-mds.keyring9 N( B% c. e8 l- z: [. e1 |
' H+ A% i$ y! c1 N7 H
# ceph auth get client.bootstrap-osd -o /ceph/deploy/ceph.bootstrap-osd.keyring0 @. F" ]5 n3 I/ j9 `
exported keyring for client.bootstrap-osd
$ e' Z7 g6 s+ f# F3 s, k7 R4 h8 `, f' f
3 F, X) y" d  V/ B6 g% N
( o" N  l* ~: M

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-8-6 12:48:56 | 显示全部楼层
# ceph auth get client.bootstrap-mgr -o /ceph/deploy/ceph.bootstrap-mgr.keyring
9 ]; P; n3 {1 l, |: K5 s& |exported keyring for client.bootstrap-mgr3 X! q  @& X6 A4 z( Z& P1 g7 l

9 t# `6 l. B$ v9 z# cp /var/lib/ceph/mon/ceph-hostceph1/keyring  /ceph/deploy/ceph.mon.keyring

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-8-6 13:01:30 | 显示全部楼层
ceph auth get mon.5 k0 U- H+ Q& J3 }
exported keyring for mon.: t% v$ r0 u0 s0 e- W# r
[mon.]
: k2 ~0 m/ K% a. F; D        key = AQB8KMNgAAAAABAAXMgzYvrjxQ5cmf+9qLIibA==4 R2 l% v! P) x
        caps mon = "allow *"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:07 , Processed in 0.025775 second(s), 24 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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