openstack H版本多节点openvswitch的br-tun无法创建gre tunnel的解决方法

特点:VM可以启动,web界面显示有ip,但是vnc进去显示无ip,手动设置ip后也ping不通


通过以下命令可以查看br-tun上面没有建立GRE隧道

ovs-ofctl show br-tun
然后openvswitch-agent的日志中显示:
ERROR neutron.agent.linux.ovs_lib [-] Unable to execute ['ovs-ofctl', 'add-flow', 'br-tun', 'hard_timeout=0,idle_timeout=0,priority=1,in_port=-1,actions=resubmit(,2)']. Exception:
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'add-flow', 'br-tun', 'hard_timeout=0,idle_timeout=0,priority=1,in_port=-1,actions=resubmit(,2)']
Exit code: 1
Stdout: ''
Stderr: 'ovs-ofctl: -1: negative values not supported for in_port\n'

在launchpad上有个对应bug:

https://bugs.launchpad.net/neutron/+bug/1238445


有提到安装:
sudo apt-get install openvswitch-datapath-dkms

最后按照这个解决

https://ask.openstack.org/en/question/6598/gre-tunnels-not-being-created/


其实就是

sudo apt-get install openvswitch-datapath-dkms

然后重启服务器即可


要么按照bug/1238445中最后提到的bug fix的步骤改改代码:

https://github.com/openstack/neutron/commit/edddad586332335578477df464be13f5a2b4a45f

你可能感兴趣的:(openstack H版本多节点openvswitch的br-tun无法创建gre tunnel的解决方法)