← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1181378] Re: dhcp-agent network namespace does not have a default route, can't use upstream dns

 

** Changed in: neutron
       Status: Fix Committed => 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/1181378

Title:
  dhcp-agent network namespace does not have a default route, can't use
  upstream dns

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  The network namespace that dnsmasq runs in does not have a default
  route on creation (to the router for that network) and as such trying
  to use an upstream nameserver fails.

  root@somehost# for i in $(ip netns | grep dhcp); do ip netns exec $i route -n; done
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  10.0.137.0      0.0.0.0         255.255.255.0   U     0      0        0 tap1a7c6129-07
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  192.168.224.0   0.0.0.0         255.255.255.0   U     0      0        0 tap43bd32a8-82
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  192.168.225.0   0.0.0.0         255.255.255.0   U     0      0        0 tap01947148-b2
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  0.0.0.0         10.0.129.1      0.0.0.0         UG    0      0        0 tapb4f816ac-a4
  10.0.129.0      0.0.0.0         255.255.255.0   U     0      0        0 tapb4f816ac-a4
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  10.0.10.0       0.0.0.0         255.255.255.0   U     0      0        0 tapb5919ca3-bc

  I have added the default route on only 1 of the namespaces, the
  10.0.129.0/24 one but all others do not have them and can therefore
  not resolve their upstream servers.

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