Gradiant / 5g-charts

Helm charts for 5G Technologies
Apache License 2.0
120 stars 49 forks source link

AMF & MME do not start #12

Closed fefer closed 3 years ago

fefer commented 3 years ago

Hi,

Congrats for such a nice project!

I was able to run the source code of ope5gs and an old version of openverso-charts too, I believe it was the 18fa3e7, but unfortunately I do not have the version anymore. I am trying to run the latest tgz and I am getting an error while trying to set the AMF/MME up. Seems like an SCTP error, do you know what am I doing wrong?

Below the logs:

root@master-node:/home/ims/openverso-charts/charts# kubectl logs open5gs-0-1627657923-open5gs-amf-0
Open5GS daemon v2.0.18

07/30 15:14:07.457: [app] INFO: Configuration: '/opt/open5gs/etc/open5gs/amf.yaml' (../src/main.c:54)
07/30 15:14:07.462: [app] INFO: AMF initialize...done (../src/amf/app.c:33)
07/30 15:14:07.463: [sbi] INFO: sbi_server() [10.244.0.80]:7777 (../lib/sbi/server.c:298)
07/30 15:14:07.463: [sock] ERROR: setsockopt for SCTP_PEER_ADDR_PARAMS failed (22:Invalid argument) (../lib/sctp/ogs-lksctp.c:296)
07/30 15:14:07.463: [sock] FATAL: ogs_sctp_socket: Assertion `rv == OGS_OK' failed. (../lib/sctp/ogs-lksctp.c:63)
07/30 15:14:07.463: [core] FATAL: backtrace() returned 11 addresses (../lib/core/ogs-abort.c:37)
/usr/local/lib/x86_64-linux-gnu/libogssctp.so.2(ogs_sctp_socket+0x210) [0x7f7c23e2e976]
/usr/local/lib/x86_64-linux-gnu/libogssctp.so.2(ogs_sctp_server+0x11e) [0x7f7c23e2ec37]
open5gs-amfd(+0x130de) [0x55e97290a0de]
open5gs-amfd(+0x2f54c) [0x55e97292654c]
open5gs-amfd(+0x19c71) [0x55e972910c71]
/usr/local/lib/x86_64-linux-gnu/libogscore.so.2(ogs_fsm_init+0x9a) [0x7f7c23e540ef]
open5gs-amfd(+0x5aea) [0x55e9728fcaea]
/usr/local/lib/x86_64-linux-gnu/libogscore.so.2(+0x131ee) [0x7f7c23e471ee]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3) [0x7f7c23ab5fa3]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f7c239e44cf]

The services:

root@master-node:/home/ims/openverso-charts/charts# kubectl get services
NAME                                 TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                                AGE
kubernetes                           ClusterIP   10.96.0.1        <none>        443/TCP                                18d
open5gs-0-1627657923-mongodb         ClusterIP   10.100.14.222    <none>        27017/TCP                              9m18s
open5gs-0-1627657923-open5gs-amf     ClusterIP   10.103.28.147    <none>        7777/TCP,38412/UDP                     9m18s
open5gs-0-1627657923-open5gs-ausf    ClusterIP   10.111.63.215    <none>        7777/TCP                               9m18s
open5gs-0-1627657923-open5gs-hss     ClusterIP   10.111.172.220   <none>        3868/TCP                               9m18s
open5gs-0-1627657923-open5gs-mme     ClusterIP   10.98.83.247     <none>        36412/SCTP,3868/SCTP,2123/UDP          9m18s
open5gs-0-1627657923-open5gs-nrf     ClusterIP   10.111.179.43    <none>        7777/TCP                               9m18s
open5gs-0-1627657923-open5gs-pcrf    ClusterIP   10.106.143.9     <none>        3868/SCTP                              9m18s
open5gs-0-1627657923-open5gs-sgwc    ClusterIP   10.103.119.77    <none>        2123/UDP,8805/UDP                      9m18s
open5gs-0-1627657923-open5gs-sgwu    ClusterIP   10.102.145.26    <none>        2152/UDP,8805/UDP                      9m18s
open5gs-0-1627657923-open5gs-smf     ClusterIP   10.103.93.177    <none>        2123/UDP,8805/UDP,3868/SCTP,7777/TCP   9m18s
open5gs-0-1627657923-open5gs-udm     ClusterIP   10.96.139.56     <none>        7777/TCP                               9m18s
open5gs-0-1627657923-open5gs-udr     ClusterIP   10.107.220.239   <none>        7777/TCP                               9m18s
open5gs-0-1627657923-open5gs-upf     ClusterIP   10.105.250.8     <none>        2152/UDP,8805/UDP                      9m18s
open5gs-0-1627657923-open5gs-webui   ClusterIP   10.105.146.116   <none>        3000/TCP                               9m18s

The describe:

root@master-node:/home/ims/openverso-charts/charts# kubectl describe pods open5gs-0-1627657923-open5gs-amf
Name:         open5gs-0-1627657923-open5gs-amf-0
Namespace:    default
Priority:     0
Node:         master-node/10.221.194.166
Start Time:   Fri, 30 Jul 2021 12:12:07 -0300
Labels:       app.kubernetes.io/component=amf
              app.kubernetes.io/instance=open5gs-0-1627657923
              app.kubernetes.io/name=open5gs
              controller-revision-hash=open5gs-0-1627657923-open5gs-amf-696b4699d4
              statefulset.kubernetes.io/pod-name=open5gs-0-1627657923-open5gs-amf-0
Annotations:  <none>
Status:       Running
IP:           10.244.0.80
IPs:
  IP:           10.244.0.80
Controlled By:  StatefulSet/open5gs-0-1627657923-open5gs-amf
Containers:
  amf:
    Container ID:  docker://d00ef224a353eb5de3ddab0274aacbc4a0af18f762f04dc10aa9a7a05623c7b1
    Image:         docker.io/openverso/open5gs:2.0.18
    Image ID:      docker-pullable://openverso/open5gs@sha256:ecffc96da540e5c7209b845a00ca818826dda6053c618cf82313391c794bc19b
    Ports:         7777/TCP, 38412/UDP
    Host Ports:    0/TCP, 0/UDP
    Command:
      open5gs-amfd
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    139
      Started:      Fri, 30 Jul 2021 12:18:27 -0300
      Finished:     Fri, 30 Jul 2021 12:18:27 -0300
    Ready:          False
    Restart Count:  6
    Environment:    <none>
    Mounts:
      /opt/open5gs/etc/open5gs/amf.yaml from amf-config (rw,path="amf.yaml")
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-xcrnx (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  amf-config:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      open5gs-0-1627657923-open5gs-amf
    Optional:  false
  kube-api-access-xcrnx:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  10m                  default-scheduler  Successfully assigned default/open5gs-0-1627657923-open5gs-amf-0 to master-node
  Normal   Pulled     10m                  kubelet            Successfully pulled image "docker.io/openverso/open5gs:2.0.18" in 5.713116547s
  Normal   Pulled     10m                  kubelet            Successfully pulled image "docker.io/openverso/open5gs:2.0.18" in 16.485986027s
  Normal   Pulled     9m51s                kubelet            Successfully pulled image "docker.io/openverso/open5gs:2.0.18" in 1.606681301s
  Normal   Created    9m21s (x4 over 10m)  kubelet            Created container amf
  Normal   Started    9m21s (x4 over 10m)  kubelet            Started container amf
  Normal   Pulled     9m21s                kubelet            Successfully pulled image "docker.io/openverso/open5gs:2.0.18" in 1.780448005s
  Normal   Pulling    8m38s (x5 over 10m)  kubelet            Pulling image "docker.io/openverso/open5gs:2.0.18"
  Normal   Pulled     8m36s                kubelet            Successfully pulled image "docker.io/openverso/open5gs:2.0.18" in 1.741149834s
  Warning  BackOff    19s (x47 over 10m)   kubelet            Back-off restarting failed container

The pods:

root@master-node:/home/ims/openverso-charts/charts# kubectl get pods
NAME                                                  READY   STATUS             RESTARTS   AGE
open5gs-0-1627657923-mongodb-548b8b9688-4dh7w         1/1     Running            0          11m
open5gs-0-1627657923-open5gs-amf-0                    0/1     CrashLoopBackOff   6          11m
open5gs-0-1627657923-open5gs-ausf-0                   1/1     Running            0          11m
open5gs-0-1627657923-open5gs-hss-0                    1/1     Running            1          11m
open5gs-0-1627657923-open5gs-mme-0                    0/1     CrashLoopBackOff   6          11m
open5gs-0-1627657923-open5gs-nrf-0                    1/1     Running            0          11m
open5gs-0-1627657923-open5gs-pcrf-0                   1/1     Running            1          11m
open5gs-0-1627657923-open5gs-sgwc-0                   1/1     Running            0          11m
open5gs-0-1627657923-open5gs-sgwu-0                   1/1     Running            0          11m
open5gs-0-1627657923-open5gs-smf-0                    1/1     Running            0          11m
open5gs-0-1627657923-open5gs-udm-0                    1/1     Running            0          11m
open5gs-0-1627657923-open5gs-udr-0                    1/1     Running            0          11m
open5gs-0-1627657923-open5gs-upf-0                    1/1     Running            0          11m
open5gs-0-1627657923-open5gs-webui-56d54b586b-9df2n   1/1     Running            1          11m

Thank you in advance!

fefer commented 3 years ago

My bad, found a new version of open5gs chart where it´s working!