OVN Provider setup issues

Hi all, I've been messing around with the ovirt-ovn-provider [1] and I've run into some issues during the initial setup. I have a 5-node cluster (running the hosted-engine VA), LEGACY virtual switch; this test was done on a single host. Following the instructions from the aforementioned blog post, I have downloaded the ovirt-provider-ovn and ovirt-provider-ovn-driver rpms, and built the rpm packages for: - openvswitch (2.6.90) - openvswitch-ovn-common - openvswitch-ovn-host - openvswitch-ovn-central - python-openvswitch I set up a dedicated VM for the OVN controller, installed ovs and ovn-central, started the ovn-northd and ovirt-provider-ovn services. So far so good. I then moved on to the oVirt host and installed the above packages (minus ovn-central) as well as the ovirt-provider-ovn-driver provided, started the ovn-controller service and ran # vdsm-tool ovn-config <ovn controller IP> <host management IP> Executing the suggested checks I noticed that something didn't quite go as planned. Below is the /var/log/openvswitch/ovn-controller.log from the host machine. There are no firewalls involved (not even on the servers) and I also tried disabling SELinux but to no avail. Any ideas? Thanks, Andrea [1] http://www.ovirt.org/blog/2016/11/ovirt-provider-ovn/ 2016-11-07T14:22:09.552Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-controller.log 2016-11-07T14:22:09.553Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2016-11-07T14:22:09.553Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2016-11-07T14:22:09.555Z|00004|reconnect|INFO|tcp:10.100.248.11:6642: connecting... 2016-11-07T14:22:09.555Z|00005|reconnect|INFO|tcp:10.100.248.11:6642: connected 2016-11-07T14:22:09.556Z|00006|ofctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.556Z|00007|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00008|pinctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.557Z|00009|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00010|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.557Z|00011|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.558Z|00012|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x9): OFPBMC_BAD_FIELD OFPT_FLOW_MOD (OF1.3) (xid=0x9): (***truncated to 64 bytes from 240***) 00000000 04 0e 00 f0 00 00 00 09-00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00-22 00 00 00 00 00 00 00 |........".......| 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................| 00000030 00 01 00 04 00 00 00 00-00 04 00 b8 00 00 00 00 |................|

On Tue, Nov 08, 2016 at 09:21:13AM +0100, Andrea Fagiani wrote:
Hi all,
I've been messing around with the ovirt-ovn-provider [1] and I've run into some issues during the initial setup.
I have a 5-node cluster (running the hosted-engine VA), LEGACY virtual switch; this test was done on a single host. Following the instructions from the aforementioned blog post, I have downloaded the ovirt-provider-ovn and ovirt-provider-ovn-driver rpms, and built the rpm packages for:
- openvswitch (2.6.90) - openvswitch-ovn-common - openvswitch-ovn-host - openvswitch-ovn-central - python-openvswitch
I set up a dedicated VM for the OVN controller, installed ovs and ovn-central, started the ovn-northd and ovirt-provider-ovn services. So far so good. I then moved on to the oVirt host and installed the above packages (minus ovn-central) as well as the ovirt-provider-ovn-driver provided, started the ovn-controller service and ran
# vdsm-tool ovn-config <ovn controller IP> <host management IP>
Executing the suggested checks I noticed that something didn't quite go as planned. Below is the /var/log/openvswitch/ovn-controller.log from the host machine. There are no firewalls involved (not even on the servers) and I also tried disabling SELinux but to no avail.
Any ideas?
Thanks, Andrea
[1] http://www.ovirt.org/blog/2016/11/ovirt-provider-ovn/
2016-11-07T14:22:09.552Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-controller.log 2016-11-07T14:22:09.553Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2016-11-07T14:22:09.553Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2016-11-07T14:22:09.555Z|00004|reconnect|INFO|tcp:10.100.248.11:6642: connecting... 2016-11-07T14:22:09.555Z|00005|reconnect|INFO|tcp:10.100.248.11:6642: connected 2016-11-07T14:22:09.556Z|00006|ofctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.556Z|00007|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00008|pinctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.557Z|00009|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00010|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.557Z|00011|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.558Z|00012|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x9): OFPBMC_BAD_FIELD OFPT_FLOW_MOD (OF1.3) (xid=0x9): (***truncated to 64 bytes from 240***) 00000000 04 0e 00 f0 00 00 00 09-00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00-22 00 00 00 00 00 00 00 |........".......| 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................| 00000030 00 01 00 04 00 00 00 00-00 04 00 b8 00 00 00 00 |................|
Andrea, could you tell (mostly Lance) which kernel version are you using?

On 16/11/2016 17:23, Dan Kenigsberg wrote:
On Tue, Nov 08, 2016 at 09:21:13AM +0100, Andrea Fagiani wrote:
Hi all,
I've been messing around with the ovirt-ovn-provider [1] and I've run into some issues during the initial setup.
I have a 5-node cluster (running the hosted-engine VA), LEGACY virtual switch; this test was done on a single host. Following the instructions from the aforementioned blog post, I have downloaded the ovirt-provider-ovn and ovirt-provider-ovn-driver rpms, and built the rpm packages for:
- openvswitch (2.6.90) - openvswitch-ovn-common - openvswitch-ovn-host - openvswitch-ovn-central - python-openvswitch
I set up a dedicated VM for the OVN controller, installed ovs and ovn-central, started the ovn-northd and ovirt-provider-ovn services. So far so good. I then moved on to the oVirt host and installed the above packages (minus ovn-central) as well as the ovirt-provider-ovn-driver provided, started the ovn-controller service and ran
# vdsm-tool ovn-config <ovn controller IP> <host management IP>
Executing the suggested checks I noticed that something didn't quite go as planned. Below is the /var/log/openvswitch/ovn-controller.log from the host machine. There are no firewalls involved (not even on the servers) and I also tried disabling SELinux but to no avail.
Any ideas?
Thanks, Andrea
[1] http://www.ovirt.org/blog/2016/11/ovirt-provider-ovn/
2016-11-07T14:22:09.552Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-controller.log 2016-11-07T14:22:09.553Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2016-11-07T14:22:09.553Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2016-11-07T14:22:09.555Z|00004|reconnect|INFO|tcp:10.100.248.11:6642: connecting... 2016-11-07T14:22:09.555Z|00005|reconnect|INFO|tcp:10.100.248.11:6642: connected 2016-11-07T14:22:09.556Z|00006|ofctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.556Z|00007|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00008|pinctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.557Z|00009|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00010|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.557Z|00011|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.558Z|00012|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x9): OFPBMC_BAD_FIELD OFPT_FLOW_MOD (OF1.3) (xid=0x9): (***truncated to 64 bytes from 240***) 00000000 04 0e 00 f0 00 00 00 09-00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00-22 00 00 00 00 00 00 00 |........".......| 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................| 00000030 00 01 00 04 00 00 00 00-00 04 00 b8 00 00 00 00 |................| Andrea, could you tell (mostly Lance) which kernel version are you using? Here is the yum info output for the kernel package on the offending host:
Installed Packages Name : kernel Arch : x86_64 Version : 3.10.0 Release : 327.36.3.el7 Andrea

From: "Andrea Fagiani" <andrea.fagiani@immobiliare.it> To: "Dan Kenigsberg" <danken@redhat.com> Cc: users@ovirt.org, "Lance Richardson" <lrichard@redhat.com>, mmirecki@redhat.com Sent: Wednesday, November 16, 2016 12:24:15 PM Subject: Re: [ovirt-users] OVN Provider setup issues
On 16/11/2016 17:23, Dan Kenigsberg wrote:
On Tue, Nov 08, 2016 at 09:21:13AM +0100, Andrea Fagiani wrote:
Hi all,
I've been messing around with the ovirt-ovn-provider [1] and I've run into some issues during the initial setup.
I have a 5-node cluster (running the hosted-engine VA), LEGACY virtual switch; this test was done on a single host. Following the instructions from the aforementioned blog post, I have downloaded the ovirt-provider-ovn and ovirt-provider-ovn-driver rpms, and built the rpm packages for:
- openvswitch (2.6.90) - openvswitch-ovn-common - openvswitch-ovn-host - openvswitch-ovn-central - python-openvswitch
I set up a dedicated VM for the OVN controller, installed ovs and ovn-central, started the ovn-northd and ovirt-provider-ovn services. So far so good. I then moved on to the oVirt host and installed the above packages (minus ovn-central) as well as the ovirt-provider-ovn-driver provided, started the ovn-controller service and ran
# vdsm-tool ovn-config <ovn controller IP> <host management IP>
Executing the suggested checks I noticed that something didn't quite go as planned. Below is the /var/log/openvswitch/ovn-controller.log from the host machine. There are no firewalls involved (not even on the servers) and I also tried disabling SELinux but to no avail.
Any ideas?
Thanks, Andrea
[1] http://www.ovirt.org/blog/2016/11/ovirt-provider-ovn/
2016-11-07T14:22:09.552Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-controller.log 2016-11-07T14:22:09.553Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2016-11-07T14:22:09.553Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2016-11-07T14:22:09.555Z|00004|reconnect|INFO|tcp:10.100.248.11:6642: connecting... 2016-11-07T14:22:09.555Z|00005|reconnect|INFO|tcp:10.100.248.11:6642: connected 2016-11-07T14:22:09.556Z|00006|ofctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.556Z|00007|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00008|pinctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.557Z|00009|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00010|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.557Z|00011|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.558Z|00012|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x9): OFPBMC_BAD_FIELD OFPT_FLOW_MOD (OF1.3) (xid=0x9): (***truncated to 64 bytes from 240***) 00000000 04 0e 00 f0 00 00 00 09-00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00-22 00 00 00 00 00 00 00 |........".......| 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................| 00000030 00 01 00 04 00 00 00 00-00 04 00 b8 00 00 00 00 |................| Andrea, could you tell (mostly Lance) which kernel version are you using? Here is the yum info output for the kernel package on the offending host:
Installed Packages Name : kernel Arch : x86_64 Version : 3.10.0 Release : 327.36.3.el7
Andrea
OK, the 327 kernel did not support conntrack and cannot be used for OVN. RHEL 7.3 or newer is the minimum requirement for OVN. Lance

On Wed, Nov 16, 2016 at 12:37:57PM -0500, Lance Richardson wrote:
From: "Andrea Fagiani" <andrea.fagiani@immobiliare.it> To: "Dan Kenigsberg" <danken@redhat.com> Cc: users@ovirt.org, "Lance Richardson" <lrichard@redhat.com>, mmirecki@redhat.com Sent: Wednesday, November 16, 2016 12:24:15 PM Subject: Re: [ovirt-users] OVN Provider setup issues
On 16/11/2016 17:23, Dan Kenigsberg wrote:
On Tue, Nov 08, 2016 at 09:21:13AM +0100, Andrea Fagiani wrote:
Hi all,
I've been messing around with the ovirt-ovn-provider [1] and I've run into some issues during the initial setup.
I have a 5-node cluster (running the hosted-engine VA), LEGACY virtual switch; this test was done on a single host. Following the instructions from the aforementioned blog post, I have downloaded the ovirt-provider-ovn and ovirt-provider-ovn-driver rpms, and built the rpm packages for:
- openvswitch (2.6.90) - openvswitch-ovn-common - openvswitch-ovn-host - openvswitch-ovn-central - python-openvswitch
I set up a dedicated VM for the OVN controller, installed ovs and ovn-central, started the ovn-northd and ovirt-provider-ovn services. So far so good. I then moved on to the oVirt host and installed the above packages (minus ovn-central) as well as the ovirt-provider-ovn-driver provided, started the ovn-controller service and ran
# vdsm-tool ovn-config <ovn controller IP> <host management IP>
Executing the suggested checks I noticed that something didn't quite go as planned. Below is the /var/log/openvswitch/ovn-controller.log from the host machine. There are no firewalls involved (not even on the servers) and I also tried disabling SELinux but to no avail.
Any ideas?
Thanks, Andrea
[1] http://www.ovirt.org/blog/2016/11/ovirt-provider-ovn/
2016-11-07T14:22:09.552Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-controller.log 2016-11-07T14:22:09.553Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2016-11-07T14:22:09.553Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2016-11-07T14:22:09.555Z|00004|reconnect|INFO|tcp:10.100.248.11:6642: connecting... 2016-11-07T14:22:09.555Z|00005|reconnect|INFO|tcp:10.100.248.11:6642: connected 2016-11-07T14:22:09.556Z|00006|ofctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.556Z|00007|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00008|pinctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.557Z|00009|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00010|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.557Z|00011|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.558Z|00012|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x9): OFPBMC_BAD_FIELD OFPT_FLOW_MOD (OF1.3) (xid=0x9): (***truncated to 64 bytes from 240***) 00000000 04 0e 00 f0 00 00 00 09-00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00-22 00 00 00 00 00 00 00 |........".......| 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................| 00000030 00 01 00 04 00 00 00 00-00 04 00 b8 00 00 00 00 |................| Andrea, could you tell (mostly Lance) which kernel version are you using? Here is the yum info output for the kernel package on the offending host:
Installed Packages Name : kernel Arch : x86_64 Version : 3.10.0 Release : 327.36.3.el7
Andrea
OK, the 327 kernel did not support conntrack and cannot be used for OVN.
RHEL 7.3 or newer is the minimum requirement for OVN.
Lance, can you encode this requirement in openvswitch-ovn-host.rpm ? Regards, Dan.

From: "Dan Kenigsberg" <danken@redhat.com>
OK, the 327 kernel did not support conntrack and cannot be used for OVN.
RHEL 7.3 or newer is the minimum requirement for OVN.
Lance, can you encode this requirement in openvswitch-ovn-host.rpm ?
Regards, Dan.
Hi Dan, The distribution rpms should have correct dependencies, but we don't have those yet. Unfortunately there's no practical way to do that for packages built from upstream sources. We are looking into improving error messages for this condition in OVN, FWIW, which will at least make it easier to spot. Regards, Lance

From: "Lance Richardson" <lrichard@redhat.com> To: "Andrea Fagiani" <andrea.fagiani@immobiliare.it> Cc: "Dan Kenigsberg" <danken@redhat.com>, users@ovirt.org, mmirecki@redhat.com Sent: Wednesday, November 16, 2016 12:37:57 PM Subject: Re: [ovirt-users] OVN Provider setup issues
From: "Andrea Fagiani" <andrea.fagiani@immobiliare.it> To: "Dan Kenigsberg" <danken@redhat.com> Cc: users@ovirt.org, "Lance Richardson" <lrichard@redhat.com>, mmirecki@redhat.com Sent: Wednesday, November 16, 2016 12:24:15 PM Subject: Re: [ovirt-users] OVN Provider setup issues
On 16/11/2016 17:23, Dan Kenigsberg wrote:
On Tue, Nov 08, 2016 at 09:21:13AM +0100, Andrea Fagiani wrote:
Hi all,
I've been messing around with the ovirt-ovn-provider [1] and I've run into some issues during the initial setup.
I have a 5-node cluster (running the hosted-engine VA), LEGACY virtual switch; this test was done on a single host. Following the instructions from the aforementioned blog post, I have downloaded the ovirt-provider-ovn and ovirt-provider-ovn-driver rpms, and built the rpm packages for:
- openvswitch (2.6.90) - openvswitch-ovn-common - openvswitch-ovn-host - openvswitch-ovn-central - python-openvswitch
I set up a dedicated VM for the OVN controller, installed ovs and ovn-central, started the ovn-northd and ovirt-provider-ovn services. So far so good. I then moved on to the oVirt host and installed the above packages (minus ovn-central) as well as the ovirt-provider-ovn-driver provided, started the ovn-controller service and ran
# vdsm-tool ovn-config <ovn controller IP> <host management IP>
Executing the suggested checks I noticed that something didn't quite go as planned. Below is the /var/log/openvswitch/ovn-controller.log from the host machine. There are no firewalls involved (not even on the servers) and I also tried disabling SELinux but to no avail.
Any ideas?
Thanks, Andrea
[1] http://www.ovirt.org/blog/2016/11/ovirt-provider-ovn/
2016-11-07T14:22:09.552Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-controller.log 2016-11-07T14:22:09.553Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2016-11-07T14:22:09.553Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2016-11-07T14:22:09.555Z|00004|reconnect|INFO|tcp:10.100.248.11:6642: connecting... 2016-11-07T14:22:09.555Z|00005|reconnect|INFO|tcp:10.100.248.11:6642: connected 2016-11-07T14:22:09.556Z|00006|ofctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.556Z|00007|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00008|pinctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.557Z|00009|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00010|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.557Z|00011|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.558Z|00012|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x9): OFPBMC_BAD_FIELD OFPT_FLOW_MOD (OF1.3) (xid=0x9): (***truncated to 64 bytes from 240***) 00000000 04 0e 00 f0 00 00 00 09-00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00-22 00 00 00 00 00 00 00 |........".......| 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................| 00000030 00 01 00 04 00 00 00 00-00 04 00 b8 00 00 00 00 |................| Andrea, could you tell (mostly Lance) which kernel version are you using? Here is the yum info output for the kernel package on the offending host:
Installed Packages Name : kernel Arch : x86_64 Version : 3.10.0 Release : 327.36.3.el7
Andrea
OK, the 327 kernel did not support conntrack and cannot be used for OVN.
RHEL 7.3 or newer is the minimum requirement for OVN.
Lance
Hi Andrea, If you'd like to avoid upgrading to 7.3, one workaround would be to build and install the OVS kernel module RPM. The easiest way to build the OVS kernel RPM would be, from the ovs directory where you already executed "./boot.sh" and "./configure", to execute: make rpm-fedora-kmod (Don't be misled by the name, this also works for CentOS and RHEL). The resulting RPM will be under the ./rpm/RPMS/ directory, something like: ./rpm/rpmbuild/RPMS/x86_64/openvswitch-kmod-2.6.90-1.el7.centos.x86_64.rpm Regards, Lance

Hi Lance, thanks, I have currently deployed oVirt using the oVirt Node images, so indeed I would like to avoid updating; out of curiosity, is there actually a beta/pre-release version of the node avaiable? I have since reinstalled the host to perform further testing but I'll give it a shot as soon as soon as I find the time. Regards, Andrea On 17/11/2016 21:57, Lance Richardson wrote:
From: "Lance Richardson" <lrichard@redhat.com> To: "Andrea Fagiani" <andrea.fagiani@immobiliare.it> Cc: "Dan Kenigsberg" <danken@redhat.com>, users@ovirt.org, mmirecki@redhat.com Sent: Wednesday, November 16, 2016 12:37:57 PM Subject: Re: [ovirt-users] OVN Provider setup issues
From: "Andrea Fagiani" <andrea.fagiani@immobiliare.it> To: "Dan Kenigsberg" <danken@redhat.com> Cc: users@ovirt.org, "Lance Richardson" <lrichard@redhat.com>, mmirecki@redhat.com Sent: Wednesday, November 16, 2016 12:24:15 PM Subject: Re: [ovirt-users] OVN Provider setup issues
On 16/11/2016 17:23, Dan Kenigsberg wrote:
On Tue, Nov 08, 2016 at 09:21:13AM +0100, Andrea Fagiani wrote:
Hi all,
I've been messing around with the ovirt-ovn-provider [1] and I've run into some issues during the initial setup.
I have a 5-node cluster (running the hosted-engine VA), LEGACY virtual switch; this test was done on a single host. Following the instructions from the aforementioned blog post, I have downloaded the ovirt-provider-ovn and ovirt-provider-ovn-driver rpms, and built the rpm packages for:
- openvswitch (2.6.90) - openvswitch-ovn-common - openvswitch-ovn-host - openvswitch-ovn-central - python-openvswitch
I set up a dedicated VM for the OVN controller, installed ovs and ovn-central, started the ovn-northd and ovirt-provider-ovn services. So far so good. I then moved on to the oVirt host and installed the above packages (minus ovn-central) as well as the ovirt-provider-ovn-driver provided, started the ovn-controller service and ran
# vdsm-tool ovn-config <ovn controller IP> <host management IP>
Executing the suggested checks I noticed that something didn't quite go as planned. Below is the /var/log/openvswitch/ovn-controller.log from the host machine. There are no firewalls involved (not even on the servers) and I also tried disabling SELinux but to no avail.
Any ideas?
Thanks, Andrea
[1] http://www.ovirt.org/blog/2016/11/ovirt-provider-ovn/
2016-11-07T14:22:09.552Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovn-controller.log 2016-11-07T14:22:09.553Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2016-11-07T14:22:09.553Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2016-11-07T14:22:09.555Z|00004|reconnect|INFO|tcp:10.100.248.11:6642: connecting... 2016-11-07T14:22:09.555Z|00005|reconnect|INFO|tcp:10.100.248.11:6642: connected 2016-11-07T14:22:09.556Z|00006|ofctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.556Z|00007|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00008|pinctrl|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting to switch 2016-11-07T14:22:09.557Z|00009|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connecting... 2016-11-07T14:22:09.557Z|00010|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.557Z|00011|rconn|INFO|unix:/var/run/openvswitch/br-int.mgmt: connected 2016-11-07T14:22:09.558Z|00012|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x9): OFPBMC_BAD_FIELD OFPT_FLOW_MOD (OF1.3) (xid=0x9): (***truncated to 64 bytes from 240***) 00000000 04 0e 00 f0 00 00 00 09-00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00-22 00 00 00 00 00 00 00 |........".......| 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................| 00000030 00 01 00 04 00 00 00 00-00 04 00 b8 00 00 00 00 |................| Andrea, could you tell (mostly Lance) which kernel version are you using? Here is the yum info output for the kernel package on the offending host:
Installed Packages Name : kernel Arch : x86_64 Version : 3.10.0 Release : 327.36.3.el7
Andrea
OK, the 327 kernel did not support conntrack and cannot be used for OVN.
RHEL 7.3 or newer is the minimum requirement for OVN.
Lance
Hi Andrea,
If you'd like to avoid upgrading to 7.3, one workaround would be to build and install the OVS kernel module RPM. The easiest way to build the OVS kernel RPM would be, from the ovs directory where you already executed "./boot.sh" and "./configure", to execute:
make rpm-fedora-kmod
(Don't be misled by the name, this also works for CentOS and RHEL).
The resulting RPM will be under the ./rpm/RPMS/ directory, something like:
./rpm/rpmbuild/RPMS/x86_64/openvswitch-kmod-2.6.90-1.el7.centos.x86_64.rpm
Regards,
Lance

On Fri, Nov 18, 2016 at 09:13:53AM +0100, Andrea Fagiani wrote:
Hi Lance,
thanks, I have currently deployed oVirt using the oVirt Node images, so indeed I would like to avoid updating; out of curiosity, is there actually a beta/pre-release version of the node avaiable?
I'm afraid that such version would be available only after the release of centos7.3 and ovirt-4.1-beta. Now we're still speaking about master-branch experiments.
I have since reinstalled the host to perform further testing but I'll give it a shot as soon as soon as I find the time.
We'd love to hear how that works for you. Regards, Dan.

Hi Dan, I was able to setup the OVN external provider building and loading the updated OVS kernel module; I am currently running it on all 5 hosts, ovs-vsctl shows all the tunnels correctly instantiated. However, after importing the provider into the oVirt engine and setting up a vNic profile, I cannot assign it to any VM; it doesn't show up in the vNic profiles list. Any suggestions? Thanks, Andrea On 18/11/2016 12:33, Dan Kenigsberg wrote:
On Fri, Nov 18, 2016 at 09:13:53AM +0100, Andrea Fagiani wrote:
Hi Lance,
thanks, I have currently deployed oVirt using the oVirt Node images, so indeed I would like to avoid updating; out of curiosity, is there actually a beta/pre-release version of the node avaiable? I'm afraid that such version would be available only after the release of centos7.3 and ovirt-4.1-beta. Now we're still speaking about master-branch experiments.
I have since reinstalled the host to perform further testing but I'll give it a shot as soon as soon as I find the time. We'd love to hear how that works for you.
Regards, Dan.

Andrea, Please check if the network is attached to the cluster. Thanks, Marcin ----- Original Message -----
From: "Andrea Fagiani" <andrea.fagiani@immobiliare.it> To: users@ovirt.org Cc: "Dan Kenigsberg" <danken@redhat.com>, "Lance Richardson" <lrichard@redhat.com>, mmirecki@redhat.com Sent: Wednesday, November 23, 2016 11:02:10 AM Subject: Re: [ovirt-users] OVN Provider setup issues
Hi Dan,
I was able to setup the OVN external provider building and loading the updated OVS kernel module; I am currently running it on all 5 hosts, ovs-vsctl shows all the tunnels correctly instantiated.
However, after importing the provider into the oVirt engine and setting up a vNic profile, I cannot assign it to any VM; it doesn't show up in the vNic profiles list.
Any suggestions?
Thanks, Andrea
On 18/11/2016 12:33, Dan Kenigsberg wrote:
On Fri, Nov 18, 2016 at 09:13:53AM +0100, Andrea Fagiani wrote:
Hi Lance,
thanks, I have currently deployed oVirt using the oVirt Node images, so indeed I would like to avoid updating; out of curiosity, is there actually a beta/pre-release version of the node avaiable? I'm afraid that such version would be available only after the release of centos7.3 and ovirt-4.1-beta. Now we're still speaking about master-branch experiments.
I have since reinstalled the host to perform further testing but I'll give it a shot as soon as soon as I find the time. We'd love to hear how that works for you.
Regards, Dan.

Marcin, thanks! I keep forgetting that part of the configuration even exists. After attaching the network to the cluster I was able to configure the vNics as intended. I then had to disable iptables (as mentioned in the blog post) on the hosts running the VMs and I was able to establish connectivity between two VMs running on different hosts using the OVN-provided network! Thanks everyone involved for the help, I'll be sure to report back after further testing. Regards, Andrea On 23/11/2016 11:27, Marcin Mirecki wrote:
Andrea,
Please check if the network is attached to the cluster.
Thanks, Marcin
----- Original Message -----
From: "Andrea Fagiani" <andrea.fagiani@immobiliare.it> To: users@ovirt.org Cc: "Dan Kenigsberg" <danken@redhat.com>, "Lance Richardson" <lrichard@redhat.com>, mmirecki@redhat.com Sent: Wednesday, November 23, 2016 11:02:10 AM Subject: Re: [ovirt-users] OVN Provider setup issues
Hi Dan,
I was able to setup the OVN external provider building and loading the updated OVS kernel module; I am currently running it on all 5 hosts, ovs-vsctl shows all the tunnels correctly instantiated.
However, after importing the provider into the oVirt engine and setting up a vNic profile, I cannot assign it to any VM; it doesn't show up in the vNic profiles list.
Any suggestions?
Thanks, Andrea
On 18/11/2016 12:33, Dan Kenigsberg wrote:
On Fri, Nov 18, 2016 at 09:13:53AM +0100, Andrea Fagiani wrote:
Hi Lance,
thanks, I have currently deployed oVirt using the oVirt Node images, so indeed I would like to avoid updating; out of curiosity, is there actually a beta/pre-release version of the node avaiable? I'm afraid that such version would be available only after the release of centos7.3 and ovirt-4.1-beta. Now we're still speaking about master-branch experiments.
I have since reinstalled the host to perform further testing but I'll give it a shot as soon as soon as I find the time. We'd love to hear how that works for you.
Regards, Dan.
participants (4)
-
Andrea Fagiani
-
Dan Kenigsberg
-
Lance Richardson
-
Marcin Mirecki