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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-10-20 20:57:55 | 显示全部楼层 |阅读模式
[root@controller1 ~]# openstack compute service list
: C) _" Q' Z% Y0 k( ~+-----+------------------+-------------+-------------+---------+-------+----------------------------+( G8 E+ W( l! s2 P/ ^
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
% k1 Q3 [8 B7 a6 p4 J, y6 d+-----+------------------+-------------+-------------+---------+-------+----------------------------+* E+ k- s' }9 ]8 J: i
; T+ ?# {: j7 R+ G- q
| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |  P1 o0 V5 _9 K1 l# b
2 r0 ]% R; n8 {; y" ]: l
* \& D$ Q5 c& O: O* p. g$ S3 Q( v' }
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
# X" n/ s& r6 s( a5 B) A# d1 j4 m* H( D; z2 C
  H, S; m% M- t. Q* u
设置节点enable状态:
+ x+ O4 h3 V5 m2 x/ f5 c  @[root@controller1 ~]# openstack compute service set --enable compute09 nova-compute
+ }6 P2 [+ h2 F! W4 v$ G: j" ~8 b" t6 p; z2 p& B  ]# X0 U1 b: g3 ?
[root@controller1 ~]# openstack compute service list
2 W; w& ]" s. H+-----+------------------+-------------+-------------+---------+-------+----------------------------+
) p* v6 u. J3 K- i7 n. C9 H|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
$ U" F- l& n% f0 m* \; i+-----+------------------+-------------+-------------+---------+-------+----------------------------+
, c$ C" t. @+ J% n1 }, M0 e$ ]$ r: n
" f, _" o) Y9 B7 |0 h; Z1 [7 L* i| 114 | nova-compute     | compute09   | Intel-8260M | enabled | down  | 2021-10-20T12:54:29.000000 |0 G2 H0 e5 `4 k" W% l
) B: ~: |. x- w. _8 I! i9 @( _4 M
  e, J- H. r" m# Q- _3 j( |9 a* ?9 I
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
1 s, e- @6 _9 f7 [. g9 ]
6 u( C0 x" k" h( w5 s

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-11-30 12:17:51 | 显示全部楼层
openstack 设置service disable状态:8 O( c% @7 v% z6 V5 q7 b
[root@controller1 ~]# openstack compute service set --disable compute09 nova-compute - D7 a( d, @& |) v* W' ]9 D/ N; ~
" f4 p( [. P- w5 D
删除service
/ y' [# k. g% f, B* l7 i2 u6 m- D9 h
[root@controller1 ~]# openstack compute service list 6 |/ `2 l" I+ q+ W+ @; j9 g
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
# X3 z) j! ?) k2 u  [. ^: o* {. @|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |) k4 Z+ t( d# M
+-----+------------------+-------------+-------------+----------+-------+----------------------------+2 V  ?( j9 e/ g9 W" Y6 G
|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |: ?' }  S/ G: V! H: t2 g; F3 {
|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |- z7 u" L/ ]! O; Z& @
|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |
& ?* C2 J+ w3 Y2 `9 ^3 j# d|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
+ Y* V- \$ l8 l6 L|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |$ T$ ^% {! _& V
|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
2 Z5 h6 q  B/ h) X  q|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
- M6 i0 @0 p- u4 X" D2 u- b( |1 `|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
6 p- `5 S3 F/ u+ w* \- H|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |# @/ Q; k; m6 b- R( l
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |
0 z/ w, N9 a: |% X0 F|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |
5 L+ v4 a* ^# @8 X|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |% q9 }7 i- y1 l1 }& d! u
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |
3 _/ M( P  K7 j|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |& ]. O" F0 B3 `# w
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |1 l4 M& e# G8 I# k3 m( y4 S
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |8 S0 w+ P* u5 {& `
| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |
8 y3 _& Q1 q; j' H, U+ a| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |7 x2 L7 G# H+ z+ N' f! j
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
& V( V3 [  g  b; u) y( o6 c3 U1 k| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |
9 `" h1 `/ Z5 M8 b+-----+------------------+-------------+-------------+----------+-------+----------------------------+
( u& t* f8 I/ ^[root@controller1 ~]# openstack compute service delete 114
- M) G0 Y2 J5 [2 G& t; ~3 T8 z[root@controller1 ~]# openstack compute service list
! F$ `. v2 H' K+ Z+-----+------------------+-------------+-------------+---------+-------+----------------------------+  [, b. \9 g4 S& e
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
' h; O& v. O% E. t3 x# T) E; L+-----+------------------+-------------+-------------+---------+-------+----------------------------+) B7 C' q$ r3 ~, r/ z
|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |# G: s: m5 b/ m7 H
|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |
" {7 e0 C% V1 G' L3 p|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |
6 n; r+ I& O* @2 V9 z# e) ]# F|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |8 k1 f7 C2 {& S' g
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |7 ?* p5 D' ~3 y, i1 ?% d8 U- X- J
|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |! o3 x: {+ a. o; H
|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
/ U; B. h' Y$ q& ], Z, ^. B: g|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |$ ^9 ~* i" M# e9 {  \
|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |! f7 L$ V5 I: b# }+ s3 {# j3 g
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |. m$ u6 d% V0 u; N/ V9 H1 y
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |
/ R# b( h" n8 Q5 E( r+ O4 Z5 R|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |/ G  T6 C1 H1 L( u/ b" C# ^2 i2 [
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
2 P- n. s2 x7 G& [0 d|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |: ~" _: b- X8 W) h3 n! v( v4 r  \
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |
- T" O' a) k4 k8 p" [7 ]' |9 ]|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |: T% G" n8 T2 W& o* M
| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |
2 w& t9 H- x; Z! H1 @( _/ k| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |9 F, Q; u# Y8 B( e/ [4 S1 U( B. f0 y
| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |* t. h* c  `6 ]% x  Y" f5 F, r' V5 ?
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
; x$ _4 r7 d1 e- z
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:22 , Processed in 0.020770 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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