You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When restarting a kcp instance with WatchList enabled kcp fails to finish bootstrapping.
The error is a bit opaque but effectively the shard resource is missing because the APIBindings are missing, which bind the kcp APIs into the root workspace. That prevents the bootstrap from finishing and kcp never becoming ready.
Fix the WatchList error
Add a test verifying that kcp being restarted with the same etcd storage still works
For the test I think the integration tests can be used, they allow explicitly stopping and starting the kcp server.
Run: kubectl ws tree ; kubectl get shards ; kubectl get apibindings.apis.kcp.io
>k ws tree ; k get shards ; k get apibindings.apis.kcp.io
.
└── root
NAME REGION URL EXTERNAL URL AGE
root https://127.0.0.1:6443 https://127.0.0.1:6443 61s
NAME AGE READY
shards.core.kcp.io 71s True
tenancy.kcp.io 71s True
topology.kcp.io 71s True
Describe the bug
When restarting a kcp instance with WatchList enabled kcp fails to finish bootstrapping.
The error is a bit opaque but effectively the shard resource is missing because the APIBindings are missing, which bind the kcp APIs into the root workspace. That prevents the bootstrap from finishing and kcp never becoming ready.
For the test I think the integration tests can be used, they allow explicitly stopping and starting the kcp server.
Steps To Reproduce
.kcpkubectl ws tree ; kubectl get shards ; kubectl get apibindings.apis.kcp.iows treeshould work,get shardswill fail (because the shards API is missing) andget apibindingswill return nothing.Expected Behaviour
.kcpkubectl ws tree ; kubectl get shards ; kubectl get apibindings.apis.kcp.ioAdditional Context
No response