Skip to content

Commit

Permalink
Fix cephadm install when deploying an external ceph cluster
Browse files Browse the repository at this point in the history
Newer cephadm versions are not distributed as a single python script
anymore. This patch fixes the way we get this binary so we can rely
on the official Ceph repositories.

Signed-off-by: Francesco Pantano <[email protected]>
  • Loading branch information
fmount committed Jan 28, 2025
1 parent 95b4692 commit e054a38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions devsetup/ceph/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ REQUIREMENTS=("jq" "lvm" "python3")

# DEFAULT OPTIONS
FSID="4b5c8c0a-ff60-454b-a1b4-9747aa737d19"
CONTAINER_IMAGE=${CONTAINER_IMAGE:-'quay.io/ceph/ceph:v19'}
CONTAINER_IMAGE=${CONTAINER_IMAGE:-'quay.io/ceph/ceph:v18'}
CEPH_VERSION="reef"
OS_RELEASE="el9"

IP=${IP:-'127.0.0.1'}
DEVICES=()
SERVICES=()
Expand Down Expand Up @@ -108,7 +111,7 @@ function enroll_hosts {
}

function install_cephadm {
curl -o cephadm https://raw.githubusercontent.com/ceph/ceph/squid/src/cephadm/cephadm.py
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 "[INSTALL CEPHADM] cephadm is ready"
Expand Down

0 comments on commit e054a38

Please sign in to comment.