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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-4-16 16:48:41 | 显示全部楼层 |阅读模式
openstack 设置service disable状态:6 R) b% z# K7 T7 J/ ^+ @
# openstack compute service set --disable compute09 nova-compute
* X1 M. F: `- x# r
- v# X2 V0 A: B) o/ i* h5 x0 W6 r删除service
% m) }! c' n5 ]; C0 f+ z" Q8 A+ K7 V/ X; E) s$ F  v/ w, k/ G
# openstack compute service list
9 t& r. r+ T. v9 M- ^8 c9 x4 J0 B6 O+-----+------------------+-------------+-------------+----------+-------+----------------------------+
. i' `/ _& g# b6 m9 e( @|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |# E# c2 c" ^# W/ ^
+-----+------------------+-------------+-------------+----------+-------+----------------------------+; l9 C! k8 Q/ q/ q$ n' @
|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
5 B; T$ ^3 @5 ]4 H|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |
# ^3 m2 }& j. f' K& m% o|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |
5 G% s( i) p5 B2 H" S" I2 n1 B8 T|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
" \5 a: \2 w7 p+ S. _|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |
% U% }) L: Z: v|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
3 B" Y9 p) K; Q' O! j. r6 b5 E1 g|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
: K" J4 G( e& h* \  \|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
8 C" g5 y+ ^: M+ E|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
" k/ e% ~2 A* I* J7 Y# f|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |/ r: `9 M6 {+ Y& G7 d
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |
9 I7 I7 {1 ]4 p8 e3 i|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |
7 h* B* L& _! Y  q8 F2 Y+ T|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |% r3 z6 X7 k( ], l# p" M
|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |, L4 x$ B  w' H2 x4 _
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |
8 M/ c! D3 ]) g0 C8 M; r  b|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
) u% L2 m# u- F3 ^6 H% V4 A: S| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |
' c) b9 G7 b* {+ _| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |
" q, F4 D( b) ~, G7 o5 M| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
8 X) c8 L5 p* {0 c3 L: F8 A| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |) p$ \+ o. r9 y  a" R9 [% W
+-----+------------------+-------------+-------------+----------+-------+----------------------------+( T  n/ K' ^; y- _' }. H1 V& W
# openstack compute service delete 1146 c. A4 N; U8 [3 F1 m5 e5 V0 H* S
# openstack compute service list
' W8 B  f0 `0 O0 R+-----+------------------+-------------+-------------+---------+-------+----------------------------+
+ Z  ^7 N& ?5 ^! h|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
5 h% Q* N# u. N+-----+------------------+-------------+-------------+---------+-------+----------------------------+7 j# y1 A' p) z9 q
|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
: {6 {3 K7 O2 N3 \% P; f9 T. U# K$ h|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |4 R- K) E& b# u: r9 k
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |9 s! F8 a, Q1 ?. C9 O! o0 G7 p& {
|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |" W1 w# w0 n6 i0 {" y3 }5 B, H
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |# _$ y) [( k* @
|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |
, v- C4 a$ e& U4 ~. ]* b|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
4 ?, e) f1 }8 E9 ?4 P8 j4 `|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
2 R3 @6 V- E' m0 V3 c|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
; [4 T0 z  h, N& P0 ?; i% g& e|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |
# x! M1 {$ m/ v/ l" ]|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |
$ t( B$ d! `. s) H. l0 g: H" U; o|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |) ]0 i. M" g$ v) ?! S; }- T" s
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
5 @6 g0 B& _5 \5 [$ m. V|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |  _! }0 |! i- s& N% \; L5 B& y2 ]
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |1 C2 u* Q; P& d0 i- Q7 d4 b, q9 c
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |
1 d7 k% c+ G& T& l| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |
8 t7 h, s, K& _+ |% Z| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |3 F7 q+ t' G% R' O7 ^! W
| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |
1 u( U! A7 K% @8 i: E1 r9 g+-----+------------------+-------------+-------------+---------+-------+----------------------------+
# x1 G* B2 |2 k8 V$ i  B8 j3 y* y/ Z$ c# }% E9 }/ n6 D

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 + K) n# Q& d4 h; y; X' U! q
ERROR: openstack 'Service' object is not iterable: [: _: }. y/ L  r2 B4 N
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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