Neutron does not follow the RFC 3442 spec for DHCP

Bug #1317935 reported by wmertens
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Christoph Arnold
Icehouse
New
Undecided
Unassigned

Bug Description

When metadata networking is enabled, neutron will generate a dnsmasq configuration that includes classless routes.

The RFC states that those routes should include the default route if they are defined, and that the DHCP client should ignore the default router.

This causes standards-abiding DHCP clients like dhcpcd to not provide a default gateway when running on nova.

At https://github.com/openstack/neutron/pull/22 you can see an example of how to fix this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/96474

Changed in neutron:
assignee: nobody → Christoph Arnold (1rnold)
status: New → In Progress
Kyle Mestery (mestery)
Changed in neutron:
importance: Undecided → Low
importance: Low → Medium
tags: added: l3-ipam-dhcp
Revision history for this message
Christoph Arnold (1rnold) wrote :

Proposed fix assumes an explicitly set gateway will override a conflicting default route set via additional host routes.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

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

commit ce59e63249dfcd86e782d056407e38e845cbe19c
Author: Christoph Arnold <email address hidden>
Date: Thu May 29 16:17:30 2014 +0200

    Neutron does not follow the RFC 3442 spec for DHCP

    When setting a gateway and additional host routes in neutron subnet, the
    gateway is only sent to clients via the router dhcp option, dhcp clients
    conforming to rfc3442 will ignore router option if
    classless-static-routes are available. This patch ensures setting both
    the router option and the classless-static-routes including the gateway

    Change-Id: Ia00b9385025020f848872309ae42ddac08528f53
    Closes-Bug: #1317935

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → juno-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/124068

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/icehouse)

Reviewed: https://review.openstack.org/124068
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=143b2dcf6dfbf95f275ab5f52ec727d1aeb9badf
Submitter: Jenkins
Branch: stable/icehouse

commit 143b2dcf6dfbf95f275ab5f52ec727d1aeb9badf
Author: Christoph Arnold <email address hidden>
Date: Thu May 29 16:17:30 2014 +0200

    Neutron does not follow the RFC 3442 spec for DHCP

    When setting a gateway and additional host routes in neutron subnet, the
    gateway is only sent to clients via the router dhcp option, dhcp clients
    conforming to rfc3442 will ignore router option if
    classless-static-routes are available. This patch ensures setting both
    the router option and the classless-static-routes including the gateway

    Change-Id: Ia00b9385025020f848872309ae42ddac08528f53
    Closes-Bug: #1317935
    (cherry picked from commit ce59e63249dfcd86e782d056407e38e845cbe19c)

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.