From 63735a9830e8eaaf2a4b786dfe6f99faa8976ad5 Mon Sep 17 00:00:00 2001 From: "A. F. Dudley" Date: Sun, 8 Mar 2026 04:42:11 +0000 Subject: [PATCH] fix: revert snapshot_dir, add laconic_so_branch, move kind ramdisk check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Revert snapshot_dir to /srv/solana/snapshots — aria2c runs on the host where this is the direct zvol mount (always available), unlike /srv/kind/solana/snapshots which depends on the bind mount - Add laconic_so_branch variable (default: main) and use it in both git reset commands so the branch can be overridden via -e - Move "Verify ramdisk visible inside kind node" from preflight to after "Wait for deployment to exist" — the kind container may not exist during preflight after teardown Co-Authored-By: Claude Opus 4.6 --- playbooks/biscayne-redeploy.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/playbooks/biscayne-redeploy.yml b/playbooks/biscayne-redeploy.yml index 06247e6b..b6f263cd 100644 --- a/playbooks/biscayne-redeploy.yml +++ b/playbooks/biscayne-redeploy.yml @@ -53,10 +53,11 @@ stack_path: /srv/deployments/agave-stack/stack-orchestrator/stacks/agave laconic_so: /home/rix/.local/bin/laconic-so laconic_so_repo: /home/rix/stack-orchestrator + laconic_so_branch: main kind_cluster: laconic-70ce4c4b47e23b85 k8s_namespace: "laconic-{{ kind_cluster }}" deployment_name: "{{ kind_cluster }}-deployment" - snapshot_dir: /srv/kind/solana/snapshots + snapshot_dir: /srv/solana/snapshots ledger_dir: /srv/solana/ledger accounts_dir: /srv/solana/ramdisk/accounts ramdisk_mount: /srv/solana/ramdisk @@ -185,24 +186,12 @@ changed_when: false tags: [deploy, preflight] - - name: Verify ramdisk visible inside kind node - ansible.builtin.shell: - cmd: > - set -o pipefail && - docker exec {{ kind_cluster }}-control-plane - df -T /mnt/validator-accounts 2>/dev/null | grep -q xfs - executable: /bin/bash - register: kind_ramdisk_check - failed_when: kind_ramdisk_check.rc != 0 - changed_when: false - tags: [deploy, preflight] - # ---- deploy: sync config, bring up cluster, scale to 0 ------------------ - name: Pull agave-stack repo ansible.builtin.shell: | cd {{ stack_repo }} git fetch origin - git reset --hard origin/main + git reset --hard origin/{{ laconic_so_branch }} changed_when: true tags: [deploy] @@ -237,7 +226,7 @@ ansible.builtin.shell: | cd {{ laconic_so_repo }} git fetch origin - git reset --hard origin/main + git reset --hard origin/{{ laconic_so_branch }} changed_when: true tags: [deploy] @@ -280,6 +269,18 @@ changed_when: false tags: [deploy] + - name: Verify ramdisk visible inside kind node + ansible.builtin.shell: + cmd: > + set -o pipefail && + docker exec {{ kind_cluster }}-control-plane + df -T /mnt/validator-accounts 2>/dev/null | grep -q xfs + executable: /bin/bash + register: kind_ramdisk_check + failed_when: kind_ramdisk_check.rc != 0 + changed_when: false + tags: [deploy] + - name: Scale validator to 0 (stop before snapshot download) ansible.builtin.command: > kubectl scale deployment {{ deployment_name }}