]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-iscsi-stable: query correct chacra host for uploads 1370/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 22 Aug 2019 01:31:01 +0000 (21:31 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 22 Aug 2019 01:33:54 +0000 (21:33 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
ceph-iscsi-stable/build/build_rpm
ceph-iscsi-stable/build/setup

index 47d4802004238af07d72d9fe37b1c39b35dd78ed..ad2e946da6bf319af77d67846c01781dbee7ec13 100644 (file)
@@ -77,7 +77,7 @@ fi
 
 if [ "$THROWAWAY" = false ] ; then
     # push binaries to chacra
-    find $WORKSPACE/dist/SRPMS | grep rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/source/
+    find $WORKSPACE/dist/SRPMS | grep rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/source
     find $WORKSPACE/dist/RPMS/ | grep rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/noarch/
     # start repo creation
     $VENV/chacractl repo update ${chacra_repo_endpoint}
index a9d593df48f62147c900959049b1b2e20e6ef8ce..0db402a81bd6939d65039df31c22f9f3cc3177e4 100644 (file)
@@ -47,6 +47,7 @@ export LC_ALL=C # the following is vulnerable to i18n
 pkgs=( "chacractl>=0.0.4" )
 install_python_packages "pkgs[@]"
 
-chacra_url="https://chacra.ceph.com/"
+# ask shaman which chacra instance to use
+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