|
|
[root@controller ml2]# nova service-list
2 d; q( v$ P" X2 g0 o# l+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
, F5 B8 Z1 |# c) H) @| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
- S+ T) z4 p* @9 a+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
. s1 C% J- ?! R+ ^0 o8 r| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:24:19.000000 | - | False |
. V0 c, a6 @$ h& U# Q| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:24:25.000000 | - | False |
0 A( ?$ S9 L; E% T7 m| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | nova-compute | compute02 | nova | enabled | down | 2021-09-04T10:24:16.000000 | - | False |
+ ]5 a5 y/ Y/ c% E( d1 k% D. `# c| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:24:22.000000 | - | False |
! o+ u6 _5 w; y/ X8 Z" [| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:24:23.000000 | - | False |
1 ~7 {& h" | F2 ^0 X9 T6 V+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
: g) e% m+ g% D. J! n- F' Y' F- p& |" m; l0 X' P. Z! y& m0 Y
将down的节点disable掉:* O7 n8 E5 R& G1 J7 S% f
1 P5 K( i; b$ F- C% _
[root@controller ml2]# nova service-disable beac6eb2-7daa-48ff-93d0-8c6833ffeee9
( ^/ l2 q( D& N- `! X9 u+--------------------------------------+-----------+--------------+----------+. h6 O W, T% s' H$ @1 F# [
| ID | Host | Binary | Status |
{0 x- e9 y, X! G1 s4 R+ S: f2 j/ [9 n+--------------------------------------+-----------+--------------+----------+$ h3 ] m7 Q2 ^. D8 [/ {
| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | compute02 | nova-compute | disabled |: k- n& T8 T; H6 M; u8 a5 U
+--------------------------------------+-----------+--------------+----------++ y4 @! o( k# s
# Z z9 i" B1 _: m! b; n+ { B Z) n6 R
删除已经disable并且down掉的节点:
- \4 ]2 S" E% }5 {+ O1 P3 q
" y4 j7 s! }& l[root@controller ml2]# nova service-delete beac6eb2-7daa-48ff-93d0-8c6833ffeee9
) n/ f; x. e1 Q k( \5 L2 T0 }/ W) r) Y a; O
查看down掉的节点已经被删除:0 U6 x8 H3 D3 [' o
[root@controller ml2]# nova service-list
5 _; x1 f; _7 A$ X/ V4 u+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
5 I T, {; D4 _& k8 `6 x" P6 `| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
6 C+ n9 c/ D' S4 v+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
8 D, [ n' v' C# I( E! R| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:25:29.000000 | - | False |
1 _* L7 V/ Q5 c3 d& K| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:25:25.000000 | - | False |
: g3 ?; G P' X2 l| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |5 j; M* s- E6 n/ j
| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |9 e/ {3 R6 B) u
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+! o: b! T1 B( ?2 j, S
[root@controller ml2]# 2 e: l$ a+ |. T' F* F' ?$ r I( C
|
|