易陆发现互联网技术论坛

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

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

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

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

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

x
openstack 设置service disable状态:
9 d4 O. L/ b8 O2 @: `, V  ]' n# openstack compute service set --disable compute09 nova-compute. |( K# O1 v/ E; u( J7 X( l

4 K( R& a" j3 G) P) T1 Y% |删除service
* C$ r. J: h! t) H- B. H6 r3 Z- Y) O- p. q( m! `& k
# openstack compute service list: J4 V5 L; M+ `" K
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
, K7 H& ~4 K& Y4 n5 }2 `|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |
! T% j- Y. F1 _: h+-----+------------------+-------------+-------------+----------+-------+----------------------------+
  O( \; T" _5 }6 W* L|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |0 [1 P3 S( J, X4 O% h
|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |
$ m7 J# Z8 a) e, o|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |# ]8 |3 H5 w  m2 ?- |
|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
) F4 R4 n; c) k9 E5 U3 Q+ B" u|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
4 ]! u9 S' v5 _' ^5 q! O+ Q1 {3 L|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |1 j; j) L' o( A3 v0 c
|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |% c( K' M, f9 x4 P) m" \
|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |4 x. I5 Y0 }0 V1 ]. y* j% h
|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
  p9 _! v! Q2 J% W|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |8 |! U" _- C# C4 e1 v. i
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |/ `7 {' h; |# Q, S4 I
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |+ e7 Z+ ~& `  h
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |  e8 Z( G# L7 I. i6 g( [: U/ g
|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |
+ F+ V/ d7 c  `% R4 [7 G|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |
3 ?( R$ d+ G; A7 |  V  r8 `|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
! u( F3 w5 Q# Q2 T$ v1 G6 J| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |( }; d; a% b0 s# ~8 h" B
| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |
0 n# X& @4 {% i  D  Q| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
4 |; s6 t3 z  W2 Z7 o- ^0 j+ J/ G| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |
' m5 w, Q8 w, {# B# O  O/ f  E+-----+------------------+-------------+-------------+----------+-------+----------------------------+
. l5 B( V4 K( h% D# openstack compute service delete 114
+ z/ Z6 F% D' M" r& x# openstack compute service list. k/ m2 a/ n6 {8 k
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
! p1 T) O' g& P" l8 u|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
0 M* h( b" n  F: X  ]) U+-----+------------------+-------------+-------------+---------+-------+----------------------------+
  h5 U9 o. W: N1 K( V' u& O|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
" B' T9 r4 |& {8 |. o|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |% q4 T3 b1 l7 }4 y: x1 t
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |8 r! o& k. {4 M' d' b( y. d4 a
|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |  _2 f5 C6 C! X2 l* f5 S& d1 v6 A% _
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |
/ }' O3 @! J  o- t' J; R|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |
0 l" M, E4 u3 ]) \/ z|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |  G5 _  m" }$ f" L$ `& X& b* \
|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
' O9 K: y( d! ~3 M|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |0 }# p& ~* ~3 y7 \4 F5 N
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |) a/ z( ?/ c/ b5 a% i2 `9 U" R# b) a* z( z
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |
3 w5 E4 F# z' s# m+ N$ ]: l+ j! F5 O- L|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |
2 W. `: i) b8 O* s6 b|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
6 a( S% B, B4 y/ K9 z. u0 h2 r7 i|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |5 r- A! @' i/ S, {. J7 L+ |
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |
4 E" ?+ I) Q! }, c8 Z|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |
- z4 d5 @; C  A' o4 I* W: r| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |8 f4 U8 T* L' S- U1 O7 E
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |
9 T% b5 y' n& L| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |
! h( b" f& |! r1 k7 u& j; P" d+-----+------------------+-------------+-------------+---------+-------+----------------------------+0 n6 B" s- q2 s) T! _* L% ?: y
  B" D  \! e! a5 S/ n
 楼主| 发表于 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& c3 v; O1 \
ERROR: openstack 'Service' object is not iterable
, e4 O3 \" S0 ]6 r( e( s" Y0 w% y1 n6 Q
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 21:28 , Processed in 0.049107 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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