Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Nova AZ

# nova availability-zone-list | egrep -A 10 "^\| nova"
| nova                     | available                              |
| |- node-27.mng.kvh.ne.jp |                                        |
| | |- nova-compute        | enabled :-) 2015-02-25T03:03:32.000000 |
| |- node-28.mng.kvh.ne.jp |                                        |
| | |- nova-compute        | enabled :-) 2015-02-25T03:03:35.000000 |
| nova2                    | available                              |
| |- node-31.mng.kvh.ne.jp |                                        |
| | |- nova-compute        | enabled :-) 2015-02-25T03:03:33.000000 |
+--------------------------+----------------------------------------+

Modify cinder.conf

# egrep "^storage_availability_zone|^default_availability_zone" /etc/cinder/cinder.conf
storage_availability_zone=nova
storage_availability_zone=nova2
default_availability_zone=nova

Restart cinder services

Cinder AZ

# cinder availability-zone-list
+-------+-----------+
|  Name |   Status  |
+-------+-----------+
|  nova | available |
| nova2 | available |
+-------+-----------+

Nova AZ

# nova availability-zone-list | egrep -A 10 "^\| nova"
| nova                     | available                              |
| |- node-27.mng.kvh.ne.jp |                                        |
| | |- nova-compute        | enabled :-) 2015-02-25T03:03:32.000000 |
| |- node-28.mng.kvh.ne.jp |                                        |
| | |- nova-compute        | enabled :-) 2015-02-25T03:03:35.000000 |
| nova2                    | available                              |
| |- node-31.mng.kvh.ne.jp |                                        |
| | |- nova-compute        | enabled :-) 2015-02-25T03:03:33.000000 |
+--------------------------+----------------------------------------+

Modify cinder.conf

# [root@node1 ~]# egrep "^storage_availability_zone|^default_availability_zone" /etc/cinder/cinder.conf
storage_availability_zone=nova
default_availability_zone=nova

[root@node2 ~]# egrep "^storage_availability_zone|^default_availability_zone" /etc/cinder/cinder.conf
storage_availability_zone=nova2
default_availability_zone=nova
default_availability_zone=nova2

Restart cinder services

Cinder AZ

# [root@node1 ~]# cinder availability-zone-list
+-------+-----------+
|  Name |   Status  |
+-------+-----------+
|  nova | available |
| nova2 | available |
+-------+-----------+

[root@node2 ~]# cinder availability-zone-list
+-------+-----------+
|  Name |   Status  |
+-------+-----------+
|  nova | available |
| nova2 | available |
+-------+-----------+