Reproduced live on the bench appliance. Switching tari.mode local→remote and running
pithead apply -y:
- the preview correctly warned "the local tari container will be STOPPED and removed";
- the render correctly dropped
local_tari from COMPOSE_PROFILES;
- p2pool was correctly recreated with
--merge-mine tari://gouda.lan:18142;
- but the tari container was left RUNNING — apply's own later output said "the tari
container is recreated (brief restart)" for a TARI_MEM change, i.e. the memory-diff path
recreated the very container the mode switch had just removed. It then ran a full
minotari_node against a remote-mode config, OFFLINE and flailing, and would have re-synced
the chain into a dir the operator had just reclaimed.
podman rm -f tari followed by pithead up converges correctly and the container stays gone
— so the steady state is right; the transition is the bug. Likely the recreate list is built
from the .env diff BEFORE profile deactivation is considered, so tari appears in the "changed,
recreate" set even though its profile is off. The monerod local→remote path deserves the same
check (#103's e2e proved fresh-remote, not switch-to-remote).
Coverage: a stack-level test that drives a local→remote tari switch through apply against the
compose stubs and asserts the tari container is absent afterwards — the KVM phases never
exercise a post-provision mode switch.
Reproduced live on the bench appliance. Switching tari.mode local→remote and running
pithead apply -y:local_tarifrom COMPOSE_PROFILES;--merge-mine tari://gouda.lan:18142;container is recreated (brief restart)" for a TARI_MEM change, i.e. the memory-diff path
recreated the very container the mode switch had just removed. It then ran a full
minotari_node against a remote-mode config, OFFLINE and flailing, and would have re-synced
the chain into a dir the operator had just reclaimed.
podman rm -f tarifollowed bypithead upconverges correctly and the container stays gone— so the steady state is right; the transition is the bug. Likely the recreate list is built
from the .env diff BEFORE profile deactivation is considered, so tari appears in the "changed,
recreate" set even though its profile is off. The monerod local→remote path deserves the same
check (#103's e2e proved fresh-remote, not switch-to-remote).
Coverage: a stack-level test that drives a local→remote tari switch through apply against the
compose stubs and asserts the tari container is absent afterwards — the KVM phases never
exercise a post-provision mode switch.