OVS not accepting SFC Flow updates

asked 2019-04-23 21:53:46 -0500

brucema gravatar image

Hi,

I am having trouble with SFC in Openstack using a packstack all-in-one install of Queens. I experienced the same issue on Rocky.

I'm not sure if this is an issue with Open vSwitch, SFC, or some misconfiguration/finger trouble somewhere as SFC has to be installed separately from packstack.

Installation of sfc was done per https://docs.openstack.org/networking-sfc/queens/install/index.html (https://docs.openstack.org/networking...) and I used the python2-networking-sfc rpm from the centos-release-openstack-queens repo.

The heat template I'm using worked successfully with devstack (Pike I think) so I'm fairly confident it is correct. The stack deploys successfully, and the SFC port pairs, groups, classifiers etc,etc are all created OK. (see below) However the flows are not redirected as expected.

In /var/log/neutron/openvswitch-agent.log I see multiple errors during deployment of the form below:

2019-04-23 20:04:52.701 116893 ERROR neutron.agent.common.ovs_lib [req-389a33d9-2516-45ef-bc14-99487c189dfc - - - - -] Unable to execute ['ovs-ofctl', 'add-flows', '-O', 'OpenFlow11', 'br-int', '-']. Exception: Exit code: 1; Stdin: hard_timeout=0,idle_timeout=0,priority=30,cookie=8587010948995617931,nw_dst=10.224.57.9/32,nw_proto=6,eth_type=2048,tp_dst=0x1f90/0xffff,table=0,tp_src=0x4000/0xc000,nw_src=10.224.57.8/32,in_port=65,actions=group:2; Stdout: ; Stderr: ovs-ofctl: none of the usable flow formats (OXM,NXM+table_id) is among the allowed flow formats (OpenFlow11)
: ProcessExecutionError: Exit code: 1; Stdin: hard_timeout=0,idle_timeout=0,priority=30,cookie=8587010948995617931,nw_dst=10.224.57.9/32,nw_proto=6,eth_type=2048,tp_dst=0x1f90/0xffff,table=0,tp_src=0x4000/0xc000,nw_src=10.224.57.8/32,in_port=65,actions=group:2; Stdout: ; Stderr: ovs-ofctl: none of the usable flow formats (OXM,NXM+table_id) is among the allowed flow formats (OpenFlow11)

2019-04-23 20:04:52.716 116893 ERROR neutron.agent.linux.utils [req-389a33d9-2516-45ef-bc14-99487c189dfc - - - - -] Exit code: 1; Stdin: hard_timeout=0,idle_timeout=0,priority=30,cookie=8587010948995617931,nw_dst=10.224.57.9/32,nw_proto=6,eth_type=2048,tp_dst=0x1f90/0xffff,table=0,tp_src=0x8000/0x8000,nw_src=10.224.57.8/32,in_port=65,actions=group:2; Stdout: ; Stderr: ovs-ofctl: none of the usable flow formats (OXM,NXM+table_id) is among the allowed flow formats (OpenFlow11)

OVS is

$ sudo ovs-vsctl -V
ovs-vsctl (Open vSwitch) 2.9.0
DB Schema 7.15.1
$

I tried

$ sudo ovs-vsctl set bridge br-int protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13

without any effect.

$ openstack sfc port chain list -f yaml
- Chain ID: 2
  Chain Parameters:
    correlation: mpls
    symmetric: false
  Flow Classifiers:
  - e4099d68-b987-4d97-bba5-ea5e15eb5181
  ID: 12abd76c-9d75-4fa8-8f4c-035f5c83aae0
  Name: PC1_c7Wi
  Port Pair Groups:
  - 493a1435-60cd-4871-9d70-0081d0d3bac0
- Chain ID: 1
  Chain Parameters:
    correlation: mpls
    symmetric: false
  Flow Classifiers:
  - 3a262662-3d78-4d1c-a1e1-1638cbd027e0
  ID: ad39a7ef-fc51-4681-9f03-25e386a3e20c
  Name: PC2_c7Wi
  Port Pair Groups:
  - 8943ca63-9428-412d-97bd-db561a5abace
$


$ openstack sfc port chain show PC1_c7Wi -f yaml
Chain ID: 2
Chain Parameters:
  correlation: mpls
  symmetric: false
Description: Port Chain (Request)
Flow Classifiers:
- e4099d68-b987-4d97-bba5-ea5e15eb5181
ID: 12abd76c-9d75-4fa8-8f4c-035f5c83aae0
Name: PC1_c7Wi
Port Pair Groups:
- 493a1435-60cd-4871-9d70-0081d0d3bac0
Project: 513fb719e6d647b6b6bc9c0e68c3592a
tenant_id: 513fb719e6d647b6b6bc9c0e68c3592a
$

Any suggestions as to what may be going on?

Martin

edit retag flag offensive close merge delete