Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install.upgrade: implement pre-upgrade sanity check
Add a pre-upgrade sanity check to the install.upgrade task. This sanity check: 1. determines the version of Ceph installed on the remote ("installed_version") 2. determines the version of Ceph in the target gitbuilder repo ("upgrade_version") 3. if "installed_version" is greater than "upgrade_version", fail immediately Since the upgrade itself cannot succeed if upgrade_version < installed_version, it's better to fail before attempting the upgrade. Before this patch, we were failing in the verify_package_version() sanity check which is run after attempting (and failing) to upgrade the packages. Fixes: http://tracker.ceph.com/issues/16521 Signed-off-by: Nathan Cutler <ncutler@suse.com>
- Loading branch information