dhcp_filter applied in FirewallDriver for FlatManager

Bug #704737 reported by Nachi Ueno
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Hua Zhang

Bug Description

The dhcp_filter applied in FirewallDriver for FlatManager which do not use DHCP server.

I think NetworkManager and FirewallDriver are mutually related, so some refactoring may be needed.

Revision history for this message
Thierry Carrez (ttx) wrote :

Trying to set Importance: what is the effect of the bug ? Does it break anything ? Or is it just superfluous ?

Changed in nova:
status: New → Incomplete
Revision history for this message
Nachi Ueno (nati-ueno) wrote :

I think it is it just superfluous, so this is not serious bug.
Unnecessary port ( This is for DHCP ) is opened.

Revision history for this message
Thierry Carrez (ttx) wrote :

OK, thanks !

Changed in nova:
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
Mark McLoughlin (markmc) wrote :

I think this is as simple as doing:

Fix for this is quite simple, I think. In setup_basic_filtering(), do:

   allow_dhcp = 'dhcp_server' in network_info

and pass that to ensure_static_filters() and only add the allow-dhcp-server rule if that's true

tags: added: flat-networking low-hanging-fruit
Sean Dague (sdague)
Changed in nova:
assignee: nobody → Sean Dague (sdague-b)
Sean Dague (sdague)
Changed in nova:
assignee: Sean Dague (sdague-b) → nobody
Hua Zhang (zhhuabj)
Changed in nova:
assignee: nobody → Zhang Hua (zhhuabj)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Revision history for this message
Hua Zhang (zhhuabj) wrote :

someone can help me review the code, I have updated a new patch, many thanks.

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

Reviewed: https://review.openstack.org/6569
Committed: http://github.com/openstack/nova/commit/763a3678407b244b680fd0bf2c6bcee60e8352c2
Submitter: Jenkins
Branch: master

commit 763a3678407b244b680fd0bf2c6bcee60e8352c2
Author: hua zhang <email address hidden>
Date: Wed May 9 14:11:00 2012 +0800

    Avoid setting up DHCP firewall rules with FlatManager

    Fixes bug #704737

    With FlatManager, ensure that the network info's dhcp_server value is not set
    and use that key to decide in the compute service whether DHCP firewall rules should be added.

    Change-Id: I8183a6fa3881adea1a09f3f1a29442e6b7a919ce

Changed in nova:
status: In Progress → Fix Committed
Tom Fifield (fifieldt)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
Vish Ishaya (vishvananda) wrote :

Tom, we use fix Committed until it is part of a milestone, at which point it is converted to fix released.

Changed in nova:
status: Fix Released → Fix Committed
Devin Carlen (devcamcar)
Changed in nova:
milestone: none → folsom-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-1 → 2012.2
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.