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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

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

  T: b  k& \) Z: T$ g. k+ ~[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: compute06% g; C# Q- R5 N) E" v
[compute07][DEBUG ] connected to host: compute07 3 n8 O* s' [& E- s3 s  X; q& ]
[compute07][DEBUG ] detect platform information from remote host* W0 B% |. \2 f8 c1 u0 I8 n8 q( F
[compute07][DEBUG ] detect machine type
4 O/ U: V4 Q. H[compute07][DEBUG ] get remote short hostname
! k  a' f+ g6 j" S7 ]' H[compute07][DEBUG ] fetch remote file- h) W2 Q* {- _% S* N- w; `
[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: compute07/ N* c  A" O4 q
[compute08][DEBUG ] connected to host: compute08 9 Q0 C0 `8 ]7 \: C
[compute08][DEBUG ] detect platform information from remote host& x2 H/ }/ |9 k
[compute08][DEBUG ] detect machine type
# a7 J$ Q: }9 O[compute08][DEBUG ] get remote short hostname
0 a- k9 _* y# i[compute08][DEBUG ] fetch remote file& {$ p6 p# i/ w8 D2 D
[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: compute086 X- s. \7 |* b+ l3 ]7 g
[compute09][DEBUG ] connected to host: compute09 . c. u! y0 M! d$ o- \5 o# ^
[compute09][DEBUG ] detect platform information from remote host
- |5 B; S5 `; \  y, j  {- E, S[compute09][DEBUG ] detect machine type) G, n- }  [' [$ t+ Q
[compute09][DEBUG ] get remote short hostname' [: R5 h; \' X: S7 [2 G- m8 U
[compute09][DEBUG ] fetch remote file, K8 v. D. D* J( {# w6 ~! l% S. Z
[ceph_deploy.gatherkeys][WARNIN] No mon key found in host: compute09
1 Y6 ^1 {7 z0 E& R4 m[ceph_deploy.gatherkeys][ERROR ] Failed to connect to host:compute06, compute07, compute08, compute09
; \" p) L$ Z+ e6 S[ceph_deploy.gatherkeys][INFO  ] Destroy temp directory /tmp/tmpPXym0f! n, z  }) N6 n! T9 }( q
[ceph_deploy][ERROR ] RuntimeError: Failed to connect any mon6 P" |2 y. k7 u
% B* A- n# Z  ^0 ^

5 E$ E. q- x, `  {; r[ceph_deploy.gatherkeys][WARNING] No mon key found in host: compute 09; a, T1 G. n, |, _( e; n1 X9 Z0 i
2 h* s- f! {. t5 |# t* D
思路,通过warning  no mon key found
7 R  K; W& f( g
, q8 ~7 u- r9 ~4 m$ @$ [思路) S% e8 r; J/ f' C$ x* E
检查文件keyring
: [7 S/ M3 T7 @5 Z+ k8 y+ Y[root@hostceph1 deploy]# ls5 \" ~2 u6 ?3 b4 k( g
ceph.bootstrap-mds.keyring  ceph.client.cinder-backup.keyring  ceph.client.cinder-volume.keyring  ceph.client.gnocchi.keyring  ceph.conf             osdcreate.sh
$ t# P0 n& R  `* l6 vceph.client.admin.keyring   ceph.client.cinder.keyring         ceph.client.glance.keyring         ceph.client.nova.keyring     ceph-deploy-ceph.log# Y: a1 }' q5 Y- Q$ W
[root@hostceph1 deploy]#
7 V5 x! o+ T+ q0 h" o1 d2 r* Q# B
# Y# A: E) s% m, W7 N) B
- M0 d6 n/ C/ ^2 j# m1 ^/ O* s, Z" Z解决步骤:
; l% s5 ?- t; B8 R' o6 f
3 ~, b# L6 u" v5 k! T% \* [, m+ k2 z/ s) h/ ?
ceph auth get client.bootstrap-mds -o /ceph/deploy/ceph.bootstrap-mds.keyring. v( k- d/ B& |4 U, H& d5 g# Z& H- E
7 O% ~  g# p) c) P* E! }
# ceph auth get client.bootstrap-osd -o /ceph/deploy/ceph.bootstrap-osd.keyring
( R; a8 E" y3 j& T9 ~) p1 oexported keyring for client.bootstrap-osd
" `  P& J4 P# d4 m6 w# R2 `) i: `6 f! Z; y: S# U8 T/ E3 d* s3 Q
# M4 `" L7 T* E& n8 `# M2 W( ~

9 {" u8 }* ~/ \

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-8-6 12:48:56 | 显示全部楼层
# ceph auth get client.bootstrap-mgr -o /ceph/deploy/ceph.bootstrap-mgr.keyring2 ~5 _( c5 [! w! Z% ]' H; q- \, X
exported keyring for client.bootstrap-mgr
8 @8 |0 W+ b' c/ Q$ E9 f8 u9 w3 o: x7 U
7 F7 k& O( x4 T3 E0 u# 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.
+ t/ I, P+ _5 z5 I" w. sexported keyring for mon.
; L, W1 e1 e# ^# l+ O[mon.]: O8 e+ c* ^0 c, \) F
        key = AQB8KMNgAAAAABAAXMgzYvrjxQ5cmf+9qLIibA==9 P+ r/ u, _* ]% p& N5 d- c5 H4 M& x
        caps mon = "allow *"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:02 , Processed in 0.015693 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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