Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOSGCP-126 - Updates for DAOS v2.0.3 #60

Merged
merged 1 commit into from
Jul 18, 2022
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
2 changes: 1 addition & 1 deletion images/daos_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


# Default DAOS version to be installed in images
export DEFAULT_DAOS_VERSION="2.0"
export DEFAULT_DAOS_VERSION="2.0.3"

# Default DAOS packages repo
export DEFAULT_DAOS_REPO_BASE_URL="https://packages.daos.io"
19 changes: 5 additions & 14 deletions images/scripts/install_daos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,14 @@ add_repo() {
centos_7)
DAOS_OS_VERSION="CentOS7"
;;
almalinux_8)
DAOS_OS_VERSION="EL8"
;;
centos_8)
DAOS_OS_VERSION="CentOS8"
DAOS_OS_VERSION="EL8"
;;
rocky_8)
DAOS_OS_VERSION="CentOS8"
DAOS_OS_VERSION="EL8"
;;
*)
log_error "ERROR: Unsupported OS: ${OS_VERSION_ID}. Exiting."
Expand Down Expand Up @@ -238,17 +241,6 @@ install_daos() {
fi
}

downgrade_libfabric() {
if [[ ${DAOS_VERSION%%.*} == "2" ]]; then
log "Downgrading libfabric to v1.12 - see https://daosio.atlassian.net/browse/DAOS-9883"
wget https://packages.daos.io/v1.2/CentOS7/packages/x86_64/libfabric-1.12.0-1.el7.x86_64.rpm
rpm -i --force ./libfabric-1.12.0-1.el7.x86_64.rpm
rpm --erase --nodeps libfabric-1.14.0
echo "exclude=libfabric" >> /etc/yum.repos.d/daos_packages.repo
rm -f ./libfabric-1.12.0-1.el7.x86_64.rpm
fi
}

install_additional_pkgs() {
yum install -y clustershell curl git jq patch pdsh rsync wget
}
Expand All @@ -262,7 +254,6 @@ main() {
install_epel
install_additional_pkgs
install_daos
downgrade_libfabric
printf "\n%s\n\n" "DONE! DAOS v${DAOS_VERSION} installed"
}

Expand Down