Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported upgrades from 7.nonlast to 8.x are still permitted #81865

Closed
DaveCTurner opened this issue Dec 17, 2021 · 1 comment · Fixed by #82321
Closed

Unsupported upgrades from 7.nonlast to 8.x are still permitted #81865

DaveCTurner opened this issue Dec 17, 2021 · 1 comment · Fixed by #82321
Assignees
Labels
>bug :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team

Comments

@DaveCTurner
Copy link
Contributor

DaveCTurner commented Dec 17, 2021

Upgrading to the next major version with a rolling restart requires upgrading to the last minor of the previous major first. However you could upgrade from 5.x to 6.x and from 6.x to 7.x via a full cluster restart without upgrading to 5.last (respectively 6.last) first.

For 8.x we will impose the same restriction on both upgrade paths: they must always go via 7.last. This will ensure that folks are notified about all deprecations and other changes before starting the major upgrade.

We should prevent users from inadvertently doing an unsupported upgrade from 7.15 or earlier to 8.x by bailing out if the on-disk node version is too old. It should be ok to let users explicitly bypass this restriction by running elasticsearch-node override-version, but we want this to be an explicit action with a disclaimer and an acknowledgement from the user, rather than something that just silently appears to work.

/cc @skearns64

Relates #81862

@DaveCTurner DaveCTurner added >bug :Core/Infra/Core Core issues without another label labels Dec 17, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Dec 17, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

grcevski pushed a commit to grcevski/elasticsearch that referenced this issue Jan 6, 2022
This PR introduces a check to prevent upgrading
to 8.0 without first upgrading to 7.last.

Closes elastic#81865
grcevski added a commit that referenced this issue Jan 14, 2022
* Prevent upgrades to 8.0 from 7.non-last

This PR introduces a check to prevent upgrading
to 8.0 without first upgrading to 7.last.

Closes #81865

Co-authored-by: David Turner <[email protected]>
grcevski added a commit to grcevski/elasticsearch that referenced this issue Jan 14, 2022
* Prevent upgrades to 8.0 from 7.non-last

This PR introduces a check to prevent upgrading
to 8.0 without first upgrading to 7.last.

Closes elastic#81865

Co-authored-by: David Turner <[email protected]>
grcevski added a commit that referenced this issue Jan 14, 2022
This PR introduces a check to prevent upgrading
to 8.0 without first upgrading to 7.last.

Closes #81865

Co-authored-by: David Turner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants