Skip to content

bug(deploy): fleet update fails on a newly enrolled node — autobot_shared link into a not-yet-deployed autobot-slm-agent dir #21035

Open

Description

@mrveiss

Problem

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.

Activity

  1. mrveiss commented on Nov 8, 2026

    @mrveiss
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginfrastructurephase:M1.4Wizard and SLM: choose a mode, apply it, default models workpriority: high

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions