nephio-project / sig-release

SIG Release will govern the Nephio release process and manage the releases.
Apache License 2.0
1 stars 4 forks source link

Free5GC E2E UERANSIM Demo with No Interface in UERANSIM #46

Closed isu-kim closed 3 months ago

isu-kim commented 3 months ago

Before I start, thanks for Nephio and all the great stuff! I am quite not 100% sure if this is the right place for issues with Nephio demo as well, however was not able to find another repo that seems to fit in better. If there is another place that I shall be reporting this issue, please let me know.

Expected Behavior:

According to the Free5GC user guide in R2, the UE pod is expected to perform following commands successfully.

UE_POD=$(kubectl --kubeconfig edge01-kubeconfig get pods -n ueransim -l app=ueransim -l component=ue -o jsonpath='{.items[0].metadata.name}')
kubectl --kubeconfig edge01-kubeconfig -n ueransim exec -it $UE_POD -- /bin/bash -c "ping -I uesimtun0 172.0.0.1"

Current Behavior:

However, unfortunately, the UE does not seem to have the uesimtun0 interface. Instead, it only has following interfaces:

root@ueransimue-edge01-56fccbc4b6-k647k:/ueransim/build# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0@if29: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 26:5d:c2:c7:c3:92 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 192.168.1.23/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::245d:c2ff:fec7:c392/64 scope link
       valid_lft forever preferred_lft forever

Thus resulting:

root@ueransimue-edge01-56fccbc4b6-k647k:/ueransim/build# ping -I uesimtun0 172.0.0.1
ping: SO_BINDTODEVICE: Invalid argument

I have been reinstalling Nephio and Free5GC in multiple GCP instances as well, however this does not get solved. So I am trying to create a new issue.

Possible Solution:

Honestly speaking, I have little background in UERANSIM as well as Free5gc-cp. However, I have been looking for solutions and found an issue with uesimtun0 not existing in a VM (yes, in Nephio it shall be a container). I have attached the link to the issue just in case this might help troubleshoot this issue in the future.

https://github.com/aligungr/UERANSIM/issues/369

Steps to Reproduce

I have tried with R1 before as well, unfortunately, it gave me the same results as R2.

  1. Follow the exact same steps from the official Free5GC user guide provided by Nephio till step 8.
  2. Execute the mentioned command which sends a ping request to 172.0.0.1 using uesimtun0
  3. The ping: SO_BINDTODEVICE: Invalid argument error appears

Further Info

Just in case this might provide extra information on what is going on with my cluster, the following text is the log from amf-regional pod from regional-admin@regional cluster:

2024-03-24T19:38:07Z [INFO][AMF][NGAP][172.2.0.254:38068][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1)
2024-03-24T19:38:07Z [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Registered] to [Registered]
2024-03-24T19:38:07Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-208930000000003] Handle UL NAS Transport
2024-03-24T19:38:07Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-208930000000003] Transport 5GSM Message to SMF
2024-03-24T19:38:07Z [WARN][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-208930000000003] Duplicated PDU session ID[1]
2024-03-24T19:38:07Z [ERRO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-208930000000003] PDU Session ID[1] can't be released in DUPLICATE_SESSION_ID case
2024-03-24T19:38:07Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-208930000000003] Send DL NAS Transport
2024-03-24T19:38:07Z [INFO][AMF][NGAP][172.2.0.254:38068][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport

This is thrown when I try to execute the wrapper.sh inside the ueransimue like below:

root@ueransimue-edge01-56fccbc4b6-b9ttw:/ueransim/build# ./wrapper.sh 
mkdir: cannot create directory '/dev/net': File exists
mknod: /dev/net/tun: File exists
UERANSIM v3.2.6
[2024-03-24 19:38:41.617] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2024-03-24 19:38:41.618] [rrc] [debug] New signal detected for cell[1], total [1] cells in coverage
[2024-03-24 19:38:41.618] [nas] [info] Selected plmn[208/93]
[2024-03-24 19:38:41.618] [rrc] [info] Selected cell plmn[208/93] tac[1] category[SUITABLE]
[2024-03-24 19:38:41.618] [nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2024-03-24 19:38:41.618] [nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE]
[2024-03-24 19:38:41.618] [nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE]
[2024-03-24 19:38:41.619] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-03-24 19:38:41.619] [nas] [debug] Sending Initial Registration
[2024-03-24 19:38:41.619] [nas] [info] UE switches to state [MM-REGISTER-INITIATED]
[2024-03-24 19:38:41.619] [rrc] [debug] Sending RRC Setup Request
[2024-03-24 19:38:41.620] [rrc] [info] RRC connection established
[2024-03-24 19:38:41.620] [rrc] [info] UE switches to state [RRC-CONNECTED]
[2024-03-24 19:38:41.620] [nas] [info] UE switches to state [CM-CONNECTED]
[2024-03-24 19:38:41.669] [nas] [debug] Authentication Request received
[2024-03-24 19:38:41.681] [nas] [debug] Security Mode Command received
[2024-03-24 19:38:41.681] [nas] [debug] Selected integrity[2] ciphering[0]
[2024-03-24 19:38:41.899] [nas] [debug] Registration accept received
[2024-03-24 19:38:41.899] [nas] [info] UE switches to state [MM-REGISTERED/NORMAL-SERVICE]
[2024-03-24 19:38:41.899] [nas] [debug] Sending Registration Complete
[2024-03-24 19:38:41.899] [nas] [info] Initial Registration is successful
[2024-03-24 19:38:41.899] [nas] [debug] Sending PDU Session Establishment Request
[2024-03-24 19:38:41.899] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2024-03-24 19:38:51.285] [nas] [error] PDU Session Establishment Reject received [OUT_OF_LADN_SERVICE_AREA]
[2024-03-24 19:38:51.285] [nas] [error] Received PTI [0] value is invalid

I have checked this issue, however, I am not sure how to fix this.

If any further logs are required, please let me know. Thank you everyone in advance for any assistance.

isu-kim commented 3 months ago

After a bit more of digging into the issue, this seems like it is an issue due to porchctl not being installed. Once we manually installed porchctl and tried the same script out, it worked fine.

I will be closing this issue since this seems to be due to a little problem within our environment rather then Nephio as a whole.