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
Linux bootstrap writes /etc/spawn/plugins.json after starting spored, which reads it only at startup #1023
Found while working on #1007 (PR #1021). Read from the code, not reproduced live.
BuildLinuxBootstrap (pkg/launcher/bootstrap.go) appends the --plugin declarations (cat > /etc/spawn/plugins.json) after linuxBootstrapBody. The body ends with systemctl start spored, and the unit is Type=simple, so systemctl start returns as soon as the process is forked.
spored reads the file once:
provider.NewEC2Provider calls loadConfigFromEC2Tags, which calls loadPluginDeclarations().
agent.newAgent then calls rt.LoadFromDeclarations only when activate && len(config.Plugins) > 0.
RefreshConfig re-reads config.Plugins later, but nothing loads plugins after startup.
So declared plugins load only if the bootstrap's cat wins a race against spored's IMDS reads and its first DescribeTags. The bootstrap usually wins, because writing a file is fast. Anything that slows the bootstrap between those two points silently drops every plugin: a slow disk, or a check added there (#1021 placed its post-spored check after the plugins block for exactly this reason, with a gate).
Fix: write plugins.json before linuxBootstrapBody, the way /etc/spawn/command and the ready-gates list already are, and gate the order. Note the effect on a Spot replacement: spored would then also load plugins there, concurrently with its #995 retirement check. That is no worse than today, which only depends on the race.
Activity
Run the post-spored replacement stop after the plugin declarations (#…
Write plugins.json before spored starts (#1023)
Skip the bootstrap ordering test on Windows: it runs the Linux user-d…
Write plugins.json before spored starts (#1023) (#1045)
Run the post-spored replacement stop after the plugin declarations (#…
Skip the bash-run Spot replacement bootstrap tests on Windows; note #…
Run the post-spored replacement stop after the plugin declarations (#…
Skip the bash-run Spot replacement bootstrap tests on Windows; note #…
Stop a Spot replacement from re-running the user's workload (#1007) (#…
fix(launcher): start spored before optional steps; retire on any pre-…
feat(launcher): fetch the static bootstrap body per release behind a …