|
|
openstack的各个服务一会up一会down的解决办法
, s+ \' ]& r& p2 v9 M6 |[root@controller1 ~]# openstack compute service list q( c1 B P/ y# ]3 l
/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.
0 K+ o+ Y/ K- \$ h" U. e' E from cryptography import utils, x509/ p# Y/ O! q0 g' o/ l' Y$ o
+-----+------------------+-------------+-------------+---------+-------+----------------------------+/ }8 H6 _. |, z
| ID | Binary | Host | Zone | Status | State | Updated At |
. r, m, l7 d, n6 R. I* a3 S2 S+-----+------------------+-------------+-------------+---------+-------+----------------------------+
7 v$ H( C% w1 d% g| 3 | nova-scheduler | controller2 | internal | enabled | up | 2026-05-06T02:55:48.000000 |
: `/ ~4 O% G1 ^+ B2 J S| 6 | nova-scheduler | controller1 | internal | enabled | down | 2026-05-06T02:50:47.000000 |" V6 o. i% U2 R. ]; `6 i
| 9 | nova-scheduler | controller3 | internal | enabled | up | 2026-05-06T02:55:48.000000 |
' T* q( B* i. W$ D6 s| 39 | nova-conductor | controller2 | internal | enabled | up | 2026-05-06T02:55:50.000000 |
$ J" }8 E6 r" Q" ^- Y; X3 t| 57 | nova-conductor | controller3 | internal | enabled | up | 2026-05-06T02:55:50.000000 |; h) N- _) ^ M9 r; |4 ~7 l, Q
| 66 | nova-conductor | controller1 | internal | enabled | up | 2026-05-06T02:55:54.000000 |
; [% h0 S# W/ J1 z3 k. C| 69 | nova-consoleauth | controller2 | internal | enabled | down | 2026-05-06T02:55:51.000000 |' {5 r0 x6 P8 `% j
| 72 | nova-consoleauth | controller1 | internal | enabled | up | 2026-05-06T02:55:44.000000 |
) G" y: M$ O5 d( z, I5 }| 75 | nova-consoleauth | controller3 | internal | enabled | up | 2026-05-06T02:55:52.000000 |
2 ^$ f1 V) |6 z2 p || 78 | nova-compute | compute01 | Hygon-5185 | enabled | up | 2026-05-06T02:55:49.000000 |' D& x& H% u2 P* C9 B3 t3 L, r2 D
| 81 | nova-compute | compute02 | Hygon-5185 | enabled | up | 2026-05-06T02:55:48.000000 |
5 D8 G7 k& Y u# C| 84 | nova-compute | compute03 | Hygon-5185 | enabled | down | 2026-05-06T02:50:45.000000 |" H1 ]' c& N2 P" m+ S: {' U
| 87 | nova-compute | compute06 | Hygon-7155 | enabled | up | 2026-05-06T02:55:51.000000 |
" q0 V7 b$ `) }. `; t! [3 B9 Z) ]| 90 | nova-compute | compute04 | Hygon-7155 | enabled | up | 2026-05-06T02:55:49.000000 |/ i* s ~9 H8 o5 ?' A$ m
| 93 | nova-compute | compute05 | Hygon-7155 | enabled | down | 2026-05-06T02:50:47.000000 |
Z9 T! g' U/ @% J' b+ S| 96 | nova-compute | compute07 | Hygon-7155 | enabled | up | 2026-05-06T02:55:49.000000 |
1 s% ~9 P6 R$ k9 a* e* x| 108 | nova-compute | compute08 | Intel-8260M | enabled | up | 2026-05-06T02:55:48.000000 |
/ c) n$ Y% I2 T( X f0 V1 J| 120 | nova-compute | compute10 | Hygon-5185 | enabled | down | 2026-05-06T02:50:52.000000 |) d" X2 }8 M2 e$ ~( N& j1 R
| 123 | nova-compute | compute11 | Hygon-5185 | enabled | up | 2026-05-06T02:55:48.000000 |
& c1 ~( _6 E3 `+ n0 h: u+-----+------------------+-------------+-------------+---------+-------+----------------------------+/ R# z3 Z# A) x) P# t' m# A# t
. p% p2 C$ L5 ]3 F6 p [7 p[root@controller1 ~]# ansible all -i inventory -m shell -a "ntpdate -u 10.161.53.166": c, V/ s3 G3 P8 j' d$ g
/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.
" p; L: b6 H+ D1 U- V from cryptography.exceptions import InvalidSignature
5 s+ H9 k: E9 b9 ^. Y
/ q2 z8 T. R" d" E# b; }10.161.53.5 | CHANGED | rc=0 >>4 e* B+ Q/ K# I# y5 c
6 May 10:45:58 ntpdate[144925]: step time server 10.161.53.166 offset -19.037096 sec
4 I7 M& Y/ e7 C2 R
' G6 M+ P/ e& G0 N3 e) c, K, ?10.161.53.3 | CHANGED | rc=0 >>
1 k; j. {: N! f* X' c 6 May 10:45:58 ntpdate[277926]: step time server 10.161.53.166 offset -23.283415 sec* A2 N* v3 x3 f& u( ^
9 B! z" u p9 m Q4 Z+ M
10.161.53.4 | CHANGED | rc=0 >>
3 m: _ |$ J9 r/ ? 6 May 10:45:58 ntpdate[164685]: step time server 10.161.53.166 offset -16.304383 sec' q) Z$ Y P( l0 {. d0 U" |
0 n0 i+ @; _; F! D; z; d6 Q& o. k! k
10.161.53.1 | CHANGED | rc=0 >>
& u5 Z" ]: x" v8 p" z4 b 6 May 10:45:58 ntpdate[145466]: step time server 10.161.53.166 offset -24.022347 sec
" Y. V# i+ s9 }. |3 c
! { [! N) C8 N3 E( u( ?' i10.161.53.6 | CHANGED | rc=0 >>
$ Z5 f" I( O. S" @4 J6 {( n9 W 6 May 10:45:58 ntpdate[147176]: adjust time server 10.161.53.166 offset -0.000151 sec/ Q F x1 Y7 }/ z& _- G( \( k
6 Y3 h& {: \8 T) f+ j10.161.53.2 | CHANGED | rc=0 >>- }- ^1 H" s, ~5 c6 P0 M$ ]+ Y
6 May 10:45:59 ntpdate[302785]: step time server 10.161.53.166 offset -20.737830 sec7 E8 H5 M; |& o! u. c% c, Y! v6 p
7 k# f: Y; E5 m
10.161.53.8 | CHANGED | rc=0 >>
4 F' E+ i i" ^0 d( ~ H 6 May 10:45:59 ntpdate[2969125]: adjust time server 10.161.53.166 offset 0.011538 sec
6 z" i1 T. k0 h5 F5 t' V; f
% N4 Q# `! j0 J$ c10.161.53.12 | CHANGED | rc=0 >>$ L6 j9 g: d' H8 M* T$ e! Y
6 May 10:45:59 ntpdate[211292]: step time server 10.161.53.166 offset 3.287052 sec
2 w F+ U6 D. U* w* E, |8 i4 y D0 r
10.161.53.9 | CHANGED | rc=0 >>" {4 o9 x* l2 {( G4 K/ A* V& t
6 May 10:45:59 ntpdate[1797829]: adjust time server 10.161.53.166 offset 0.019191 sec7 n" j% a2 t- N1 @. R* H" n
# a1 P! K4 m/ z: P. f! }" k10.161.53.11 | CHANGED | rc=0 >>
0 V8 z% s9 X) }5 U- C* { 6 May 10:45:59 ntpdate[114080]: adjust time server 10.161.53.166 offset -0.017186 sec
, R; |6 v1 l4 g6 P3 W [4 I' ` w6 X) M
10.161.53.14 | CHANGED | rc=0 >>
w9 f* g: G* P" y# s. t- d 6 May 10:45:59 ntpdate[289513]: step time server 10.161.53.166 offset -19.245345 sec7 U: V3 A1 ?4 L' r! x
# }' b" R/ C" I; i2 d& `3 I) \
10.161.53.16 | CHANGED | rc=0 >>: v0 X4 j5 }2 [& x
6 May 10:45:59 ntpdate[43836]: adjust time server 10.161.53.166 offset 0.001156 sec
: w, b5 S; `( J7 z. Q( p, R- X/ Z% G) x9 X" u, p2 I9 h+ Z
10.161.53.15 | CHANGED | rc=0 >>0 W8 f! _) F3 _' h
6 May 10:45:59 ntpdate[39669]: adjust time server 10.161.53.166 offset -0.022219 sec
' C4 d; T% _7 S0 L4 w' U' X& U% s$ n2 a* A/ t3 u
10.161.53.13 | CHANGED | rc=0 >>
5 L/ Q% ~# f& ~5 W6 S1 z1 T 6 May 10:45:59 ntpdate[27951]: adjust time server 10.161.53.166 offset 0.001528 sec" v0 z4 U: X7 w( Q
; M/ ?$ C, J M8 P" X0 k( V2 c7 g
10.161.53.7 | CHANGED | rc=0 >>
. A: {1 R- {; q- w) C 6 May 10:45:58 ntpdate[81938]: adjust time server 10.161.53.166 offset -0.000209 sec
3 J1 X0 _: v& W3 k$ g! N( E C7 e# z3 ?' u7 @* q
+ c- j' D; p8 }[root@controller1 ~]# openstack compute service list - ~& R: A2 g: `* k
/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.
4 u( g Y% ?5 m x3 o t from cryptography import utils, x509
" L& u: P) p, p6 F1 u+-----+------------------+-------------+-------------+---------+-------+----------------------------+: Y/ O2 n0 i. J1 b
| ID | Binary | Host | Zone | Status | State | Updated At |
. ^- r! o8 P; d1 J9 \/ _+-----+------------------+-------------+-------------+---------+-------+----------------------------+8 Z& J- q5 Q6 R9 u4 M
| 3 | nova-scheduler | controller2 | internal | enabled | up | 2026-05-06T03:30:39.000000 |
& x* H" \6 {/ d6 [) h% @2 T6 `| 6 | nova-scheduler | controller1 | internal | enabled | up | 2026-05-06T03:30:37.000000 |: E+ G: s0 S; ?6 m
| 9 | nova-scheduler | controller3 | internal | enabled | up | 2026-05-06T03:30:39.000000 |, \2 Q$ U5 T9 Y6 F$ N
| 39 | nova-conductor | controller2 | internal | enabled | up | 2026-05-06T03:30:41.000000 |
, u( f" V2 m9 ~2 H: N, n| 57 | nova-conductor | controller3 | internal | enabled | up | 2026-05-06T03:30:41.000000 |
4 Q( g0 p1 P7 p9 K1 r8 U| 66 | nova-conductor | controller1 | internal | enabled | up | 2026-05-06T03:30:40.000000 |' R9 j8 q$ u' v) L. K! K; v- O+ P
| 69 | nova-consoleauth | controller2 | internal | enabled | up | 2026-05-06T03:30:41.000000 |
% g9 r2 x1 [9 S1 s3 z| 72 | nova-consoleauth | controller1 | internal | enabled | up | 2026-05-06T03:30:34.000000 |$ P) {' `. w- A$ v- H
| 75 | nova-consoleauth | controller3 | internal | enabled | up | 2026-05-06T03:30:42.000000 |
3 F T: b o8 Y" `% R- n s* ^| 78 | nova-compute | compute01 | Hygon-5185 | enabled | up | 2026-05-06T03:30:40.000000 |
. b- I/ w( b' r4 ^+ O4 U| 81 | nova-compute | compute02 | Hygon-5185 | enabled | up | 2026-05-06T03:30:39.000000 |
& U7 [3 s# d' M$ W9 D% q/ v| 84 | nova-compute | compute03 | Hygon-5185 | enabled | up | 2026-05-06T03:30:35.000000 |
4 S$ \0 r% x$ G/ b% g| 87 | nova-compute | compute06 | Hygon-7155 | enabled | up | 2026-05-06T03:30:41.000000 |' o6 l1 I2 `6 a! Y. i
| 90 | nova-compute | compute04 | Hygon-7155 | enabled | up | 2026-05-06T03:30:39.000000 |
, }6 d% s3 ~$ E! [| 93 | nova-compute | compute05 | Hygon-7155 | enabled | up | 2026-05-06T03:30:37.000000 |
& e2 Q# V! E0 C5 q V* Z1 k| 96 | nova-compute | compute07 | Hygon-7155 | enabled | up | 2026-05-06T03:30:39.000000 |
$ D- Z7 d4 \& e( y. u6 b" J1 ^| 108 | nova-compute | compute08 | Intel-8260M | enabled | up | 2026-05-06T03:30:39.000000 |
6 a+ X4 W q5 P: s# p9 L1 E/ _| 120 | nova-compute | compute10 | Hygon-5185 | enabled | up | 2026-05-06T03:30:43.000000 |/ P4 Y; t3 A9 b# s& R7 a) J
| 123 | nova-compute | compute11 | Hygon-5185 | enabled | up | 2026-05-06T03:30:38.000000 |) o6 f4 F1 h2 w- d" i$ b3 G( D
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
9 }! e9 ]$ \) A2 S4 ^' H7 R( Z7 {' Q0 J; H' }
9 c" x, `- b) t0 t3 O0 ?
[root@controller1 ~]# 9 D- t- A% s: b; Z6 k* L0 E; Z, y6 }
1 Y6 m6 H& ]9 q2 h! Z7 r" ?: N% R F& ^6 b/ ^
0 u5 {7 z Z4 k
问题解决。
, P+ n/ E9 {2 o. W
( ^: M6 C1 E- ~* J |
|