将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

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

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

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

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

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

x
[root@controller1 ~]# openstack compute service list - x: T5 Q/ N% {1 g
+-----+------------------+-------------+-------------+---------+-------+----------------------------+  q8 m! U. l8 Y
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |2 B- @" Q$ }/ H5 q& u
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
" R4 e8 F: Q+ v5 F( n3 |9 \
+ @: p8 h! m( o) K* ]# l8 h| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |
# C; d$ Q: r: j9 K0 `+ Q
8 X8 ~* u  n3 @8 n# W1 }% ~7 _, w0 u$ ?4 q% b
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
; F! X' d. t, q8 b/ j7 N) G" s' [' j
. ^" t) @: g2 J. `
设置节点enable状态:% P; O: [" z7 b/ i2 e5 h# E8 U. z& Y+ ^
[root@controller1 ~]# openstack compute service set --enable compute09 nova-compute * O) O) ^; `' S
1 I1 I! J7 h7 x. u- ~+ v* V  r
[root@controller1 ~]# openstack compute service list # D' B: i) V0 t' [/ b' U" W1 U0 |
+-----+------------------+-------------+-------------+---------+-------+----------------------------+# f8 l( [- O( D
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
% o  V) W1 d  D+-----+------------------+-------------+-------------+---------+-------+----------------------------+
3 A2 o! m5 x6 |' g& j5 Q8 s' @4 a' S9 Y$ R+ a
| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |! h. m/ c! y4 P5 p: v! P6 C+ I/ J
5 c; M" [; d. t3 R

( H1 N! c% O+ @+-----+------------------+-------------+-------------+---------+-------+----------------------------+
6 l0 \: }6 ]9 L4 l. `7 X9 [0 G- W7 u! A3 F+ a* D7 D  q/ R
 楼主| 发表于 前天 12:17 | 显示全部楼层
openstack 设置service disable状态:! T: Z! V/ }* V+ L' d# @# H/ @
[root@controller1 ~]# openstack compute service set --disable compute09 nova-compute * w% m' f: p9 h! S, E* V

8 f) K" I4 l2 N/ @0 M删除service
% a+ _5 h  y3 ^% n) g& I& b8 k
9 `8 L; K. {( C1 P" f9 ^* R8 \[root@controller1 ~]# openstack compute service list / E2 L2 T# k2 [
+-----+------------------+-------------+-------------+----------+-------+----------------------------+- Q# D/ O1 O, W$ U' Q
|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |
% b/ w! g; E8 i5 A* l+-----+------------------+-------------+-------------+----------+-------+----------------------------+% h, a3 q, o7 s
|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
$ o1 H% k) V( \# ^5 v1 n' [* @# d- {|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |6 [: T8 D0 T* |7 P
|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |0 k" R8 w. }. O
|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |3 L% B- V5 J& }- F3 ~! C% n" |
|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
$ `1 @! A& g) e9 u# Q' Z5 r|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
4 U- a- u3 Q2 A1 L- j|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
5 f, D8 C, r. A4 @) M|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |5 Q, D- ]: E: G* q% ?' G+ C- w
|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |4 V6 m$ P1 D  f2 f, v. W3 v
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |  S4 m7 ^. d' d' h
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |
/ v5 ~! Q; D/ Y1 T2 p|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |
) e" s0 V- ~6 H% f|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |
( H8 I( L: N  l; J$ U8 B9 L( h# Q|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |
' f6 Z- b+ K; T5 w5 B- _|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |
2 A7 O' t! S, _# m|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |) n+ N  {* Y4 N4 u/ ?% j$ [8 m. V
| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |
' G+ z* Q) }, k8 U| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |' ~$ w, T3 y5 L" X
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
+ j3 U2 J' ]4 G4 ]1 s0 ?3 n| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |
% a% n( ?: G$ a& b% S+-----+------------------+-------------+-------------+----------+-------+----------------------------+5 _# g# ^: N: P9 E
[root@controller1 ~]# openstack compute service delete 114   b7 E6 d: Q3 [: |% H& ]7 i& d, j
[root@controller1 ~]# openstack compute service list ' J: m1 v0 ~  C7 \7 ]% a
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
! ^9 l" M& v4 v2 @% \* d|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |/ v6 `6 e& S1 s1 f3 N
+-----+------------------+-------------+-------------+---------+-------+----------------------------+4 P' ?6 T# r, b1 g. V/ D
|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
* w! n5 [2 e) t& P/ \|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |( t9 l( e/ w# H6 {$ S/ v- o: U
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |
9 U& n/ B" Q, F- }|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |, K* v. a! l4 Y' |
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |# {2 ~" j, r( F) L) L- [
|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |5 V: ?8 h( u+ m" t! n
|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |: u9 @. O5 L9 R# }7 K! f! r
|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
. _& Z/ s) K) O|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |% o! b0 I- N7 Z" Q
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |; n. [) U% z1 }( r
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |8 m' c! w5 ?/ e) P/ R9 S
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |
7 N/ s  C  l% Z; [' E1 I% i|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
. T! p* K1 Y+ T1 x6 {* Q|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |6 n, j4 u+ b. A! \6 |* o
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |! P' Z+ {& N9 U/ v- h. G7 ]
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |4 Q' a* y9 u9 H3 Z, Z; }
| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |
1 d3 n0 V/ ]' \. F4 e| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |
+ s8 E' A3 D: L4 E1 L5 V| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |
5 t2 g8 O( ?1 c# N5 ~+-----+------------------+-------------+-------------+---------+-------+----------------------------+
  D' |1 m, O% u! k5 Y, m# l# H
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-12-2 08:21 , Processed in 0.041927 second(s), 22 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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