Verifying Open vSwitch configuration
Verify the Open vSwitch configuration for the applicable network that you configured.
Procedure
- If you configured a GRE network, verify that there is at
least one port beginning with "gre-" created
on the br-tun bridge. Also, verify that the local
and remote IP addresses that are listed in the options field match
the IP addresses of the controller and the compute node.
> ovs-vsctl show Bridge br-tun Port br-tun Interface br-tun type: internal Port "gre-2" Interface "gre-2" type: gre options: {in_key=flow, local_ip="192.168.0.1", out_key=flow, remote_ip="192.168.0.2"} Port patch-int Interface patch-int type: patch options: {peer=patch-tun}
- If you configured a flat or VLAN network, verify you see
the following output:
- Verify that a bridge was created matching the name that you specified in the openstack.network.openvswitch.bridge_mappings property. Typically the bridge is called br-ethX.
- Verify that port ethX was added to bridge br-ethX as an interface.
- Verify that port phy-br-ethX was added to bridge br-ethX as an interface.
- Verify that port int-br-ethX was added to bridge br-int as an interface.
> ovs-vsctl show Bridge br-int Port br-int Interface br-int type: internal Port "int-br-eth1" Interface "int-br-eth1" Bridge "br-eth1" Port "br-eth1" Interface "br-eth1" type: internal Port "eth1" Interface "eth1" Port "phy-br-eth1" Interface "phy-br-eth1"
Note: The previous example was truncated to display only what you must verify. If you do not see "phy-br-ethX' and 'int-br-ethX' ports in the ovs-vsctl show output (c and d from the previous list), verify that neutron-openvswitch-agent is active (service neutron-openvswitch-agent status) and check the error log in /var/log/neutron/openvswitch-agent.log. - If you configured a VXLAN
network, verify that you see the following output.
- Verify that there is at least one port beginning with vxlan- created on the br-tun bridge.
- Verify that the local and remote IP addresses that are listed in the options field match the IP addresses of the controller and the compute node.
> ovs-vsctl show Bridge br-tun Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port br-tun Interface br-tun type: internal Port "vxlan-0a0b010b" Interface "vxlan-0a0b010b" type: vxlan options: {df_default="true", in_key=flow, local_ip="x.x.x.x", out_key=flow, remote_ip="y.y.y.y"}
- By default, the L3 agent and IP movement is
enabled. Unless you disabled them, verify that you can see the following
output. Specifically, you must verify that the port ethX was
added to the external network bridge (default is br-ex).
> ovs-vsctl show Bridge br-ex Port br-ex Interface br-ex type: internal Port "eth2" Interface "eth2"