c1 rook-ceph: host networking on VLAN 21 with msgr2 on-wire encryption #1785
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters#1785
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Moved from lab/machine-configs#27. The dual-stack rebuild is done, but Rook still runs on the pod network. Related: #1707 (mons all on Pis), lab/iac ADR-0008, lab/machine-configs ADR-0012.
Goal
Run c1's Ceph on VLAN 21 (
10.30.21.0/24,fdd5:c8ef:2fa0:21::/64) with Rooknetwork.provider: hostand msgr2 encryption on the wire. Encryption at rest (dm-crypt OSDs) is already live and must stay that way.Why (decided earlier, with sources)
bcmgenet maxmtu 1500, checked on pi-01 2026-11-15). A mixed MTU on one VLAN passes small packets and stalls large ones, so the failure would hide until recovery traffic. Jumbo frames would save about 1.5% at 1 Gbit. Revisit at 10G with no Pi on VLAN 21 (iac ADR-0008).routeros/modules/site/main.tf:23# never routed, no gateway). Host numbers follow VLAN 20: think-01 is10.30.21.21/P:21::21.rook-c1, which the YubiKey unseals (mc#14;clusters/c1/rook/cluster/values.yamlsecurity.kms).Current state (live, 2026-11-22)
network.providerand noaddressRanges, and every Ceph pod hashostNetwork: false.public_networkandcluster_networkare empty.10.30.200.41:3300(pi-04), b10.30.194.235:3300(pi-01), c10.30.204.188:3300(pi-03). The mon pods sit on pod IPs10.30.132-134.x, andms_bind_ipv6=false.spec.network.connections:encryption.enabled: false,compression.enabled: false,requireMsgr2: true. Effective modes arems_cluster/service/client_mode = crc secureandms_mon_*_mode = secure crc, so data-path traffic runs in crc mode, not encrypted.encrypted=trueand run theencryption-kms-get-kek,encryption-openandencrypted-block-statusinit containers.ceph-osdlocal PVs), no ObjectBucketClaims.10.30.20.x+P:20::x), and no node has anetwork.rook.io/mon-ipannotation. Kernel 7.2.15 everywhere, which meets the 5.11 minimum for msgr2 and secure mode in kernel clients.tagged = [], so no Pi can reach VLAN 21 today, and all three mons run on Pis.modules/network.nixconfigures one interface per host (animeteamspeak.host.interface). It has no VLAN 21 interface yet, and nothing on any branch mentions10.30.21outside ADR-0012. The host firewall opens only the k8s ports plus DRBD.Target values (from mc#27)
Tasks
lab/iac (RouterOS):
tagged = ["21"]). The thinks already have it.lab/machine-configs:
modules/network.nix: static10.30.21.<octet>/24+P:21::<octet>/64, no gateway,accept_ra = 0, MTU 1500. Set it on think-01..03 and all four Pis: CSI node plugins run on every node (mc#25), and mons can fail over to any Pi.requireMsgr2disables v1.:80on thinks, mgr dashboard and metrics, exporter. Their Services get node-IP (VLAN 20) endpoints, so the firewall must allow them on VLAN 20 from the cluster, or the ports must change.lab/clusters:
clusters/c1/rook/cluster/values.yaml: add the network block above.network.rook.io/mon-ip: 10.30.21.<octet>. Declare it in code (k3s node config or a Flux-managed patch), not withkubectl annotate. The annotation takes one address: rehearse how that fitsdualStack: true.ms_mode=securein the kernel mount options (Rook CephCluster CRD docs,encryption). Set it through ceph-csi-operator (livecsi-cluster-config-jsonhaskernelMountOptions: ""). Check that krbd maps withms_mode=securetoo.devices: ""(auto-detect) and IPv4/IPv6 masquerade on. After the interface lands, check that Cilium picked it up and thatceph -sworks from the toolbox./var/lib/rookon the mon nodes, re-prepare the 3 OSD partitions, and delete the old OSD keys in OpenBaorook-c1(Rook only deletes them when the CephCluster is deleted). Otherwise use Rook's documented conversion: change the provider, restart the OSD/MDS/RGW/mgr pods, then fail over the mons one at a time ("existing mons will remain running with the same network settings"). The monhealthChecktimeout is 20m on slow-booting Pis. The address-family change makes this the riskier path.labsw, one extra disk per VM, Rook with these values, an RBD mount held open throughout, HEALTH_OK at the end.Done when
ceph mon dump: every mon has v2 addrs only in10.30.21.0/24(plusP:21::/64if dual stack holds). No ClusterIP or pod IP.ceph config get osd.0 public_network/cluster_networkreturn the VLAN 21 ranges, andceph osd dumpshows OSD addresses in10.30.21.x.ceph config get osd.0 ms_cluster_mode/ms_service_mode/ms_client_modereturnsecure.encryption-open, and their dm-crypt keys are in OpenBaorook-c1.config_infoand the CephFS mount options showms_mode=secure.10.30.21.21is unreachable. No node has a default route via its VLAN 21 interface.ss -tnon a think shows ceph-osd peers only on10.30.21.x.