canonical / charmed-aether-sd-core

Charmed Aether SD-Core is a secure, reliable and observable open source 5G private mobile network.
https://canonical-charmed-aether-sd-core.readthedocs-hosted.com/en/latest/
Apache License 2.0
2 stars 2 forks source link

Gnbsim K8s service is not deployed properly #21

Closed gatici closed 3 months ago

gatici commented 3 months ago

Bug Description

While deploying mastering tutorial, Gnbsim K8s service is missing after deploying Gnbsim.

microk8s.kubectl get all -n gnbsim -n gnbsim
NAME                                 READY   STATUS    RESTARTS   AGE
pod/gnbsim-0                         2/2     Running   0          17m
pod/modeloperator-78f94598dd-fn267   1/1     Running   0          83m

NAME                       TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE
service/gnbsim-endpoints   ClusterIP   None             <none>        <none>      81m
service/modeloperator      ClusterIP   10.152.183.176   <none>        17071/TCP   83m

NAME                            READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/modeloperator   1/1     1            1           83m

NAME                                       DESIRED   CURRENT   READY   AGE
replicaset.apps/modeloperator-78f94598dd   1         1         1       83m

NAME                      READY   AGE
statefulset.apps/gnbsim   1/1     81m

To Reproduce

  1. Follow the mastering tutorial to deploy the environment
  2. Deploy Gnbsim
  3. Ssh to gnbsim machine
  4. Check the gnbsim namespace in the K8s cluster
  5. Gnbsim K8s service is missing

Environment

LXD 5.21.1 Juju 3.4.4 Terraform 1.9.2 Microk8s 1.29.5

Relevant log output

service/gnbsim is missing as seen in below:

ubuntu@gnbsim:~$ microk8s.kubectl get all -n gnbsim -n gnbsim
NAME                                 READY   STATUS    RESTARTS   AGE
pod/gnbsim-0                         2/2     Running   0          17m
pod/modeloperator-78f94598dd-fn267   1/1     Running   0          83m

NAME                       TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE
service/gnbsim-endpoints   ClusterIP   None             <none>        <none>      81m
service/modeloperator      ClusterIP   10.152.183.176   <none>        17071/TCP   83m

NAME                            READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/modeloperator   1/1     1            1           83m

NAME                                       DESIRED   CURRENT   READY   AGE
replicaset.apps/modeloperator-78f94598dd   1         1         1       83m

NAME                      READY   AGE
statefulset.apps/gnbsim   1/1     81m

Gnbsim machine networking is not set up properly as below:

lxc list
+-----------------+---------+-----------------------------+-------------------------------------------------+-----------------+-----------+
|      NAME       |  STATE  |            IPV4             |                      IPV6                       |      TYPE       | SNAPSHOTS |
+-----------------+---------+-----------------------------+-------------------------------------------------+-----------------+-----------+
| control-plane   | RUNNING | 10.201.0.101 (enp5s0)       |                                                 | VIRTUAL-MACHINE | 0         |
|                 |         | 10.1.235.128 (vxlan.calico) |                                                 |                 |           |
+-----------------+---------+-----------------------------+-------------------------------------------------+-----------------+-----------+
| gnbsim          | RUNNING | 10.201.0.103 (enp6s0)       | fd42:9606:3f0d:260b:216:3eff:fe31:ddbd (enp5s0) | VIRTUAL-MACHINE | 0         |
|                 |         | 10.147.222.8 (enp5s0)       |                                                 |                 |           |
|                 |         | 10.1.143.192 (vxlan.calico) |                                                 |                 |           |
+-----------------+---------+-----------------------------+-------------------------------------------------+-----------------+-----------+
| juju-controller | RUNNING | 10.201.0.104 (enp5s0)       |                                                 | VIRTUAL-MACHINE | 0         |
|                 |         | 10.1.212.192 (vxlan.calico) |                                                 |                 |           |
+-----------------+---------+-----------------------------+-------------------------------------------------+-----------------+-----------+
| user-plane      | RUNNING | 10.203.0.100 (enp6s0)       |                                                 | VIRTUAL-MACHINE | 0         |
|                 |         | 10.202.0.100 (enp7s0)       |                                                 |                 |           |
|                 |         | 10.201.0.102 (enp5s0)       |                                                 |                 |           |
|                 |         | 10.1.36.192 (vxlan.calico)  |                                                 |                 |           |
+-----------------+---------+-----------------------------+-------------------------------------------------+-----------------+-----------+

Additional context

No response