[O-RAN] Notification subscription by regular expression with * does NOT subscribe to multiple nodes

Bug #1996929 reported by Douglas Henrique Koerich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Douglas Henrique Koerich

Bug Description

Brief Description
-----------------
Using '*' in the resource address to request notification subscription does not apply to all nodes, only the current one (like for '.')

Severity
--------
Minor

Steps to Reproduce
------------------
In a multi-node system with the notification client ("sidecar") running in a pod, request for multiple notifications using the URI:
curl --path-as-is -v -H 'Content-Type: application/json' -X POST -d '{"ResourceAddress": "/./*/sync/ptp-status/lock-state", "EndpointUri": "http://127.0.0.1:9090/v2/resource_status/ptp"}' http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | python -m json.tool

Expected Behavior
------------------
Client should receive notifications from all nodes where PTP is active

Actual Behavior
----------------
Notifications are received from the residing node only

Reproducibility
---------------
Reproducible

System Configuration
--------------------
All but AIO-SX

Branch/Pull Time/Commit
-----------------------
master

Last Pass
---------
New test scenario

Test Activity
-------------
Feature Testing

Workaround
----------
Subscribe to each node separately

Changed in starlingx:
status: New → In Progress
assignee: nobody → Douglas Henrique Koerich (dkoerich-wr)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ptp-notification-armada-app (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ptp-notification-armada-app (master)

Reviewed: https://review.opendev.org/c/starlingx/ptp-notification-armada-app/+/865059
Committed: https://opendev.org/starlingx/ptp-notification-armada-app/commit/b6457447e63fb21b051f3c42fe95e74966f23c95
Submitter: "Zuul (22348)"
Branch: master

commit b6457447e63fb21b051f3c42fe95e74966f23c95
Author: Douglas Henrique Koerich <email address hidden>
Date: Thu Nov 17 17:27:36 2022 -0300

    Allow subscription to all nodes with '*'

    The O-RAN standard was not being followed when resource address was
    being specified with '*' as the "nodeName", which means that
    subscription should be created to be notified about all nodes.

    Test Plan:
    PASS: Submitting POST request with '*' wildcard in resource address;
    PASS: Rejecting POST for specific node when there is a subscription for
          '*' in repo;
    PASS: Rejecting POST for current node ('.') when there is a subscription
          for '*' in repo.

    Closes-Bug: #1996929
    Signed-off-by: Douglas Henrique Koerich <email address hidden>
    Change-Id: Ifdaa2d2b9c9a45ad41981d2a75f7101bfa2f7c9c

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
importance: Medium → Low
tags: added: stx.8.0 stx.apps stx.networking
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.