找回密码
 注册
查看: 14|回复: 2

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-4-16 16:48:41 | 显示全部楼层 |阅读模式
openstack 设置service disable状态:
5 E: v" T: V3 ?9 ]  B7 C. C# openstack compute service set --disable compute09 nova-compute
0 Y2 R8 q# d6 z( m* |  x2 t% U+ x* N/ ]2 k- p
删除service
9 I9 E+ t( Q" r! z% ^- |, V) P' h6 Z* F' X( h' r; J4 z
# openstack compute service list/ e" B( Z1 j5 i  q5 z& B
+-----+------------------+-------------+-------------+----------+-------+----------------------------+4 Y9 ?- l% }" |% h* U8 s, J
|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |
9 i( D) o5 g- d: T+-----+------------------+-------------+-------------+----------+-------+----------------------------+7 A% n4 e$ n9 e5 D
|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |$ h8 u0 U6 e- Q) N" W! a
|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |
+ F8 g" A  J0 c|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |8 X" N- [- |; Y- G, v
|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |0 d9 g, l, O# X* K
|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
3 E& J/ T2 G* Q- k; M|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
; x  D, n( |$ n# n- A|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |% r( I( C( `2 ^9 {) d) j
|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |6 a) P' W6 `; p
|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
3 n' i" h, Z! X# H+ [% Q|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |
  j+ C: q" @$ l/ a  X5 Y2 ]5 u|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |* P1 h& t; f9 ~
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |/ w+ H, q& s/ U0 b3 Z
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |
0 }! _" g2 ?8 X- V0 S|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |* {  d) F! x( i+ E$ f5 V
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |+ R$ g6 ?+ g/ ]' S+ D( }4 a( f4 X
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
- Z& B9 v6 C% H' I+ E6 E& f| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |+ ~& @: A0 T: o, O9 o8 l! |
| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |
5 G2 f) Y/ f8 L) a8 {- W! j| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
; c8 P( y# C# q( |: s, B% q| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |
0 l9 X; h3 T! M$ X$ A, Z& k$ {+-----+------------------+-------------+-------------+----------+-------+----------------------------+
. s7 L# o9 G0 l# openstack compute service delete 114/ a- j! b$ S8 o% i8 v) V4 q
# openstack compute service list: i+ w! t; o" T5 ~/ t. J  |6 }$ `
+-----+------------------+-------------+-------------+---------+-------+----------------------------+  F, S& N* u' H
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
- K' Q* g4 ]  I0 @' `% b- C4 k+-----+------------------+-------------+-------------+---------+-------+----------------------------+
% ?: d/ a/ [# X( x( C& e|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
' C5 V/ N4 g; J9 d|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |6 X' T5 Y3 f! a2 s5 P% r
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |
/ _+ i, g8 v. P|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |
* v% W! @5 M& f+ Y+ g( b& b# o|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |7 B; q- D/ n9 K% s8 I; W4 p( q: t
|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |4 J  U; F: v: f, ]; y
|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
6 E5 L; r9 C" i$ ^0 ?/ o4 B5 M2 e|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |7 V0 @7 n3 u/ t* y  W- V. i0 W$ L
|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
4 V! p2 i% w8 j) |/ h$ t|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |/ P4 q! G( [" C5 U
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |2 A+ l  ^. Q2 c4 E
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |
$ B" u& o7 F0 {3 n4 O|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |2 a+ @* N9 w/ H$ _
|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |
. {4 G+ P. e7 L/ v/ q  p. W+ k0 F|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |) j8 p# s7 g1 E4 ~( @
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |
; Z5 j0 ?# `6 ^| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |4 t! a5 C: y0 [$ t+ q3 v# b
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |
. h( D4 W" c# N0 H/ _# W' k+ @| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |/ w) u$ _5 i4 M
+-----+------------------+-------------+-------------+---------+-------+----------------------------+$ O5 W- N# ^9 N( S  b3 W2 c

; V/ w( }5 l: x" e

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-4-16 16:59:19 | 显示全部楼层
openstack compute service set --disable compute11 nova-compute

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-4-16 16:59:50 | 显示全部楼层
openstack compute service set --enable -compute11 nova-compute ) o- C: p  c2 h* a7 n0 S1 j& _" p
ERROR: openstack 'Service' object is not iterable5 q9 X- V2 w" ^  y. l
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:57 , Processed in 0.017702 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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