找回密码
 注册
查看: 3298|回复: 3

nova availability_zone的信息查看

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-8-30 22:08:42 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-30 22:10:21 | 显示全部楼层
regionName  在root目录下的admin-openrc.sh文件中
) d1 y# A- l8 [9 K! g$ E, N( O* OOS_REGION_NAME='RegionOne'
9 n$ A! d) L7 J2 h# l# s
4 F  R3 h: t% D# nova aggregate-list
; j* T9 Z2 K; l7 b' Y+----+------+-------------------+# J: _/ }9 Z8 k1 I
| Id | Name | Availability Zone |
8 G( q- d" M' J7 q" n7 B: I+----+------+-------------------+
9 x" j  n0 Y, @+ D9 X% o+----+------+-------------------+/ r. N, M. W  L* ]
& [0 u9 @9 h' s, D

8 N: _# ~4 K9 P- e

1. 创建aggregate,指定zone

      #nova aggregate-create aggregate1 az1

      #nova aggregate-list

    2.添加主机

      #nova aggregate-add-host aggregate1 computer1

    3. 查询主机与服务所属的zone3 t& U. A; {( }% J( ?. s

      #nova host-list

      #nova service-list

    4. 再将主机加入另一个aggregate,再次查询

      #nova aggregate-create aggregate2 az2
& Q- E% J7 N# x- z" \0 h( S

      #nova aggregate-add-host aggregate2 computer1

      #nova host-list

      #nova service-list


' t7 L4 a6 N' f& h

5 q. T% Y5 J2 N6 G8 g. s: Y' V

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-30 22:14:43 | 显示全部楼层
# nova host-list+ u8 u$ ~' q" j
+------------------+-------------+----------+# L6 R6 r% c8 W4 x% e! I6 I
| host_name        | service     | zone     |! c& q1 v9 U- b; ]
+------------------+-------------+----------+
9 m  ?/ i- @8 r| EC-controle3 | conductor   | internal |
* K) M. G7 M$ q8 z& n& h7 r( J| EC-controle2 | conductor   | internal |( A& @  Y# b: ~8 p8 s
| EC-controle1 | conductor   | internal |
, I0 b) U, C8 s6 s" z% G0 L7 ]| EC-controle3 | scheduler   | internal |4 k' X9 L  c; {- I8 ?" o
| EC-controle2 | scheduler   | internal |
9 ^; h! ]2 e) _) G| EC-controle1 | scheduler   | internal |9 K  Z  l. j5 w( l/ {4 \1 T
| EC-controle1 | cert        | internal |) T: o. F7 e% s. h! ^
| EC-controle1 | consoleauth | internal |, J2 A5 x" ~0 Q+ c+ _4 J
| EC-controle2 | cert        | internal |7 w6 Y% W1 s* p# e
| EC-controle2 | consoleauth | internal |/ P# p- t1 ?# L0 D7 L: U
| EC-controle3 | consoleauth | internal |% T# {3 e7 Z0 q  A) H
| EC-controle3 | cert        | internal |# `3 D7 b0 r0 V& a% k" g* u
| EC-controle1 | console     | internal |
2 p. G5 p$ O( x' V| EC-controle2 | console     | internal |! G! j' ^7 }' d
| EC-controle3 | console     | internal |
: r+ S) j4 L1 }% \9 N- U| P1-P2          | compute     | nova     |
) d+ a. V3 o) f+ c8 X6 E3 n# W| O9-O1-P9-10    | compute     | nova     |/ ~: K7 E# _+ s2 T( J/ K
| P4            | compute     | nova     |' A. T1 I& z4 T2 ~8 f
| O1-O1          | compute     | nova     |
& |/ l* n' B1 |) f+ n/ S| P5P8            | compute     | nova     |
. ]2 j7 \8 A3 x3 Z' L3 y* ]& e+------------------+-------------+----------+

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-8-30 22:16:56 | 显示全部楼层
#  nova help aggregate-create  & z  g7 o5 ^  r3 C) d/ `' ?
usage: nova aggregate-create <name> [<availability-zone>]/ ^+ s6 s% K" x

( o% M' \" K; ^* W- K4 U& BCreate a new aggregate with the specified details.
% m( W+ t% ^/ R$ M% d/ u' r9 u. h( x4 |6 S; v1 t$ z' I) z
Positional arguments:
( [9 y8 ?1 M) f" Q8 I% b  <name>               Name of aggregate.
% e. V. H+ b: L  <availability-zone>  The availability zone of the aggregate (optional).
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:46 , Processed in 0.020038 second(s), 26 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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