Change-Id: If266342c3c126d79e5d99a70f4ed3908e4e7a166
Issue-ID: SDC-2371
Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
fi
echo "[Info] Going to initialize sdc onboard cassandra: user=$SDC_USER; host=$CS_HOST; port=$CS_PORT"
+
echo "[Info] Initializing onboard keyspaces"
+date;
cqlsh -u $SDC_USER -p $SDC_PASSWORD -f init_keyspaces.cql $CS_HOST $CS_PORT
+date;
+
+rc=$?
+if [[ $rc != 0 ]]; then
+ echo "[Error] Failed to initialize onboard keyspaces";
+ exit $rc;
+fi
echo "[Info] Initializing onboard schemas"
+date;
cqlsh -u $SDC_USER -p $SDC_PASSWORD -f init_schemas.cql $CS_HOST $CS_PORT
+date;
rc=$?
-if [[ $rc != 0 ]]; then exit $rc; fi
\ No newline at end of file
+if [[ $rc != 0 ]]; then
+ echo "[Error] Failed to initialize onboard schemas";
+ exit $rc;
+fi
\ No newline at end of file