Comment 2 for bug 1842084

Revision history for this message
guilag (guillaume-lagace) wrote :

I redid the installation from scratch, this time mariadb seem ok but now its ro, lcm and ui that keep waiting. I believe because lcm depends on ro, and ro and ui can't connect to mariadb. See the logs below that show that ip:port of mariadb is up !

What can I do from here ?

ubuntu@osm-k8s:~$ kubectl -n osm get pods
NAME READY STATUS RESTARTS AGE
grafana-k8s-6dbf74cdf-48pjn 1/1 Running 3 4h41m
grafana-k8s-operator-0 1/1 Running 3 4h59m
kafka-k8s-0 1/1 Running 3 4h42m
kafka-k8s-operator-0 1/1 Running 3 4h58m
lcm-k8s-0 0/1 CrashLoopBackOff 30 3h10m
lcm-k8s-operator-0 1/1 Running 3 4h58m
mariadb-k8s-0 1/1 Running 4 4h54m
mariadb-k8s-operator-0 1/1 Running 3 4h58m
mon-k8s-0 1/1 Running 0 3h10m
mon-k8s-operator-0 1/1 Running 3 4h58m
mongodb-k8s-0 1/1 Running 3 4h53m
mongodb-k8s-operator-0 1/1 Running 3 4h57m
nbi-k8s-0 1/1 Running 0 3h10m
nbi-k8s-operator-0 1/1 Running 3 4h57m
pol-k8s-0 1/1 Running 4 3h10m
pol-k8s-operator-0 1/1 Running 3 4h56m
prometheus-k8s-0 2/2 Running 7 4h50m
prometheus-k8s-operator-0 1/1 Running 3 4h56m
ro-k8s-0 0/1 CrashLoopBackOff 27 4h39m
ro-k8s-operator-0 1/1 Running 3 4h55m
ui-k8s-548fff4886-tc9wd 0/1 CrashLoopBackOff 39 3h8m
ui-k8s-operator-0 1/1 Running 3 4h55m
zookeeper-k8s-0 1/1 Running 5 4h49m
zookeeper-k8s-operator-0 1/1 Running 3 4h54m

ubuntu@osm-k8s:~$ kubectl -n osm logs ro-k8s-0
1/4 Apply config
2/4 Wait for db up
Wait until 120 seconds for MySQL mano Server 10.152.183.37:3306
........................................................................................................................
Can not connect to database 10.152.183.37:3306 during 120 sec

ubuntu@osm-k8s:~$ kubectl -n osm logs ui-k8s-548fff4886-tc9wd
Wait until 120 seconds for MySQL mano Server 10.152.183.37:3306
.............................................................................

ubuntu@osm-k8s:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
osm osm-on-k8s microk8s/localhost 2.6.8 unsupported 22:45:36Z

App Version Status Scale Charm Store Rev OS Address Notes
grafana-k8s active 1 grafana-k8s jujucharms 21 kubernetes 10.152.183.223
kafka-k8s active 1 kafka-k8s jujucharms 9 kubernetes 10.152.183.186
lcm-k8s waiting 1 lcm-k8s jujucharms 25 kubernetes 10.152.183.149
mariadb-k8s active 1 mariadb-k8s jujucharms 21 kubernetes 10.152.183.37
mon-k8s active 1 mon-k8s jujucharms 20 kubernetes 10.152.183.227
mongodb-k8s active 1 mongodb-k8s jujucharms 19 kubernetes 10.152.183.190
nbi-k8s active 1 nbi-k8s jujucharms 28 kubernetes 10.152.183.22
pol-k8s active 1 pol-k8s jujucharms 20 kubernetes 10.152.183.133
prometheus-k8s active 1 prometheus-k8s jujucharms 20 kubernetes 10.152.183.127
ro-k8s waiting 1 ro-k8s jujucharms 25 kubernetes 10.152.183.210
ui-k8s waiting 1 ui-k8s jujucharms 33 kubernetes 10.152.183.2
zookeeper-k8s active 1 zookeeper-k8s jujucharms 28 kubernetes 10.152.183.101

Unit Workload Agent Address Ports Message
grafana-k8s/0* active idle 10.1.1.22 3000/TCP ready
kafka-k8s/0* active idle 10.1.1.19 9092/TCP ready
lcm-k8s/0* active idle 10.1.1.18 9999/TCP ready
mariadb-k8s/0* active idle 10.1.1.16 3306/TCP ready
mon-k8s/0* active idle 10.1.1.21 8000/TCP ready
mongodb-k8s/0* active idle 10.1.1.29 27017/TCP ready
nbi-k8s/0* active idle 10.1.1.17 9999/TCP ready
pol-k8s/0* active idle 10.1.1.26 80/TCP ready
prometheus-k8s/0* active idle 10.1.1.13 9090/TCP ready
ro-k8s/0 active idle 10.1.1.20 9090/TCP ready
ui-k8s/0* active idle 10.1.1.11 80/TCP ready
zookeeper-k8s/0* active idle 10.1.1.30 2181/TCP,2888/TCP,3888/TCP ready

ubuntu@osm-k8s:~$ curl -v "telnet://10.152.183.37:3306"
* Rebuilt URL to: telnet://10.152.183.37:3306/
* Trying 10.152.183.37...
* TCP_NODELAY set
* Connected to 10.152.183.37 (10.152.183.37) port 3306 (#0)
^C