Skip to content

fix: HMP echo detection and CNI dirs in the VM record - #43

Merged
CMGS merged 4 commits into
masterfrom
fix/hmp-echo-and-cni-conf-dir
Sep 3, 2026
Merged

fix: HMP echo detection and CNI dirs in the VM record#43
CMGS merged 4 commits into
masterfrom
fix/hmp-echo-and-cni-conf-dir

Conversation

@CMGS

@CMGS CMGS commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Two findings from the 2026-09-03 final verification lane on the testbed.

  • hmpReplied skipped every line containing set_password, so a password beginning with a double quote (QEMU answers set_password: string expected and Try "help set_password" ...) was reported as set while the guest had none. Only the echoed command line is skipped now; regression case added to the HMP transcript table.
  • vm rm had no --cni-conf-dir/--cni-bin-dir, so a CNI VM created against a non-default CNI installation could never release its NIC. run and clone persist both dirs in the record and every provisioning verb reads them from there; older records keep the defaults. Documented in docs/networking.md.

Gates: make lint 0 issues on GOOS=linux and darwin, make fmt-check, asl ./... on both GOOS, GOOS=linux go vet ./..., go test -race -count=1 ./....

CMGS added 4 commits September 3, 2026 17:16
A password beginning with a double quote makes QEMU answer 'set_password: string expected' and 'Try "help set_password"'; both lines contain set_password, so the substring test took them for echo and the launch reported a password that was never set. The echo is now the first line carrying the command prefix, and only that line.
vm rm has no --cni-conf-dir/--cni-bin-dir, so a CNI VM created against a non-default CNI installation kept its NIC forever ('nic release incomplete'). run and clone now persist both dirs and every provisioning verb reads them from the record; records without them keep the defaults.
…older records

QEMU's readline echoes the typed command with redraw sequences, so a prefix test would have taken every successful echo for a rejection. The echo is the first line containing 'set_password ' and only that line. Records written before the CNI dirs were persisted resolve flag, then record, then default, so rm --cni-conf-dir/--cni-bin-dir can release their NICs.
@CMGS
CMGS merged commit cac418b into master Sep 3, 2026
3 checks passed
@CMGS
CMGS deleted the fix/hmp-echo-and-cni-conf-dir branch September 3, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant