Orange-OpenSource / towards5gs-helm

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

Fix deployment failure after upgrade to Free5gc 3.3.0 #90

Closed lapentad closed 1 year ago

lapentad commented 1 year ago

Hi, I was facing some failure deploying. In particular after the upgrade to Free5gc 3.3.0 PR The first pods to fail were web-ui and then nrf

kubectl logs -n free5gc v1-free5gc-webui-webui-5f98d9894c-q5fbn
Defaulted container "webui" out of: webui, wait-mongo (init)
2023-06-22T10:00:33.243794298Z [INFO][WEBUI][Main] WEBUI version:
        free5GC version: v3.3.0
        build time:      2023-06-20T08:01:33Z
        commit hash:     2b9cc4c3
        commit time:     2023-05-31T04:51:46Z
        go version:      go1.17.8 linux/amd64
2023-06-22T10:00:33.243960621Z [INFO][WEBUI][CFG] Read config from [../config/webuicfg.yaml]
2023-06-22T10:00:33.244171346Z [ERRO][WEBUI][Main] WEBUI Run error: ReadConfig [../config/webuicfg.yaml] Error: [Factory] yaml: unmarshal errors:
  line 11: cannot unmarshal !!str `logger:...` into factory.Logger

In this review I indented correctly and fixed a typo in the SMF value. Based on the Free5gc config

Output:

$ kubectl get po -n free5gc
NAME                                            READY   STATUS    RESTARTS   AGE
mongodb-0                                       1/1     Running   0          5m57s
v1-free5gc-amf-amf-7d847dd9f6-85qbj             1/1     Running   0          5m57s
v1-free5gc-ausf-ausf-779748fcf9-ft4p8           1/1     Running   0          5m57s
v1-free5gc-dbpython-dbpython-685b45dfcb-d8wxd   1/1     Running   0          5m55s
v1-free5gc-nrf-nrf-6dc8f75588-6f5ht             1/1     Running   0          5m57s
v1-free5gc-nssf-nssf-79fc47bc87-pgzhp           1/1     Running   0          5m57s
v1-free5gc-pcf-pcf-79dc77454f-x2jmc             1/1     Running   0          5m56s
v1-free5gc-smf-smf-685d574d8f-x4tfr             1/1     Running   0          5m56s
v1-free5gc-udm-udm-5d99f9976b-cw59z             1/1     Running   0          5m56s
v1-free5gc-udr-udr-557648884b-xrjh2             1/1     Running   0          5m57s
v1-free5gc-upf-upf-cfbbbc6d-dtkxc               1/1     Running   0          5m56s
v1-free5gc-webui-webui-869889b8b5-wjkhr         1/1     Running   0          5m56s