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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-10-20 20:57:55 | 显示全部楼层 |阅读模式
[root@controller1 ~]# openstack compute service list 8 |( O/ d6 D4 O9 t
+-----+------------------+-------------+-------------+---------+-------+----------------------------+* ?  _' d0 m. {* ^# ^1 L: q$ P
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |, c6 h) s1 S. O6 o+ ?
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
. Y! H% Z. R" g8 M( F* o/ F4 \& S' ]% P* {; n! a. ?: u
| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |: _5 G/ n; V* A, @  m/ o0 t. Q3 O4 E

0 B( _) G; l$ V5 i- H8 G, \
6 }0 y& L3 w. f* A6 c+-----+------------------+-------------+-------------+---------+-------+----------------------------+) ]. }. a3 A6 _! o* |' L
" Q, r$ Z7 j( C9 Q% I
/ m0 u6 K* K" O  _" A
设置节点enable状态:& ~- X+ G) |" o  M  _4 E. m/ I
[root@controller1 ~]# openstack compute service set --enable compute09 nova-compute
+ Q$ O" d8 L' U1 n( m. j/ u5 S7 C3 E$ g
[root@controller1 ~]# openstack compute service list : m) s0 l' B8 |( u5 u% F/ Q
+-----+------------------+-------------+-------------+---------+-------+----------------------------+& n7 S! x+ {+ F! }: t$ i6 j, f
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
& @& R' H0 q& A+ ?. |1 Y+-----+------------------+-------------+-------------+---------+-------+----------------------------+
! y# i( i& k" ~( [" s8 V% V" d' S" M
| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |
) u, {$ h1 X6 }; V% M# i9 T, X# h
' g4 x! r9 |, ]! Q) U1 F) e- c& D' B3 Z; C% o
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
  t2 w& X. I  q) u: d6 Z; e$ z$ y" r8 `" j) m1 F4 T6 w

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-11-30 12:17:51 | 显示全部楼层
openstack 设置service disable状态:  }0 ?0 ?9 p" F4 f+ c/ v
[root@controller1 ~]# openstack compute service set --disable compute09 nova-compute 9 q8 B9 {7 o' ^8 Q7 V2 a( e

3 O6 V: l( Q- j1 W+ c9 J删除service+ x" e0 ?8 A( p

) }: W+ s3 z5 V: `, L' N[root@controller1 ~]# openstack compute service list
- ]4 O* a0 ^* `3 n1 `8 P! q, |3 u+-----+------------------+-------------+-------------+----------+-------+----------------------------+
9 H: a; O  p7 S$ }7 i|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |* d1 C8 Y5 k( ]9 z% M
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
; ]- w" m9 G: U8 c7 u& K2 \% ~|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
; S9 j0 z* B) x6 d( b' e|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |6 X4 B1 r8 H3 J2 C
|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |8 t9 e2 }" N: ], m3 O: D7 h1 R
|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
( _8 n6 j9 a/ _8 u+ z|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
$ B# |1 p7 M4 `! W|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
$ H# x+ G- F- W8 \/ i4 E|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |9 S5 C0 f& Z1 f4 Y/ f+ O4 X7 Y
|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
. A. S/ ~3 I; {4 L( R|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |! m! ]0 g. Q2 D
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |# l/ Q1 X- r1 |0 E
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |
3 F, [& S. Q5 h5 I. s|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |& ?7 i& N7 s6 P' d$ H: ?
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |
% r) D9 m0 G% z0 P! U" _|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |
: h1 F* ?0 a4 S3 N& x8 v7 K|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |/ R: z' ^% w6 A! e- o- ~
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
% b4 Z" f- U" Z7 u  W. ^. K9 R| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |& w; U, ~- x3 |: }; j% o# Q
| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |2 L9 V7 t/ }- c7 F. g' C) J& s: y
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
) L8 h  G1 z: m' ^( k0 O8 W. \| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |
* L" s7 ?2 o0 W5 L/ h& {+-----+------------------+-------------+-------------+----------+-------+----------------------------+
7 A9 X7 L9 L; E  M[root@controller1 ~]# openstack compute service delete 114 * a! h$ i! Y+ i3 u' B1 Q4 h6 H
[root@controller1 ~]# openstack compute service list 0 b% E4 W: x( @( S
+-----+------------------+-------------+-------------+---------+-------+----------------------------+# s7 }* I; X; a; G: D. K
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |* d: X+ J/ c- Y
+-----+------------------+-------------+-------------+---------+-------+----------------------------+9 c: l4 f0 S! F8 R
|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
) y; a  D( R6 C* D|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |
( }+ _* g7 X) ^9 a5 M: h|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |; p# N. j0 W7 e0 O( P$ o
|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |: ]1 e4 P7 O  T. a' S6 E% Z2 S
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |
0 G4 A9 U5 o0 s! e|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |& {" o: N5 `* ?6 U5 D
|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
8 Q: g" y0 D6 y: m# L|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
6 i$ t6 [& }( z, E|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |4 j; h- K& i2 r- `/ d. Q
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |
( c% |9 A' `5 L; N& _7 j  W|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |% E2 [' T! w: H# B. O6 }! |
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |
" h& G% ~' T% O9 d5 D2 I- e' F|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |3 d6 Y7 A$ h! x3 J# e  Z
|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |, P& B: E( o( f
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |
. P+ U& j: M# p% c/ r; P0 ~|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |4 z9 M$ u7 q' V/ B* I
| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |
% g% Y. ~, L# r: W7 K0 |+ d| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |& y, \, q8 l8 Z% [. O+ [
| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |
. {5 F) A" _% k: l2 U# W' N5 g+-----+------------------+-------------+-------------+---------+-------+----------------------------+3 D$ m9 ~( l" v+ ^
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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