From 24d9517b78c13777bfb3583a30328a9eedbf6fe8 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Mon, 4 Mar 2024 08:39:45 -0800 Subject: [PATCH] Fix cephadm binary URL to the numeric ceph version download.ceph.com used to maintain named versions of ceph releases, which were hardlinked folders corresponding to the latest minor release from a stable branch; we've noticed that these folders can be deleted. Let's instead look for cephadm under the corresponding numeric release tag folder. Change-Id: Ic39b48fb2dd48f47d5b3c6165e4f4c6b1c47cc7d Signed-off-by: Goutham Pacha Ravi --- devstack/lib/cephadm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devstack/lib/cephadm b/devstack/lib/cephadm index 887f6a8..c4a591f 100755 --- a/devstack/lib/cephadm +++ b/devstack/lib/cephadm @@ -135,11 +135,12 @@ function get_cephadm { # $os_PACKAGE ("rpm") doesn't really matter. There is no ubuntu/debian # equivalent being published by the ceph community. os_release="el9" + ceph_version=$(_get_ceph_version) case $CEPH_RELEASE in pacific|octopus) os_release="el8";; esac - curl -O https://download.ceph.com/rpm-${CEPH_RELEASE}/${os_release}/noarch/cephadm + curl -f -O https://download.ceph.com/rpm-${ceph_version}/${os_release}/noarch/cephadm $SUDO mv cephadm $TARGET_BIN $SUDO chmod +x $TARGET_BIN/cephadm echo "[GET CEPHADM] cephadm is now available"