易陆发现互联网技术论坛

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

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

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

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

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

x
openstack 设置service disable状态:8 P7 z: F4 d- O" v
# openstack compute service set --disable compute09 nova-compute
6 g) ?8 m0 Z1 C$ a$ x3 e: t/ x' I0 X8 I
删除service
) b4 O0 Y3 n) h2 N% ^- g) n# t7 W- k2 p# m! c
# openstack compute service list
" a3 q  y2 P, b+-----+------------------+-------------+-------------+----------+-------+----------------------------+
. ^% A- I/ a, R|  ID | Binary           | Host        | Zone        | Status   | State | Updated At                 |% [! Q8 v; X) h3 }
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
- p4 u! y3 M1 [1 L# a|   3 | nova-scheduler   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |! V: b( w. i9 N& Z1 A1 P
|   6 | nova-scheduler   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:12.000000 |: ]1 U- `9 v& e( J1 o* C  I
|   9 | nova-scheduler   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:04.000000 |
$ r- I6 p3 }6 K. y9 p|  39 | nova-conductor   | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |+ I  h$ W# R# G; c5 `6 u# {) [$ L
|  57 | nova-conductor   | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:14.000000 |1 y- {/ |5 }- [& A! Z8 q
|  66 | nova-conductor   | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:07.000000 |0 S6 ~& e. g  N( |( i! l
|  69 | nova-consoleauth | controller2 | internal    | enabled  | up    | 2021-11-30T03:03:13.000000 |
$ ]6 d! [  N8 J+ R|  72 | nova-consoleauth | controller1 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |. N+ {' W8 b/ z
|  75 | nova-consoleauth | controller3 | internal    | enabled  | up    | 2021-11-30T03:03:09.000000 |
; d* b9 i" j/ P9 m- A: N5 K; U1 s|  78 | nova-compute     | compute01   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:13.000000 |
! d* S" Z7 N  R0 W; V: }( b9 {|  81 | nova-compute     | compute02   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:09.000000 |) X6 P. w9 p3 U0 q3 i% c
|  84 | nova-compute     | compute03   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:05.000000 |6 u& K& Y9 j/ P
|  87 | nova-compute     | compute06   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:14.000000 |8 }7 s$ A+ r4 q' V" ~" w
|  90 | nova-compute     | compute04   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:10.000000 |" |. d5 L' j$ y& b" ?
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:06.000000 |8 s! }! ^- g7 Z( o2 n) |* g
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled  | up    | 2021-11-30T03:03:08.000000 |' ~: l& [2 D; K$ A; ^
| 108 | nova-compute     | compute08   | Intel-8260M | enabled  | up    | 2021-11-30T03:03:12.000000 |! L0 Y7 Z+ [+ n
| 114 | nova-compute     | compute09   | Intel-8260M | disabled | down  | 2021-11-30T03:01:51.000000 |5 u/ o) N8 u- e3 X8 v% b0 \
| 120 | nova-compute     | compute10   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:10.000000 |
9 L: r( ]% I5 _9 }) x/ z| 123 | nova-compute     | compute11   | Hygon-5185  | enabled  | up    | 2021-11-30T03:03:06.000000 |! J9 S* g! Y! K, ^
+-----+------------------+-------------+-------------+----------+-------+----------------------------+
2 ^! @) B& G1 y6 W7 W# openstack compute service delete 114
% R1 o+ V( j, j) }3 k3 F- D; c# ^# openstack compute service list4 M. h0 J! o2 P2 C) ?+ a& T% ~% ^
+-----+------------------+-------------+-------------+---------+-------+----------------------------+3 j4 I( k5 `1 G4 j9 Q6 w
|  ID | Binary           | Host        | Zone        | Status  | State | Updated At                 |
9 n" u8 x, i' [* ]9 K- L3 k+-----+------------------+-------------+-------------+---------+-------+----------------------------+
% ?4 d' w" x4 I# U  F! v/ o, H|   3 | nova-scheduler   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
: g# [3 t( b' b1 m7 {|   6 | nova-scheduler   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:42.000000 |' E; f; Y7 c7 Y6 W* H3 d& v& a
|   9 | nova-scheduler   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:34.000000 |
8 C+ q6 G( M. j( g/ K|  39 | nova-conductor   | controller2 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |
4 M- E/ J' D& y/ k% F|  57 | nova-conductor   | controller3 | internal    | enabled | up    | 2021-11-30T03:03:44.000000 |
/ X8 ~! o& o9 C8 P/ {8 ~|  66 | nova-conductor   | controller1 | internal    | enabled | up    | 2021-11-30T03:03:37.000000 |
7 _+ C! I0 _6 h- G|  69 | nova-consoleauth | controller2 | internal    | enabled | up    | 2021-11-30T03:03:43.000000 |
5 U# ^& Z8 ]# j0 `  R|  72 | nova-consoleauth | controller1 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |9 N& @% H& ^+ V9 U* h$ I
|  75 | nova-consoleauth | controller3 | internal    | enabled | up    | 2021-11-30T03:03:39.000000 |
' q8 ^: Y1 M: O/ i|  78 | nova-compute     | compute01   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:43.000000 |8 D2 c2 V- j, f) k
|  81 | nova-compute     | compute02   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:39.000000 |
" K4 d8 l) D+ r) Y4 \7 \|  84 | nova-compute     | compute03   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:35.000000 |
7 \. ?. H9 Q0 i% z  ~|  87 | nova-compute     | compute06   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:44.000000 |
/ x$ \7 Q1 d: f  A" w|  90 | nova-compute     | compute04   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:40.000000 |2 `" a3 l6 K* n" i5 X2 `7 m% u
|  93 | nova-compute     | compute05   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:36.000000 |3 Q8 N, _( }. e/ f" H. k. e7 k
|  96 | nova-compute     | compute07   | Hygon-7155  | enabled | up    | 2021-11-30T03:03:38.000000 |
5 L- {. m/ z. F| 108 | nova-compute     | compute08   | Intel-8260M | enabled | up    | 2021-11-30T03:03:42.000000 |
( M& V1 s; }6 A  a| 120 | nova-compute     | compute10   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:40.000000 |
0 s6 p0 e/ g; b5 ^7 ^| 123 | nova-compute     | compute11   | Hygon-5185  | enabled | up    | 2021-11-30T03:03:36.000000 |
5 X: x0 [. ?/ S( f! {- q+-----+------------------+-------------+-------------+---------+-------+----------------------------+. Y$ E: p& \' v- \
8 T  x: u1 |6 R" e! K
 楼主| 发表于 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 ! ]! [+ {. W& V# a! H9 G
ERROR: openstack 'Service' object is not iterable' N& T2 b5 m* Q9 W: _1 X, q
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 15:21 , Processed in 0.045314 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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