[ovs-discuss] 答复: Why the NSH is not been supported by the ovs-2.9.0?

hai tsing tsing.hai at hotmail.com
Wed Sep 26 06:29:19 UTC 2018


I debug out the root!

OVS 2.9.0 doesn’t recognize the the following action format which used by neutron network-sfc agent.
(actions=encap(hdr=nsh,prop(class=nsh,type=md_type,val=1)),set_field:0x1->nsh_spi,set_field:0xff->nsh_si,encap(hdr=ethernet))

The right one :
(actions=encap(nsh,prop(class=nsh,type=md_type,val=1)),set_field:0x1->nsh_spi,set_field:0xff->nsh_si,encap(hdr=ethernet))

发件人: Yang, Yi Y [mailto:yi.y.yang at intel.com]
发送时间: 2018年9月26日 14:02
收件人: hai tsing <tsing.hai at hotmail.com>; ovs-discuss at openvswitch.org
主题: RE: Why the NSH is not been supported by the ovs-2.9.0?

Are you using OVS kernel datapath?  You can double check it by adding flows manually.

From: ovs-discuss-bounces at openvswitch.org<mailto:ovs-discuss-bounces at openvswitch.org> [mailto:ovs-discuss-bounces at openvswitch.org] On Behalf Of hai tsing
Sent: Tuesday, September 25, 2018 9:57 PM
To: ovs-discuss at openvswitch.org<mailto:ovs-discuss at openvswitch.org>
Subject: [ovs-discuss] Why the NSH is not been supported by the ovs-2.9.0?


Dear all:


I encounter a trouble that my ovs does't support nsh!

When the openstack networking-sfc was populating some flows,  the following ERROR occures.
when I was looking for resolution,  The ovs release note tells that nsh is supported on version 2.9.0(http://www.openvswitch.org//releases/NEWS-2.10.0.txt<http://www.openvswitch.org/releases/NEWS-2.10.0.txt>).

so what should i do for enabling NSH of ovs?

2018-09-25 21:23:53.558 17403 ERROR neutron.agent.linux.utils [req-f484f89b-9acf-4303-9c79-7adc862bff5c - - - - -] Exit code: 1; Stdin: hard_timeout=0,idle_timeout=0,priority=30,cookie=8156743583516943314,nw_dst=0.0.0.0/0.0.0.0,eth_type=2048,tp_dst=0/0x0,table=0,tp_src=0/0x0,nw_src=192.168.6.5,in_port=21,actions=encap(hdr=nsh,prop(class=nsh,type=md_type,val=1)),set_field:0x1->nsh_spi,set_field:0xff->nsh_si,encap(hdr=ethernet),group:1; Stdout: ; Stderr: ovs-ofctl: -:1: Encap hdr not supported: nsh
2018-09-25 21:23:53.559 17403 ERROR neutron.agent.common.ovs_lib [req-f484f89b-9acf-4303-9c79-7adc862bff5c - - - - -] Unable to execute ['ovs-ofctl', 'add-flows', '-O', 'OpenFlow13', 'br-int', '-']. Exception: Exit code: 1; Stdin: hard_timeout=0,idle_timeout=0,priority=30,cookie=8156743583516943314,nw_dst=0.0.0.0/0.0.0.0,eth_type=2048,tp_dst=0/0x0,table=0,tp_src=0/0x0,nw_src=192.168.6.5,in_port=21,actions=encap(hdr=nsh,prop(class=nsh,type=md_type,val=1)),set_field:0x1->nsh_spi,set_field:0xff->nsh_si,encap(hdr=ethernet),group:1; Stdout: ; Stderr: ovs-ofctl: -:1: Encap hdr not supported: nsh
: ProcessExecutionError: Exit code: 1; Stdin: hard_timeout=0,idle_timeout=0,priority=30,cookie=8156743583516943314,nw_dst=0.0.0.0/0.0.0.0,eth_type=2048,tp_dst=0/0x0,table=0,tp_src=0/0x0,nw_src=192.168.6.5,in_port=21,actions=encap(hdr=nsh,prop(class=nsh,type=md_type,val=1)),set_field:0x1->nsh_spi,set_field:0xff->nsh_si,encap(hdr=ethernet),group:1; Stdout: ; Stderr: ovs-ofctl: -:1: Encap hdr not supported: nsh





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180926/f916c753/attachment-0001.html>


More information about the discuss mailing list