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

ansible-scylla-node: prevent minor upgrade from failing when the destination scylla version is already installed #416

Conversation

vladzcloudius
Copy link
Collaborator

Versions sanity checks only make sense when one upgrades to official builds.
For custom builds upgrades one is going to disable these sanity checks anyway using upgrade_allow_user_manual_downgrade.

Therefore we can use MAJOR.MINOR.PATCH parts of installed and to-be-installed Scylla versions for sanity checking.

The 'scylla_version: latest' is "resolved" before "upgrade" code is invoked into
a scylla_version_to_install variable - use this value.

Signed-off-by: Vlad Zolotarov <[email protected]>
@vladzcloudius vladzcloudius marked this pull request as draft October 16, 2024 21:44
…ation

Set scylla_detected['version'] and scylla_upgrade['version'] to be a "short"
scylla version so that 'version()' comparator is able to compare then without glitches.

The thing is "2024.1.10" is going to be "less than" "2024.1.10-0.20240918.24a78645ca8b-1".

Let's leave only MAJOR.MINOR.PATCH components of both before comparing.

Fixes scylladb#415

Signed-off-by: Vlad Zolotarov <[email protected]>
…seconds"

Wait for a CQL port to become available instead of waiting for 90 seconds - the
latter is both unreliable and is excessive in most cases.

Signed-off-by: Vlad Zolotarov <[email protected]>
@vladzcloudius vladzcloudius force-pushed the scylla-node-upgrade-dont-fail-same-version branch from 00b4de6 to dadbba5 Compare October 18, 2024 19:09
@vladzcloudius vladzcloudius marked this pull request as ready for review October 18, 2024 19:10
@vladzcloudius vladzcloudius merged commit a6504fd into scylladb:master Oct 18, 2024
2 checks passed
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.

2 participants