[NETCONF-801] SSE streaming does not work Created: 10/Aug/21  Updated: 11/Aug/21  Resolved: 11/Aug/21

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: 2.0.0, 2.0.1, 2.0.2
Fix Version/s: 2.0.3

Type: Bug Priority: Highest
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to NETCONF-623 Impossible to receive notifications v... Resolved

 Description   

We have a regression in CSIT detected here:

https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/netconf-csit-1node-userfeatures-rfc8040-all-phosphorus/24/robot-plugin/log.html.gz#s1-s6-s1-t4-k5

i.e. the client reports:

fetch http://10.30.170.254:8181/rests/notif/data-change-event-subscription/opendaylight-inventory:nodes/datastore=CONFIGURATION/scope=BASE failed: 404
Traceback (most recent call last):
  File "ssereceiver.py", line 77, in <module>
    main()
  File "ssereceiver.py", line 59, in main
    loop.run_until_complete(get_events())
  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "ssereceiver.py", line 17, in get_events
    "http://" + args.controller + ":8181" + args.uri, session=client
  File "/usr/local/lib/python3.6/dist-packages/aiohttp_sse_client/client.py", line 126, in __aenter__
    await self.connect(self._max_connect_retry)
  File "/usr/local/lib/python3.6/dist-packages/aiohttp_sse_client/client.py", line 244, in connect
    raise ConnectionError(error_message)

This seems to indicate we have not found the requested stream ("opendaylight-inventory:nodes").



 Comments   
Comment by Robert Varga [ 10/Aug/21 ]

Seems to have been caused by https://git.opendaylight.org/gerrit/c/netconf/+/81424/17/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/ListenersBroker.java

or something thereabout.

Comment by Robert Varga [ 11/Aug/21 ]

Actually this was broken by https://git.opendaylight.org/gerrit/c/netconf/+/96200 where we lost @Path("/") from RestconfDataStreamService implementation.

Generated at Wed Feb 07 20:15:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.