dhcp_domain used when use_neutron is not set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Description
===========
While configuring nova with neutron and designate to provide DNS to instances, found that if use_neutron is not explicitly set to True in nova.conf it gets ignored and dhcp_domain setting is used (novalocal by default). I think designate does nothing here and the issue is between nova and neutron configuration because if nova option is not used, neutron default dns_domain would be openstacklocal.
network_opts = [
cfg.
nova-network is deprecated, as are any related configuration options.
""",
help="""
Enable neutron as the backend for networking.
Determine whether to use Neutron or Nova Network as the back end. Set to true
to use neutron.
"""),
From what I understand from [0] is if use_neutron is True(default value, see above), dhcp_domain option is not used and uses neutron settings.
cfg.
nova-network is deprecated, as are any related configuration options.
""",
help="""
This option allows you to specify the domain for the DHCP server.
Possible values:
* Any string that is a valid domain name.
Related options:
* ``use_neutron``
"""),
Steps to reproduce
==================
No set use_neutron=True at nova.conf (is default)
Set dns_domain = sample.
Boot an instance and check fqdn
Expected results
================
Instance have fqdn <vm-name>
Actual results
==============
Instance have fqdn <vm-name>.novalocal
Environment
===========
CentOS
Source code from master
Deployed with kolla-ansible
neutron + ml2 + ovs
nova==16.
Latest commit: https:/
If manually set use_neutron=True in nova.conf instance gets domain based on dns_domain setting from neutron.
[0] https:/
summary: |
- dhcp_domain used when use_neutron is not set to True + dhcp_domain used when use_neutron is not set |
Changed in nova: | |
status: | Invalid → Incomplete |
use_neutron defaults to True, so you don't need to explicitly set it in nova.conf to be using neutron. The dhcp_domain option is deprecated since the Ocata release as it's only used for nova-network, which it sounds like you're not using.
I think there is a misunderstanding here about how things are working with the use_neutron config option, so I'm going to invalidate this, but please re-open and explain if I'm missing something.