易陆发现互联网技术论坛

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

openstack 设置service disable状态: openstack compute service disable

[复制链接]
发表于 2024-4-16 16:48:41 | 显示全部楼层 |阅读模式

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

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

x
openstack 设置service disable状态:7 G5 x3 Z& _, a  {! i( `5 z( B
# openstack compute service set --disable compute09 nova-compute0 T; o4 M8 i7 f* E% f  C
1 [; I5 W3 `$ s' d6 s& G0 H
删除service
* ?0 F# i8 j$ `7 j1 [" y1 N" I2 O6 F0 ?8 d' Q6 L6 b, }
# openstack compute service list
% q& x% X/ C: k& \& F& a+-----+------------------+-------------+-------------+----------+-------+----------------------------+; N" j& `; t. o9 |
|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |
; d( t+ }3 h2 q9 d' d" v! g, I+-----+------------------+-------------+-------------+----------+-------+----------------------------+
$ O9 G9 L, ^9 S) L|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
0 h  ^+ M2 S4 c|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |
+ F0 Q, S( l) m1 c|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |
: w7 U! Q# H; w4 Z% l|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |! F0 V6 T# N6 H0 M- [: R
|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
, B7 d% t3 K4 \* ]$ R: z7 h|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
0 i+ [- z- l6 D3 [& }8 F|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
1 ~* N0 T  F5 e; C& P) E|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
# F( ^) V' \# E5 O) q6 w0 ~6 Z! V# H|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |9 X) A( F% P: T( d: u% A8 {
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |
0 S% m; V+ v+ R- b6 B9 R. G. A+ d|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |5 J. X$ s0 }& S: H
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |- z6 p0 R7 w9 _$ z; {% A5 J' r& R
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |
- ?$ l% G' n: U. M+ x( D|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |$ t2 }+ D2 D9 Z
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |
$ ~; n" u: @6 H, g' W2 m|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
5 l, v( V0 R- K  ~6 e0 y( L" Y# G| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |
5 c3 z( w5 ?; c( x3 h+ I4 G5 o5 t  B| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |
3 V; L7 `0 `/ }! m1 v6 p| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
. @) }5 i0 d( N+ T. x0 D- ~| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |
" F& |0 E, b2 a9 Z0 X; f2 y+-----+------------------+-------------+-------------+----------+-------+----------------------------+
+ _. m$ j) V2 ]7 r# openstack compute service delete 1145 B4 o: h: O& A, o
# openstack compute service list
( X/ t) M( [" I2 h+-----+------------------+-------------+-------------+---------+-------+----------------------------+
4 s$ X2 z7 f" t+ C|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |5 Y* l0 ], O+ W1 \/ ^* L( d- J
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
! k7 @1 b; s$ X4 w* P|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |5 D. F) D% j+ o+ p
|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |- G9 h4 B! i: S6 F/ t1 |
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |% V, N; e" E1 ]+ B3 I# X
|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |2 g! j( \4 Z. M; T9 u
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |9 t1 ]; ]6 A# p& D& _& ~4 t! u) j
|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |% C5 s* Z, G* N8 L# O  w5 P
|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |# J1 G0 A( y" e! D8 N( v8 g
|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
1 z, O1 j8 a. m; v|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |3 d5 ?' q3 Z2 O. e; j: L
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |
6 l' s7 F; L5 [# m$ m3 p0 R: A|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |
( ]3 Q, V- O! K8 ]|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |
3 o% S# N) l# k3 M- A|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
4 [' I( x; \( y: G" {3 w9 y; l|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |1 m8 p( i# b+ x+ m
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |
4 _" }3 V- ^8 B* V% A' |9 G3 C|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |9 ?0 a( P: E* n% G) W0 [: l9 c
| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |
0 P1 a) M( l/ C( C4 f% Q9 s7 H| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |
% P; u, g! N6 U# d9 V7 ?3 T| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |& }/ z) N- e5 n- N1 S& T" A
+-----+------------------+-------------+-------------+---------+-------+----------------------------+6 k. n$ a2 ]- G4 W3 [
& T2 Z( D- r1 B# `6 R. r. E
 楼主| 发表于 2024-4-16 16:59:19 | 显示全部楼层
openstack compute service set --disable compute11 nova-compute
 楼主| 发表于 2024-4-16 16:59:50 | 显示全部楼层
openstack compute service set --enable -compute11 nova-compute ! z( g: ?$ O) H" y5 G+ h
ERROR: openstack 'Service' object is not iterable& r7 b) Y" p$ b+ D9 b% `2 e
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:26 , Processed in 0.041027 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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