易陆发现互联网技术论坛

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

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

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

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

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

x
openstack 设置service disable状态:
' @* I, Z5 n# Z& \0 ^6 y* u6 U# openstack compute service set --disable compute09 nova-compute
; K8 |5 A/ C: d5 {& k% x  a% \) \. ?
删除service
+ X- y: V% S$ b* o' y3 @. W' h- Q6 B5 g1 F
# openstack compute service list
4 u) T4 z% n9 \! D! h+-----+------------------+-------------+-------------+----------+-------+----------------------------+
8 n8 @* q' C" x|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |
1 P- ]% I, m5 J5 p0 l( ^, M# p0 t+-----+------------------+-------------+-------------+----------+-------+----------------------------+
9 B. C, m  }) I* i|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
; |' u5 V3 N1 B# g: |: {0 q) [|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |
0 m( Y3 U6 J& b9 n0 P) [, K  e; ?" M|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |
  g2 P; Y9 ~$ w|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |5 K8 x& n0 S' A; T
|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
$ H8 J! n+ q7 y: Y4 i! q" O* ^|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |& W8 G9 ~* v& n. n
|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |" G) o  w% J  n# x
|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |% j1 Y* G6 W3 A3 r
|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |2 I. |# j8 B1 }% U, E6 A, \) Y. Y' W
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |
" _6 H. G) ]7 I4 C6 C|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |6 Y  H, H" F* F6 W7 n7 D
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |
: j6 v' H/ Y; C- I8 H' ?|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |+ h- i- a6 `! C7 m, Z# f( x4 i
|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |* W! c$ F- \" ^6 f- F: n( X
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |
, [" O, S4 ?7 _% w|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
- e5 y7 h/ z" t+ a' }2 P| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |; A$ z9 f" d, h. c7 r/ \7 W% f* B
| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |
0 h# Z. ?1 l5 z& v8 I| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
. s+ q$ ^7 h) q( {| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |
; G/ E5 O: F" ~; @  V+-----+------------------+-------------+-------------+----------+-------+----------------------------+8 d, A6 @# E9 y* J- h3 C; _
# openstack compute service delete 114
) B" l  P: W- M7 i4 `# openstack compute service list
4 B2 q. j' A: ]8 o# m. D+-----+------------------+-------------+-------------+---------+-------+----------------------------+
' N6 [! x* p" O: s|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
; x7 G; P" L7 ?$ M9 E+-----+------------------+-------------+-------------+---------+-------+----------------------------+
3 n# p% |* z+ u& C% j|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |1 V1 ^: E2 P6 l$ ?* T
|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |
- P; ~; W- t1 `8 F|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |( {# R. m1 p! W7 T1 m5 K
|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |
8 Z  c+ M" v9 T& D2 r( r' z|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |
3 \1 d; S" Z' @; l6 l7 I|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |
3 D; N9 y1 U5 |4 g& o7 h|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |( t* p6 d) Y5 w; `
|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |$ G7 E: E& z9 ^, U8 a& I% E! [5 P; x+ \
|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
% p3 @3 B2 s$ F|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |. l+ d8 F* W6 i) k
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |
; t8 l# Q9 m0 |! g9 F|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |
" Q! b+ Z( _  B: b|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |) }' ~/ R+ r% Q: u, }9 {
|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |: Y& b3 @4 \  l: A, W
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |8 Z, V$ B9 P4 f2 d, f/ _
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |- Z/ D/ [: d% M
| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |% F) `- w- O+ Q+ ~2 q* L) ]& d: {" [9 r$ N
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |7 P# t$ K4 b1 d' g7 w) n- y
| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |- J  ~+ n: s; R2 C! z$ U+ k' b# d5 I! `1 z
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
3 ~' a3 F* J8 x; m/ f& h6 h6 {7 i( C( \3 F# s4 y" d
 楼主| 发表于 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
2 O) C4 C2 ]( ]( m( X. ~+ {ERROR: openstack 'Service' object is not iterable
$ |/ b" A$ L+ g, h( w1 G  l
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 17:20 , Processed in 0.044627 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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