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

nova service-list 删除已经down掉的节点步骤(openstack)

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-9-5 06:00:13 | 显示全部楼层 |阅读模式
[root@controller ml2]# nova service-list
/ T. @9 A- m" s8 I" l+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
( H1 j* w; x4 @2 s8 e3 L8 M  B| Id                                   | Binary         | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |0 j& U) |8 Y9 `" G
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+0 d' P5 v) C4 g1 k9 k. B
| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up    | 2021-09-04T10:24:19.000000 | -               | False       |; u2 ~7 f* D& i% P- a
| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up    | 2021-09-04T10:24:25.000000 | -               | False       |2 i8 y. T  T3 e
| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | nova-compute   | compute02  | nova     | enabled | down  | 2021-09-04T10:24:16.000000 | -               | False       |8 ]$ v2 m" c: o8 X/ ^! s, N
| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute   | controller | nova     | enabled | up    | 2021-09-04T10:24:22.000000 | -               | False       |
# w! V* u: K. j| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute   | compute01  | nova     | enabled | up    | 2021-09-04T10:24:23.000000 | -               | False       |
% e6 a* F! C5 I) A* g+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------++ G9 _, s  y) O# y' t
# S, A/ K" s# y+ c, q" ^, P
将down的节点disable掉:
: i- x! Y% Y6 ?2 a: L) a! O' L& b* N- ]: f! S+ G* l" x& B
[root@controller ml2]# nova service-disable beac6eb2-7daa-48ff-93d0-8c6833ffeee9 ! Z3 n- {, i3 m1 M- _, f; _! L
+--------------------------------------+-----------+--------------+----------+
! I2 v# H( @0 _1 F/ I| ID                                   | Host      | Binary       | Status   |
$ j; R& n5 N" j3 ?0 j+--------------------------------------+-----------+--------------+----------+% o4 O! y8 _1 B" ^- p( o
| beac6eb2-7daa-48ff-93d0-8c6833ffeee9 | compute02 | nova-compute | disabled |7 x  B! e( N# z
+--------------------------------------+-----------+--------------+----------+3 `7 T: ?) H: B) W
# G7 Z3 h- l. B1 d

. @+ z) p( G( f" J& q  s- g; u) a删除已经disable并且down掉的节点:
  C5 ]: U7 w% N3 V9 d- \9 q" S3 D% t! K& Z: l4 H0 o5 Y  y
[root@controller ml2]# nova service-delete beac6eb2-7daa-48ff-93d0-8c6833ffeee9
6 X" K0 y/ P' Z8 N8 \6 E. v  Z4 @* u6 k2 x$ c! P
查看down掉的节点已经被删除:- `0 G1 {' }2 V4 y
[root@controller ml2]# nova service-list
: J, ?; V# w2 I  n) _* @+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
1 v' M/ c* ?+ h  k. E# M| Id                                   | Binary         | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |# j  _& i- F- g  G; b: c) y' \$ o# U
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+' i' D3 L! g9 p% Q1 i
| caf89609-312a-4da4-a129-158e21425f90 | nova-conductor | controller | internal | enabled | up    | 2021-09-04T10:25:29.000000 | -               | False       |
/ A' q) D: P% \- Q| 3fcae464-9272-4464-810b-8efac4a605d7 | nova-scheduler | controller | internal | enabled | up    | 2021-09-04T10:25:25.000000 | -               | False       |0 J! g7 O# g9 t6 U4 g1 y9 S% ^0 m; G
| be0d1bdf-18d7-4da8-b11a-b107afbf3b11 | nova-compute   | controller | nova     | enabled | up    | 2021-09-04T10:25:23.000000 | -               | False       |
, e+ s2 m1 ]5 b| 3339af1c-f1f0-4679-ae2e-5e883c090a2d | nova-compute   | compute01  | nova     | enabled | up    | 2021-09-04T10:25:23.000000 | -               | False       |
; c- U- Z  m: t8 e# [+ O6 \' ]+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
  C1 J. L! h" V$ i! ]/ k[root@controller ml2]# - l7 M& |6 \7 L. l: i
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:19 , Processed in 0.024040 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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