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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-9-5 06:00:13 | 显示全部楼层 |阅读模式
[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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:28 , Processed in 0.017254 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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