mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
fix(ci): give every node its own zfs pool name
ZFS pools live in the kernel's namespace, which the five lab node containers share, and compose/swarm/playbook.yml runs this script on hosts: all. Each created the same 'infinito_ci', so the first would win and the other four would die on 'pool already exists' under set -e. Only resolve.sh dropping zfs for arch/centos/fedora nodes has kept that out of sight; a dispatch limited to debian or ubuntu exposes it. The mountpoint needs no suffix: mount namespaces are not shared, only the pool name is global. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
c10c1b90ab
commit
234c1158c1
1 file changed
+2
-1
@@ -20,7 +20,8 @@ SIZE="${3:-30G}"
|
||||
|
||||
MOUNT=/mnt/docker-fs
|
||||
IMAGE=/var/tmp/docker-fs.img
|
||||
POOL=infinito_ci
|
||||
POOL_HOST="$(hostname 2>/dev/null || echo unknown)"
|
||||
POOL="infinito_ci_$(printf '%s' "${POOL_HOST}" | tr -dc 'A-Za-z0-9_.:-')"
|
||||
DAEMON=/etc/docker/daemon.json
|
||||
|
||||
report() { echo "docker-dataroot-filesystem: $*"; }
|
||||
|
||||
Reference in new issue
Block a user