- Created by user-d3360, last modified by Ken Kristiansen on Jun 16, 2020
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 4 Next »
Pre requisite |
---|
# kubectl get pods -n ricplt # There should be ~16 pods running in the ricplt namespace. |
Step 1: Prep Tasks |
---|
$ sudo -i # Create a demo directory at same level as dep for the xApps $ mkdir demo $ cd demo $ echo '{"config-file.json_url": "https://gerrit.o-ran-sc.org/r/gitweb?p=ric-app/qp.git;a=blob_plain;f=xapp-descriptor/config.json;hb=HEAD" }' > onboard.qp.url $ echo '{ "config-file.json_url": "https://gerrit.o-ran-sc.org/r/gitweb?p=ric-app/qp-driver.git;a=blob_plain;f=xapp-descriptor/config.json;hb=HEAD" }' > onboard.qpd.url $ echo '{ "config-file.json_url": "https://gerrit.o-ran-sc.org/r/gitweb?p=ric-app/ts.git;a=blob_plain;f=xapp-descriptor/config.json;hb=HEAD" }' > onboard.ts.url |
Step 1: Onboard |
---|
Run... $ curl --location --request POST "http://$(hostname):32080/onboard/api/v1/onboard/download" --header 'Content-Type: application/json' --data-binary "@./onboard.ts.url $ curl --location --request GET "http://$(hostname):32080/onboard/api/v1/charts" $ curl --location --request POST "http://$(hostname):32080/onboard/api/v1/onboard/download" --header 'Content-Type: application/json' --data-binary "@./onboard.qp.url" $ curl --location --request POST "http://$(hostname):32080/onboard/api/v1/onboard/download" --header 'Content-Type: application/json' --data-binary "@./onboard.qpd.url" $ curl --location --request GET "http://$(hostname):32080/onboard/api/v1/charts" $ kubectl get pods -n ricplt # Find pod with name dbprepopjob... $ kubectl describe pod dbprepopjob-XXXXX-n ricplt # Should see container started. |
Step 2: Deploy xApp |
---|
Run ...
$ curl --location --request POST "http://$(hostname):32080/appmgr/ric/v1/xapps" --header 'Content-Type: application/json' --data-raw '{"xappName": "qpdriver"}' $ curl --location --request POST "http://$(hostname):32080/appmgr/ric/v1/xapps" --header 'Content-Type: application/json' --data-raw '{"xappName": "trafficxapp"}' # The outputted script is will be used for preparing K8 cluster for RIC to deploy to file is "k8s-1node-cloud-init-k_1_16-h_2_12-d_cur.sh" |
Step 3: Populate the Database with test RAN data |
---|
$ git clone http://gerrit.o-ran-sc.org/r/ric-app/ts $ cd ts/test/populatedb $ ./populate_db.sh NOTE: This will take sometime be patient. When complete should see RESOURCES: .... |
Step 4: Create a Policy Type |
---|
$ cd ~/demo/ $ POLICY_TYPE_ID="20008" $ curl -v -X PUT "http://$(hostname):32080/a1mediator/a1-p/policytypes/${POLICY_TYPE_ID}" -H "accept: application/json" -H "Content-Type: application/json" -d @./ts-policy-type-${POLICY_TYPE_ID}.json # list policy types |
Step 5: List Policy Types |
---|
Run ... $ curl -X GET --header "Content-Type: application/json" --header "accept: application/json" http://$(hostname):32080/a1mediator/a1-p/policytypes |
Step 6: Create a Policy Instance |
---|
Run... $ POLICY_ID="tsapolicy145" $ curl -X PUT --header "Content-Type: application/json" --data "{\"threshold\" : 5}" http://$(hostname):32080/a1mediator/a1-p/policytypes/${POLICY_TYPE_ID}/policies/${POLICY_ID} |
|
---|
|
Helpful Hints |
---|
Kubectl commads: kubectl get pods -n nampespace - gets a list of Pods running kubectl get logs -n namespace name_of_running_pod |
Complete these tasks to get started
Recent space activity
-
-
Near Realtime RIC Installation commented Apr 02, 2024
-
-
-
Near Realtime RIC Installation commented Mar 28, 2024
-
-
-
Near Realtime RIC Installation commented Mar 28, 2024
-
-
-
Near Realtime RIC Installation commented Mar 28, 2024
-
-
-
Near Realtime RIC Installation commented Mar 28, 2024
-
Space contributors
- No labels