port on openvswitch not tagged upon VM launch

asked 2014-01-29 11:37:39 -0600

sequel gravatar image

Hi openstack community,

i have a nearly working neutron + openvswitch + VLAN setup but, i have a small problem however...

I am running neutron-server on a node controller and neutron-openvswitch-agent and neutron-dhcp-agent running on a compute node.

On the compute node, i have an initial bridge, with two physical interfaces in bonding, with some VLANs trunked on the bond.

On the controller node, i created a network with --provider:network_type vlan and --provider:segmentation_id xxx (xxx being one of the VLAN trunked on the bond inside my initial bridge). Then, i created a subnet on that network.

When i launch neutron-dhcp-agent on the compute node, everything seem fine : the namespace is being created, there is a port with tag 1 on the integration bridge for the dnsmasq process and, i can ping the IP of the dnsmasq process from a device on the xxx vlan. I can also see the openflow flows for vlan modification on both bridge (vlan xxx to vlan 1, vlan 1 to vlan xxx).

However, my problem is that when i launch a VM using the network i created in neutron, a port is being created in the integration bridge but, it is not tagged with vlan 1 so, the VM is unable to communicate on the network. As soon as i tag the port with vlan 1, with a command like : ovs-vsctl set Port tap1234-ab tag=1 , the VM is able to communicate on the network.

So, am i missing something obvious? Or maybe that i have something misconfigured in my neutron setup?

Any help would be greatly appreciated.

Regards,

Tony

edit retag flag offensive close merge delete

Comments

Is this using XenServer? There is a problem specific to OpenStack with XenServer: https://bugs.launchpad.net/neutron/+bug/1268955 . If that bug affects you, please add yourself to the "affected" by clicking the "this bug affects me too" link near the top left. That will add to the "bug heat".

Andrew Kinney gravatar imageAndrew Kinney ( 2014-02-27 21:42:06 -0600 )edit