Skip to content

Commit

Permalink
run el9 hosts with el8 engine
Browse files Browse the repository at this point in the history
As we currently don't have an el9 engine image, this hack will provide the
option to run el9 hosts with el8 engine.
  • Loading branch information
hbraha authored and mrkev-gh committed May 19, 2022
1 parent 1dcbf29 commit 4589bd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/helpers/ost-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ OST_IMAGES_HOST_INSTALLED=${OST_IMAGES_HOST_INSTALLED:-${OST_IMAGES_DIR}/${OST_I
OST_IMAGES_HE_INSTALLED=${OST_IMAGES_HE_INSTALLED:-${OST_IMAGES_DIR}/${OST_IMAGES_DISTRO}-he-installed.qcow2}
OST_IMAGES_STORAGE_BASE=${OST_IMAGES_STORAGE_BASE:=${OST_IMAGES_DIR}/storage-base.qcow2}
OST_IMAGES_SSH_KEY=${OST_IMAGES_SSH_KEY:-${OST_IMAGES_DIR}/${OST_IMAGES_DISTRO}_id_rsa}
# FIXME: until we will build el9stream enigne image, we can use el8 engine with el9 hosts
if [[ "$OST_IMAGES_DISTRO" == "el9stream" ]]; then
OST_IMAGES_ENGINE_INSTALLED=${OST_IMAGES_ENGINE_INSTALLED/el9stream/el8stream}
OST_IMAGES_NODE=${OST_IMAGES_HOST_INSTALLED:-${OST_IMAGES_DIR}/${OST_IMAGES_DISTRO}-host-installed.qcow2}
fi
for i in OST_IMAGES_BASE OST_IMAGES_NODE OST_IMAGES_ENGINE_INSTALLED OST_IMAGES_HOST_INSTALLED OST_IMAGES_HE_INSTALLED OST_IMAGES_SSH_KEY; do
[[ -r "${!i}" ]] || declare $i=/usr/share/ost-images/$(basename ${!i})
echo "${i} ${!i} $(rpm -qf ${!i} 2>/dev/null)"
Expand Down

0 comments on commit 4589bd8

Please sign in to comment.