From ffa9341b07350dbbf36bcd784cb46ccb71df51aa Mon Sep 17 00:00:00 2001 From: Wes Hayutin Date: Mon, 11 Feb 2019 15:29:31 -0700 Subject: [PATCH] Ensure the latest rpms versions are installed bindep installs all the deps in one transaction. This can leave some deps at an unsupported version. Run through the deps after the install with an update. Change-Id: I21d0c1cfc40229a64659b15c4f0473462ec200b5 --- bindep.txt | 3 ++- install-deps.sh | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bindep.txt b/bindep.txt index 602a59e87..6efa133ce 100644 --- a/bindep.txt +++ b/bindep.txt @@ -1,7 +1,8 @@ # possible bug in ansible, f29 python 3 env fails # w/o both python-libselinux packages installed # https://bugs.launchpad.net/tripleo/+bug/1812324 - +dnf-utils [platform:fedora] +yum-utils [platform:centos] gcc [platform:rpm] git [platform:rpm] iproute [platform:rpm] diff --git a/install-deps.sh b/install-deps.sh index c496773b3..1f7a398b5 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -199,6 +199,12 @@ install_package_deps_via_bindep(){ sudo -n true && passwordless_sudo="1" || passwordless_sudo="0" if [ "$passwordless_sudo" == "1" ] || [ "$USER_OVERRIDE_SUDO_CHECK" == "1" ]; then bindep -b -f bindep.txt || sudo $(package_manager) -y install `bindep -b -f bindep.txt`; + # EPEL will NOT be installed on any nodepool nodes. + # EPEL could be installed in the same transaction as other packages on CentOS/RHEL + # This can leave the system with an older ansible version. Ansible 2.7+ required + # Run through the deps and update them + yum-config-manager enable epel || true + sudo $(package_manager) -y update `bindep -b -l newline -f bindep.txt` else print_sudo_warning fi