Orange-OpenSource / towards5gs-helm

Helm charts for deploying 5G network services on Kubernetes
Other
167 stars 130 forks source link

TUN interface is not created #46

Closed SharadaJay closed 1 year ago

SharadaJay commented 2 years ago

Hi,

I'm currently working on helm installation of free5gc and I'm using towards5gs-helm. I can make all the pods running but unfortunately the TUN interface is not created for me. I tried to troubleshoot it but haven't found a solution yet . I have attached the screenshots of ue, gNB, AMF, SMF and UPF logs for your kind reference.

Best Regards, Sharada.

image image image image image image image image image image image

konradkar2 commented 2 years ago

Looks like you have some connectivity issue between gNB and AMF on IP/SCTP layer. Can you check whether you can ping between those two?

raoufkh commented 2 years ago

@konradkar2 is right. The gNB cannot connect to the AMF. Are you waiting for the AMF Pod to be up before installing UERANSIM?

SharadaJay commented 2 years ago

Hi @konradkar2 @raoufkh,

Thank you for the reply.

@raoufkh yes I installed UERANSIM after the AMF pod is up and running. I can ping to 10.100.50.249 from the gNB pod but cannot telnet to the 38412 port. The amf pod is only listening on port 80 and does not listen on port 38412. Also I noticed that a service is not created for SCTP.

Service List image

AMF pod image

gNB pod image image

raoufkh commented 1 year ago

AMF logs show that AMF is listening on 10.100.50.249:38412. Can you show the network interfaces that are created in the gNB pod?

oanabutaru98 commented 1 year ago

Hello! I am having a similar issue when trying to deploy the helms. The TUN interface is not created on the UE, however, I have the following error in the AMF logs.

2023-02-17T10:38:00Z [INFO][AMF][Init] Server started 2023-02-17T10:38:00Z [INFO][AMF][Util] amfconfig Info: Version[1.0.3] Description[AMF initial local configuration] 2023-02-17T10:38:00Z [INFO][AMF][NGAP] Listen on 10.100.50.249:38412 2023-02-17T10:39:34Z [INFO][AMF][NGAP] [AMF] SCTP Accept from: 10.100.50.250:41800 2023-02-17T10:39:34Z [INFO][AMF][NGAP] Create a new NG connection for: 10.100.50.250:41800 2023-02-17T10:39:34Z [INFO][AMF][NGAP][10.100.50.250:41800] Handle NG Setup request 2023-02-17T10:39:34Z [INFO][AMF][NGAP][10.100.50.250:41800] Send NG-Setup response 2023-02-17T10:39:44Z [INFO][AMF][NGAP][10.100.50.250:41800] Handle Initial UE Message 2023-02-17T10:39:44Z [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Deregistered] to [Deregistered] 2023-02-17T10:39:44Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Registration Request 2023-02-17T10:39:44Z [INFO][LIB][FSM] Handle event[Start Authentication], transition from [Deregistered] to [Authentication] 2023-02-17T10:39:44Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Authentication procedure 2023-02-17T10:39:44Z [ERRO][AMF][GMM][AMF_UE_NGAP_ID:1] Nausf_UEAU Authenticate Request Failed: &{Type: Title: Status:500 Detail: Instance: Cause:AV_GENERATION_PROBLEM InvalidParams:[]}

I would appreciate some advice, thank you!

arielgoes commented 1 year ago

I got the same problem. A workaround would be to access the free5gc web interface image

Then, manually create a New Subscriber - i.e., button on the right, with default options.

At this moment, if you check your ueransim-ue pod, there must be a new interface (i.e., uesimtun0) image

Steps:

  1. kubectl get svc -n free5gc image webui-service NodePort 10.99.35.12 5000:30500/TCP 16h (this is the exposed service port)

The port 30500 is already publicly exposed by NodePort

You only need to access it either by host-IP:30500 or VM-IP:30500

Note: the free5GC Web Console credentials are: user: admin pwd: free5gc

oanabutaru98 commented 1 year ago

you are right, this seems to solve the problem for me as well

lgabhishek18 commented 1 year ago

Hi, I am also facing the same issue. My all pods running but unfortunately the TUN interface is not created.

Just to summarize, I have created a Kubernetes cluster (with 2 nodes) using kubeadm to deploy free5gc and ueransim. Detailed info: Ubuntu: 20.04.6 LTS Kernel version: 5.4.0-152-generic Container Runtime version: containerd://1.6.12 K8s Version: v1.20.1 Free5gc: v3.3.0 Ueransim: v3.2.6

image

image

image

(Note: I have deployed ueransim after my all pods of free5gc are running and I have manually created a New Subscriber from web interface also)

Ueransim logs: image Network Interfaces availabe in gNB: image Network Interfaces availabe in ue: image

AMF logs: image

If any other logs are required please do let me know.

I'm looking forward to receive some suggestion on this, Thanks!!

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

ssdumbre commented 11 months ago

image image image I am also facing similar issue , please help here

ssdumbre commented 11 months ago

I have tried the suggested workaround but it did not work for me. I need support here. Thanks in advance!

gondormartin commented 4 months ago

I faced the same problem. Hope these to be useful: I found this when I am trying to install uneransim's chart: image So,I uninstalled the uneransim, then I created a subcriber in UI as @arielgoes mention above. After this, I installed uneransim's chart again, then pods ue and gnb started. Now a UE is registerd, we can see it in free5gc's web UI page: image Then I enter the pod and finally see the TUN image