-
Bug
-
Resolution: Unresolved
-
High
-
Cherry-R5
A1 mediator is sending POLICY_CREATE instead of POLICY_UPDATE
Docker Image:
nexus3.o-ran-sc.org:10002/o-ran-sc/ric-plt-a1:2.1.9
Logs attached:
Pod Logs in a1med_pod.log
Commands in a1med_commands.log
Steps:
1. Created policy id - 1006001
2. Created two instances of policy 1006001, named - "qos" and "qos2"
3. Update "qos2" using below PUT method in CURL command:
{{curl -X PUT --header "Content-Type: application/json" --data '
' http://10.104.238.102:10000/a1-p/policytypes/1006001/policies/qos2}}
4. Corresponding pod log show that CREATE operation was performed.
{"ts": 1602142845986, "crit": "DEBUG", "id": "a1.a1rmr", "mdc": {}, "msg": "_send_msg: sending: {'payload': b'{\"operation\": \"CREATE\", \"policy_type_id\": 1006001, \"policy_instance_id\": \"qos2\", \"payload\": {\"UeGroupId\": 2, \"Qci\": 8, \"Arp\": 15, \"TargetTP\": 900000', 'payload length': 150, 'message type': 20010, 'subscription id': 1006001, 'transaction id': b'93a60758093911ebb4d7aeb5b5229ae0', 'message state': 0, 'message status': 'RMR_OK', 'payload max size': 4096, 'meid': b'', 'message source': 'service-ricplt-a1mediator-rmr.ricplt:4562', 'errno': 0}"}
}}
5. This also translates to CREATE method towards xAPPs that have subscribed for those policies.