Repository navigation
feat(incus): require Incus 7.0 for the server and the client - #1151
Merged
Merged
Conversation
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.
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.
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redmine: 55096
coi now requires Incus 7.0 (was 6.1), for the server and the client.
MinIncusVersionMajor/Minor: 7.0. NewExtractClientVersionreads theClient version:line of theincus versionoutput thatCheckMinimumVersionalready 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 healthwarns about either.incus versionruns withLC_ALL=C(newIncusVersionOutput;install.sh:sudo env LC_ALL=C incus version): incus translates the labels, so e.g.LANG=de_DE.UTF-8hid the client line.install.sh: checks server and client (incus_version_below_min); fixes apipefailexit when aClient/Server version:line is missing.checks_incus.go,hardening.go,security.go(device-name regex unchanged).Client Version:unlessLC_ALL=C); unit tests for the client parse,checkMinimumVersionOutput(old server, old client, both, single-line, unparseable), health client warning,install.shcheck_incus(fails on master'sinstall.sh); integration tests now account for the client version.[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 andgo test -short -race ./...pass locally. Integration tests run in CI only (need Incus).ci.ymlstill has the 6.1 floor in theincus-ltsguard; it changes separately.Performance impact
none: the client check parses the
incus versionoutput that is already fetched, no extra Incus call.