DHCP response drops not documented

Bug #1391360 reported by lacroix1547
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Low
Joseph Robinson

Bug Description

DHCP responses coming from instances are prohibited and dropped, but there is no mention about that in the official documentation. Users planning to use netbooting need to be informed, since netbooting relies on DHCP.

Here are 2 citations from the web explaining that.

"Rule 3 will prevent a VM from acting as a DHCP server since it will drop any packets coming from UDP source port 67 going to UDP port 68 (usually a response to a DHCP request)" from https://developer.rackspace.com/blog/software-defined-networks-in-the-havana-release-of-openstack-part-2/

"The security groups implementation automatically adds iptables rules to prevent instances running DHCP servers on a Quantum network." from https://ask.openstack.org/en/question/6967/how-to-allow-vm-to-manage-dhcp-itself/?answer=28135#post-id-28135

The code implementing that is in /usr/lib/python2.6/site-packages/neutron/agent/linux/iptables_firewall.py
Look for
    def _drop_dhcp_rule(self):
        #Note(nati) Drop dhcp packet from VM
        return ['-p udp -m udp --sport 67 --dport 68 -j DROP']

One could say that it is a feature of the security groups, since _drop_dhcp_rule is called by _add_rule_by_security_group.
One could also say that prohibiting "Bring your own DHCP server" is a more high level design detail.

affects: neutron → openstack-manuals
Revision history for this message
Tom Fifield (fifieldt) wrote :

This should be added to an appropriate point in the networking guide

tags: added: neutron
Changed in openstack-manuals:
status: New → Triaged
importance: Undecided → Low
milestone: none → kilo
Darren Chan (dazzachan)
tags: added: networking-guide
removed: neutron
tags: added: neutron
Leon Zachery (lzachery)
Changed in openstack-manuals:
assignee: nobody → Leon Zachery (lzachery)
Tom Fifield (fifieldt)
Changed in openstack-manuals:
milestone: kilo → liberty
Changed in openstack-manuals:
milestone: liberty → mitaka
Changed in openstack-manuals:
milestone: mitaka → newton
Revision history for this message
Akihiro Motoki (amotoki) wrote :

The current assignee has no activity for over one year. Removing assignee.

Changed in openstack-manuals:
assignee: Leon Zachery (lzachery) → nobody
Changed in openstack-manuals:
milestone: newton → ocata
Revision history for this message
Lana (loquacity) wrote :

I can't see a good place in the networking guide for this. Best place I can find is here: http://docs.openstack.org/user-guide/cli-nova-configure-access-security-for-instances.html.

Probably an admonition will do, around the end of the introduction, reading something like: "By default, security groups will automatically drop DHCP responses coming from instances."

tags: added: low-hanging-fruit
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

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

Changed in openstack-manuals:
assignee: nobody → Lana (loquacity)
status: Triaged → In Progress
Changed in openstack-manuals:
assignee: Lana (loquacity) → Joseph Robinson (joseph-r-email)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/408386
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=7327056123f47cd8719ae17ef77b31f33be133d0
Submitter: Jenkins
Branch: master

commit 7327056123f47cd8719ae17ef77b31f33be133d0
Author: Lana Brindley <email address hidden>
Date: Thu Dec 8 12:48:09 2016 +1000

    Add note about dropping DHCP responses

    As per bug, adding note about security groups automatically dropping
    DHCP responses from instances.

    Change-Id: I3f01ebc8ace3fa2a6708de1c8dc7817e3c987c76
    Closes-Bug: #1391360

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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