File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff 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
107110else
108111 echo "Using existing containers-prepare-parameters.yaml"
109112fi
Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ sed -i "s/default_route_networks: \['External'\]/default_route_networks: \['Cont
4646sed -i " /External:/d" roles.yaml
4747sed -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
5056openstack overcloud ceph spec config-download.yaml \
5157 --tld localdomain \
@@ -56,8 +62,8 @@ openstack overcloud ceph spec config-download.yaml \
5662# deploy ceph
5763openstack 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
You can’t perform that action at this time.
0 commit comments