fix: add laconic-so update step, downgrade unified mount check to warning

- Add laconic_so_repo variable (/home/rix/stack-orchestrator) and a
  git pull task before deployment start — the editable install must be
  current or stale code causes deploy failures
- Downgrade unified mount root check from fatal assertion to debug
  warning — the mount style depends on which laconic-so version is
  deployed, and individual PV mounts (/mnt/validator-*) work fine

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix/kind-mount-propagation
A. F. Dudley 2026-03-08 04:32:20 +00:00
parent ad68d505ae
commit fe935037f7
1 changed files with 20 additions and 2 deletions

View File

@ -52,6 +52,7 @@
stack_repo: /srv/deployments/agave-stack
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
kind_cluster: laconic-70ce4c4b47e23b85
k8s_namespace: "laconic-{{ kind_cluster }}"
deployment_name: "{{ kind_cluster }}-deployment"
@ -216,11 +217,28 @@
changed_when: true
tags: [deploy]
- name: Verify kind-config.yml has unified mount root
- name: Check kind-config.yml mount style
ansible.builtin.command: "grep -c 'containerPath: /mnt$' {{ deployment_dir }}/kind-config.yml"
register: mount_root_check
failed_when: mount_root_check.stdout | int < 1
changed_when: false
failed_when: false
tags: [deploy]
- name: Warn if unified mount root not found
ansible.builtin.debug:
msg: >-
WARNING: kind-config.yml does not have unified mount root
(containerPath: /mnt). laconic-so may be using individual PV mounts.
Verify PV hostPaths match expected paths after deploy.
when: mount_root_check.stdout | default('0') | int < 1
tags: [deploy]
- name: Update laconic-so (editable install)
ansible.builtin.shell: |
cd {{ laconic_so_repo }}
git fetch origin
git reset --hard origin/main
changed_when: true
tags: [deploy]
- name: Start deployment (creates kind cluster + deploys pod)