gloo
gloo copied to clipboard
Invalid resourceVersion error in upstream discovery
Gloo Edge Product
Enterprise
Gloo Edge Version
v1.14.x
Kubernetes Version
1.27
Describe the bug
A customer reported that gloo discovery is not creating all the upstreams that they expect. Deleting and recreating the services doesn't seem to help.
When checking the discovery
pod logs, they saw errors like:
{"level":"error","ts":"2023-08-30T12:43:51.281Z","logger":"uds.v1.event_loop.uds","caller":"syncer/setup_syncer.go:117","msg":"error: event_loop.uds: error in uds plugin : reconciling resource default-xxx-80: updating kube resource default-xxx-80: (want 2398796740): upstreams.gloo.solo.io \"default-xxx-80\" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update","version":"undefined","stacktrace":"github.com/solo-io/gloo/projects/discovery/pkg/uds/syncer.RunUDS.func2\n\t/go/pkg/mod/github.com/solo-io/[email protected]/projects/discovery/pkg/uds/syncer/setup_syncer.go:117"}
Deleting the erroring upstreams didn't seem to resolve the issue (upstreams would get recreated again, with same error in logs)
Note: I have also seen a similar error (metadata.resourceVersion: Invalid value: 0x0: must be specified for an update
) on a clean install, but in my case it didn't seem to affect upstream creation.
Recommended steps:
- work with customer to reproduce / figure out under what circumstances the error occurs
- confirm whether and how it affects upstream discovery
- if needed, share any short-term workarounds while customer is awaiting a fix
Expected Behavior
resourceVersion error should not occur and/or should resolve itself with retries, and expected upstreams should be created
Steps to reproduce the bug
See above
Additional Environment Detail
No response
Additional Context
No response