易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1698|回复: 1
收起左侧

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

[复制链接]
发表于 2021-10-20 20:57:55 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
[root@controller1 ~]# openstack compute service list   _1 h' @# U0 d+ i
+-----+------------------+-------------+-------------+---------+-------+----------------------------+4 R& v" D5 e( z; ^4 S
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |! i! r6 _0 w5 o, d; K
+-----+------------------+-------------+-------------+---------+-------+----------------------------+- k! k# j. f) r/ Z) T' S

6 q* I3 H" @; c0 q" g4 t! T| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |8 f: d: y* S6 s( ]8 v: v
; }& F$ Y) `8 K$ f/ u

2 m0 j1 K; e, n. F& s% ~2 W+-----+------------------+-------------+-------------+---------+-------+----------------------------+
* t! m; r% X- z9 E- Z* J# m9 N1 N/ G. [* i/ h0 W( o  n
8 C4 l# ^8 u9 x& p; l
设置节点enable状态:- q0 t, Q. p; f( g2 u8 |  w4 Q
[root@controller1 ~]# openstack compute service set --enable compute09 nova-compute
5 B# X6 |8 V/ q  J, b
' ]: B6 t- z4 m) s( ~5 s! j* f3 k[root@controller1 ~]# openstack compute service list
: {( L: h* B7 `( \4 C2 h+-----+------------------+-------------+-------------+---------+-------+----------------------------+# _% d6 b0 r# ^* z0 K- l( n8 S
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |4 U# B) n! L8 m3 i3 p+ f
+-----+------------------+-------------+-------------+---------+-------+----------------------------+9 h7 _. C* z3 l6 Z& |7 _
3 C: ?5 k  Q6 Q5 J% v6 ?
| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |7 C" \8 G& V4 _  F
% j) U0 a5 \+ I

+ \% H: b- v0 E+-----+------------------+-------------+-------------+---------+-------+----------------------------+
# X  ^1 ?& O9 V
% w# \" r  h0 t% v7 ?% J
 楼主| 发表于 2021-11-30 12:17:51 | 显示全部楼层
openstack 设置service disable状态:
- d/ l6 H$ `" ?1 Q& e/ s! D+ H[root@controller1 ~]# openstack compute service set --disable compute09 nova-compute ( _! l6 {: Q% h1 y2 H4 O
: D. |3 X; }" A2 u" P
删除service* o5 z4 o9 k9 s- Z0 S
2 Y6 v1 ?' b7 T! \& o; \2 N
[root@controller1 ~]# openstack compute service list # @! B* `+ r6 V1 F8 o* u1 f
+-----+------------------+-------------+-------------+----------+-------+----------------------------+0 D1 Q# |9 i/ n/ ?
|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |* d& B( x/ K% Y' a) N) |2 H9 T
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
2 E$ s2 X1 R5 g1 o( Q|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
) l8 w# [, J! _0 ~4 Z+ u|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |* q. Z. V' B$ K, p
|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |. @4 u, |8 Z: _# W( {7 ]
|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
- V5 F: y& _- T|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |' |; s0 @& d( [1 v+ _" W0 e6 M4 t
|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
) m, h4 m# A' e, i7 v0 C|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
5 I" q4 ^3 J2 ]' M8 Z( K( s& b|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
7 j( o2 I- h: R/ K( q. w3 a|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |. P. a& h' {! Q6 X+ E3 V4 N
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |
* E0 {9 U- v4 `, V8 C9 F" O9 A& A|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |! [' {! z8 E  t1 w# P, ^! y
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |
5 I8 U+ R, [2 r4 |! X# Q|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |
- Y' F% Q/ {* H) J' E|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |
1 [9 k, P+ r  A- P|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |+ ^  j; k, v6 G/ O. w2 h/ m/ e: A! e* `
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
8 v7 Z9 R. D+ B# s, B7 Z* e| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |( |1 a7 `) @: f2 Y: a! ~
| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |
; c) W* M  N  s| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
6 a$ U6 [( t" e- @5 a( r| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |" p+ I+ J# ^" S" n3 X
+-----+------------------+-------------+-------------+----------+-------+----------------------------+- N' ?' \$ R6 L. g
[root@controller1 ~]# openstack compute service delete 114
% W$ {/ e3 g5 D; K5 ?[root@controller1 ~]# openstack compute service list
) i# u: a- ~( z* Z+-----+------------------+-------------+-------------+---------+-------+----------------------------+9 _. F2 }4 L& Y4 b3 g; z
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |$ _8 `9 L! [4 ~3 U7 F7 y
+-----+------------------+-------------+-------------+---------+-------+----------------------------+& Y& g) n: y+ W0 R
|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
/ O8 _& A# p. C! V) J! M|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |+ H5 N9 s2 @% b5 j
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |
# |- Y. |+ a- O" f1 {$ q|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |
( @9 I5 Y* m# B8 T2 E6 {|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |+ h6 F1 Y7 P: ^+ Q# ^
|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |
% C+ W  U3 E; D5 S8 D& y7 h|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
" d4 v! y; H; m# K|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
2 m  z% J" L; T+ C; |, \# a|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
' F& a* {6 x1 f9 q" Z, f( a|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |' x; D& e, H" v$ c. ?  G- B, h  Z
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |, D* b3 ]$ x2 _, x/ [
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |
8 z& t, m0 v% }: b|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
/ {8 w9 J  P6 p7 K' m* C|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |- G8 ^+ v1 {1 i9 X& h6 f1 s
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |
3 C% h" W" @6 d" G. N7 t|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |6 D) z7 o& [8 Z1 h+ ^5 F$ n
| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |/ b" O/ W4 s  @7 s: b4 |) Y
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |# T; [' R& d4 [9 a% V1 l  S
| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |
$ I6 ^  O% @4 b+-----+------------------+-------------+-------------+---------+-------+----------------------------+
* v+ B6 @% C8 \( s' H
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 17:19 , Processed in 0.040165 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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