易陆发现互联网技术论坛

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

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

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

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

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

x
[root@controller1 ~]# openstack compute service list 1 J& l' P5 _% s6 s- F
+-----+------------------+-------------+-------------+---------+-------+----------------------------+! S, o5 w2 n& I+ e0 J
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
6 L2 [% k: [$ x: H5 F+-----+------------------+-------------+-------------+---------+-------+----------------------------+0 \! R. U9 o& [4 b& _" Q# t! E
5 R+ l) T2 m. V. {
| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |
( f/ ?! s: t8 R; A: V/ A" `3 S! X7 ~4 k8 K0 G% V6 V

1 N; ^1 V7 _/ E4 ^" D+-----+------------------+-------------+-------------+---------+-------+----------------------------+
! [1 ?4 y: d& q. h& s; m' N# S8 h, ]& B9 y5 _5 W% Y
7 h  e! M" n8 b* n
设置节点enable状态:
2 ?/ c8 I9 {$ v/ B1 w[root@controller1 ~]# openstack compute service set --enable compute09 nova-compute
3 }4 c! I$ J& ]& A& F' f0 y! N1 z! r; s. u8 I1 i# U, \" g
[root@controller1 ~]# openstack compute service list + A0 u# s$ I; H$ h
+-----+------------------+-------------+-------------+---------+-------+----------------------------+7 ?5 ]- C) B2 h. W
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |1 E! f* ?$ Y; Q6 J0 m  n
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
/ x/ S2 X! ?" h" }6 p3 d/ W  i- Z8 e1 c: ~7 n! t# j2 f
| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |- x! G+ K/ y" D) D# \( G- K

! }% I0 [) J! G- {8 V# p; m2 l) F$ D0 s0 e7 L7 c: l
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
' |$ d3 X8 i/ _3 I. M# D! H( @- b/ n* }; W* S9 v( t& {3 I+ \
 楼主| 发表于 2021-11-30 12:17:51 | 显示全部楼层
openstack 设置service disable状态:
/ z0 L3 |% L/ m" P* Z( o[root@controller1 ~]# openstack compute service set --disable compute09 nova-compute 3 I- q/ ]# S5 G( A+ H# N# V* m
; R" s. R+ X0 j: S: R8 z
删除service1 n; @# O, D( k) ], o  R. p

+ n: i: I  B5 \/ z6 y' L! p$ W/ m$ ~# Z[root@controller1 ~]# openstack compute service list , A4 K' @* Z/ V7 b8 j; G
+-----+------------------+-------------+-------------+----------+-------+----------------------------+$ O1 b4 ~, t4 W" J! C$ V
|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |
/ {3 ?( Y; z& \+-----+------------------+-------------+-------------+----------+-------+----------------------------+
3 a# \4 H( l* o: R# }|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
4 i9 ~" {/ q! U, v/ |* N|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |
; Y% Z0 ^. T4 @! d" J|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |/ H5 T/ Q/ `2 O
|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
% t8 g5 y& k) `9 C+ r|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
! G2 o3 Z6 G0 q- ^4 V' F, Z|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
/ O6 w) u- v2 |3 }" ~4 k, t; C1 Z0 N|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |  R  R7 C, y3 e% ~, z
|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |5 V8 Y* T  m- j) A3 M/ v2 C
|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |, N% \& t1 N0 c$ N. ~# K
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |
; W1 g. U+ s9 P9 Q- @' t3 g# O9 R|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |
8 C2 V$ Z+ V( O|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |# E. X9 k# q% s
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |
8 }# T( e- k. j" X9 J! O|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |0 l$ P, g: H7 t
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |
8 l; w6 s# R( h1 q9 F+ g+ b( V|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
( c, }$ J: U( A" m) `( K| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |1 h$ x* x5 J5 f
| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |
7 }  j' k, A1 u; g  j| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
! H) v- D* l6 W. s| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |
0 J2 q7 z; Y$ ^9 Z& G+-----+------------------+-------------+-------------+----------+-------+----------------------------+$ m# R7 \& Z1 `* U
[root@controller1 ~]# openstack compute service delete 114
1 f- M: i# n/ L[root@controller1 ~]# openstack compute service list
% V+ G1 I" k' e+-----+------------------+-------------+-------------+---------+-------+----------------------------+
$ S" u; R% _# @|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
( c" U' G/ N8 V  u0 @* }; E+-----+------------------+-------------+-------------+---------+-------+----------------------------+9 f+ y  h# A# {
|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
: s0 f& |( O& [( y  [3 ^1 [|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |6 F, [# i0 ]$ B- b4 c
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |# l0 g: @2 Y, O+ m; P: p2 T7 H7 M
|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |( q2 u, E/ C6 J1 b3 A8 ]
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |4 L& _* v: [" q; l. v2 z
|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |
+ S" e9 c5 s# l* H4 p|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
5 T. u  \7 x- e# q, R|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
# X0 O' E. W6 f/ X|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
3 [- a0 y' T. Z3 H5 W0 R|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |" Z7 c8 `% J5 g' L/ m6 J3 B
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |
9 `, }& p# t0 C0 H, i  _|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |) ~# E: N# v5 r7 Y4 p# S
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
/ X$ n& H4 ^6 S& T0 z1 j|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |
2 Q/ @# z. x9 V|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |% x) W7 r4 q! j+ L0 \, _, }1 R
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |
) Q  P% h& M! G7 e: q- J3 T| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |& S! }! F2 \' S$ @, P
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |
! L5 H+ [# }( n) P| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |
) M& _: T( L- Q+-----+------------------+-------------+-------------+---------+-------+----------------------------+
* D6 c! ]- V  b. _) z) S( o
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 15:22 , Processed in 0.038993 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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