Describe the bug
The GEE observability deployment logs consistently show the dashboard created from the gloo-portal.gloo-portal upstream is rejected by grafana.
There are many error records in the logs like this:
{"level":"error","ts":"2021-11-18T22:56:48.412Z","logger":"observability.v1.event_loop.observability","caller":"syncer/setup_syncer.go:143","msg":"error: event_loop: All attempts fail:\n#1: Encountered errors while communicating with Grafana while creating new content: 1 error occurred:\n\t* failed to save dashboard to grafana for upstream: gloo-portal.gloo-portal: 400 {\"message\":\"uid contains illegal characters\"}\n\n\n#2: Encountered errors while communicating with Grafana while creating new content: 1 error occurred:\n\t* failed to save dashboard to grafana for upstream: gloo-portal.gloo-portal: 400 {\"message\":\"uid contains illegal characters\"}\n\n\n#3: Encountered errors while communicating with Grafana while creating new content: 1 error occurred:\n\t* failed to save dashboard to grafana for upstream: gloo-portal.gloo-portal: 400 {\"message\":\"uid contains illegal characters\"}\n\n\n#4: Encountered errors while communicating with Grafana while creating new content: 1 error occurred:\n\t* failed to save dashboard to grafana for upstream: gloo-portal.gloo-portal: 400 {\"message\":\"uid contains illegal characters\"}\n\n\n#5: Encountered errors while communicating with Grafana while creating new content: 1 error occurred:\n\t* failed to save dashboard to grafana for upstream: gloo-portal.gloo-portal: 400 {\"message\":\"uid contains illegal characters\"}\n\n\n#6: Encountered errors while communicating with Grafana while creating new content: 1 error occurred:\n\t* failed to save dashboard to grafana for upstream: gloo-portal.gloo-portal: 400 {\"message\":\"uid contains illegal characters\"}\n\n\n#7: Encountered errors while communicating with Grafana while creating new content: 1 error occurred:\n\t* failed to save dashboard to grafana for upstream: gloo-portal.gloo-portal: 400 {\"message\":\"uid contains illegal characters\"}\n\n","version":"1.9.1","stacktrace":"github.com/solo-io/solo-projects/projects/observability/pkg/syncer.RunObservability.func1\n\t/workspace/solo-projects/projects/observability/pkg/syncer/setup_syncer.go:143"}
@marcogschmidt says this:
I have never seen this error before, but it’s also been a while since I last paid attention to that deployment, so I’m not sure if this is a new error or if we just never caught it before.
Looking at the code it seems that we generate UID the error is complaining about from the upstream name. I wonder whether it is because of the .. If that is the cause we should sanitize the UID string we generate accordingly in edge.
To Reproduce
This appears to occur naturally with Edge Enterprise 1.9.1 and Portal 1.1.2
Expected behavior
There are no errors with generated dashboard for Portal upstreams.
Describe the bug The GEE observability deployment logs consistently show the dashboard created from the gloo-portal.gloo-portal upstream is rejected by grafana.
There are many error records in the logs like this:
@marcogschmidt says this:
To Reproduce This appears to occur naturally with Edge Enterprise 1.9.1 and Portal 1.1.2
Expected behavior There are no errors with generated dashboard for Portal upstreams.
Additional context