yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #64459
[Bug 1694417] Re: dhcp_domain used when use_neutron is not set
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.
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1694417
Title:
dhcp_domain used when use_neutron is not set
Status in OpenStack Compute (nova):
Invalid
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.BoolOpt('use_neutron',
default=True,
deprecated_for_removal=True,
deprecated_since='15.0.0',
deprecated_reason="""
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.StrOpt("dhcp_domain",
default="novalocal",
deprecated_for_removal=True,
deprecated_since='15.0.0',
deprecated_reason="""
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.openstack.org. in neutron.conf
Boot an instance and check fqdn
Expected results
================
Instance have fqdn <vm-name>.sample.openstack.org
Actual results
==============
Instance have fqdn <vm-name>.novalocal
Environment
===========
CentOS
Source code from master
Deployed with kolla-ansible
neutron + ml2 + ovs
nova==16.0.0.0b2.dev511
Latest commit: https://github.com/openstack/nova/commit/98b8e39ac5f7b3f2bb06ca415bbb806705461d74
If manually set use_neutron=True in nova.conf instance gets domain
based on dns_domain setting from neutron.
[0] https://github.com/openstack/nova/blob/master/nova/conf/network.py
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1694417/+subscriptions
References