O-RAN timing API subscription to "/././sync" is not supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Andre Mauricio Zelak |
Bug Description
Brief Description
-----------------
Subscription to "/././sync" is no supported in ptp-notification application.
Severity
--------
Minor
Steps to Reproduce
------------------
Enter ptp-client shell and send a HTTP request.
curl -v -d '{"ResourceAddr
Expected Behavior
------------------
A subscription to /sync would deliver notifications for all types of synchronization events implemented by the synchronization subsystem. Since this cover all notification, individual subscriptions will be ignored.
Actual Behavior
----------------
Subscription to "/././sync" is not supported.
Reproducibility
---------------
Always
System Configuration
-------
All configurations with PTP configuration, ptp-notification app and client.
Branch/Pull Time/Commit
-------
commit: be93e2251be721f
Last Pass
---------
N/A
Timestamp/Logs
--------------
root@notificati
' -H 'Content-Type: application/json' -X POST http://
/ocloudNotifica
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 127.0.0.1:8080...
% Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> POST /ocloudNotifica
> Host: 127.0.0.1:8080
> User-Agent: curl/7.74.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 95
>
} [95 bytes data]
* upload completely sent off: 95 out of 95 bytes
* Mark bundle as not supporting multiuse
* HTTP 1.0, assume close after body
< HTTP/1.0 400 Bad Request
< Date: Wed, 28 Sep 2022 19:38:51 GMT
< Server: WSGIServer/0.2 CPython/3.6.8
< Content-Length: 158
< Content-Type: application/json
<
{ [158 bytes data]
100 253 100 158 100 95 2430 1461 --:--:-- --:--:-- --:--:-- 3892
* Closing connection 0
{
"faultcode": "Client",
"faultstring": "The server could not comply with the request since it is either malformed or otherwise incorrect.",
"debuginfo": null
}
error log from demo vdu
2022-09-28 19:38:51,760 [ERROR ] [wsme.api]
Traceback (most recent call last):
File "/usr/local/
result = f(self, *args, **kwargs)
File "/opt/api/
for instance in notification.
AttributeError: 'NotificationPa
2022-09-28 19:38:51,760 [ERROR ] [pecan.
Test Activity
-------------
Feature Testing
Workaround
----------
None
Changed in starlingx: | |
assignee: | nobody → Andre Mauricio Zelak (azelak) |
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.9.0 stx.networking |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ptp-notificati on-armada- app/+/876415
Review: https:/