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

openstack的各个服务一会up一会down的解决办法

[复制链接]

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
发表于 2026-5-6 11:31:14 | 显示全部楼层 |阅读模式
openstack的各个服务一会up一会down的解决办法
. B8 X/ }' Z0 K. d: O[root@controller1 ~]# openstack compute service list
3 G; R9 Z# {6 a  H5 Y5 ~) E/usr/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
& R9 d- Z0 L; M: Z4 v3 K0 u) j  from cryptography import utils, x509! ^; p5 E8 }, q* h# s' R6 I" A
+-----+------------------+-------------+-------------+---------+-------+----------------------------+0 \) K* `. i; N2 p
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |! F1 o" Q! T; s" X1 c" e1 C
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
( l# C4 C+ ?$ r% {$ m5 V|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2026-05-06T02:55:48.000000 |/ W: R" ?5 N8 V1 q2 q
|   6 | nova-scheduler   | controller1 | internal    | enabled | down    | 2026-05-06T02:50:47.000000 |% ~8 f& z( K! L
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2026-05-06T02:55:48.000000 |8 S( D+ b8 r2 }5 ]% g7 B, B
|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2026-05-06T02:55:50.000000 |
( `$ i3 j# ]" a- b* }0 g1 O|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2026-05-06T02:55:50.000000 |
7 a! L! w6 I* R9 ||  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2026-05-06T02:55:54.000000 |; v. L* {/ g6 ?" Z( d6 x& ~. r
|  69 | nova-consoleauth | controller2 | internal    | enabled | down    | 2026-05-06T02:55:51.000000 |
$ T2 B' I! H. h9 c" c" \& {+ r0 W  S5 {|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2026-05-06T02:55:44.000000 |
, q7 A$ _+ m# X( a% F$ ]|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2026-05-06T02:55:52.000000 |
, r/ \! p6 \/ A|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2026-05-06T02:55:49.000000 |
6 e2 H  U9 L% Z' Z1 p" Y/ g|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2026-05-06T02:55:48.000000 |3 H1 e& _3 x+ O/ d  T5 m$ G' f! q
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | down    | 2026-05-06T02:50:45.000000 |
$ M2 \! H; L, R. G|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2026-05-06T02:55:51.000000 |
$ K3 k; p0 M" |! e; ?$ p, ^( x|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2026-05-06T02:55:49.000000 |
: o- z, Q2 ~# i; D. P3 k# y% O|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | down    | 2026-05-06T02:50:47.000000 |
: {; ~0 i' v. V/ Y|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2026-05-06T02:55:49.000000 |' `- T! H* I' q4 g4 C
| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2026-05-06T02:55:48.000000 |
  }) f1 f+ \  J' p4 ~5 E( A| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | down   | 2026-05-06T02:50:52.000000 |  k  h. }0 R; f7 R3 A
| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2026-05-06T02:55:48.000000 |/ ^! Z1 Z# D7 H# P
+-----+------------------+-------------+-------------+---------+-------+----------------------------+" C- o: t4 t( ~
' Q: A8 T+ E# J& W
[root@controller1 ~]# ansible all -i inventory -m shell -a "ntpdate -u 10.161.53.166"
! V! j/ o! E* e5 I/usr/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.1 m, i: q3 q' H8 B* q
  from cryptography.exceptions import InvalidSignature; s  V2 z' O1 P( G* f

  c9 B) O, K1 c' _* k10.161.53.5 | CHANGED | rc=0 >>2 h8 u% s; B2 `* L; l1 g
6 May 10:45:58 ntpdate[144925]: step time server 10.161.53.166 offset -19.037096 sec; U/ X5 r1 `% h( ]$ s! T
1 p, h( p" A  {
10.161.53.3 | CHANGED | rc=0 >>3 V5 ?* y& q0 g- n1 d
6 May 10:45:58 ntpdate[277926]: step time server 10.161.53.166 offset -23.283415 sec
" F5 S3 i, g# Q; [- R3 N( w/ E* b+ v( d/ {' J# ]9 z
10.161.53.4 | CHANGED | rc=0 >>
' C$ s! ^. r8 J7 x9 Y' d/ _9 ^, u 6 May 10:45:58 ntpdate[164685]: step time server 10.161.53.166 offset -16.304383 sec6 ]- W: ^; S; o/ g' U
+ T/ {, d1 j( }7 t
10.161.53.1 | CHANGED | rc=0 >>
6 S- r1 D) J. H/ [. y8 \ 6 May 10:45:58 ntpdate[145466]: step time server 10.161.53.166 offset -24.022347 sec
/ V0 L5 N. X+ |2 {% G+ `
. \/ y6 O# a: v( K7 ^2 M. o3 F. Q10.161.53.6 | CHANGED | rc=0 >>1 k4 ~$ o2 W4 d5 c, P0 o( _
6 May 10:45:58 ntpdate[147176]: adjust time server 10.161.53.166 offset -0.000151 sec+ g0 z( Z# I/ `9 N4 l' y  G: i, z
" }& ^( X$ E! m* F: a
10.161.53.2 | CHANGED | rc=0 >>, g6 X4 a$ U3 m+ r. L% I7 ~0 f
6 May 10:45:59 ntpdate[302785]: step time server 10.161.53.166 offset -20.737830 sec
5 e8 b% s$ e& M6 p! i8 e+ j1 T1 k& j
10.161.53.8 | CHANGED | rc=0 >>) T& o( c* h, [8 ?5 @7 h  _
6 May 10:45:59 ntpdate[2969125]: adjust time server 10.161.53.166 offset 0.011538 sec/ x5 z7 B1 F7 S& D' m- r# H$ [

6 P; o' G+ k  e* ~: i6 F7 l. P9 L10.161.53.12 | CHANGED | rc=0 >>" Q, }6 H' L( N5 \$ Y6 v* ?* g
6 May 10:45:59 ntpdate[211292]: step time server 10.161.53.166 offset 3.287052 sec
6 l: s$ H4 E" G3 h# v
( A9 E& u4 j4 R/ o' h10.161.53.9 | CHANGED | rc=0 >>0 n1 ~, a- M& n5 \4 n0 W$ {
6 May 10:45:59 ntpdate[1797829]: adjust time server 10.161.53.166 offset 0.019191 sec0 r. R6 @' G% L, A9 l  I1 z

- X7 J! B6 G/ J& U, g9 ]10.161.53.11 | CHANGED | rc=0 >>* L# X) V3 K- F7 h( Y6 s$ A8 H, s
6 May 10:45:59 ntpdate[114080]: adjust time server 10.161.53.166 offset -0.017186 sec+ B, \0 ?5 z$ I' x) @8 G* W, W; e

* m3 l7 g, E: _6 C# g10.161.53.14 | CHANGED | rc=0 >>
8 Q5 M8 h! N+ k  Z) g 6 May 10:45:59 ntpdate[289513]: step time server 10.161.53.166 offset -19.245345 sec
$ Y) @  M6 E$ V$ b, a# ~) u4 K  X. I2 J
7 _, O9 G2 ]1 D) h) c3 Q10.161.53.16 | CHANGED | rc=0 >>
/ L; K4 b+ ~( z, B 6 May 10:45:59 ntpdate[43836]: adjust time server 10.161.53.166 offset 0.001156 sec+ s7 @+ O% c/ Z: U8 A  A+ g* F

+ n3 E3 p0 e2 V; H$ e5 a5 D10.161.53.15 | CHANGED | rc=0 >>( z7 C+ f3 e- g: ?; y7 {
6 May 10:45:59 ntpdate[39669]: adjust time server 10.161.53.166 offset -0.022219 sec
$ a3 H6 Q1 t) C6 n, |9 b& S
4 B# s  s% ]3 a" m* q10.161.53.13 | CHANGED | rc=0 >>- f$ x5 A9 l  ?- m
6 May 10:45:59 ntpdate[27951]: adjust time server 10.161.53.166 offset 0.001528 sec
; a2 L9 }" {# q5 r7 j" J& w
0 A# i- {7 F# H0 d* }10.161.53.7 | CHANGED | rc=0 >>: o; u2 z3 @/ ^9 `; [
6 May 10:45:58 ntpdate[81938]: adjust time server 10.161.53.166 offset -0.000209 sec; w. Z' q, n5 E  X. }4 x' `/ Q1 H6 \! t

9 E" K! X5 Q* N' b4 b9 b/ r
, L7 @3 l% M% p  t4 Z" `[root@controller1 ~]# openstack compute service list " b+ f# ~* k1 k  L+ A; [/ z
/usr/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.! L9 c2 O) C; K0 O: W
  from cryptography import utils, x509, d0 v% k; Q0 p2 X
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
6 t9 ?8 Q4 A& Q- C& X|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
  \; g. T9 w$ F9 q" x" x+-----+------------------+-------------+-------------+---------+-------+----------------------------+1 `- Y6 o8 w! ]
|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2026-05-06T03:30:39.000000 |
3 m6 o) D9 d2 ]' t0 q5 f* ?|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2026-05-06T03:30:37.000000 |3 X; I' ]9 a$ K7 y" X1 N, K  a( n* E
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2026-05-06T03:30:39.000000 |
, B/ k- ]* W6 h( p5 Q/ I! \|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2026-05-06T03:30:41.000000 |: N+ M- ~5 G( ^9 t0 `
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2026-05-06T03:30:41.000000 |
9 @. m$ ?' p2 c1 w|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2026-05-06T03:30:40.000000 |0 ^! N9 T: h3 o# H
|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2026-05-06T03:30:41.000000 |
3 ^+ j( n/ d* w|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2026-05-06T03:30:34.000000 |
4 Y; D# T; u' U1 [: J) `|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2026-05-06T03:30:42.000000 |$ m6 b# q: N' s( M6 w" T: z, ~
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2026-05-06T03:30:40.000000 |
8 f' Y& {0 c8 r4 N|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2026-05-06T03:30:39.000000 |
* @4 G! t1 T/ T  v- U|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2026-05-06T03:30:35.000000 |
8 W) x# ?" W; P: T|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2026-05-06T03:30:41.000000 |
" k' V6 |% M3 p# p' O! J* i|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2026-05-06T03:30:39.000000 |1 R1 H- a3 u( Z- a, J
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2026-05-06T03:30:37.000000 |/ q  m  r6 t/ I5 `4 j! K- B' b
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2026-05-06T03:30:39.000000 |
. k$ F: f6 S# K6 \! N| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2026-05-06T03:30:39.000000 |
) M; g  s; R" z3 q| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2026-05-06T03:30:43.000000 |9 x8 Y9 y0 w( Y! Q5 J; J# q* `: h
| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2026-05-06T03:30:38.000000 |- n  c1 t3 g1 I6 r, O' j
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
- z/ }4 O8 _8 ]4 i+ o- t6 h6 y% h9 N" U

0 _( l) A+ h. _2 D& r8 k$ a9 P[root@controller1 ~]# 3 J" ~/ u: E& F( |3 B

" h; h  M$ X' B. T: x
3 _1 x4 _8 `* H, N( c8 r* x" X8 `
* q$ D7 ]2 T' _. D" `5 N$ W问题解决。
0 A5 d) p' E+ ?: U% }8 c4 m; e: ]+ U3 m( x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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