Ask Your Question
0

How does the nova_api service determine the suffix to add to each instance name to generate a hostname?

asked 2014-03-24 11:35:46 -0500

rmartin gravatar image

By default, the nova-api service generates a key in meta_data.json "hostname" which is set to "<instance_name>.novalocal". I need to change novalocal to something else, but I cannot find where this setting is stored. I set dhcp_domain in nova.conf, and this added my suffix to the dns search list sent to instances by dnsmasq, but it didn't affect the hostnames. Any idea where/how this can be set?

edit retag flag offensive close merge delete

Comments

BTW, in case it matters, we're running openstack-grizzly on RHEL 6.4.

rmartin gravatar imagermartin ( 2014-03-24 11:36:21 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-24 14:19:35 -0500

rmartin gravatar image

This is drawn from the dhcp_domain setting in nova.conf. After changing the setting, one must: 1) killall dnsmasq 2) Restart nova-network 3) Restart nova-api.

I had not yet done the third step.

edit flag offensive delete link more

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: 2014-03-24 11:35:46 -0500

Seen: 1,175 times

Last updated: Mar 24 '14