Ask Your Question
0

Default Availability_Zone setting

asked 2015-12-30 21:14:43 -0600

StevenLi gravatar image

updated 2016-01-04 02:51:28 -0600

I set up an OpenStack with Kilo release. It works very well, we have about 30 Compute nodes in the system now, and it is growing up when more users move in. When we add in a new Compute Node, I hope it can be automatically put in another availability_zone for a test before adding it into the normal zone (nova by default).

What I did is to add the following line in default section of the file /etc/nova/nova.conf in the new compute node: node_availability_zone = test_only

However, it does not take effect, when it is up, the system put it into nova zone after I start nova service. And then, I tried: default_availability_zone = test_only does not work either.

Is there any other setting I missed? Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-01-07 02:58:19 -0600

StevenLi gravatar image

The issue is resolved after a few trials in my system. It can be implemented by doing the following steps:

1) add the following line into /etc/nova/nova.conf in Control node(s) in which nova-api and nova-scheduler services is located: default_availability_zone = test_only # or any name you want

2) Restart nova-api and nova-scheduler services in Controll node

What I really did is working on the Compute nodes, instead of Control node, so it does not take effect.

After the two steps, nova default availability zone will gone, and be replaced by the one you indicated in the configuration.

edit flag offensive delete link more
0

answered 2016-01-02 22:15:08 -0600

Bipin gravatar image

Hello,

This Document will help you to understand about AZ and how to set it up.

Regards

edit flag offensive delete link more

Comments

Thanks. I read the document, and all the commands work. However, it does not solve my problem. I want the new added compute node automatically be in a particular AZ, instead of changing it after it was in nova.

StevenLi gravatar imageStevenLi ( 2016-01-04 02:49:10 -0600 )edit

I dont think there is a way to do it by automatically.

Bipin gravatar imageBipin ( 2016-01-04 21:42:24 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-12-30 21:14:43 -0600

Seen: 171 times

Last updated: Jan 07 '16