|
|
[root@controller ml2]# nova service-list
0 C9 X" e# T/ g" A+ G9 I; }, p7 R+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
$ V, ]+ d% k4 F0 Y| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |: ~6 O0 I8 q4 ~4 _1 g
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
, A! L3 k# p) w| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:24:19.000000 | - | False |
7 I. A5 W! _/ {7 W; S| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:24:25.000000 | - | False |8 p# ~! ^, S2 y3 e) D' K( V
| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | nova-compute | compute02 | nova | enabled | down | 2021-09-04T10:24:16.000000 | - | False |5 x9 g: H }2 N7 K
| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:24:22.000000 | - | False |0 E7 d- |( B- W9 v, T" ]
| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:24:23.000000 | - | False |7 ]: P: a- _8 s6 _% o" N
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
/ V/ ?0 v7 {' Y4 A, }
3 P' z0 P4 ^5 V: e8 r+ O1 p7 a将down的节点disable掉:
4 O9 D1 @; k: g
# i" A! w4 S8 u( R, Y[root@controller ml2]# nova service-disable beac6eb2-7daa-48ff-93d0-8c6833ffeee9
$ _6 _8 y0 x) S1 s. \# f5 E [$ M2 f+--------------------------------------+-----------+--------------+----------+
% r. {& F, l- l$ ]$ u) a4 o# y' X& o| ID | Host | Binary | Status |, z- y1 L# }# S4 b5 j* p8 `( \
+--------------------------------------+-----------+--------------+----------+9 ]2 a y! z0 d: _ {
| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | compute02 | nova-compute | disabled |
9 _( D; K$ {0 q0 i+--------------------------------------+-----------+--------------+----------+; ^3 b4 O E8 u1 e* d2 ~
, A. ^/ B# `- ~% {5 e m' ]- H& c& q+ A
删除已经disable并且down掉的节点:7 k+ ~5 w: `" X6 ]9 h4 u
; m( P+ m5 k/ \( _1 U
[root@controller ml2]# nova service-delete beac6eb2-7daa-48ff-93d0-8c6833ffeee9- E- T$ g6 E9 ~1 y* S) z& p
/ Z# A% O% t( O3 C) n: u
查看down掉的节点已经被删除:
0 L4 F( v& s. t. n& P: U& f& s[root@controller ml2]# nova service-list 0 A) } `9 [- C; ]- o
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+5 t* g5 C, t* ^# Y7 m2 G
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |. @3 J- b2 t( ^( q2 p a. g: G
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
( y9 ?; r# r" o6 j* M W2 F| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up | 2021-09-04T10:25:29.000000 | - | False |
! p' q& L- X9 r( o) z% N% l& f$ k| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up | 2021-09-04T10:25:25.000000 | - | False | H- |# X; c( h$ ]% \. E% o' B
| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute | controller | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |
' J5 W8 h9 w0 c: p: x| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute | compute01 | nova | enabled | up | 2021-09-04T10:25:23.000000 | - | False |
* a; y a, \ H: S, m- N2 \) Z+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
- V5 \2 U: m8 _1 h( \: W. q: Z; Y[root@controller ml2]# ! f' P; k# L. @5 `4 W, R
|
|