Added logging relation and cos integration tests from chisme.
Fixing usage of boolean in pebble layer, this cause that if current_layer.services != new_layer.services: condition was always true. The 'REGISTRATION_FLOW': True was 'REGISTRATION_FLOW': 'true'.
fixes: #195
How I tested it:
from terminal
$ tox -e integration -- --model kubeflow --keep-models
$ juju switch kubeflow
$ juju consume u1-k8s:cos.loki-logging
Added u1-k8s:admin/cos.loki-logging as loki-logging
$ juju integrate loki-logging grafana-agent-k8s
$ kubectl get services -n kubeflow | grep 8082
kubeflow-dashboard ClusterIP 10.152.183.45 <none> 8082/TCP 8m13s
# visit http://10.152.183.45:8082 and set up it to see 2 more lines in logs
$ kubectl logs -n kubeflow kubeflow-dashboard-0 --container kubeflow-dashboard --tail 1000 | grep '\[kubeflow-dashboard\]'
2024-06-18T10:49:47.628Z [kubeflow-dashboard]
2024-06-18T10:49:47.628Z [kubeflow-dashboard] > kubeflow-centraldashboard@0.0.2 start /app
2024-06-18T10:49:47.628Z [kubeflow-dashboard] > npm run serve
2024-06-18T10:49:47.628Z [kubeflow-dashboard]
2024-06-18T10:49:47.826Z [kubeflow-dashboard]
2024-06-18T10:49:47.826Z [kubeflow-dashboard] > kubeflow-centraldashboard@0.0.2 serve /app
2024-06-18T10:49:47.826Z [kubeflow-dashboard] > node dist/server.js
2024-06-18T10:49:47.826Z [kubeflow-dashboard]
2024-06-18T10:49:48.436Z [kubeflow-dashboard] Initializing Kubernetes configuration
2024-06-18T10:49:48.469Z [kubeflow-dashboard] Unable to fetch Application information: 404 page not found
2024-06-18T10:49:48.469Z [kubeflow-dashboard]
2024-06-18T10:49:48.470Z [kubeflow-dashboard] "other" is not a supported platform for Metrics
2024-06-18T10:49:48.470Z [kubeflow-dashboard] Using Profiles service at http://kubeflow-profiles.kubeflow:8081/kfam
2024-06-18T10:49:48.474Z [kubeflow-dashboard] Server listening on port http://localhost:8082 (in production mode)
2024-06-18T10:55:54.238Z [kubeflow-dashboard] Unable to fetch Application information: 404 page not found
2024-06-18T10:55:54.238Z [kubeflow-dashboard]
I visit http://<ip>/cos-grafana/explore to explore the logs and see:
Added logging relation and cos integration tests from chisme.
Fixing usage of boolean in pebble layer, this cause that
if current_layer.services != new_layer.services:
condition was always true. The'REGISTRATION_FLOW': True
was'REGISTRATION_FLOW': 'true'
.fixes: #195
How I tested it:
from terminal
I visit
http://<ip>/cos-grafana/explore
to explore the logs and see: