I have crated the bug for networking-odl plugin. https://bugs.launchpad.net/networking-odl/+bug/1772227
Thanks Om Prakash From: netvirt-dev-boun...@lists.opendaylight.org [mailto:netvirt-dev-boun...@lists.opendaylight.org] On Behalf Of PRAKASH, OM Sent: Sunday, May 20, 2018 12:15 AM To: Sam Hague <sha...@redhat.com> Cc: SINGH, ABHIJEET K <as7...@att.com>; netvirt-...@lists.opendaylight.org; om prakash <dude...@gmail.com>; sfc-dev@lists.opendaylight.org; FREEMAN, BRIAN D <bf1...@att.com> Subject: Re: [netvirt-dev] [sfc-dev] Opendaylight support for networking-sfc ***Security Advisory: This Message Originated Outside of AT&T *** Reference http://cso.att.com/EmailSecurity/IDSP.html for more information. Hi , I figured out what is the issue . I looked into the code of odl-neutron plugin. As per the below code , the Neutron from openstack should be calling url the http://10.11.90.43:8087/controller/nb/v2/neutron/sfc/portpairs<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.11.90.43-3A8087_controller_nb_v2_neutron_sfc_portpairs&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=6MLNJ6FrkxtSBkiUrQFCdG7rwEWcq2YA2sB0tnS9qTg&s=RuZ997OUbA6-ouUtdZp467xjEZyjSZP-k8BQIx_W3EI&e=> for port pair creation . And I tested this url and created the port pair using rest api and it worked. There is SFC in the url . But Openstack is calling this http://10.10.90.43:8087/controller/nb/v2/neutron/portpairs<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.10.90.43-3A8087_controller_nb_v2_neutron_portpairs&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=6MLNJ6FrkxtSBkiUrQFCdG7rwEWcq2YA2sB0tnS9qTg&s=Ve6arT2o7VFxSPmrWBav4nyFlxP694tHiDB-CZaX6Mc&e=>. So there is bug in networking-odl plugin of openstack . they are calling wrong url for port pair creation. I will raise bug to them . https://github.com/opendaylight/neutron/blob/master/northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronSFCPortPairsNorthbound.java#L36<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_opendaylight_neutron_blob_master_northbound-2Dapi_src_main_java_org_opendaylight_neutron_northbound_api_NeutronSFCPortPairsNorthbound.java-23L36&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=6MLNJ6FrkxtSBkiUrQFCdG7rwEWcq2YA2sB0tnS9qTg&s=oTnpVFc_Mw1Ua9yzbYuoOUepkNKMDLnQoG45xFMARrg&e=> curl -X POST \ http://10.11.90.43:8181/controller/nb/v2/neutron/sfc/portpairs<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.11.90.43-3A8181_controller_nb_v2_neutron_sfc_portpairs&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=6MLNJ6FrkxtSBkiUrQFCdG7rwEWcq2YA2sB0tnS9qTg&s=1aToLdc7Ej-vp2wts86JdIYxtQdzU9UcN17PSMDi9OY&e=> \ -H 'authorization: Basic YWRtaW46YWRtaW4=' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'postman-token: 8f97dc64-8d49-28af-5702-e4f176ea3d8e' \ -d '{ "portpair": { "ingress": "0c1086f0-0b12-48ff-b335-c1758051abc7", "description": "", "tenant_id": "6703821670ee4ff498ec6e9ab319b0c3", "egress": "11407108-28da-4a47-812b-beacd02d3483", "service_function_parameters": { "weight": 1, "correlation": null }, "project_id": "6703821670ee4ff498ec6e9ab319b0c3", "id": "8087a53b-0b9e-4b73-9a86-4c4149ff3301", "name": "PP1" } }' Output :- { "portpair": { "id": "8087a53b-0b9e-4b73-9a86-4c4149ff3301", "tenant_id": "6703821670ee4ff498ec6e9ab319b0c3", "project_id": "6703821670ee4ff498ec6e9ab319b0c3", "name": "PP1", "ingress": "0c1086f0-0b12-48ff-b335-c1758051abc7", "egress": "11407108-28da-4a47-812b-beacd02d3483", "Map": {} } } Thanks Om Prakash Thanks Om Prakash From: netvirt-dev-boun...@lists.opendaylight.org<mailto:netvirt-dev-boun...@lists.opendaylight.org> [mailto:netvirt-dev-boun...@lists.opendaylight.org] On Behalf Of PRAKASH, OM Sent: Saturday, May 19, 2018 9:09 PM To: Sam Hague <sha...@redhat.com<mailto:sha...@redhat.com>> Cc: netvirt-...@lists.opendaylight.org<mailto:netvirt-...@lists.opendaylight.org>; sfc-dev@lists.opendaylight.org<mailto:sfc-dev@lists.opendaylight.org>; FREEMAN, BRIAN D <bf1...@att.com<mailto:bf1...@att.com>> Subject: Re: [netvirt-dev] [sfc-dev] Opendaylight support for networking-sfc ***Security Advisory: This Message Originated Outside of AT&T *** Reference http://cso.att.com/EmailSecurity/IDSP.html for more information. Hi Sam, This is not VPP . This is POC with Openstack (Ocata) + ODL ( Carbob )+ OVS Switch . Thanks Om Prakash From: Sam Hague [mailto:sha...@redhat.com] Sent: Saturday, May 19, 2018 3:26 PM To: PRAKASH, OM <op3...@att.com<mailto:op3...@att.com>> Cc: sfc-dev@lists.opendaylight.org<mailto:sfc-dev@lists.opendaylight.org>; netvirt-...@lists.opendaylight.org<mailto:netvirt-...@lists.opendaylight.org>; FREEMAN, BRIAN D <bf1...@att.com<mailto:bf1...@att.com>> Subject: Re: [sfc-dev] Opendaylight support for networking-sfc networking-sfc is supported in ODL through NetVirt. I see you have been working with vpp which likely is using the gbp from odl and I don't think support was every added there. Either way, Manuel and Jaime are your experts and will know the right answers. On Sat, May 19, 2018 at 10:44 AM, PRAKASH, OM <op3...@att.com<mailto:op3...@att.com>> wrote: Hi , Does Opendaylight support networking-sfc ? From Article https://docs.openstack.org/networking-odl/ocata/specs/sfc-driver.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.openstack.org_networking-2Dodl_ocata_specs_sfc-2Ddriver.html&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=25uszgK2Fk7WyYMy-Qnm7GIJxe5CNIsynlu3g_pPQZs&e=> , it seems Opendaylight does not support it. It has plan to do that. But when I look at this doc https://github.com/openstack/networking-odl/tree/master/devstack<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openstack_networking-2Dodl_tree_master_devstack&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=yfbB_YPvTNkZu17uA6pPHulUfXj0x7CQ35Tez0b79yo&e=> , there is configuration for SFC , So I tried with Devstack /Opendaylight . And when I create Port pair in neutron side , it is successful . But when I check the openstack log , it error out . it says portpair rest api (http://10.10.90.43:8087/controller/nb/v2/neutron/portpairs)is<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.10.90.43-3A8087_controller_nb_v2_neutron_portpairs-29is&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=thYU0kH3pqQFlel_56COyIIo95NkRot_MficJFVTPBE&e=> not available . But I see for ports (http://10.10.90.43:8087/controller/nb/v2/neutron/ports<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.10.90.43-3A8087_controller_nb_v2_neutron_ports&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=OGDf4qK9mqvJyh0_OVVlndsj6URk5EKg-j-kZYD1OD8&e=>) rest api is available . Can you please help me what is current status of the support ? ubuntu@master:~/sfc_Demo$ neutron port-pair-create PP1 --ingress p2 --egress p3 neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. Created a new port_pair: +-----------------------------+--------------------------------------+ | Field | Value | +-----------------------------+--------------------------------------+ | description | | | egress | 11407108-28da-4a47-812b-beacd02d3483 | | id | 8087a53b-0b9e-4b73-9a86-4c4149ff3301 | | ingress | 0c1086f0-0b12-48ff-b335-c1758051abc7 | | name | PP1 | | project_id | 6703821670ee4ff498ec6e9ab319b0c3 | | service_function_parameters | {"weight": 1, "correlation": null} | | tenant_id | 6703821670ee4ff498ec6e9ab319b0c3 | +-----------------------------+--------------------------------------+ Logs from Neutron :- ubuntu@master:~/sfc_Demo$ adroom:100 make_reservation /opt/stack/neutron/neutron/db/quota/driver.py:222 2018-05-19 10:11:23.331 3121 DEBUG networking_sfc.services.sfc.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__networking-5Fsfc.services.sfc.pl&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=kVoI6HFapGtsNz5DuSFdKqMchtUzc712CXsC97x8K2w&e=>ugin [req-030694f3-3c63-44bb-ac64-f1adbfbdc790 admin admin] networking_sfc.services.sfc.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__networking-5Fsfc.services.sfc.pl&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=kVoI6HFapGtsNz5DuSFdKqMchtUzc712CXsC97x8K2w&e=>ugin.SfcPlugin method create_port_pair called wit h arguments (<neutron.context.Context object at 0x7faba8c00d10>,) {'port_pair': {u'port_pair': {u'ingress': u'0c1086f0-0b12-48ff-b335-c1758051abc7', 'description': '', 'tenant_id': u'6703821670ee4ff498ec6 e9ab319b0c3', u'egress': u'11407108-28da-4a47-812b-beacd02d3483', 'service_function_parameters': {'weight': 1, 'correlation': None}, 'project_id': u'6703821670ee4ff498ec6e9ab319b0c3', u'name': u'PP1'}}} w rapper /usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py:47 2018-05-19 10:11:23.331 3121 DEBUG networking_sfc.db.sfc_db [req-030694f3-3c63-44bb-ac64-f1adbfbdc790 admin admin] networking_sfc.services.sfc.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__networking-5Fsfc.services.sfc.pl&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=kVoI6HFapGtsNz5DuSFdKqMchtUzc712CXsC97x8K2w&e=>ugin.SfcPlugin method create_port_pair called with argument s (<neutron.context.Context object at 0x7faba8c00d10>, {u'port_pair': {u'ingress': u'0c1086f0-0b12-48ff-b335-c1758051abc7', 'description': '', 'tenant_id': u'6703821670ee4ff498ec6e9ab319b0c3', u'egress': u'11407108-28da-4a47-812b-beacd02d3483', 'service_function_parameters': {'weight': 1, 'correlation': None}, 'project_id': u'6703821670ee4ff498ec6e9ab319b0c3', u'name': u'PP1'}}) {} wrapper /usr/local/lib/ python2.7/dist-packages/oslo_log/helpers.py:47 2018-05-19 10:11:23.456 3121 DEBUG networking_odl.journal.journal [req-030694f3-3c63-44bb-ac64-f1adbfbdc790 admin admin] Resetting thread timer set_sync_event /opt/stack/networking-odl/networking_odl/jour nal/journal.py:115 2018-05-19 10:11:23.461 3121 DEBUG networking_odl.journal.journal [-] Thread walking database _sync_pending_rows /opt/stack/networking-odl/networking_odl/journal/journal.py:165 2018-05-19 10:11:23.472 3121 DEBUG neutron.callbacks.manager [req-030694f3-3c63-44bb-ac64-f1adbfbdc790 admin admin] Notify callbacks [] for port_pair, before_response _notify_loop /opt/stack/neutron/neutr on/callbacks/manager.py:142 2018-05-19 10:11:23.474 3121 INFO neutron.wsgi [req-030694f3-3c63-44bb-ac64-f1adbfbdc790 admin admin] 10.10.90.43 "POST /v2.0/sfc/port_pairs.json HTTP/1.1" status: 201 len: 566 time: 0.2255571 2018-05-19 10:11:23.484 3121 INFO networking_odl.journal.journal [-] Syncing create portpair 8087a53b-0b9e-4b73-9a86-4c4149ff3301 2018-05-19 10:11:23.485 3121 DEBUG networking_odl.common.client [-] Sending METHOD (post) URL (http://10.10.90.43:8087/controller/nb/v2/neutron/portpairs<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.10.90.43-3A8087_controller_nb_v2_neutron_portpairs&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=wOa7sQK2KerZwlU_fKE4737zVGwb7ghSI2pwcrUryM0&e=>) JSON ({ "portpair": { "ingress": "0c1086f0-0b12-48ff-b335-c1758051abc7", "description": "", "tenant_id": "6703821670ee4ff498ec6e9ab319b0c3", "egress": "11407108-28da-4a47-812b-beacd02d3483", "service_function_parameters": { "weight": 1, "correlation": null }, "project_id": "6703821670ee4ff498ec6e9ab319b0c3", "id": "8087a53b-0b9e-4b73-9a86-4c4149ff3301", "name": "PP1" } }) request /opt/stack/networking-odl/networking_odl/common/client.py:86 2018-05-19 10:11:23.506 3121 DEBUG networking_odl.common.client [-] Exception from ODL: 404 Client Error: Not Found for url: http://10.10.90.43:8087/controller/nb/v2/neutron/portpairs<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.10.90.43-3A8087_controller_nb_v2_neutron_portpairs&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=wOa7sQK2KerZwlU_fKE4737zVGwb7ghSI2pwcrUryM0&e=> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing /controller/nb/v2/neutron/portpairs. Reason: <pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> <br/> Thanks Om Prakash _______________________________________________ sfc-dev mailing list sfc-dev@lists.opendaylight.org<mailto:sfc-dev@lists.opendaylight.org> https://lists.opendaylight.org/mailman/listinfo/sfc-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.opendaylight.org_mailman_listinfo_sfc-2Ddev&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=nGABpS95qb7WLoWMNmdaQg&m=2VofS0oZWSmKKB-AX4DmAsAEDq-4eeFepte3Gt29kKU&s=eistATQfb1dahXWUW8iblOok6PFBVYttPQ280ZoVd5w&e=>
_______________________________________________ sfc-dev mailing list sfc-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/sfc-dev