Skip to content

Commit f1e3790

Browse files
committed
Update Ceph container in TripleO for adoption
RHCS 7 is a requirement for adoption. Instead of extending the adoption job and simulating the Ceph upgrade from 6 to 7, let's deploy RHCS 7 and save time. Signed-off-by: Francesco Pantano <[email protected]>
1 parent 5081b74 commit f1e3790

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

devsetup/scripts/tripleo.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ if [ ! -f \$HOME/containers-prepare-parameters.yaml ]; then
104104
[ "\$RH_REGISTRY_USER" ] && [ -n "\$RH_REGISTRY_PWD" ] && login_args="--enable-registry-login"
105105
openstack tripleo container image prepare default \
106106
--output-env-file \$HOME/containers-prepare-parameters.yaml \${login_args}
107+
# Adoption requires Ceph 7 (Reef) as a requirement. Instead of performing a Ceph
108+
# upgrade from 6 (the default) to 7, let's try to deploy 7 in greenfield
109+
sed -i "s|rhceph-6-rhel9|rhceph-7-rhel9|" $HOME/containers-prepare-parameters.yaml
107110
else
108111
echo "Using existing containers-prepare-parameters.yaml"
109112
fi

devsetup/tripleo/ceph.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ sed -i "s/default_route_networks: \['External'\]/default_route_networks: \['Cont
4646
sed -i "/External:/d" roles.yaml
4747
sed -i "/subnet: external_subnet/d" roles.yaml
4848

49+
# NOTE: TripleO has the hardcoded --yes-i-know option that is not valid anymore
50+
# in RHCS 7. TripleO does not receive any new patch both upstream and downstream
51+
# (it is a retired project), hence the only option we have is to patch the
52+
# current code to not have that line.
53+
sudo sed -i "/--yes-i-know/d" /usr/share/ansible/roles/tripleo_cephadm/tasks/bootstrap.yaml
54+
4955
# generate ceph_spec file
5056
openstack overcloud ceph spec config-download.yaml \
5157
--tld localdomain \
@@ -56,8 +62,8 @@ openstack overcloud ceph spec config-download.yaml \
5662
# deploy ceph
5763
openstack overcloud ceph deploy \
5864
--tld localdomain \
59-
--ntp-server $NTP_SERVER \
65+
--ntp-server "$NTP_SERVER" \
6066
--ceph-spec ceph_spec.yaml \
6167
--network-data network_data.yaml \
62-
--cephadm-default-container \
68+
--container-image-prepare "$HOME"/containers-prepare-parameters.yaml \
6369
--output deployed_ceph.yaml

0 commit comments

Comments
 (0)