port-pair creation is failing because of calling wrong ODLurl

Bug #1772227 reported by Om Prakash
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-odl
Undecided
Unassigned

Bug Description

Hi,

There is bug in networking-odl. When there is request for port-pair is sent , networking-odl invokes
http://10.10.90.43:8087/controller/nb/v2/neutron/portpairs for port-pair. But the actual url is http://10.10.90.43:8087/controller/nb/v2/neutron/sfc/portpairs. you can see there "sfc" before portpair.

you can see the below code for correct url :-
https://github.com/opendaylight/neutron/blob/master/northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronSFCPortPairsNorthbound.java#L36

The open stack log is below :-

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/neutron/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/>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions