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
bug(deploy): fleet update fails on a newly enrolled node — autobot_shared link into a not-yet-deployed autobot-slm-agent dir #21035
A fleet update fails on a freshly enrolled node before the SLM agent is installed:
fatal: [<node>]: FAILED! => {"msg": "Error while linking: [Errno 2] No such file or directory: b'../autobot_shared' -> b'<base_dir>/autobot-slm-agent/autobot_shared'"}
Seen 2026-11-07 on a test node enrolled through the SLM. The node's install directory held only autobot_shared/ and constraints/; there was no autobot-slm-agent/ directory.
Root cause
autobot-slm-backend/ansible/playbooks/update-all-nodes.yml:2020-2030 (and the PLAY 1 copy at :564-574) creates {{ autobot.base_dir }}/autobot-slm-agent/autobot_shared with state: link, guarded only by when: slm_node_id is defined. On a node where the agent tree has not been deployed yet, the parent directory does not exist, so the link fails with ENOENT and the whole play stops. The same unguarded pattern applies to the autobot-slm-backend (:576) and autobot-backend (:1063) links.
Expected
A fleet update on a newly enrolled node either deploys the agent tree before linking into it, or skips the link (with a clear log line) when the agent directory isn't there. It never fails the play.
Acceptance criteria
Every autobot_shared link task in update-all-nodes.yml is ordered after the deploy of its component directory, or guarded on that directory existing, using one shared task rather than four copies.
A test or playbook lint asserts that each link's parent directory is created or checked before the link.
Host evidence: a fleet update on a freshly enrolled node (agent not yet deployed) completes and ends with the agent installed and linked.
Code from #20777 landed on main via #21176 (merge train T96b, merge commit 250ddc4). This issue is left open: the PR used Refs, so its remaining acceptance criteria and any host-behaviour evidence (a merge is not host evidence) are not verified here.
Activity
fix(ansible): link autobot_shared only into deployed components throu…
mrveiss commentedon Nov 8, 2026
Code from #20777 landed on main via #21176 (merge train T96b, merge commit 250ddc4). This issue is left open: the PR used Refs, so its remaining acceptance criteria and any host-behaviour evidence (a merge is not host evidence) are not verified here.