From: Andrew Schoen Date: Thu, 4 Aug 2016 16:51:14 +0000 (-0500) Subject: ceph-dev-build: fail when the curl to shaman doesn't return a 200 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e39575e478438534fa9a13b8324e5a7a2a35bb9;p=ceph-build.git ceph-dev-build: fail when the curl to shaman doesn't return a 200 We want to stop the build immediately if there is no healthy chacra nodes to use. Signed-off-by: Andrew Schoen --- diff --git a/ceph-dev-build/build/setup b/ceph-dev-build/build/setup index baf92bd88..8e45b26c5 100644 --- a/ceph-dev-build/build/setup +++ b/ceph-dev-build/build/setup @@ -70,6 +70,6 @@ pkgs=( "chacractl>=0.0.4" ) install_python_packages "pkgs[@]" # ask shaman which chacra instance to use -chacra_url=`curl -u $SHAMAN_API_USER:$SHAMAN_API_KEY https://shaman.ceph.com/api/nodes/next/` +chacra_url=`curl -f -u $SHAMAN_API_USER:$SHAMAN_API_KEY https://shaman.ceph.com/api/nodes/next/` # create the .chacractl config file using global variables make_chacractl_config $chacra_url