← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1583769] Re: DHCP agent still refers to deprecated dhcp_domain

 

Reviewed:  https://review.openstack.org/406243
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=6578c531ad2452134760038524bbc0b26efce319
Submitter: Jenkins
Branch:    master

commit 6578c531ad2452134760038524bbc0b26efce319
Author: Brian Haley <brian.haley@xxxxxxx>
Date:   Fri Dec 2 12:03:45 2016 -0500

    Remove deprecated dhcp_domain from dhcp_agent.ini
    
    The dhcp_domain value in dhcp_agent.ini value had been
    marked for deprecation in favor of using dns_domain in
    neutron.conf back in Liberty [1].  Remove it.
    
    [1] https://review.openstack.org/#/c/200952/
    
    Change-Id: Iebde452559f88ca95713664136da1613cac9b32c
    Closes-bug: #1583769


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1583769

Title:
  DHCP agent still refers to deprecated dhcp_domain

Status in neutron:
  Fix Released

Bug description:
  DESCRIPTION:

  VMs were coming up with a hostname configured as
  "vm_name.openstacklocal" despite having configured a dns_domain in
  neutron.conf. However, the DHCP host file had the correct entry with
  the domain, "vm_name.testdomain.net". Also, ping connectivity worked
  using just DNS name, and with testdomain.net

  Agent was using dhcp_domain (a deprecated field), when spawning
  dnsmasq process with a "--domain" argument. If dhcp_domain is never
  set in the dhcp_agent.ini file, it picks up the default value
  openstacklocal. The reason the DHCP hosts file is correct, is because
  it is sent as the dns_assignment field in the neutron port. Neutron
  server correctly uses the newer dns_domain, and the port's
  dns_name/assignment is not used in spawning dnsmasq.

  Setting dhcp_domain in dhcp_agent.ini fixed issue locally. But since
  this field has been deprecated since liberty, all references to
  dhcp_domain should be changed to dns_domain.

  I have fixed this locally on my deployment which uses liberty, will
  apply fix to master and send out for a review

  
  Pre-conditions:

   - Have the neutron and nova side changes for setting dns_name and dns_assignment on the port (present in master)
   - Set the dns_domain in neutron.conf

  
  Reproduction Steps:

  Create a VM like normal. Port it gets attached to should have dns_name
  set according to instance_name, and dns_assignment should have correct
  hostname and domain. Verify DHCP host file on network node has correct
  entry.

  Then login to VM, and do "hostname -f". Verify it displays with a
  .openstacklocal

  
  Version:

  Tested and discovered on Liberty, Centos 7.1 hosts and Centos 7.1 VMs.
  Upon code inspection, bug also exists in master
  (neutron/agent/linux/dhcp.py has a few references to conf.dhcp_domain)

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1583769/+subscriptions


References