Ask Your Question
5

How to set domain name in quantum

asked 2013-07-17 06:05:08 -0500

Cédric Jeanneret gravatar image

Hello,

I'm trying to set the domain name for my different networks, but unfortunately without luck until now.

Problems:

  • When launching a new instance through Horizon, the instance FQDN is <hostname>.novalocal.
  • When looking at processes running on the Router instance, I see many dnsmasq instances (one per network), with "--domain=openstacklocal"

Tested solutions:

  • set "dhcp_domain=" in the dhcp_agent.ini: OK, the --domain isn't passed anymore
  • add a "dnsmasq_config_file=/etc/quantum/dnsmasq_config_file" in dhcp_agent.ini: OK, option is passed to dnsmasq services, BUT… it doesn't seem to be used.

Content for /etc/quantum/dnsmasq_config_file:

domain=infra.internal,10.27.70.0/24 
domain=hosting.internal,10.27.73.0/24
domain=business.internal,10.27.72.0/24
domain=gis.internal,10.27.71.0/24

Unfortunately, I keep getting the wrong, "novalocal" domain appended to the hostname.

Side notes: We're using cloud-init in order to set up some configuration, especially those modules are used:

set_hostname
update_hostname
update_etc_hosts

Any hint is welcome - for now, I'm stuck, and I don't fully understand WHERE comes the "novalocal" domain from… Which is kind of annoying, you may imagine, especially when we want to use some puppet stuff right after the instance start in order to configure it - FQDN is wrong, so nothing's work as expected :(.

Thank you in advance!

C.

edit retag flag offensive close merge delete

Comments

Setting a different domain name for different nets is not possible in grizzly - search https://github.com/openstack/neutron/blob/stable/grizzly/quantum/agent/linux/dhcp.py for dhcp_domain.

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-08-08 04:52:06 -0500 )edit

1 answer

Sort by » oldest newest most voted
2

answered 2013-08-07 09:13:25 -0500

George gravatar image

In nova.conf, there is an option that defaults to "novalocal". dhcp_domain=novalocal

edit flag offensive delete link more

Comments

Changing dhcp_domain didn't fix it for me.

https://ask.openstack.org/en/question/25778/how-does-the-nova_api-service-determine-the-suffix-to-add-to-each-instance-name-to-generate-a-hostname/ (https://ask.openstack.org/en/question...)

rmartin gravatar imagermartin ( 2014-03-24 14:03:59 -0500 )edit
1

Never mind. dhcp_domain worked once I restarted nova-api. Thanks!

rmartin gravatar imagermartin ( 2014-03-24 14:17:55 -0500 )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

3 followers

Stats

Asked: 2013-07-17 06:05:08 -0500

Seen: 5,762 times

Last updated: Aug 07 '13