Ask Your Question

How to Create or Modify Availability Zone Programmably [closed]

asked 2013-07-09 15:44:29 -0500

tongda gravatar image

I have known that to set an Availability Zone, I should set the node_availability_zone field in nova.conf. But I have two questions about the Availability Zone.

  1. How to create or modify Availability Zone by api? The nova command line tool only support availability-zone-list command, lacking creating and modifying command. If this is by design, why?

  2. When a host firstly register to controller node as nova zone, modifying the nova.conf to set node_availability_zone to "test_zone" cannot change metadata. The zone is still named as nova in "nova availability-zone-list" and the compute node still belong to nova zone in "nova-manage service list". Is there a way to change a host to another availability zone?

Thanks for your reading and sorry for my poor English.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-05 21:14:27.244815

2 answers

Sort by ยป oldest newest most voted

answered 2013-07-10 06:51:48 -0500

xianghui gravatar image
  1. Seems there's not Availability Zone by api, maybe it will be considered to be added into the extension, I think the reason is it is not one of the most import api at first.

  2. I don't know which openstack version you are using now? "node_availability_zone" is used on folsom, set default_availability_zone=<zone-name> in /etc/nova/nova.conf on compute node works on havana, you can try it on grizzly.

edit flag offensive delete link more

answered 2013-08-28 12:18:35 -0500

tongda gravatar image

I found that using "nova create-aggregate" can assign an availability zone, if not exist, a new one will be created. So this may be a way to manipulate availability zones.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-07-09 15:44:29 -0500

Seen: 359 times

Last updated: Aug 28 '13