找回密码
 注册
查看: 1693|回复: 1

openstack计算节点enable状态设置 compute service set --enable命令使用

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-10-20 20:57:55 | 显示全部楼层 |阅读模式
[root@controller1 ~]# openstack compute service list ( Y  t0 Z5 q% F" J9 ^1 p' O
+-----+------------------+-------------+-------------+---------+-------+----------------------------+6 ^& m  X5 {/ n7 U
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |( k' g$ h/ C; k! [3 }2 `
+-----+------------------+-------------+-------------+---------+-------+----------------------------+4 J  d: ]4 }. e! m
$ L0 d. W0 j6 E7 Q7 F4 f
| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |; \* o/ W" }: C

* l, ~4 k1 K' b1 t; q7 s  S* _4 f8 A& N2 ~9 e7 ]( }7 u$ @9 R
+-----+------------------+-------------+-------------+---------+-------+----------------------------+  c9 P# e. X$ \2 f/ Z
* P) E- t. V$ @- l; G/ [& J
3 B  J* {3 F: ~1 y, @, @0 K$ Z  T" a
设置节点enable状态:
, |. H) o, I4 F- B[root@controller1 ~]# openstack compute service set --enable compute09 nova-compute
9 U$ x2 @. \3 m  ]
5 E. ?) \# X8 Z$ [6 l# r[root@controller1 ~]# openstack compute service list
& n6 z7 n9 b: l9 J+-----+------------------+-------------+-------------+---------+-------+----------------------------+
4 {. j$ ^: T( \8 q) y9 F$ O|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |- [" g: j& \0 F' Z, P* d" {1 J
+-----+------------------+-------------+-------------+---------+-------+----------------------------+- C  V5 v6 h: L9 ?

, m+ Q7 `0 |( x* b# t+ a) y8 {( q| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |
- Q# i, K$ \# J0 [5 p
; ^) J$ e: @2 P, N+ D+ i! R0 F0 w* i+ |3 B
+-----+------------------+-------------+-------------+---------+-------+----------------------------+% l2 ]7 E' N) d- c1 \/ p0 m" [, }+ S

9 I: y9 {2 O3 O: o1 q) ^

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:05 , Processed in 0.016291 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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