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 -0600

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


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

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

1 answer

Sort by ยป oldest newest most voted

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-03-24 11:35:46 -0600

Seen: 1,296 times

Last updated: Mar 24 '14