[ovs-discuss] Issue with vlan tag being changed after reboot of KVM hypervisor.
Pippin Wallace
nippip at gmail.com
Mon May 16 22:08:53 UTC 2016
First off I apologize for submitting a "bug" on such an old version but
what I am trying to find is the first "stable" OVS version where this bug
is fixed and move it it for now.
The situation is that the majority of our VM's running under KVM will have
changed vlan tags when the physical host is rebooted.
For example after a reboot one of the VM's will have the correct vlan tag
via "virsh dumpxml <domain>" but when we check with "ovs-vsctl list port
<vnet#>" we will see the wrong tag listed there. We have been resetting
the tags with "ovs-vsctl set port vnet# tag=#" but are looking for a "fix"
or the correct way to set our tags if that is the problem here.
Example of changed vlan tag after reboot of physical host.
# virsh dumpxml <domain> |egrep "vlan|vnet"
<source network='ovs-network' portgroup='vlan1531'/>
<source network='ovs-network2' portgroup='vlan1'/>
# ovs-vsctl list port vnet1
_uuid : 294a4d29-...
...
tag : 1532
Here is what we are currently running. Please let me know if more info is
needed.
# ovs-vswitchd --version
ovs-vswitchd (Open vSwitch) 1.9.3
Compiled Sep 25 2013 23:06:01
OpenFlow versions 0x1:0x1
# yum list installed |grep openvs
kmod-openvswitch.x86_64 1.9.3-1.el6
openvswitch.x86_64 1.9.3-1
# cat /proc/version
Linux version 2.6.32-358.23.2.el6.x86_64 (gcc version 4.4.7 20120313 (Red
Hat 4.4.7-3) (GCC) ) #1 SMP Wed Oct 16 11:16:45 PDT 2013
# ovs-dpctl show
system at vs1:
lookups: hit:6259721816 missed:301537 lost:0
flows: 0
port 0: vswitch1 (internal)
port 1: bond1
port 2: vlan1 (internal)
system at vs0:
lookups: hit:266148317073 missed:37345156801 lost:0
flows: 665
port 0: vswitch0 (internal)
port 1: bond0
port 2: vlan646 (internal)
port 4: vnet2
port 26: vnet24
port 31: vnet14
port 168: vnet3
port 169: vnet4
port 170: vnet5
port 171: vnet6
port 172: vnet7
port 173: vnet8
port 174: vnet9
port 175: vnet10
port 176: vnet11
port 177: vnet12
port 202: vnet15
port 203: vnet16
port 207: vnet13
port 208: vnet0
port 213: vnet1
port 214: vnet19
port 215: vnet20
port 216: vnet17
port 217: vnet18
port 218: vnet21
port 220: vnet23
port 221: vnet22
port 225: vnet25
#
Full output when tag is set wrong after reboot.
# virsh dumpxml <domain> |egrep "vlan|vnet"
<source network='ovs-network' portgroup='vlan1531'/>
<source network='ovs-network2' portgroup='vlan1'/>
# ovs-vsctl list port vnet1
_uuid : 294a4d29-...
bond_downdelay : 0
bond_fake_iface : false
bond_mode : []
bond_updelay : 0
external_ids : {}
fake_bridge : false
interfaces : [8f508c8b-...]
lacp : []
mac : []
name : "vnet1"
other_config : {}
qos : []
statistics : {}
status : {}
tag : 1532
trunks : []
vlan_mode : []
#
Our workaround thus far is to set the tag back or not reboot the KVM
hypervisor.
# ovs-vsctl set port vnet1 tag=1531
Regards -- Pippin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160516/2a579ab6/attachment-0002.html>
More information about the discuss
mailing list