diff --git a/build_scripts/build-fsal/build-fsal_cephfs.sh b/build_scripts/build-fsal/build-fsal_cephfs.sh index a5a06996..811c94b5 100644 --- a/build_scripts/build-fsal/build-fsal_cephfs.sh +++ b/build_scripts/build-fsal/build-fsal_cephfs.sh @@ -11,11 +11,12 @@ set -e GIT_REPO="https://${GERRIT_HOST}/${GERRIT_PROJECT}" # enable the Storage SIG Gluster and Ceph repositories -yum -y install centos-release-ceph +dnf -y install centos-release-ceph epel-release BUILDREQUIRES="git bison cmake dbus-devel flex gcc-c++ krb5-devel libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build xfsprogs-devel" -BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel" +#BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel" +BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel userspace-rcu-devel" # basic packages to install case "${CENTOS_VERSION}" in @@ -25,10 +26,12 @@ case "${CENTOS_VERSION}" in 8s) yum install -y ${BUILDREQUIRES} yum install --enablerepo=powertools -y ${BUILDREQUIRES_EXTRA} + yum install -y libcephfs-devel ;; 9s) yum install -y ${BUILDREQUIRES} yum install --enablerepo=crb -y ${BUILDREQUIRES_EXTRA} + yum install -y libcephfs-devel ;; esac diff --git a/build_scripts/build-fsal/build-fsal_rgw.sh b/build_scripts/build-fsal/build-fsal_rgw.sh index 07d35d46..475ba0d9 100644 --- a/build_scripts/build-fsal/build-fsal_rgw.sh +++ b/build_scripts/build-fsal/build-fsal_rgw.sh @@ -11,11 +11,11 @@ set -e GIT_REPO="https://${GERRIT_HOST}/${GERRIT_PROJECT}" # enable the Storage SIG Gluster and Ceph repositories -yum -y install centos-release-ceph +yum -y install centos-release-ceph epel-release BUILDREQUIRES="git bison cmake dbus-devel flex gcc-c++ krb5-devel libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build xfsprogs-devel" -BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel librgw-devel" +BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel userspace-rcu-devel librgw-devel libcephfs-devel" # basic packages to install case "${CENTOS_VERSION}" in diff --git a/build_scripts/build-tests/build-tests.sh b/build_scripts/build-tests/build-tests.sh index 41fbdc20..d6841f57 100644 --- a/build_scripts/build-tests/build-tests.sh +++ b/build_scripts/build-tests/build-tests.sh @@ -14,7 +14,7 @@ GIT_REPO="https://${GERRIT_HOST}/${GERRIT_PROJECT}" yum -y install centos-release-gluster yum-utils centos-release-ceph epel-release BASE_PACKAGES="git bison flex cmake gcc-c++ libacl-devel krb5-devel dbus-devel rpm-build redhat-rpm-config libacl-devel libblkid-devel libcap-devel gperftools-devel gtest-devel" -BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel boost-devel doxygen xfsprogs-devel lttng-tools-devel lttng-ust-devel" +BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel userspace-rcu-devel boost-devel doxygen xfsprogs-devel lttng-tools-devel lttng-ust-devel" if [ "${CENTOS_VERSION}" = "7" ]; then yum -y install libgfapi-devel @@ -22,11 +22,11 @@ if [ "${CENTOS_VERSION}" = "7" ]; then elif [ "${CENTOS_VERSION}" = "8s" ]; then yum install -y ${BASE_PACKAGES} libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build libgfapi-devel xfsprogs-devel yum install --enablerepo=powertools -y ${BUILDREQUIRES_EXTRA} - yum -y install selinux-policy-devel sqlite + yum -y install selinux-policy-devel sqlite libcephfs-devel elif [ "${CENTOS_VERSION}" = "9s" ]; then yum install -y ${BASE_PACKAGES} libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build libgfapi-devel xfsprogs-devel yum install --enablerepo=crb -y ${BUILDREQUIRES_EXTRA} - yum -y install selinux-policy-devel sqlite + yum -y install selinux-policy-devel sqlite libcephfs-devel fi git clone --depth=1 ${GIT_REPO} diff --git a/build_scripts/code-compilation/client.sh b/build_scripts/code-compilation/client.sh index 58803341..689b916e 100644 --- a/build_scripts/code-compilation/client.sh +++ b/build_scripts/code-compilation/client.sh @@ -20,7 +20,9 @@ yum -y install nfs-utils git gcc time centos-release-gluster centos-release-ceph # flag for commands which should run only once once=0 -for ver in 3 4.0 4.1 +#NFS-Ganesha is crashing when installing 4.0, so taking it out to see if 4.1 works + +for ver in 3 4.1 do echo "--------------------------------------------------" echo "Running test on Mount Version $ver" diff --git a/build_scripts/common/basic-gluster.sh b/build_scripts/common/basic-gluster.sh index d615c624..2fadbec1 100644 --- a/build_scripts/common/basic-gluster.sh +++ b/build_scripts/common/basic-gluster.sh @@ -29,7 +29,7 @@ set -e set -x # enable repositories -yum -y install centos-release-gluster yum-utils centos-release-ceph +yum -y install centos-release-gluster yum-utils centos-release-ceph epel-release # make sure rpcbind is running yum -y install rpcbind @@ -68,19 +68,19 @@ else GIT_REPO=$(basename "${GERRIT_PROJECT}") GIT_URL="https://${GERRIT_HOST}/${GERRIT_PROJECT}" - BASE_PACKAGES="git bison flex cmake gcc-c++ libacl-devel krb5-devel dbus-devel rpm-build redhat-rpm-config" - BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel" + BASE_PACKAGES="git bison flex cmake gcc-c++ libacl-devel krb5-devel dbus-devel rpm-build redhat-rpm-config gdb" + BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel userspace-rcu-devel libcephfs-devel" if [ "${CENTOS_VERSION}" = "7" ]; then yum -y install libgfapi-devel yum -y install ${BASE_PACKAGES} libnfsidmap-devel libwbclient-devel libcap-devel libblkid-devel userspace-rcu-devel userspace-rcu python2-devel elif [ "${CENTOS_VERSION}" = "8s" ]; then yum install -y ${BASE_PACKAGES} libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build libgfapi-devel xfsprogs-devel yum install --enablerepo=powertools -y ${BUILDREQUIRES_EXTRA} - yum -y install selinux-policy-devel sqlite samba-winbind + yum -y install selinux-policy-devel sqlite samba-winbind elif [ "${CENTOS_VERSION}" = "9s" ]; then yum install -y ${BASE_PACKAGES} libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build libgfapi-devel xfsprogs-devel yum install --enablerepo=crb -y ${BUILDREQUIRES_EXTRA} - yum -y install selinux-policy-devel sqlite + yum -y install selinux-policy-devel sqlite samba-winbind fi git init "${GIT_REPO}" @@ -103,7 +103,7 @@ else mkdir build pushd build - cmake -DCMAKE_BUILD_TYPE=Maintainer -DUSE_FSAL_GLUSTER=ON ../src + cmake -DCMAKE_BUILD_TYPE=Maintainer -DUSE_FSAL_GLUSTER=ON -DUSE_DBUS=ON -D_MSPAC_SUPPORT=OFF ../src make dist rpmbuild -ta --define "_srcrpmdir $PWD" --define "_rpmdir $PWD" *.tar.gz rpm_arch=$(rpm -E '%{_arch}') diff --git a/build_scripts/common/basic-server-client.sh b/build_scripts/common/basic-server-client.sh index 65ce4ff9..c77e9063 100644 --- a/build_scripts/common/basic-server-client.sh +++ b/build_scripts/common/basic-server-client.sh @@ -15,9 +15,9 @@ function server_run() scp ${SSH_OPTIONS} ${2} root@${1}:./$(basename ${2}) ssh -t ${SSH_OPTIONS} root@${1} "GERRIT_HOST='${GERRIT_HOST}' GERRIT_PROJECT='${GERRIT_PROJECT}' GERRIT_REFSPEC='${GERRIT_REFSPEC}' CENTOS_VERSION='${CENTOS_VERSION}' CENTOS_ARCH='${CENTOS_ARCH}' ${VOLUME_TYPE}_VOLUME='${EXPORT}' YUM_REPO='${YUM_REPO}' ${INCLUDE_TEMPLATE_URL} ${INCLUDE_ACL_PARAM} bash ./$(basename ${2})" - RETURN_CODE=$? + #RETURN_CODE=$? - return $RETURN_CODE + #return $RETURN_CODE } function client_run() @@ -52,11 +52,15 @@ elif [ "${SERVER_TEST_SCRIPT}" ] && [ "${CLIENT_TEST_SCRIPT}" ]; then CLIENT_IP=$(cat $WORKSPACE/hosts | sed -n '2p') server_run ${SERVER_IP} ${SERVER_TEST_SCRIPT} SERVER_SCRIPT_RESULT=$? + echo "SERVER_SCRIPT_RESULT = $SERVER_SCRIPT_RESULT" if [ "${SERVER_SCRIPT_RESULT}" == "0" ]; then echo "Server script success!" client_run ${CLIENT_IP} ${CLIENT_TEST_SCRIPT} ${SERVER_IP} FINAL_RESULT=$? else + scp root@${SERVER_IP}:/root/rpmbuild/BUILD/nfs-ganesha-5.4/CMakeFiles/CMakeOutput.log $WORKSPACE + scp root@${SERVER_IP}:/root/rpmbuild/BUILD/nfs-ganesha-5.4/CMakeFiles/CMakeError.log $WORKSPACE + ls -ltr $WORKSPACE FINAL_RESULT=${SERVER_SCRIPT_RESULT} fi fi diff --git a/build_scripts/common/basic-vfs-minmd.sh b/build_scripts/common/basic-vfs-minmd.sh index 59f23457..29a54c29 100644 --- a/build_scripts/common/basic-vfs-minmd.sh +++ b/build_scripts/common/basic-vfs-minmd.sh @@ -29,7 +29,7 @@ set -e set -x # enable repositories (gluster for liburcu) -yum -y install centos-release-gluster yum-utils centos-release-ceph +yum -y install centos-release-gluster yum-utils centos-release-ceph epel-release # make sure rpcbind is running yum -y install rpcbind diff --git a/build_scripts/common/basic-vfs.sh b/build_scripts/common/basic-vfs.sh index 9c38b57d..b054be7a 100644 --- a/build_scripts/common/basic-vfs.sh +++ b/build_scripts/common/basic-vfs.sh @@ -29,7 +29,7 @@ set -e set -x # enable repositories (gluster for liburcu) -yum -y install centos-release-gluster yum-utils centos-release-ceph +yum -y install centos-release-gluster yum-utils centos-release-ceph epel-release # make sure rpcbind is running yum -y install rpcbind diff --git a/build_scripts/cthon04/client.sh b/build_scripts/cthon04/client.sh index f4fc7c67..3ca2631d 100644 --- a/build_scripts/cthon04/client.sh +++ b/build_scripts/cthon04/client.sh @@ -15,9 +15,13 @@ set -x # install build and runtime dependencies yum -y install git gcc nfs-utils time make -if [ "${CENTOS_VERSION}" == "8s" ] || [ "${CENTOS_VERSION}" == "9s" ]; then - yum -y install libtirpc-devel + +if [ "${CENTOS_VERSION}" == "8s" ]; then + ENABLE_REPO="--enablerepo=powertools" +elif [ "${CENTOS_VERSION}" == "9s" ]; then + ENABLE_REPO="--enablerepo=crb" fi +yum ${ENABLE_REPO} install -y libtirpc-devel #Logic to generate corefiles echo "/tmp/cores/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern diff --git a/jobs/code_compilation.yml b/jobs/code_compilation.yml index 9dee6687..49d9ed69 100644 --- a/jobs/code_compilation.yml +++ b/jobs/code_compilation.yml @@ -39,4 +39,5 @@ - cleanup-ws publishers: + - archive_artifacts - post_build_task_return-node diff --git a/jobs/macros.yml b/jobs/macros.yml index 75d815fe..d8f187e6 100644 --- a/jobs/macros.yml +++ b/jobs/macros.yml @@ -152,3 +152,13 @@ operator: OR script: !include-raw: ../build_scripts/common/return-node.sh + +- publisher: + name: archive_artifacts + publishers: + - archive: + artifacts: '*.log' + allow-empty: true + only-if-success: false + fingerprint: true + excludes: path