Skip to content

Commit 0a7955e

Browse files
kvapsclaude
andcommitted
fix(stand): trust host registry + load lvm/zfs kernel modules
Two issues hit when bringing up parallel stands (NAME=t1, t2, ...): 1. Talos containerd refused HTTP on 10.164.0.1:5000 ("http: server gave HTTP response to HTTPS client") because the registry-mirror trust was patched onto the long-running test stand by hand and never made it into config-patch.yaml. Bake the trust into every freshly-spawned cluster. 2. ZFS / LVM-thin kernel modules weren't loaded, so satellites couldn't drive ZFS pools and dm_thin_pool was missing for LVM-thin volumes. Add zfs / dm_thin_pool / dm_snapshot / dm_crypt to machine.kernel.modules and pull the Talos siderolabs/zfs extension by default (per piraeus's Talos docs). Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
1 parent 4ca2513 commit 0a7955e

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

stand/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
NAME ?= blockstor
55
WORKERS ?= 3
66
CONTROLPLANES ?= 1
7-
EXTENSIONS ?= siderolabs/drbd
7+
EXTENSIONS ?= siderolabs/drbd,siderolabs/zfs
88

99
WORK_DIR := .work/$(NAME)
1010
TALOSCONFIG := $(WORK_DIR)/talosconfig

stand/up.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -euo pipefail
88
NAME=${1:?cluster name required}
99
CONTROLPLANES=${2:-1}
1010
WORKERS=${3:-3}
11-
EXTENSIONS=${4:-siderolabs/drbd}
11+
EXTENSIONS=${4:-siderolabs/drbd,siderolabs/zfs}
1212
WORK_DIR=${5:-.work/$NAME}
1313
TALOS_VERSION=${TALOS_VERSION:-v1.10.5}
1414
ARCH=${ARCH:-amd64}
@@ -93,10 +93,29 @@ machine:
9393
image: $INSTALL_IMG
9494
kernel:
9595
modules:
96+
# Replication layer.
9697
- name: drbd
9798
parameters:
9899
- usermode_helper=disabled
99100
- name: drbd_transport_tcp
101+
# Storage providers — load the kernel bits piraeus / blockstor
102+
# rely on so satellites can drive ZFS and LVM-thin pools without
103+
# an extra Talos config-patch step.
104+
# https://piraeus.io/docs/v2.10.5/how-to/talos/
105+
- name: zfs
106+
- name: dm_thin_pool
107+
- name: dm_snapshot
108+
- name: dm_crypt
109+
# Trust the host-side Docker registry on 10.164.0.1:5000 via plain
110+
# HTTP. The blockstor-controller / blockstor-satellite images we
111+
# build live there; without this patch containerd refuses to pull
112+
# them ("http: server gave HTTP response to HTTPS client").
113+
registries:
114+
mirrors:
115+
"10.164.0.1:5000":
116+
endpoints:
117+
- "http://10.164.0.1:5000"
118+
skipFallback: true
100119
YAML
101120

102121
echo ">> creating cluster '$NAME' (CP=$CONTROLPLANES, workers=$WORKERS, net=$NET_CIDR)"

0 commit comments

Comments
 (0)