Skip to content

feat(incus): require Incus 7.0 for the server and the client - #1151

Merged
mensfeld merged 6 commits into
masterfrom
55096-require-incus-7
Nov 24, 2026
Merged

mensfeld merged 6 commits into
masterfrom
55096-require-incus-7

Conversation

@coipond-coder

@coipond-coder coipond-coder Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Redmine: 55096

coi now requires Incus 7.0 (was 6.1), for the server and the client.

  • MinIncusVersionMajor/Minor: 7.0. New ExtractClientVersion reads the Client version: line of the incus version output that CheckMinimumVersion already fetches; a client below 7.0 is refused with "Incus client version X is below the minimum required 7.0 ...", a server with "Incus server version X ...". coi health warns about either. incus version runs with LC_ALL=C (new IncusVersionOutput; install.sh: sudo env LC_ALL=C incus version): incus translates the labels, so e.g. LANG=de_DE.UTF-8 hid the client line.
  • install.sh: checks server and client (incus_version_below_min); fixes a pipefail exit when a Client/Server version: line is missing.
  • Comments in checks_incus.go, hardening.go, security.go (device-name regex unchanged).
  • Tests: translated-output tests (fake incus prints Client Version: unless LC_ALL=C); unit tests for the client parse, checkMinimumVersionOutput (old server, old client, both, single-line, unparseable), health client warning, install.sh check_incus (fails on master's install.sh); integration tests now account for the client version.
  • CHANGELOG: [Breaking] entry; the 7.5-recommended entry no longer says the minimum stays 6.1.

The 6.x feature probes (newPushFlagChecks, pullNoDereferenceSupported) stay; they are removed in a follow-up.

Checked: gofmt, go vet (also -tags integration), golangci-lint and go test -short -race ./... pass locally. Integration tests run in CI only (need Incus). ci.yml still has the 6.1 floor in the incus-lts guard; it changes separately.

Performance impact

none: the client check parses the incus version output that is already fetched, no extra Incus call.

Raise the minimum from 6.1 to 7.0. CheckMinimumVersion and coi health
also check the client version from the same `incus version` output;
install.sh checks both.
@coipond-coder coipond-coder Bot added the enhancement New feature or request label Nov 24, 2026
incus translates the Client/Server version labels, so under e.g.
LANG=de_DE.UTF-8 the version checks found no client line.
IncusVersionOutput reuses the incus output helper with an env parameter.
@coipond-coder
coipond-coder Bot marked this pull request as ready for review November 24, 2026 10:12
@coipond-coder
coipond-coder Bot requested a review from mensfeld as a code owner November 24, 2026 10:12
@mensfeld
mensfeld merged commit 2457197 into master Nov 24, 2026
32 checks passed
@mensfeld
mensfeld deleted the 55096-require-incus-7 branch November 24, 2026 10:44
mensfeld added a commit that referenced this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant