From 6fed4f611000e3fa670fc29b45bbfa712c8e5c46 Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Thu, 26 Mar 2020 16:27:15 +0100 Subject: [PATCH] test/vm_setup: Update yum repository before install packages in Centos8 There is fail during install using vm_setup.sh: Error: Failed to synchronize cache for repo 'AppStream' adding yum update on instalation begining fix this issue. Signed-off-by: Maciej Wawryk Change-Id: I92a3298d332ffe94c63a4f007e480a0c4d529b00 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1498 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Darek Stojaczyk Reviewed-by: Karol Latecki Reviewed-by: Tomasz Zawadzki --- test/common/config/vm_setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/common/config/vm_setup.sh b/test/common/config/vm_setup.sh index 8a8e0594c..2638e022f 100755 --- a/test/common/config/vm_setup.sh +++ b/test/common/config/vm_setup.sh @@ -456,6 +456,10 @@ git -C spdk_repo/spdk config submodule.intel-ipsec-mb.url "${GIT_REPO_INTEL_IPSE git -C spdk_repo/spdk submodule update --init --recursive if $INSTALL; then + if [ "${OSID} ${OSVERSION}" == 'centos 8' ]; then + #During install using vm_setup.sh there is error with AppStream, to fix it we need to refresh yum + sudo yum update -y --refresh + fi sudo spdk_repo/spdk/scripts/pkgdep.sh --all if [ $PACKAGEMNG == 'pkg' ]; then