|
|
楼主 |
发表于 2021-11-30 12:17:51
|
显示全部楼层
openstack 设置service disable状态:2 l( h0 i* u/ ~, e
[root@controller1 ~]# openstack compute service set --disable compute09 nova-compute 9 r8 q' Y. C5 G) C/ g' a
* a' |) q1 J4 f8 j& F, r0 A& ]
删除service
5 Z4 O- M, ] o% T; L) Y8 N$ m/ l# n, ^! @, Y( h/ I% B" q% Y
[root@controller1 ~]# openstack compute service list - Y" J, U7 Z1 e; L6 g9 U2 }
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
% G7 N7 W" |& F8 V0 i q| ID | Binary | Host | Zone | Status | State | Updated At |% N, |! s* H R! z2 \# S
+-----+------------------+-------------+-------------+----------+-------+----------------------------+9 \- e$ L+ _4 {5 s$ N4 {+ r4 _8 m2 R
| 3 | nova-scheduler | controller2 | internal | enabled | up | 2021-11-30T03:03:13.000000 |
, V% Y3 W! K3 M| 6 | nova-scheduler | controller1 | internal | enabled | up | 2021-11-30T03:03:12.000000 |
2 Q* M: q) }- U% x. w! u| 9 | nova-scheduler | controller3 | internal | enabled | up | 2021-11-30T03:03:04.000000 |8 Y0 a- {& P% q M5 k+ {
| 39 | nova-conductor | controller2 | internal | enabled | up | 2021-11-30T03:03:14.000000 |
4 A7 k0 t% F( s# N1 u% q. G: ?" T| 57 | nova-conductor | controller3 | internal | enabled | up | 2021-11-30T03:03:14.000000 |2 W+ [4 w2 E2 o7 G- p4 t
| 66 | nova-conductor | controller1 | internal | enabled | up | 2021-11-30T03:03:07.000000 |, \9 W# B6 m3 s; F( j9 [& X
| 69 | nova-consoleauth | controller2 | internal | enabled | up | 2021-11-30T03:03:13.000000 |
; w0 k6 A7 y/ j; e; d| 72 | nova-consoleauth | controller1 | internal | enabled | up | 2021-11-30T03:03:09.000000 |
& a1 E/ J6 e% b. D; t| 75 | nova-consoleauth | controller3 | internal | enabled | up | 2021-11-30T03:03:09.000000 |8 a0 q. w9 F7 J$ H1 V: U! U
| 78 | nova-compute | compute01 | Hygon-5185 | enabled | up | 2021-11-30T03:03:13.000000 |8 t0 W% F1 L1 D1 b0 T# s$ r
| 81 | nova-compute | compute02 | Hygon-5185 | enabled | up | 2021-11-30T03:03:09.000000 |$ f3 ~' z h! v, b5 R) T
| 84 | nova-compute | compute03 | Hygon-5185 | enabled | up | 2021-11-30T03:03:05.000000 |
- T7 d% b5 [% f& Z( ?" i0 m; J| 87 | nova-compute | compute06 | Hygon-7155 | enabled | up | 2021-11-30T03:03:14.000000 |" I- h9 W; S' U0 ^9 l+ A
| 90 | nova-compute | compute04 | Hygon-7155 | enabled | up | 2021-11-30T03:03:10.000000 |
5 m& _0 c2 k% h| 93 | nova-compute | compute05 | Hygon-7155 | enabled | up | 2021-11-30T03:03:06.000000 |
" T5 N- T* o; h. V2 _| 96 | nova-compute | compute07 | Hygon-7155 | enabled | up | 2021-11-30T03:03:08.000000 |) \0 r$ J" J9 Q$ H9 Q; v
| 108 | nova-compute | compute08 | Intel-8260M | enabled | up | 2021-11-30T03:03:12.000000 |
6 Y0 K7 m: `5 Q9 A* P# W, u| 114 | nova-compute | compute09 | Intel-8260M | disabled | down | 2021-11-30T03:01:51.000000 |, V3 K3 f+ v2 [0 W. ]) V/ G9 \ p
| 120 | nova-compute | compute10 | Hygon-5185 | enabled | up | 2021-11-30T03:03:10.000000 |" H( z9 X8 s% w' L8 o, {1 N
| 123 | nova-compute | compute11 | Hygon-5185 | enabled | up | 2021-11-30T03:03:06.000000 |4 V: T5 p( \# p/ K
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
$ z7 H0 T# m8 n[root@controller1 ~]# openstack compute service delete 114
8 }" P; Q) \9 h+ v% {- G8 ~: H6 J" B[root@controller1 ~]# openstack compute service list
0 f: i) h& s# S9 K2 z+-----+------------------+-------------+-------------+---------+-------+----------------------------+
# A1 k% C4 Y* c# U8 O| ID | Binary | Host | Zone | Status | State | Updated At |9 {3 i+ f: k7 p9 m) p
+-----+------------------+-------------+-------------+---------+-------+----------------------------+- L1 U+ U g( p! C1 l
| 3 | nova-scheduler | controller2 | internal | enabled | up | 2021-11-30T03:03:43.000000 |
9 S4 y, ^7 f) Y1 Z' e| 6 | nova-scheduler | controller1 | internal | enabled | up | 2021-11-30T03:03:42.000000 |9 x9 O X5 H' _. R7 i
| 9 | nova-scheduler | controller3 | internal | enabled | up | 2021-11-30T03:03:34.000000 |" h; p2 c6 |$ Y* f [
| 39 | nova-conductor | controller2 | internal | enabled | up | 2021-11-30T03:03:44.000000 |8 R6 t! o: x* n1 l
| 57 | nova-conductor | controller3 | internal | enabled | up | 2021-11-30T03:03:44.000000 |
# Z3 @9 u( t, Z" \/ u| 66 | nova-conductor | controller1 | internal | enabled | up | 2021-11-30T03:03:37.000000 |. q2 h0 W5 m7 G8 v
| 69 | nova-consoleauth | controller2 | internal | enabled | up | 2021-11-30T03:03:43.000000 |
, L# B2 W. @! h8 k, r4 g8 S| 72 | nova-consoleauth | controller1 | internal | enabled | up | 2021-11-30T03:03:39.000000 |
5 D% B( i2 w y4 K0 E- I% t( s7 Q| 75 | nova-consoleauth | controller3 | internal | enabled | up | 2021-11-30T03:03:39.000000 |
/ _. K( [& ^- m' p! j% t5 s| 78 | nova-compute | compute01 | Hygon-5185 | enabled | up | 2021-11-30T03:03:43.000000 |
0 d) V; a+ j# T; @* j| 81 | nova-compute | compute02 | Hygon-5185 | enabled | up | 2021-11-30T03:03:39.000000 |- H# L) U8 S' ~6 `2 ^, o& w
| 84 | nova-compute | compute03 | Hygon-5185 | enabled | up | 2021-11-30T03:03:35.000000 |
9 k: r; h+ [) m" h8 H| 87 | nova-compute | compute06 | Hygon-7155 | enabled | up | 2021-11-30T03:03:44.000000 |
. L, |( c8 P2 G1 n' G2 B5 || 90 | nova-compute | compute04 | Hygon-7155 | enabled | up | 2021-11-30T03:03:40.000000 |5 `+ d, I% b+ ~" `3 {* i
| 93 | nova-compute | compute05 | Hygon-7155 | enabled | up | 2021-11-30T03:03:36.000000 |4 \# P4 f! [4 i- c
| 96 | nova-compute | compute07 | Hygon-7155 | enabled | up | 2021-11-30T03:03:38.000000 |* U' o$ n/ y7 z) f9 C: y" H
| 108 | nova-compute | compute08 | Intel-8260M | enabled | up | 2021-11-30T03:03:42.000000 |, K) i x& p5 Q& ]* P9 M7 v' i
| 120 | nova-compute | compute10 | Hygon-5185 | enabled | up | 2021-11-30T03:03:40.000000 |
. y7 A) E" E v! z' ~| 123 | nova-compute | compute11 | Hygon-5185 | enabled | up | 2021-11-30T03:03:36.000000 |
0 A- y: z& f9 v* q+-----+------------------+-------------+-------------+---------+-------+----------------------------+; L' g. e3 V# x: n1 @; x
|
|