From 2e39575e478438534fa9a13b8324e5a7a2a35bb9 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Thu, 4 Aug 2016 11:51:14 -0500 Subject: [PATCH] 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 --- ceph-dev-build/build/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-dev-build/build/setup b/ceph-dev-build/build/setup index baf92bd8..8e45b26c 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 -- 2.39.5