mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-01 01:52:30 +01:00
The first commit on this branch let a node's own Pulse agent start a stopped Proxmox guest, and chose that agent by hostname. Another machine can hold a node's name, and the same VMID there is a different guest. A second review of the branch found that and the faults below. Which agent. A start now needs all of this, or it is refused with guest_start_agent_unconfirmed: exactly one agent tied to the node, the node on the guest's own Proxmox connection under the guest's own node name, the agent carrying the node's name with no other monitored node of that name, and an address on one of the agent's own interfaces that Proxmox lists for that node and for no other. The link Pulse makes on a matching name is not evidence, nor the address Pulse dials, which can be a proxy, nor the agent's configured report address. This is evidence and not proof: a machine Pulse does not monitor as a node, with the node's name and one of its addresses, is not ruled out. An agent Pulse cannot confirm is not told to switch commands on either, because the start would still be refused. Runner routes. A route planned on the action runner now demands a runner at dispatch. A collector that took the runner's place under the same agent ID is refused, so its answer is never judged by the runner's rule. Agent side. The service check is the exact cgroup /system.slice/pulse-agent.service, so a user manager's unit of that name no longer passes. Every command client of one state directory shares one containment, so a client created when commands are switched cannot prepare again while an old client's start is finishing. A registration waits five seconds for the containment probe, not fifteen, and a later change is restated on the live session with an agent_capabilities message. Mock data. Every mock node listed the same address and its agent reported an unrelated one, so the new rule refused every mock node's agent as unconfirmed. Mock nodes now have their own addresses and each node's agent reports them, as on a real node. Docs said more than the code did in several places. They now match.