Uploaded image for project: 'Non Realtime RAN Intelligent Controller '
  1. Non Realtime RAN Intelligent Controller
  2. NONRTRIC-939

NONRTRIC - Demonstrate near-rt-ric A1mediator standalone in test env.

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: High High
    • None

      Attached a small resource definition for Kubernetes that allows spinning up an A1 mediator + Redis in one

      pod. This can be used for basic testing. No magic. The two RMR-related environment variables basically make it

      use an empty routing table (instead of waiting for one from the RMR routing manager). I.e., anything

      that requires interaction with xApps will not work in this setup. Below a few commands to test how it works.

      The near-RT RIC A1 mediator uses Redis to store the data  related to polices. It could also be operated without

      Redis, but then there’d not much functionality, other than first curl command below. The versions number in

      the resource yaml for A1 mediator is the same as listed here

       

         https://wiki.o-ran-sc.org/pages/viewpage.action?pageId=78217449

       

      The one for Redis is the same as here:

       

         see line #81 in

         https://gerrit.o-ran-sc.org/r/gitweb?p=ric-plt/dbaas.git;a=blob;f=docker/Dockerfile.redis;h=3a0045230eb87e94555755586df1adefd9809f9a;hb=refs/heads/h-release

       

       

       

      $ kubectl apply -f ./a1_plus_redis.yaml

      ### after deploying use these commands to check what works### commands are taken from https://github.com/o-ran-sc/ric-plt-a1/blob/master/docs/user-guide-api.rst
      $ kubectl get pods -o wideNAME   READY   STATUS    RESTARTS   AGE   IP             NODE   NOMINATED NODE   READINESS GATESmya1   2/2     Running   0          85s   10.244.0.147   osc3   <none>           <none>
      $ curl -s -X GET http://{*}10.244.0.147{*}:10000/a1-p/policytypes | jq .[]
      $ curl -X PUT --header "Content-Type: application/json" --data-raw "`cat create.json`" http://10.244.0.147:10000/a1-p/policytypes/20008$ echo $?0
      $ curl -s -X GET http://10.244.0.147:10000/a1-p/policytypes | jq .[{}}}{{{}  20008{}}}{{{}]
      $ curl -s  -X GET http://10.244.0.147:10000/a1-p/policytypes/20008 | jq .{}{  "create_schema": {    "$schema": http://json-schema.org/draft-07/schema#,    "additionalProperties": false,    "properties": {      "threshold": {        "default": 0,        "type": "integer"      }}}{{    },    "type": "object"  },  "description": "tsa parameters",  "name": "tsapolicy",  "policy_type_id": 20008}

       

        1. a1_plus_redis-1.yaml
          0.5 kB
        2. create.json
          0.3 kB
        3. RE_ non-rt ric A1AP specs used_.msg
          235 kB
        # Subject Branch Project Status CR V

            rohithrajneesh Rohith Rajneesh
            JohnKeeney John Keeney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: