Closed Karen-Schoener closed 2 months ago
Attaching config sync logs.
logs_west_skupper_router_config_sync.txt logs_east_skupper_router_config_sync.txt
Attaching logs from east.
In east, a panic occurred in the config-sync container. In east, there was no panic in the router container.
Also, in west, a panic occurred in the config-sync container. In west, there was no panic in the router container.
@c-kruse could you take a look at this when you have a moment? It looks like maybe a handler is not being unregistered in some way or something. Basically when a link between two sites is deleted, the config-sync pod is panicking:
panic: close of closed channel
goroutine 64 [running]:
github.com/skupperproject/skupper/pkg/vanflow/eventsource.(*Client).start.func1()
/go/src/app/pkg/vanflow/eventsource/client.go:59 +0x17
github.com/skupperproject/skupper/pkg/vanflow/eventsource.(*Client).Close(0xc0005ee2a0)
/go/src/app/pkg/vanflow/eventsource/client.go:149 +0xa2
github.com/skupperproject/skupper/pkg/kube/flow.(*StatusSync).handleForgotten(0xc0000b15e0, {{0xc0005a2bd0, 0x24}, 0x1, {0xc000590cc0, 0xa}, {0xc0005a2b70, 0x2b}, {0xc0005a2ba0, 0x28}, ...})
/go/src/app/pkg/kube/flow/status.go:443 +0xbf
github.com/skupperproject/skupper/pkg/vanflow/eventsource.(*Discovery).handleDiscovery(0xc0000976d0, {0x17335d0, 0xc00047f270}, {0xc0000a8e20?, 0xc0000a8e30?})
/go/src/app/pkg/vanflow/eventsource/discovery.go:87 +0x175
created by github.com/skupperproject/skupper/pkg/vanflow/eventsource.(*Discovery).Run in goroutine 63
/go/src/app/pkg/vanflow/eventsource/discovery.go:59 +0x1eb
Ah, this is familiar! Already have this fixed in a work in progress branch with a lot of other changes, but will get this out by itself in a few
@c-kruse supposing 1.x is tested with connection dropping enabled, would this problem show up, or is it exclusively a 2.x issue?
@ssorj this is a 2.x issue exclusively - part of the new pkg/vanflow package that is not in 1.x.
Describe the bug After deleting a link in the v2 branch, I noticed that the skupper-router pod restarts.
How To Reproduce Test steps:
Create sites in east, west.
Generate a link. Create the link.
Wait for the sites to show as linked.
Delete the link.
Watch for the link to be deleted.
Expected behavior Ability to delete link without skupper-router pod restart.
Environment details
v2 skupper branch commit:
Platform: minikube