Skip to content

Commit 6561f90

Browse files
committed
test
1 parent 0b8e4d7 commit 6561f90

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

ci-operator/step-registry/baremetal/lab/ipi/install/baremetal-lab-ipi-install-commands.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ if [[ -n "${WORKER_COREOS_STREAM:-}" ]]; then
267267
fi
268268
esc_stream="$(printf '%s' "${WORKER_COREOS_STREAM}" | sed 's/[\/&]/\\&/g')"
269269
for bmh_file in "${INSTALL_DIR}"/openshift/99_openshift-cluster-api_hosts-*.yaml; do
270+
ls "${bmh_file}"
271+
echo "-------------------------"
270272
if ! grep -q 'installer.openshift.io/role: control-plane' "${bmh_file}"; then
271273
sed -i "s/coreos.openshift.io\/stream: .*/coreos.openshift.io\/stream: ${esc_stream}/" "${bmh_file}"
272274
echo -e "${bmh_file} updated -------"
@@ -275,7 +277,10 @@ if [[ -n "${WORKER_COREOS_STREAM:-}" ]]; then
275277
done
276278
# Patch worker MachineSet hostSelector to match the new stream
277279
for ms_file in "${INSTALL_DIR}"/openshift/99_openshift-cluster-api_worker-machineset-*.yaml; do
278-
sed -i "s/coreos.openshift.io\/stream: .*/coreos.openshift.io\/stream: ${WORKER_COREOS_STREAM}/" "${ms_file}"
280+
ls "${ms_file}"
281+
echo "-------------------------"
282+
sed -i "s/coreos.openshift.io\/stream: .*/coreos.openshift.io\/stream: ${esc_stream}/" "${ms_file}"
283+
grep coreos.openshift.io "${ms_file}"
279284
done
280285
# Set the worker MachineConfigPool to use the specified stream for
281286
# the on-disk OS. Requires the OSStreams feature gate (TechPreviewNoUpgrade).
@@ -295,7 +300,7 @@ spec:
295300
matchLabels:
296301
node-role.kubernetes.io/worker: ""
297302
osImageStream:
298-
name: ${WORKER_COREOS_STREAM}
303+
name: ${esc_stream}
299304
EOF
300305
fi
301306

@@ -389,6 +394,9 @@ elif [ "${NO_END_TIME:-false}" = "true" ]; then
389394
date "+%F %X" > "${SHARED_DIR}/CLUSTER_INSTALL_END_TIME"
390395
fi
391396

397+
echo "sleeping for an hour"
398+
sleep 3600
399+
392400
# Additional check to wait for all the nodes to be ready. Especially important
393401
# for multi-arch compute nodes clusters with mixed arch nodes.
394402
if [ "${ADDITIONAL_WORKERS_DAY2}" == "false" ]; then

0 commit comments

Comments
 (0)