<div dir="ltr">Hi all,<div>You can see below the debuf logs at the creation of service chain </div><div>Regards,</div><div><br></div><div><div>vagrant@ubuntu:~/openstack_sfc$ neutron --debug port-chain-create --port-pair-group PG1 --port-pair-group PG2 --flow-classifier FC15 PC1</div><div>DEBUG: keystoneclient.session REQ: curl -g -i -X GET <a href="http://192.168.56.15:35357/v2.0">http://192.168.56.15:35357/v2.0</a> -H "Accept: application/json" -H "User-Agent: python-keystoneclient"</div><div>DEBUG: keystoneclient.session RESP: [200] Content-Length: 340 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Mon, 15 Aug 2016 14:36:00 GMT Content-Type: application/json x-openstack-request-id: req-5efa5391-4c7e-4b5e-81ec-ba2b304bc423</div><div>RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "<a href="http://192.168.56.15:35357/v2.0/">http://192.168.56.15:35357/v2.0/</a>", "rel": "self"}, {"href": "<a href="http://docs.openstack.org/">http://docs.openstack.org/</a>", "type": "text/html", "rel": "describedby"}]}}</div><div><br></div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')</div><div>DEBUG: networking_sfc.cli.port_chain.PortChainCreate get_data(Namespace(chain_parameters=None, columns=[], description=None, flow_classifiers=[u'FC15'], formatter='table', max_width=0, name=u'PC1', noindent=False, port_pair_groups=[u'PG1', u'PG2'], prefix='', request_format='json', tenant_id=None, variables=[]))</div><div>DEBUG: keystoneclient.auth.identity.v2 Making authentication request to <a href="http://192.168.56.15:35357/v2.0/tokens">http://192.168.56.15:35357/v2.0/tokens</a></div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('port_pair = networking_sfc.cli.port_pair')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('port_pair_group = networking_sfc.cli.port_pair_group')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('flow_classifier = networking_sfc.cli.flow_classifier')</div><div>DEBUG: stevedore.extension found extension EntryPoint.parse('port_chain = networking_sfc.cli.port_chain')</div><div>DEBUG: keystoneclient.session REQ: curl -g -i -X GET <a href="http://192.168.56.15:9696/v2.0/sfc/port_pair_groups.json?fields=id&name=PG1">http://192.168.56.15:9696/v2.0/sfc/port_pair_groups.json?fields=id&name=PG1</a> -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}b64a4351e9ee74a640d7070a3a16db1961215260"</div><div>DEBUG: keystoneclient.session RESP: [200] Date: Mon, 15 Aug 2016 14:36:01 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 70 X-Openstack-Request-Id: req-63790c14-8c02-4b0d-b44d-185cdbdfbf10</div><div>RESP BODY: {"port_pair_groups": [{"id": "128aee07-96b7-45cd-9090-699a60e57bf4"}]}</div><div><br></div><div>DEBUG: keystoneclient.session REQ: curl -g -i -X GET <a href="http://192.168.56.15:9696/v2.0/sfc/port_pair_groups.json?fields=id&name=PG2">http://192.168.56.15:9696/v2.0/sfc/port_pair_groups.json?fields=id&name=PG2</a> -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}b64a4351e9ee74a640d7070a3a16db1961215260"</div><div>DEBUG: keystoneclient.session RESP: [200] Date: Mon, 15 Aug 2016 14:36:01 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 70 X-Openstack-Request-Id: req-186c74b5-c878-4bad-8f51-1a8601612a5b</div><div>RESP BODY: {"port_pair_groups": [{"id": "d4f47717-2dd0-4c2f-84a2-469802c0c922"}]}</div><div><br></div><div>DEBUG: keystoneclient.session REQ: curl -g -i -X GET <a href="http://192.168.56.15:9696/v2.0/sfc/flow_classifiers.json?fields=id&name=FC15">http://192.168.56.15:9696/v2.0/sfc/flow_classifiers.json?fields=id&name=FC15</a> -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}b64a4351e9ee74a640d7070a3a16db1961215260"</div><div>DEBUG: keystoneclient.session RESP: [200] Date: Mon, 15 Aug 2016 14:36:01 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 70 X-Openstack-Request-Id: req-9cac1849-d9c3-48b3-b20f-cd11948a549c</div><div>RESP BODY: {"flow_classifiers": [{"id": "020a9ceb-3451-47af-ba09-650202009217"}]}</div><div><br></div><div>DEBUG: keystoneclient.session REQ: curl -g -i -X POST <a href="http://192.168.56.15:9696/v2.0/sfc/port_chains.json">http://192.168.56.15:9696/v2.0/sfc/port_chains.json</a> -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}b64a4351e9ee74a640d7070a3a16db1961215260" -d '{"port_chain": {"flow_classifiers": ["020a9ceb-3451-47af-ba09-650202009217"], "name": "PC1", "port_pair_groups": ["128aee07-96b7-45cd-9090-699a60e57bf4", "d4f47717-2dd0-4c2f-84a2-469802c0c922"]}}'</div><div>DEBUG: keystoneclient.session RESP: [500] Date: Mon, 15 Aug 2016 14:36:03 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 98 X-Openstack-Request-Id: req-5f9778ab-90c7-4434-ae0b-0a2ee10505e9</div><div>RESP BODY: {"NeutronError": {"message": "delete_port_chain failed.", "type": "SfcDriverError", "detail": ""}}</div><div><br></div><div>DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "delete_port_chain failed.", "type": "SfcDriverError", "detail": ""}}</div><div>ERROR: neutronclient.shell delete_port_chain failed.</div><div>Traceback (most recent call last):</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 814, in run_subcommand</div><div> return run_command(cmd, cmd_parser, sub_argv)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 110, in run_command</div><div> return cmd.run(known_args)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run</div><div> return super(OpenStackCommand, self).run(parsed_args)</div><div> File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 92, in run</div><div> column_names, data = self.take_action(parsed_args)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action</div><div> return self.get_data(parsed_args)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/extension.py", line 72, in get_data</div><div> return self.execute(parsed_args)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/extension.py", line 75, in execute</div><div> return super(ClientExtensionCreate, self).get_data(parsed_args)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 500, in get_data</div><div> data = obj_creator(body)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1735, in _fx</div><div> return self.create_ext(path, body)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102, in with_params</div><div> ret = self.function(instance, *args, **kwargs)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 492, in create_ext</div><div> return self.post(path, body=body)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 298, in post</div><div> headers=headers, params=params)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 211, in do_request</div><div> self._handle_fault_response(status_code, replybody)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response</div><div> exception_handler_v20(status_code, des_error_body)</div><div> File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 70, in exception_handler_v20</div><div> status_code=status_code)</div><div>InternalServerError: delete_port_chain failed.</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 August 2016 at 13:39, Alioune <span dir="ltr"><<a href="mailto:balioune3@gmail.com" target="_blank">balioune3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div>I'm trying to launch Openstack SFC as explained in[1] by creating 2 SFs, 1 Web Server (DST) and the DHCP namespace as the SRC.</div><div>I've installed OVS (Open vSwitch) 2.3.90 with Linux kernel 3.13.0-62 and the neutron L2-agent runs correctly.</div><div>I followed the process by creating classifier, port pairs and port_group but I got a wrong message "delete_port_chain failed." when creating port_chain [2]</div><div>I tried to create the neutron ports with and without the option "--no-security-groups" then tcpdpump on SFs tap interfaces but the ICMP packets don't go through the SFs.</div><div><br></div><div>Can anyone advice to fix? that ? </div><div>What's your channel on IRC ?</div><div><br></div><div>Regards,</div><div><br></div><div><br></div><div>[1] <a href="https://wiki.openstack.org/wiki/Neutron/ServiceInsertionAndChaining" target="_blank">https://wiki.openstack.org/<wbr>wiki/Neutron/<wbr>ServiceInsertionAndChaining</a></div><div>[2]</div><div>vagrant@ubuntu:~/openstack_<wbr>sfc$ ./08-os_create_port_chain.sh</div><div>delete_port_chain failed.</div><div>vagrant@ubuntu:~/openstack_<wbr>sfc$ cat 08-os_create_port_chain.sh</div><div>#!/bin/bash</div><div><br></div><div>neutron port-chain-create --port-pair-group PG1 --port-pair-group PG2 --flow-classifier FC1 PC1</div><div><br></div><div>[3] Output OVS Flows</div><div><br></div><div>vagrant@ubuntu:~$ sudo ovs-ofctl dump-flows br-tun -O OpenFlow13</div><div>OFPST_FLOW reply (OF1.3) (xid=0x2):</div><div> cookie=0xbc2e9105125301dc, duration=9615.385s, table=0, n_packets=146, n_bytes=11534, priority=1,in_port=1 actions=resubmit(,2)</div><div> cookie=0xbc2e9105125301dc, duration=9615.382s, table=0, n_packets=0, n_bytes=0, priority=0 actions=drop</div><div> cookie=0xbc2e9105125301dc, duration=9615.382s, table=2, n_packets=5, n_bytes=490, priority=0,dl_dst=00:00:00:00:<wbr>00:00/01:00:00:00:00:00 actions=resubmit(,20)</div><div> cookie=0xbc2e9105125301dc, duration=9615.381s, table=2, n_packets=141, n_bytes=11044, priority=0,dl_dst=01:00:00:00:<wbr>00:00/01:00:00:00:00:00 actions=resubmit(,22)</div><div> cookie=0xbc2e9105125301dc, duration=9615.380s, table=3, n_packets=0, n_bytes=0, priority=0 actions=drop</div><div> cookie=0xbc2e9105125301dc, duration=9615.380s, table=4, n_packets=0, n_bytes=0, priority=0 actions=drop</div><div> cookie=0xbc2e9105125301dc, duration=8617.106s, table=4, n_packets=0, n_bytes=0, priority=1,tun_id=0x40e actions=push_vlan:0x8100,set_<wbr>field:4097->vlan_vid,resubmit(<wbr>,10)</div><div> cookie=0xbc2e9105125301dc, duration=9615.379s, table=6, n_packets=0, n_bytes=0, priority=0 actions=drop</div><div> cookie=0xbc2e9105125301dc, duration=9615.379s, table=10, n_packets=0, n_bytes=0, priority=1 actions=learn(table=20,hard_<wbr>timeout=300,priority=1,cookie=<wbr>0xbc2e9105125301dc,NXM_OF_<wbr>VLAN_TCI[0..11],NXM_OF_ETH_<wbr>DST[]=NXM_OF_ETH_SRC[],load:0-<wbr>>NXM_OF_VLAN_TCI[],load:NXM_<wbr>NX_TUN_ID[]->NXM_NX_TUN_ID[],<wbr>output:NXM_OF_IN_PORT[]),<wbr>output:1</div><div> cookie=0xbc2e9105125301dc, duration=9615.378s, table=20, n_packets=5, n_bytes=490, priority=0 actions=resubmit(,22)</div><div> cookie=0xbc2e9105125301dc, duration=9615.342s, table=22, n_packets=146, n_bytes=11534, priority=0 actions=drop</div><div>vagrant@ubuntu:~$ sudo ovs-ofctl dump-flows br-int -O OpenFlow13</div><div>OFPST_FLOW reply (OF1.3) (xid=0x2):</div><div> cookie=0xbc2e9105125301dc, duration=6712.090s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=7,<wbr>icmp_type=136 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6709.623s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=8,<wbr>icmp_type=136 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6555.755s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=10,<wbr>icmp_type=136 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6559.596s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=9,<wbr>icmp_type=136 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6461.028s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=11,<wbr>icmp_type=136 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6712.071s, table=0, n_packets=13, n_bytes=546, priority=10,arp,in_port=7 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6709.602s, table=0, n_packets=0, n_bytes=0, priority=10,arp,in_port=8 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6555.727s, table=0, n_packets=0, n_bytes=0, priority=10,arp,in_port=10 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6559.574s, table=0, n_packets=12, n_bytes=504, priority=10,arp,in_port=9 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=6461.005s, table=0, n_packets=15, n_bytes=630, priority=10,arp,in_port=11 actions=resubmit(,24)</div><div> cookie=0xbc2e9105125301dc, duration=9620.388s, table=0, n_packets=514, n_bytes=49656, priority=0 actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=9619.277s, table=0, n_packets=0, n_bytes=0, priority=20,mpls actions=resubmit(,10)</div><div> cookie=0xbc2e9105125301dc, duration=6712.111s, table=0, n_packets=25, n_bytes=2674, priority=9,in_port=7 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6559.621s, table=0, n_packets=24, n_bytes=2576, priority=9,in_port=9 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6555.777s, table=0, n_packets=2, n_bytes=140, priority=9,in_port=10 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6461.082s, table=0, n_packets=47, n_bytes=4830, priority=9,in_port=11 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6709.646s, table=0, n_packets=3, n_bytes=230, priority=9,in_port=8 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=9619.265s, table=10, n_packets=0, n_bytes=0, priority=0 actions=drop</div><div> cookie=0xbc2e9105125301dc, duration=9620.378s, table=23, n_packets=0, n_bytes=0, priority=0 actions=drop</div><div> cookie=0xbc2e9105125301dc, duration=9620.368s, table=24, n_packets=0, n_bytes=0, priority=0 actions=drop</div><div> cookie=0xbc2e9105125301dc, duration=6709.633s, table=24, n_packets=0, n_bytes=0, priority=2,icmp6,in_port=8,<wbr>icmp_type=136,nd_target=fe80::<wbr>f816:3eff:fe2a:fe actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6712.101s, table=24, n_packets=0, n_bytes=0, priority=2,icmp6,in_port=7,<wbr>icmp_type=136,nd_target=fe80::<wbr>f816:3eff:fee7:1362 actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6559.607s, table=24, n_packets=0, n_bytes=0, priority=2,icmp6,in_port=9,<wbr>icmp_type=136,nd_target=fe80::<wbr>f816:3eff:fe91:95ee actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6555.766s, table=24, n_packets=0, n_bytes=0, priority=2,icmp6,in_port=10,<wbr>icmp_type=136,nd_target=fe80::<wbr>f816:3eff:fe76:d998 actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6461.055s, table=24, n_packets=0, n_bytes=0, priority=2,icmp6,in_port=11,<wbr>icmp_type=136,nd_target=fe80::<wbr>f816:3eff:fe5e:ed96 actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6709.611s, table=24, n_packets=0, n_bytes=0, priority=2,arp,in_port=8,arp_<wbr>spa=55.55.55.12 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6555.741s, table=24, n_packets=0, n_bytes=0, priority=2,arp,in_port=10,arp_<wbr>spa=55.55.55.14 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6712.080s, table=24, n_packets=13, n_bytes=546, priority=2,arp,in_port=7,arp_<wbr>spa=55.55.55.11 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6559.584s, table=24, n_packets=12, n_bytes=504, priority=2,arp,in_port=9,arp_<wbr>spa=55.55.55.13 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6461.015s, table=24, n_packets=15, n_bytes=630, priority=2,arp,in_port=11,arp_<wbr>spa=55.55.55.15 actions=resubmit(,25)</div><div> cookie=0xbc2e9105125301dc, duration=6709.714s, table=25, n_packets=0, n_bytes=0, priority=2,in_port=8,dl_src=<wbr>fa:16:3e:2a:00:fe actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6559.641s, table=25, n_packets=34, n_bytes=2940, priority=2,in_port=9,dl_src=<wbr>fa:16:3e:91:95:ee actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6461.117s, table=25, n_packets=60, n_bytes=5320, priority=2,in_port=11,dl_src=<wbr>fa:16:3e:5e:ed:96 actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6712.130s, table=25, n_packets=36, n_bytes=3080, priority=2,in_port=7,dl_src=<wbr>fa:16:3e:e7:13:62 actions=NORMAL</div><div> cookie=0xbc2e9105125301dc, duration=6555.801s, table=25, n_packets=0, n_bytes=0, priority=2,in_port=10,dl_src=<wbr>fa:16:3e:76:d9:98 actions=NORMAL</div><div><br></div></div>
</blockquote></div><br></div>