Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/devenv-builder/configure-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ if ${RHEL_SUBSCRIPTION}; then
OSVERSION=$(awk -F: '{print $5}' /etc/system-release-cpe)
sudo subscription-manager config --rhsm.manage_repos=1

sudo subscription-manager repos \
--enable "rhocp-${OCPVERSION}-for-rhel-${OSVERSION}-$(uname -m)-rpms"

if ! ${RHEL_BETA_VERSION} ; then
sudo subscription-manager repos \
--enable "rhocp-${OCPVERSION}-for-rhel-${OSVERSION}-$(uname -m)-rpms" \
--enable "fast-datapath-for-rhel-${OSVERSION}-$(uname -m)-rpms"
else
OCP_REPO_NAME="rhocp-${OCPVERSION}-for-rhel-${OSVERSION}-mirrorbeta-$(uname -i)-rpms"
Expand Down
11 changes: 10 additions & 1 deletion scripts/image-builder/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,16 @@ restart_osbuilder_services() {
if ! systemctl is-active -q osbuild-composer.socket &>/dev/null ; then
title "Starting osbuild services"
sudo systemctl start osbuild-composer.socket
sudo systemctl start osbuild-worker@1.service
for try in $(seq 3); do
sleep 1 # Give composer some time to be ready for workers
if sudo systemctl start osbuild-worker@1.service; then
break
else
if [ "${try}" -eq 2 ]; then
return 1
fi
fi
done
fi
}

Expand Down
9 changes: 8 additions & 1 deletion test/bin/build_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ do_group() {
rc=$?
set -e
if [[ "${rc}" -eq 0 ]]; then
buildid=$(echo "${build_cmd_output}" | awk '{print $2}')
buildid=$(echo "${build_cmd_output}" | awk '/^Compose/ {print $2}')
break
fi
sleep 15
Expand Down Expand Up @@ -473,6 +473,12 @@ do_group() {
builds_to_get=$(time "${SCRIPTDIR}/wait_images.py" "${buildid_list[@]}")
fi

builds_to_get_num="$(echo "${builds_to_get}" | awk -F' ' '{print NF}')"
if [ "${#buildid_list[@]}" -ne "${builds_to_get_num}" ]; then
echo "wait_images.py returned unexpected amount of build IDs"
return 1
fi

echo "Downloading build logs, metadata, and image"
cd "${IMAGEDIR}/builds"

Expand Down Expand Up @@ -546,6 +552,7 @@ do_group() {
record_junit "${groupdir}" "${alias_name}" "alias" "OK"
else
record_junit "${groupdir}" "${alias_name}" "alias" "FAILED"
return 1
fi
done

Expand Down