mirror of
https://github.com/ceph/ceph
synced 2024-12-26 05:25:09 +00:00
Merge pull request #53436 from rhcs-dashboard/fix-bootstrap-script
mgr/dashboard: fix bootstrap script for cephadm installation Reviewed-by: Adam King <adking@redhat.com> Reviewed-by: Nizamudeen A <nia@redhat.com> Reviewed-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
commit
db8fb4d047
@ -8,8 +8,10 @@ mkdir /root/bin
|
||||
export CEPHADM_IMAGE='quay.ceph.io/ceph-ci/ceph:main'
|
||||
|
||||
CEPHADM="/root/bin/cephadm"
|
||||
CEPHADM_SRC="/mnt/{{ ceph_dev_folder }}/src/cephadm/cephadm"
|
||||
|
||||
cp $CEPHADM_SRC $CEPHADM
|
||||
|
||||
/mnt/{{ ceph_dev_folder }}/src/cephadm/build.sh $CEPHADM
|
||||
mkdir -p /etc/ceph
|
||||
mon_ip=$(ifconfig eth0 | grep 'inet ' | awk '{ print $2}')
|
||||
|
||||
|
@ -63,6 +63,10 @@ cd ${CEPH_DEV_FOLDER}
|
||||
: ${VM_IMAGE_URL:='https://download.fedoraproject.org/pub/fedora/linux/releases/36/Cloud/x86_64/images/Fedora-Cloud-Base-36-1.5.x86_64.qcow2'}
|
||||
kcli download image -p ceph-dashboard -u ${VM_IMAGE_URL} ${VM_IMAGE}
|
||||
kcli delete plan -y ceph || true
|
||||
# Compile cephadm locally for the shared_ceph_folder to pick it up
|
||||
cd ${CEPH_DEV_FOLDER}/src/cephadm
|
||||
./build.sh ${CEPH_DEV_FOLDER}/src/cephadm/cephadm
|
||||
cd ${CEPH_DEV_FOLDER}
|
||||
kcli create plan -f src/pybind/mgr/dashboard/ci/cephadm/ceph_cluster.yml \
|
||||
-P ceph_dev_folder=${CEPH_DEV_FOLDER} \
|
||||
${EXTRA_PARAMS} ceph
|
||||
|
Loading…
Reference in New Issue
Block a user