Nonhomogeneous networks not supported

Bug #833426 reported by Trey Morris
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Vish Ishaya
Diablo
Fix Released
Undecided
Joe Gordon

Bug Description

Hi all,

I've got a 2 nodes openstack setup were I'm testing a VlanManager network: both the nodes are natty 11.04 64bit running Diablo milestone (2011.3~d3-0ubuntu0~ppa1~natty1).
One of the node runs the nova-sheduler and the nova-network services.
It has the following network related flags:
--network_manager=nova.network.manager.VlanManager
--flat_network_dhcp_start=10.12.1.1
--flat_network_dns=212.29.129.3
--fixed_range=10.12.0.0/16
--iscsi_ip_prefix=10.10.11.
--vlan_interface=eth0
--flat_interface=eth0
--public_interface=eth1

The other runs nova-compute and has the following network related flags:
--network_manager=nova.network.manager.VlanManager
--flat_network_dhcp_start=10.12.1.1
--flat_network_dns=212.29.129.3
--fixed_range=10.12.0.0/16
--iscsi_ip_prefix=10.10.11.
--vlan_interface=eth4
--flat_interface=eth4
--public_interface=eth1
--logdir=/var/log/nova
--state_path=/var/lib/nova
--verbose

If I check the registered vlan config on this node I got:
root@beta:~# nova-manage config list|grep vlan
--vlan_interface=eth4
--vlan_start=100

If i look in the nova-compute.log, at service startup i can see:
2011-08-24 10:18:59,542 DEBUG nova [-] find_host_timeout : 30 from (pid=3460) serve /usr/lib/pymodules/python2.7/nova/service.py:366
2011-08-24 10:18:59,542 DEBUG nova [-] vlan_interface : eth4 from (pid=3460) serve /usr/lib/pymodules/python2.7/nova/service.py:366
2011-08-24 10:18:59,542 DEBUG nova [-] aws_access_key_id : admin from (pid=3460) serve /usr/lib/pymodules/python2.7/nova/service.py:366

But when i deploy a vm from a project who is placed on vlan 12, in the same log I can see:
2011-08-24 10:21:45,862 DEBUG nova.linux_net [-] Starting VLAN inteface vlan12 from (pid=3460) ensure_vlan /usr/lib/pymodules/python2.7/nova/network/linux_net.py:466
2011-08-24 10:21:45,862 DEBUG nova.utils [-] Running cmd (subprocess): sudo vconfig set_name_type VLAN_PLUS_VID_NO_PAD from (pid=3460) execute /usr/lib/pymodules/python2.7/nova/utils.py:143
2011-08-24 10:21:45,907 DEBUG nova.utils [-] Running cmd (subprocess): sudo vconfig add eth0 12 from (pid=3460) execute /usr/lib/pymodules/python2.7/nova/utils.py:143
2011-08-24 10:21:45,921 DEBUG nova.utils [-] Running cmd (subprocess): sudo ip link set vlan12 up from (pid=3460) execute /usr/lib/pymodules/python2.7/nova/utils.py:143
2011-08-24 10:21:45,937 DEBUG nova.utils [-] Attempting to grab semaphore "ensure_bridge" for method "ensure_bridge"... from (pid=3460) inner /usr/lib/pymodules/python2.7/nova/utils.py:600
2011-08-24 10:21:45,937 DEBUG nova.utils [-] Attempting to grab file lock "ensure_bridge" for method "ensure_bridge"... from (pid=3460) inner /usr/lib/pymodules/python2.7/nova/utils.py:605
2011-08-24 10:21:45,938 DEBUG nova.utils [-] Running cmd (subprocess): ip link show dev br12 from (pid=3460) execute /usr/lib/pymodules/python2.7/nova/utils.py:143
2011-08-24 10:21:45,943 DEBUG nova.utils [-] Result was 255 from (pid=3460) execute /usr/lib/pymodules/python2.7/nova/utils.py:161
2011-08-24 10:21:45,944 DEBUG nova.linux_net [-] Starting Bridge interface for vlan12 from (pid=3460) ensure_bridge /usr/lib/pymodules/python2.7/nova/network/linux_net.py:489

the compute node uses eth0 to create the vlan instead of eth4.
In this case eth0 is both the default value and the controller node's vlan_interface value.
Am i missing some further flag in my nova.conf?

Thanks
Giuseppe

Revision history for this message
Trey Morris (tr3buchet) wrote :

plan: reduce flat_interface and vlan_interface to bridge_interface. Default these flags to none. If the flag is specified it will override the value in the table. Upon network creation the flag will only be used if the --bridge_interface parameter is not passed.

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Wishlist
status: New → Confirmed
Changed in nova:
assignee: nobody → Vish Ishaya (vishvananda)
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/3687

Changed in nova:
status: Confirmed → In Progress
Brian Waldon (bcwaldon)
Changed in nova:
milestone: none → essex-4
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/3687
Committed: http://github.com/openstack/nova/commit/8efe15209aaee6b15c8edb21362c08137294a7de
Submitter: Jenkins
Branch: master

commit 8efe15209aaee6b15c8edb21362c08137294a7de
Author: Vishvananda Ishaya <email address hidden>
Date: Thu Feb 2 10:59:43 2012 -0800

    Provides flag override for vlan interface

    This means you can have your vlan_interface be different on
    different hosts machines by setting vlan_interface differently
    on each host.

     * Allow non-homogenous vlan networks
     * Fixes bug 833426
     * Includes failing test for linux_net

    Change-Id: I2f0d43c1366f88a8832a779c4065b37dd1a5bdf8

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/diablo)

Fix proposed to branch: stable/diablo
Review: https://review.openstack.org/3836

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

Reviewed: https://review.openstack.org/3836
Committed: http://github.com/openstack/nova/commit/d064c4460b8719ac3fda3d8e369fa5dc77ac6ec4
Submitter: Jenkins
Branch: stable/diablo

commit d064c4460b8719ac3fda3d8e369fa5dc77ac6ec4
Author: Vishvananda Ishaya <email address hidden>
Date: Thu Feb 2 10:59:43 2012 -0800

    Provides flag override for vlan interface

    This means you can have your vlan_interface be different on
    different hosts machines by setting vlan_interface differently
    on each host.

     * Allow non-homogenous vlan networks
     * Fixes bug 833426
     * Includes failing test for linux_net

    (cherry picked from commit 8efe15209aaee6b15c8edb21362c08137294a7de)

    Resolved Conflicts:

     nova/tests/test_linux_net.py

    Change-Id: I68aa52e745318cedfbefb6fbac8187fceb1ae06b

tags: added: in-stable-diablo
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-4 → 2012.1
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.