docs: add iscsi qa lab assignment

This commit is contained in:
pingqiu committed 2026-05-04 22:40:31 -07:00
1 parent 01a86204da
commit 10837e8bd2
3 files changed
+164 -14

No files matched your search

+3
View File
@@ -16,6 +16,8 @@ Public-facing docs belong in `docs/`.
`current-plan.md`.
- Long audits and historical plans live under `ref/`. They are references, not
the day-to-day driver.
- QA assignments live under `qa-assignments/` and should be linked from
`current-plan.md` with `#QA`.
- When a plan closes, move its finished plan and related references into a
dedicated subdirectory, for example `finished/iscsi-p2/`.
@@ -26,6 +28,7 @@ Public-facing docs belong in `docs/`.
| `product-roadmap.md` | Short global roadmap, product phases, and priority tracks. |
| `current-plan.md` | Active development plan. Follow this first. |
| `product-management-plan.md` | Older product goals, priorities, evidence links, and decision rules. |
| `qa-assignments/` | Concrete QA tasks with commands, pass criteria, and report templates. |
| `ref/production-readiness-plan.md` | Longer readiness reference and iSCSI P1-P6 detail. |
| `ref/iscsi-os-initiator-compat-plan.md` | Detailed iSCSI P1 OS-initiator compatibility plan and evidence. |
| `ref/iscsi-v2-coverage-gap-audit.md` | V2-to-V3 iSCSI coverage gap audit and prioritized test backlog. |
+10 -14
View File
@@ -86,7 +86,7 @@ References:
- `SW_BLOCK_ISCSI_STRESS=dd|fio`,
- artifact path printed,
- no active sessions after every loop.
- run K8s validation after local tests:
- #QA run K8s validation after local tests:
- status: partially done.
- larger PVC smoke: done in PR #28.
- 60s fio: script prepared locally as `scripts/run-k8s-alpha-fio.sh`,
@@ -108,12 +108,8 @@ References:
- no session leaks,
- no unbounded buffer or memory behavior.
- QA tasks:
- run `scripts/run-iscsi-os-smoke.sh` with `SW_BLOCK_ISCSI_ITERATIONS=5`.
- run iSCSI fio mode through existing script or TestOps entry.
- return artifact paths and cleanup state.
- if current script cannot run fio repeatably, QA should ask for a script
fix instead of doing manual-only commands.
- #QA assignment:
- `internal/docs/qa-assignments/iscsi-p2-p3-lab-validation.md`.
## Milestone: iSCSI-P3 Product-Backed Stability
@@ -127,7 +123,7 @@ References:
- `SYNCHRONIZE_CACHE` pressure,
- multiple sessions sharing a volume if supported,
- reconnect after logout/login,
- repeated attach/detach loop,
- #QA repeated attach/detach loop,
- script prepared: `scripts/run-k8s-attach-detach-loop.sh`,
- TestOps scenario prepared: `iscsi-p3-attach-detach-loop`,
- app writer pod replaced by reader pod on the same PVC,
@@ -145,7 +141,7 @@ References:
- TestOps registry entry exists:
`internal/testops/registry/iscsi-p3-attach-detach-loop.json`.
- default loop count comes from `SW_BLOCK_ATTACH_DETACH_ITERATIONS`.
- QA should run it on M02 before P3 close and return the artifact dir.
- #QA should run it on M02 before P3 close and return the artifact dir.
## Milestone: iSCSI-P4 CHAP / Access Control
@@ -167,7 +163,7 @@ References:
- failed auth leaves no partial session/device state.
- QA/tooling:
- needs CHAP-capable initiator script once implementation starts.
- #QA needs CHAP-capable initiator script once implementation starts.
- V2 CHAP tests are the reference coverage inventory.
## Milestone: iSCSI-P5 CSI Node Lifecycle
@@ -192,7 +188,7 @@ References:
- repeated create/delete works without manual host cleanup.
- QA/tooling:
- needs K8s scenario scripts or TestOps entries.
- #QA needs K8s scenario scripts or TestOps entries.
- manual kubelet poking is allowed only for first reproduction.
## Milestone: iSCSI-P6 ALUA / MPIO / Mounted Failover
@@ -225,8 +221,8 @@ References:
- no stale-primary success.
- QA/tooling:
- needs real initiator multipath setup script.
- needs mounted workload failover script.
- #QA needs real initiator multipath setup script.
- #QA needs mounted workload failover script.
- do not rely on in-process protocol tests only.
## Milestone: iSCSI-P7 Performance And Backend Matrix
@@ -250,7 +246,7 @@ References:
- results are labelled experimental until SLOs exist.
- QA/tooling:
- needs TestOps scenario that records network, backend, block size, fio job,
- #QA needs TestOps scenario that records network, backend, block size, fio job,
and cleanup state.
- avoid manual benchmark notes without a repeatable scenario.
@@ -0,0 +1,151 @@
# QA Assignment: iSCSI P2/P3 Lab Validation
Status: assigned.
Branch under test: `iscsi/frontend-completeness`.
Purpose: validate the local iSCSI P2/P3 test/tooling work on a real Linux/K8s
lab. This is not a performance claim and not a failover claim.
## Scope
- #QA iSCSI P2 OS initiator repeat loop.
- #QA iSCSI P2 OS initiator fio mode.
- #QA iSCSI P3 Kubernetes fio smoke.
- #QA iSCSI P3 Kubernetes attach/detach loop.
## Preconditions
- Lab host: M02 unless QA states otherwise.
- Linux host has `sudo`, `iscsiadm`, `mkfs.ext4`, `mount`, `sha256sum`.
- K8s tests need working k3s/kubectl and privileged CSI node support.
- Images for K8s tests are either local:
- `sw-block:local`
- `sw-block-csi:local`
- Or QA explicitly records the GHCR image tags/digests used.
## Test 1: OS Initiator Repeat Loop
- Command:
```bash
SW_BLOCK_ISCSI_ITERATIONS=5 \
SW_BLOCK_ISCSI_STRESS=dd \
bash scripts/run-iscsi-os-smoke.sh "$PWD"
```
- Pass criteria:
- all 5 iterations pass,
- every iteration logs discovery, login, mkfs, mount, checksum, logout,
- `iscsi-sessions.final.txt` reports no active sessions,
- no `expected Data-Out` session error in `blockvolume.log`.
- Required report:
- branch and commit,
- host,
- command,
- artifact dir,
- final PASS line,
- cleanup state.
## Test 2: OS Initiator fio Mode
- Command:
```bash
SW_BLOCK_ISCSI_ITERATIONS=1 \
SW_BLOCK_ISCSI_STRESS=fio \
SW_BLOCK_ISCSI_FIO_RUNTIME=60 \
bash scripts/run-iscsi-os-smoke.sh "$PWD"
```
- Pass criteria:
- fio completes,
- `fio.iter1.log` exists,
- logout succeeds,
- no active iSCSI sessions after cleanup,
- no session errors in `blockvolume.log`.
## Test 3: Kubernetes fio Smoke
- Command:
```bash
bash scripts/run-k8s-alpha-fio.sh "$PWD"
```
- Pass criteria:
- pod reaches `Succeeded`,
- `pod.log` contains fio output,
- generated blockvolume Deployment is cleaned,
- no active iSCSI sessions after delete,
- no K8s residue for `sw-block`.
- Notes:
- This test uses `alpine:3.20` and installs fio with `apk`.
- If pod egress is blocked, report it as environment failure, not product
failure.
## Test 4: Kubernetes Attach/Detach Loop
- Command:
```bash
SW_BLOCK_ATTACH_DETACH_ITERATIONS=3 \
bash scripts/run-k8s-attach-detach-loop.sh "$PWD"
```
- Pass criteria:
- all iterations pass,
- each iteration has writer and reader logs,
- each reader verifies data written by its writer,
- every iteration has no active iSCSI session after delete,
- final summary line reports PASS.
## Failure Handling
- Preserve artifact directories.
- Do not rerun over a failed artifact directory.
- If a script cannot collect required evidence, report the script gap and stop.
- Do not replace the script with manual commands unless needed for first
diagnosis.
## QA Report Template
```text
QA Assignment: iSCSI P2/P3 Lab Validation
Branch:
Commit:
Host:
Test 1 OS repeat:
result:
command:
artifact:
final line:
cleanup:
Test 2 OS fio:
result:
command:
artifact:
fio summary:
cleanup:
Test 3 K8s fio:
result:
command:
artifact:
pod evidence:
cleanup:
Test 4 K8s attach/detach:
result:
command:
artifact:
iterations:
cleanup:
Findings:
- ...
```