scylladb / scylla-ansible-roles

Ansible roles for deploying and managing Scylla, Scylla-Manager and Scylla-Monitoring
44 stars 38 forks source link

[scylla-node]: upgrade: avoid restarting the service when the version that is about to be installed is already installed #420

Open vladzcloudius opened 1 month ago

vladzcloudius commented 1 month ago

HEAD: dc535978b9f5d97cf5c5d3ffa1448197d88294b5

Description

In the "upgrade" mode the Role is going to drain, stop, start the scylla service even if the version that is requested to be installed is already installed.

This is obviously a waste and we should consider improving it.

For that we need to resolve the full scylla version and compare it to the already installed one. For example, if scylla_version: 2024.1.11 + upgrade_version: true are given, then we need to resolve the full version first. It's going to be 2024.1.11-0.20240928.13ee6268a233-1. When, if the corresponding package is already installed the Role should skip the draining and the rest for the corresponding node.