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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-4-16 16:48:41 | 显示全部楼层 |阅读模式
openstack 设置service disable状态:
* F% I* O" n9 `* s8 Z/ k+ k  r( r# openstack compute service set --disable compute09 nova-compute
4 R/ T# z: F; }+ l1 j5 H% R
" R$ m4 l1 k( Q) s删除service: v8 H/ O* F. g( f, j

. u# R: C1 `$ F# openstack compute service list) T! L4 y4 C$ @+ J: k3 H3 f
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
9 J+ V9 P; F$ V$ J|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |  c6 {, i: Y7 M0 @! m
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
6 P2 k' l. _5 p) T. G0 l5 Y|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |( f  y8 k6 G: ^2 G3 [8 }
|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |% B( f8 N$ b6 i6 [
|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |
# }( {3 _! ]. {0 Y- s|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |" X+ I, p2 `8 X7 q# ?/ I! U+ A
|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |" R; i" Y2 M/ q* |! S
|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |
, Q4 s0 E5 t6 T& h1 i6 p1 r* r( ?|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
3 {# I$ y% B/ p- ^8 z& v|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
: O; l. U1 X! i+ b0 K8 X|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
/ |: F+ B8 U0 V$ R: t|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |
% }& }, ?+ E% z5 E4 B. F* g|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |
- g6 O% y1 w) i; g|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |: a4 v, ^) V) M1 N
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |
7 B! u$ v4 T) |4 C) D|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |- k; X) {% g1 ^$ N* d3 \
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |
: g$ @* `9 J' L/ k3 w|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |
" G/ `, o  {$ C4 f9 Q3 l0 u| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |3 {# o5 k) B8 }' s. R* S
| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |
6 I0 W% K/ T" ]  H; w| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
. Z7 Y5 M$ T' k" o2 [| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |2 i3 U7 X! \+ e$ a
+-----+------------------+-------------+-------------+----------+-------+----------------------------+; C9 R# o5 k/ ?; K4 n1 {
# openstack compute service delete 114/ Y3 `5 l) n7 {8 u
# openstack compute service list$ r0 n; h- H1 N9 u) G
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
% J9 D+ s3 q1 i6 p  r) o|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |3 h, o# i+ Z5 t  i
+-----+------------------+-------------+-------------+---------+-------+----------------------------+" a4 w0 [) |2 u. N% @
|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
  e# i" |2 ~2 b7 e- j! T7 A|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |9 E0 u  v0 G# `! a3 l# S0 _& {1 g- m
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |  ~$ d+ O4 [( \8 b0 l( c! j
|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |& d( a+ C7 t) m% `. l/ t  a2 Y
|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |' g/ w8 {+ I# [* |8 @
|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |- j4 h# v% W1 a' Z) w' k$ S, b
|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |& K+ U+ y) V  J
|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |. z6 V5 P+ N4 \$ B
|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |8 ~- {# z$ @# p7 \, g( J
|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |, i0 U* B2 z4 L7 N; ]
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |. n% p" ~# J7 g7 ~/ t# ~2 h
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |$ [* Q* c7 E& D: J5 Z& P# n
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
$ _" g3 ?( ]% i. Z# K|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |
8 ]$ e6 v1 W" ], v|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |0 Q0 r5 H+ w/ m  H' T* k
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |* n5 z0 i5 R- X* {) A
| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |/ k, I' ~9 {  `; j
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |
) d- r" ^$ \" j3 Y( t: m" ~) s| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |" C7 K0 a) D. a# }% {
+-----+------------------+-------------+-------------+---------+-------+----------------------------+
4 z9 ]6 W$ @/ r" }- [, |1 j
5 j7 j% o, h1 z& P2 `

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 / v9 T5 f+ H8 [
ERROR: openstack 'Service' object is not iterable% j) _" p5 q; n, i1 t  P8 M
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:00 , Processed in 0.019482 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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