I open a ssh terminal and executed the below commands on node 0
node-0:~> bash
leonard@node-0:~$ ion.
ion.: command not found
leonard@node-0:~$ export KONG_PROXY=`kubectl get svc -n ricplt -l
app.kubernetes.io/name=kong -o jsonpath='{.items[0].spec.clusterIP}'`
leonard@node-0:~$ curl -L -X POST "http://${KONG_PROXY}:32080/onboard/api/v1/onboard/download" --header 'Content-Type: application/json' --data-binary "@/local/profile-public/scp-kpimon-onboard.url"
{
"status": "Created"
}
leonard@node-0:~$ curl -L -X GET "http://${KONG_PROXY}:32080/onboard/api/v1/charts"
{
"nexran": [
{
"name": "nexran",
"version": "0.1.0",
"description": "Standard xApp Helm Chart",
"apiVersion": "v1",
"appVersion": "1.0",
"urls": [
"charts/nexran-0.1.0.tgz"
],
"created": "2021-12-21T10:48:29.791532626Z",
"digest": "7017d6110fe00fc2a76b85e1f102721360056f79f00f8440d09f94f6b5e89801"
}
],
"scp-kpimon": [
{
"name": "scp-kpimon",
"version": "1.0.1",
"description": "Standard xApp Helm Chart",
"apiVersion": "v1",
"appVersion": "1.0",
"urls": [
"charts/scp-kpimon-1.0.1.tgz"
],
"created": "2021-12-21T16:13:59.476198778Z",
"digest": "97a99943f7a28ec2dc90d0a0e456832242199af0de0cb24f89f8bb83a7ec1529"
}
]
}
leonard@node-0:~$ curl -L -X POST "http://${KONG_PROXY}:32080/appmgr/ric/v1/xapps" --header 'Content-Type: application/json' --data-raw '{"xappName": "scp-kpimon"}'
{"instances":null,"name":"scp-kpimon","status":"deployed","version":"1.0"}
leonard@node-0:~$ kubectl exec -it -n ricxapp `kubectl get pod -n ricxapp -l app=ricxapp-scp-kpimon -o jsonpath='{.items[0].
metadata.name}'` -- tail -F /opt/kpimon.log
[qSkipTool]2021/12/21 16:14:20 control.go:67: Failed to connect to Redis DB with dial tcp
127.0.0.1:6379: connect: connection refused
[qSkipTool]2021/12/21 16:14:33 control.go:89: send RIC_SUB_REQ to gNodeB with cnt=1
[qSkipTool]2021/12/21 16:14:33 control.go:1072: Set EventTriggerDefinition: 2034000000000000
[qSkipTool]2021/12/21 16:14:33 control.go:1105: Send RIC_SUB_REQ to {enB_macro_001_001_0019b0}
[qSkipTool]2021/12/21 16:14:33 control.go:1115: Set Payload: 00080028000003001d00050003e903e9000500020000001e0012000820340000000000000000130003000000
[qSkipTool]2021/12/21 16:14:33 control.go:1119: The RMR message to be sent is 12010 with SubId=1001
[qSkipTool]2021/12/21 16:14:33 control.go:986: RIC_SUB_REQ[enB_macro_001_001_0019b0]: Waiting for RIC_SUB_RESP...
[qSkipTool]2021/12/21 16:14:38 control.go:996: RIC_SUB_REQ[enB_macro_001_001_0019b0]: RIC Event Create Timer experied!
After that I opened another ssh terminal to node 0 to execute the "sudo ip netns exec ue1 ping 192.168.0.1"
leonard@node-0:~$ sudo ip netns exec ue1 ping 192.168.0.1
connect: Network is unreachable
leonard@node-0:~$