Skip to content

Deploy guard: a stopped kind cluster blocks a CRC deploy, and down.sh was refused #487

Open

Description

@ephico2real2

Part of #13. Found in OB1 run 27 (deploy of fb727b5 on CRC), 2026-11-20.

What happened. The owner asked for kind to be shut down. It was stopped, not deleted: podman stop cmapi-test-control-plane at 08:14:13Z. docs/13 step 2 (deploy/crc-guard.py preflight, lines 197-204) runs kind get clusters. That command still lists the stopped cluster, so the guard stops the deploy: STOP: a kind cluster exists or cannot be listed: ['cmapi-test']; none may run during a CRC step.

The documented fix is deploy/kind-import/down.sh, and Claude Code's auto mode refused it ("Destructive or Unwanted Actions"). The refusal stands. Exact command:

cd /Users/olasumbo/gitRepos/workbench/cmapi/wt27-deploy; KIND_IMPORT_KUBECONFIG=/Users/olasumbo/gitRepos/workbench/cmapi/wt26-deploy/.cmapi-test.kubeconfig deploy/kind-import/down.sh

From reading the code (not run): with the cluster stopped, down.sh's check_served probably fails before it deletes anything; only --stale skips that check.

Question for research. The guard exists to protect CRC's memory headroom during a deploy, and a stopped kind node uses none. Should step 2 accept a cluster whose node containers have all exited? Alternatively, the procedure could say how to deploy while kind is intentionally off. Research the guard's original reason (docs/13 "A second cluster: kind", the memory-pressure incidents), pick the safer rule, and test it on both a running and a stopped kind.

Research mandate. Read the primary sources (kind and podman container states, the guard's history), fix the cause, and record the decision.

Activity

  1. added
    bug
    status:open
    sev:low
    Backlog
    on Nov 20, 2026
  2. added
    In-Progress
    and removed
    status:open
    Backlog
    on Nov 20, 2026
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

    In-Progressbugsev:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions