GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(kind): restore Phase 9 lab on isolated persistent storage · arencloud/unf@a0abd79

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs
    • adr
      • 0388-persistent-phase9-kind-bootstrap.md
    • development
      • phase9-attested-encryption-fabric-plan.md
      • phase9-persistent-kind.md
      • phase9-required-locality-plan.md
    • project-status.md
  • hack
    • phase9-kind-persistent-podman.sh
    • verify-phase9-persistent-kind.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/adr/0388-persistent-phase9-kind-bootstrap.md‎

Copy file name to clipboard
+60Lines changed: 60 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# ADR 0388: Separate Persistent Phase 9 Kind Bootstrap
2+
3+
Date: 2026-09-21
4+
5+
Status: infrastructure bootstrap verified; Phase 9 qualification unchanged
6+
7+
The user approved a separate fresh dual-stack Kind environment after the old
8+
temporary runtime disappeared following a workstation reboot. Historical
9+
evidence and the default Podman stores/containers are preserved. This creates
10+
new Node identities, not retained-state continuity with the old cluster.
11+
12+
`unf-p9-20260921` uses Kind v0.32.0, the repository's pinned v1.35.0 three-Node
13+
service-fabric configuration, no default CNI and no kube-proxy. Its dedicated
14+
rootful Podman graph root and `/var` volumes are under
15+
`/var/lib/unf-kind/phase9-20260921/storage`, not `/tmp`. Runtime-only state is
16+
under `/run/unf-kind-phase9-20260921`. The isolated dual-stack network is
17+
`unf-p9-20260921`, bridge `unfp9br0`, subnets `10.90.91.0/24` and `fd90:91::/64`.
18+
Kind's network override is explicitly experimental/unsupported; this is a lab
19+
configuration, not a production support claim. Host kernel is now
20+
`7.2.5-200.fc44.x86_64`, so historical kernel qualification is not inherited.
21+
22+
Bootstrap uses the last cl02-passing runtime from ADR 0386,
23+
`f984db9e8b041c014814958054a1908e9829233c`, with the **Native** baseline:
24+
25+
- Controller: `quay.io/arencloud/unf-controller-dev@sha256:27ca5f02cc76a6c3f5694d5e730f1b0b2399f7954b5c41f277c94061a59e6c5e`.
26+
- Agent/installer: `quay.io/arencloud/unf-agent-dev@sha256:4062add8cd5ead92cdd7decc293de44851eaab1d012fc075802d41ffe8065eb7`.
27+
- Installed CNI SHA-256: `09129e9c91cc3434b0253bf7d4c811870f2e6e72ce6bf3e4b88eba7b03a4cd47` on all three Nodes.
28+
29+
Public image pulls succeed without registry credentials. TLS keys and the new
30+
kubeconfig remain permission-restricted and ignored by Git. All Nodes are Ready;
31+
the controller and all agents report the exact revision, agents report loaded
32+
BPF and ABI 15/encryption ABI 2, and all three controller reports are fresh and
33+
converged. No container restarted. All seven regular/init log streams were
34+
reviewed: 2,005,477 bytes, no WARN/ERROR, no observer failures. This short
35+
bootstrap window is not a load/soak test; its substantial INFO log volume still
36+
needs stabilization measurement.
37+
38+
The read-only check is `hack/verify-phase9-persistent-kind.sh`. Its first attempt
39+
used the wrong installed CNI filename (`unf-cni` rather than `unf`) and failed;
40+
the corrected complete run passes. Evidence is retained separately:
41+
42+
- `.artifacts/p9-kind-persistent-20260921`: creation and rendered bootstrap.
43+
- `.artifacts/p9-kind-persistent-20260921-check-v2`: passing complete checks.
44+
- `.artifacts/p9-kind-persistent-20260921-final-logs`: reviewed logs.
45+
- Node inventory SHA-256: `ee5db05bf134a1832eb9144eb2594f6998a082eff5ee94f6295cc0f047daab0d`.
46+
- Controller convergence SHA-256: `432d70dbc035216d0f3248b8cf2f675cc53844461addb21fd3b3ac3e38041064`.
47+
48+
Node UIDs:
49+
50+
| Node suffix | UID |
51+
|---|---|
52+
| control-plane | `fb38e91d-c6a1-47a9-a0e7-2719ac3657b4` |
53+
| worker | `bab6dc45-3f5d-4cc1-8c7f-d3c66af25b5f` |
54+
| worker2 | `bac15646-99b6-4523-a07c-3b20e184dab7` |
55+
56+
No host reboot, automatic-start or post-reboot recovery test is claimed. See the
57+
[operating runbook](../development/phase9-persistent-kind.md). cl02 still runs
58+
`d007071`; ADR 0387's failed Required gate remains unqualified. Repair and pass
59+
cl02 before advancing the new Kind runtime. L3/L4/L5/Q, Phase 9.8/9.9 and S1–S5
60+
remain open. No release pins change.
Collapse file

‎docs/development/phase9-attested-encryption-fabric-plan.md‎

Copy file name to clipboardExpand all lines: docs/development/phase9-attested-encryption-fabric-plan.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ pending; follow the [Required locality closure plan](phase9-required-locality-pl
3636
ADR 0387 subsequently deploys `d007071` to cl02, preserving all CNI journals,
3737
but the expanded gate fails at Required admission with missing-key-epoch and
3838
drain/catch-up warnings. This is the immediate repair priority, not a verified
39-
inventory runtime. The retained Kind runtime is unavailable after the workstation reboot.
39+
inventory runtime. The old retained Kind runtime is unavailable after the workstation
40+
reboot. ADR 0388 verifies an explicitly approved separate persistent Kind bootstrap
41+
on the last cl02-passing `f984db9` Native runtime. This is new infrastructure,
42+
not retained-state continuity or current-runtime Phase 9 qualification.
4043

4144
Historical repair checkpoint (ADRs 0316–0318): Native expiry/empty-Namespace
4245
continuity passes cl02 then matching-image retained Kind on runtime `5ea1bd2`.
Collapse file

‎docs/development/phase9-persistent-kind.md‎

Copy file name to clipboard
+65Lines changed: 65 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Phase 9 persistent Kind lab
2+
3+
This is the independent environment approved on 2026-09-21 (ADR 0388), not a
4+
replacement for historical retained-state evidence. Qualification order remains
5+
**cl02 first, then Kind with matching immutable images**. Bootstrap currently
6+
uses the previously cl02-passing `f984db9` Native runtime, not cl02's failed
7+
`d007071` Required-admission candidate.
8+
9+
Run commands from the repository root. The kubeconfig and TLS keys are local,
10+
ignored credentials; never include them in commits or evidence bundles.
11+
12+
```bash
13+
kubectl --kubeconfig .tools/kind-unf-p9-20260921.kubeconfig \
14+
--context kind-unf-p9-20260921 get nodes
15+
sudo -n hack/phase9-kind-persistent-podman.sh ps -a
16+
bash hack/verify-phase9-persistent-kind.sh .artifacts/p9-kind-new-observation
17+
```
18+
19+
The verifier needs a new, nonexistent evidence directory, checks only bootstrap
20+
readiness and writes no cluster state. Defaults pin ADR 0388's revision and CNI
21+
hash; future qualified runtime checks must explicitly set
22+
`UNF_BOOTSTRAP_REVISION` and `UNF_BOOTSTRAP_CNI_SHA256`. It does not replace
23+
traffic, ciphertext, locality, lifecycle, restart or scale gates. Review every
24+
UNF regular/init/previous container log separately, with observer failures and
25+
truncation treated as gaps.
26+
27+
## Storage and restart boundary
28+
29+
Always use the dedicated wrapper. Default `sudo podman` refers to other lab
30+
clusters and must not be used to manage this one. The wrapper selects:
31+
32+
- Durable graph root: `/var/lib/unf-kind/phase9-20260921/storage`.
33+
- Durable network config: `/var/lib/unf-kind/phase9-20260921/networks`.
34+
- Volatile runtime state: `/run/unf-kind-phase9-20260921`.
35+
- Network `unf-p9-20260921`, bridge `unfp9br0`, IPv4 `10.90.91.0/24`, IPv6 `fd90:91::/64`.
36+
37+
The create operation used `.tools/bin/kind`,
38+
`hack/kind-service-fabric-config.yaml`, provider `podman`, and an isolated PATH
39+
whose `podman` resolves to the wrapper. `KIND_EXPERIMENTAL_PODMAN_NETWORK` selects
40+
the dedicated network; Kind explicitly warns that this override is unsupported.
41+
Do not silently switch to the default network/store.
42+
43+
After a workstation reboot, inspect the existing containers first. Do **not**
44+
rerun `kind create`, delete containers, prune volumes or reset authority journals
45+
to recover the cluster. No automatic-start service was installed. If these
46+
exact containers are stopped, their intended manual start is:
47+
48+
```bash
49+
sudo -n hack/phase9-kind-persistent-podman.sh start \
50+
unf-p9-20260921-control-plane unf-p9-20260921-worker unf-p9-20260921-worker2
51+
```
52+
53+
Host `fs.inotify.max_user_instances` was raised from 128 to 1024 for this session
54+
only; the repository prerequisite is at least 512. Recheck it after reboot and
55+
restore that prerequisite before starting the lab. Persistent graph storage is
56+
verified, but post-reboot mounts, networking, BPF recovery and unchanged Node
57+
UIDs still require a real recovery gate. Failures must be investigated without
58+
state resets. The first-install `configure-kind-primary-cni.sh` is **not** a
59+
restart script: it deliberately rejects existing CNI configuration.
60+
61+
The bootstrap overlay is locally retained at
62+
`.tools/phase9-kind-20260921/bootstrap`; it overrides the Phase 9 layer's default
63+
Required baseline to Native, pins public image digests and bootstraps controller
64+
DNS host aliases at `10.90.91.4`. Verify the current API Node address before
65+
future deployment; do not blindly reuse this address in another cluster.
Collapse file

‎docs/development/phase9-required-locality-plan.md‎

Copy file name to clipboardExpand all lines: docs/development/phase9-required-locality-plan.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
This completes the open boundary from ADRs 0293–0294 and 0324. cl02 now runs
44
`d007071` with an unchanged Native baseline; its expanded Required admission
55
gate failed (ADR 0387). The historical `f984db9` Kind runtime is unavailable
6-
after the workstation reboot. A successful scoped reply gate is not full Phase 9 closure.
6+
after the workstation reboot. ADR 0388 verifies a separately approved persistent
7+
Kind bootstrap on the prior cl02-passing `f984db9` Native runtime; current-runtime
8+
qualification must still pass cl02 first. Neither fresh bootstrap nor a successful
9+
scoped reply gate is full Phase 9 closure.
710

811
## Safety and efficiency boundary
912

Collapse file

‎docs/project-status.md‎

Copy file name to clipboardExpand all lines: docs/project-status.md
+6Lines changed: 6 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,12 @@ at selective admission**, with unknown epoch 6117 and deferred key catch-up.
793793
Fixture resources retire, but four encryption generations remain pending;
794794
ordinary Ready/converged reports do not close that recovery boundary. Repair
795795
and complete cl02 requalification precede Kind or any verified promotion.
796+
ADR 0388 verifies an explicitly approved separate persistent three-Node dual-stack
797+
Kind bootstrap using the previously cl02-passing `f984db9` Native runtime. All
798+
Nodes/UNF Pods are Ready, reports fresh/converged, CNI hashes exact, and all seven
799+
bootstrap log streams reviewed. This does not preserve the old Node identities
800+
or close restart, Required, locality or Phase 9 lifecycle qualification. See
801+
`docs/development/phase9-persistent-kind.md` for exact-store operations.
796802
ADR 0338 closes the staging guard's init-container failure/restart gap before
797803
the matching Kind rollout; no live image changes occur in that metadata slice.
798804
Required locality/replica coverage, full lifecycle requalification and S1–S5
Collapse file

‎hack/phase9-kind-persistent-podman.sh‎

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
# Dedicated Phase 9 lab store. Never target the default or historical stores.
3+
set -Eeuo pipefail
4+
if (( EUID != 0 )); then
5+
echo 'Run this dedicated runtime through sudo.' >&2
6+
exit 1
7+
fi
8+
exec /usr/bin/podman \
9+
--root /var/lib/unf-kind/phase9-20260921/storage \
10+
--runroot /run/unf-kind-phase9-20260921 \
11+
--network-config-dir /var/lib/unf-kind/phase9-20260921/networks \
12+
--storage-driver overlay "$@"
Collapse file

‎hack/verify-phase9-persistent-kind.sh‎

Copy file name to clipboard
+67Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#!/usr/bin/env bash
2+
# Read-only bootstrap checks; this is NOT Phase 9 traffic/lifecycle qualification.
3+
set -Eeuo pipefail
4+
umask 077
5+
root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
6+
directory=${1:?new evidence directory}
7+
[[ ! -e $directory ]]
8+
install -d -m 0700 "$directory"
9+
runtime=(sudo -n "$root/hack/phase9-kind-persistent-podman.sh")
10+
kc=(kubectl --kubeconfig "$root/.tools/kind-unf-p9-20260921.kubeconfig"
11+
--context kind-unf-p9-20260921 --request-timeout=15s)
12+
revision=${UNF_BOOTSTRAP_REVISION:-f984db9e8b041c014814958054a1908e9829233c}
13+
cni_hash=${UNF_BOOTSTRAP_CNI_SHA256:-09129e9c91cc3434b0253bf7d4c811870f2e6e72ce6bf3e4b88eba7b03a4cd47}
14+
[[ $revision =~ ^[0-9a-f]{40}$ && $cni_hash =~ ^[0-9a-f]{64}$ ]]
15+
[[ $("${runtime[@]}" info --format '{{.Store.GraphRoot}}') == /var/lib/unf-kind/phase9-20260921/storage ]]
16+
(( $(sysctl -n fs.inotify.max_user_instances) >= 512 ))
17+
"${kc[@]}" get --raw=/readyz > "$directory/apiserver-ready.txt"
18+
"${kc[@]}" get nodes -o json > "$directory/nodes.json"
19+
jq -e '.items | length==3 and all(.[];
20+
any(.status.conditions[]; .type=="Ready" and .status=="True") and
21+
(.spec.podCIDRs | length==2 and any(.[]; contains(":")) and any(.[]; contains("."))))' \
22+
"$directory/nodes.json" >/dev/null
23+
"${kc[@]}" -n kube-system get daemonsets -o json > "$directory/system-daemonsets.json"
24+
jq -e 'all(.items[]; .metadata.name != "kube-proxy" and .metadata.name != "kindnet")' \
25+
"$directory/system-daemonsets.json" >/dev/null
26+
"${kc[@]}" -n unf-system get pods -o json > "$directory/pods.json"
27+
jq -e '.items | length==4 and all(.[];
28+
any(.status.conditions[]; .type=="Ready" and .status=="True") and
29+
all(((.status.containerStatuses // []) + (.status.initContainerStatuses // []))[];
30+
.restartCount==0))' "$directory/pods.json" >/dev/null
31+
"${kc[@]}" -n unf-system get deployment unf-controller -o json > "$directory/controller.json"
32+
jq -e 'any(.spec.template.spec.containers[] | select(.name=="controller") | .env[];
33+
.name=="UNF_ENCRYPTION_BASELINE" and .value=="native")' "$directory/controller.json" >/dev/null
34+
while IFS=$'\t' read -r node address; do
35+
case $node in
36+
unf-p9-20260921-control-plane|unf-p9-20260921-worker|unf-p9-20260921-worker2) ;;
37+
*) exit 1 ;;
38+
esac
39+
[[ $address =~ ^10\.90\.91\.[0-9]+$ ]]
40+
"${runtime[@]}" inspect "$node" --format '{{json .Mounts}}' > "$directory/$node-mounts.json"
41+
jq -e 'any(.[]; .Destination=="/var" and .Type=="volume" and
42+
(.Source | startswith("/var/lib/unf-kind/phase9-20260921/storage/volumes/")))' \
43+
"$directory/$node-mounts.json" >/dev/null
44+
"${runtime[@]}" exec "$node" sha256sum /opt/cni/bin/unf > "$directory/$node-cni.sha256"
45+
[[ $(awk '{print $1}' "$directory/$node-cni.sha256") == "$cni_hash" ]]
46+
curl -fsS --max-time 15 "http://$address:9963/v1/version" > "$directory/$node-version.json"
47+
jq -e --arg revision "$revision" '.build_revision==$revision and
48+
.persistent_bpf_state_abi_version==15 and .encryption_map_abi_version==2' \
49+
"$directory/$node-version.json" >/dev/null
50+
curl -fsS --max-time 15 "http://$address:9963/v1/status" > "$directory/$node-status.json"
51+
jq -e --arg node "$node" '.node_name==$node and .ready and .healthy and .bpf_loaded' \
52+
"$directory/$node-status.json" >/dev/null
53+
done < <(jq -r '.items[] | [.metadata.name,
54+
(.status.addresses[] | select(.type=="InternalIP" and (.address|contains("."))) | .address)] | @tsv' \
55+
"$directory/nodes.json")
56+
control_plane=$(jq -r '.items[] | select(.metadata.name=="unf-p9-20260921-control-plane") |
57+
.status.addresses[] | select(.type=="InternalIP" and (.address|contains("."))) | .address' \
58+
"$directory/nodes.json")
59+
for path in version state/agents; do
60+
curl -fsS --max-time 15 "http://$control_plane:9962/v1/$path" > "$directory/controller-${path//\//-}.json"
61+
done
62+
jq -e --arg revision "$revision" '.build_revision==$revision' "$directory/controller-version.json" >/dev/null
63+
jq -e '.all_converged and .expected_agents==3 and .reporting_agents==3 and
64+
(.nodes | length==3 and all(.[]; .fresh and .converged))' \
65+
"$directory/controller-state-agents.json" >/dev/null
66+
date --iso-8601=ns > "$directory/completed.time"
67+
echo 'Persistent Kind bootstrap checks passed; no Phase 9 qualification claimed.'

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.