Hello 

I think that you might be using an old version of networking-odl. For
networking-sfc support, ocata + carbon is just too old. You will have
better luck with queens + oxygen. You might also be interested in the
OPNFV SFC project, which is the main driver for networking-sfc ODL
integration:

https://wiki.opnfv.org/display/sfc/Service+Function+Chaining+Home

BR
Jaime.

-----Original Message-----
From: " PRAKASH, OM " <op3...@att.com>
To: Sam Hague <sha...@redhat.com>, jcaam...@suse.de
Cc: ABHIJEET K SINGH <as7...@att.com>, BRIAN D FREEMAN <bf1...@att.com>
, om prakash <dude...@gmail.com>, netvirt-...@lists.opendaylight.org <n
etvirt-...@lists.opendaylight.org>, sfc-dev@lists.opendaylight.org <sfc
-d...@lists.opendaylight.org>
Subject: Re: [sfc-dev] Opendaylight support for networking-sfc
Date: Sun, 20 May 2018 04:38:52 +0000

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-bo
un...@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-dev@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/neut
ron/sfc/portpairs 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.
 
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/NeutronSFCPortPairsNo
rthbound.java#L36
 
curl -X POST \
  http://10.11.90.43:8181/controller/nb/v2/neutron/sfc/portpairs \
  -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-bo
un...@lists.opendaylight.org] On Behalf Of PRAKASH, OM
Sent: Saturday, May 19, 2018 9:09 PM
To: Sam Hague <sha...@redhat.com>
Cc: netvirt-...@lists.opendaylight.org; 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 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>
Cc: sfc-dev@lists.opendaylight.org; netvirt-...@lists.opendaylight.org;
FREEMAN, BRIAN D <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> wrote:
> Hi ,
>  
> Does Opendaylight support networking-sfc ? From  Article  https://doc
> s.openstack.org/networking-odl/ocata/specs/sfc-driver.html , 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-o
> dl/tree/master/devstack ,  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
> not available .
>  
> But I see for ports (http://10.10.90.43:8087/controller/nb/v2/neutron
> /ports) 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.plugin
> [req-030694f3-3c63-44bb-ac64-f1adbfbdc790 admin admin]
> networking_sfc.services.sfc.plugin.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.plugin.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/n
> eutron/portpairs) 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 <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
> https://lists.opendaylight.org/mailman/listinfo/sfc-dev
> 

 
_______________________________________________
sfc-dev mailing list
sfc-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/sfc-dev
_______________________________________________
sfc-dev mailing list
sfc-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/sfc-dev

Reply via email to