How to create parent-child zone using python-novaclient cmd tool

Asked by Tushar Patil

I am trying to setup multiple clusters which comes as a part of Cactus release.
https://blueprints.launchpad.net/nova/+spec/multi-cluster-in-a-region

Here I assume, each zone will have its own database. Please correct me If I am wrong.

I have already defined a parent zone:

root@ubuntu-openstack-server-01:/home/tpatil# nova zone-list
+----+-----------+-----------+--------------------------------------------+------------------------------+
| ID | Name | Is Active | Capabilities | API URL |
+----+-----------+-----------+--------------------------------------------+------------------------------+
| 1 | global-zone | True | hypervisor=xenserver;kvm, os=linux;windows | http://10.2.3.150:8774/v1.0/ |
+----+-----------+-----------+--------------------------------------------+------------------------------+

Now my real problem is how do I create child zone and link it to parent zone?
I read this URL http://nova.openstack.org/devref/zone.html, but didn't understand how to create child zones.

Any help will be appreciated.

Thanks in advance
Tushar.

Any help will be appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Tushar Patil
Solved:
Last query:
Last reply:
Revision history for this message
Tushar Patil (tpatil) said :
#1

I created parent zone using following command

$nova zone-add http://10.2.3.150:8774/v1.0/ admin cd5c4ff8-8f22-4293-afc1-f28071ec337f
API URL - http://10.2.3.150:8774/v1.0/ (This is the parent API URL)

Now to create child zone, I simply need to add another zone like below

$nova zone-add http://10.2.3.70:8774/v1.0/ username password

API URL - http://10.2.3.170:8774/v1.0/ (This is the child API URL)

Revision history for this message
Sandy Walsh (sandy-walsh) said :
#2

Nice work Tushar!

If you have any questions on this Zone stuff, you can also look for me on the #openstack-dev channel (sandywalsh). Happy to help.

Revision history for this message
Abhijeet Jain (abhijeet-jain) said :
#3

So, how it defines that Zone1 is Parent Zone and Zone2 is Child Zones..!!!???
and
while creating the child zones, is the configuration file of parent zone is replicated in child zone ??

Revision history for this message
Abhijeet Jain (abhijeet-jain) said :
#4

what happens if Global Zone goes down ???
Will it make the whole server down or any parallel Global Zone exists ??