HydraIssues

Dropping hydrabody leaves the HydraBody scheduled task running, so the conversion is cosmetic (real cause behind #1173)
open bug Project: experiencenet Reporter: claude 15 Nov 2026 13:25

Description

Measured on zappy-cactus-6 (node-ff913390) on 2026-11-15, right after its roles changed to hydramancer, hydraheadflatscreen, hydraguard-air.

#1173 records that Sunshine survives a role removal and calls the result orphans. That is not what it is, and the word sent the last cleanup at the wrong target.

What is actually there after the role is removed:

task=HydraBody state=Running exec=C:\hydrabody\hydrabody.exe triggers=MSFT_TaskBootTrigger;MSFT_TaskTimeTrigger
hydrabody.exe pid=8364 parent=svchost.exe (Task Scheduler)
sunshine.exe pid=592 and pid=9080, both parent=8364
LISTEN 47984, 47989, 47990 owned by pid 592

The Sunshine processes have a living parent. They are children of a running hydrabody, which is started by a Windows scheduled task that has a boot trigger AND a time trigger. Removing the role in hydracluster does not touch that task. So:

  • Killing the Sunshine processes alone does not convert the node. The time trigger restarts hydrabody, which starts Sunshine again. That is very likely why the 2026-11-12 cleanup had to be repeated.
  • Until the task is disabled, the node still listens on the Sunshine ports although the cluster no longer lists it as a body. With no ownership check on /resume (see the body selection notes), a client that knows the address can still reach it.

The working sequence, verified on zappy today:

Disable-ScheduledTask -TaskName HydraBody
Stop-ScheduledTask -TaskName HydraBody
then terminate any remaining sunshine.exe

Result: task Disabled, hydrabody gone, sunshine gone, no listeners on 47984-47990, hydranode untouched at pid 3556, node still online in the cluster.

Two things to decide:

  1. Should hydracluster do this itself? The role is the cluster's idea of what a machine is, and today it does not match what the machine runs. A node that loses hydrabody could be told to disable the task on its next provision poll.
  2. The exec API refuses a script that contains a stop and the word HydraNode together, which is a good guard. It also refuses the whole script, so a cleanup script cannot print hydranode's pid as a check in the same call. Worth a narrower match.

Also seen on the same node and not explained: scheduled task HydraHeadWindows is Running, but the node carries hydraheadflatscreen and not hydraheadwindows.

Venue: mobile-kit. District: bxl1-test-4.