From cc797a47ab0d7671c88c6dbea904aedea718751e Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Wed, 11 Jan 2017 09:33:04 -0600 Subject: [PATCH] ceph-dev-new-build: post status to shaman earlier for rpm builds We recently had an issue where we had a networking issue getting epel packages and the build failed before any status was sent to shaman. This fix should avoid that and post earlier in the build script. Signed-off-by: Andrew Schoen --- ceph-dev-new-build/build/setup_rpm | 36 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/ceph-dev-new-build/build/setup_rpm b/ceph-dev-new-build/build/setup_rpm index 45384248..78004d42 100644 --- a/ceph-dev-new-build/build/setup_rpm +++ b/ceph-dev-new-build/build/setup_rpm @@ -29,24 +29,6 @@ tar xzf *.orig.tar.gz cd ceph-* pwd -case $(lsb_release -si) in -CentOS|Fedora|SUSE*|RedHatEnterpriseServer) - case $(lsb_release -si) in - SUSE*) - $SUDO zypper -y yum-utils - ;; - *) - $SUDO yum install -y yum-utils - ;; - esac - sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec - $SUDO yum-builddep -y $DIR/ceph.spec - ;; -*) - echo "$(lsb_release -si) is unknown, dependencies will have to be installed manually." - ;; -esac - BRANCH=`branch_slash_filter $BRANCH` if [[ ! -f /etc/redhat-release && ! -f /usr/bin/zypper ]] ; then @@ -110,6 +92,24 @@ NORMAL_ARCH=$ARCH # create build status in shaman create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH +case $(lsb_release -si) in +CentOS|Fedora|SUSE*|RedHatEnterpriseServer) + case $(lsb_release -si) in + SUSE*) + $SUDO zypper -y yum-utils + ;; + *) + $SUDO yum install -y yum-utils + ;; + esac + sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec + $SUDO yum-builddep -y $DIR/ceph.spec + ;; +*) + echo "$(lsb_release -si) is unknown, dependencies will have to be installed manually." + ;; +esac + pkgs=( "chacractl>=0.0.4" ) install_python_packages "pkgs[@]" -- 2.39.5