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
{{ message }}
Repository navigation
fabric-api sidecars start unconfigured on a fresh lab deploy #1082
On a freshly deployed containerlab lab, every fabric-api node sidecar starts without a cell and never serves, so task verify:fabric-api fails. The sidecar reads CELL and SITE from the optional fabric-api ConfigMap once, at container start. task deploy starts the sidecars in deploy:fabric, but only creates that ConfigMap later, in deploy:fabric-api, through each site's gateway overlay. Nothing restarts the sidecars after that.
Steps to reproduce
Run task deploy in deploy/containerlab on a host with no lab.
Read any fabric-router pod's fabric-api container log.
Run task verify:fabric-api.
What happens
Each sidecar logs fabric-api node is not configured: --cell (CELL) is empty and does not listen on its gRPC port. verify:fabric-api retries the first node's Info for 90 seconds, then exits with status 1. It prints nothing after "Building the fabric-api client...", because the failure happens inside a command substitution under set -e.
Expected
A clean task deploy leaves every sidecar configured, and verify:fabric-api passes. Restarting the fabric-router DaemonSet in each site after deploy makes all 148 of its checks pass.
Fix
Either create the fabric-api ConfigMap before deploy:fabric starts the sidecars, or have deploy:fabric-api restart the fabric-router DaemonSet when it creates the ConfigMap. Separately, verify-fabric-api.sh should report the last error when its first Info query never succeeds, rather than exiting silently.
Activity