fc0d8fc3fc
Fix tempest exclusivity test default_ram_allocation_ratio to float cpu&disk ratio to float incorrect types for conf options valet-engine does not restart after manual kill Change-Id: I3eae2bb2144a5857dae17b99fb868b57116cef05
31 lines
701 B
Bash
31 lines
701 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [ -z $VALET_KEYSPACE ]; then
|
|
echo "ERR: VALET_KEYSPACE is not defined."
|
|
exit
|
|
else
|
|
sed -i.bak "s/#VALET_KEYSPACE#/${VALET_KEYSPACE}/g" ./populate.cql
|
|
fi
|
|
|
|
if [ -z $CASSANDRA_BIN ]; then
|
|
echo "ERR: CASSANDRA_BIN is not defined."
|
|
exit
|
|
fi
|
|
|
|
# drop keyspace
|
|
echo "Drop Valet keyspace - ${VALET_KEYSPACE}"
|
|
${CASSANDRA_BIN}cqlsh -e "DROP KEYSPACE ${VALET_KEYSPACE};"
|
|
|
|
sleep 5
|
|
|
|
# populate tables
|
|
echo "Populate Valet Api tables"
|
|
pecan populate /var/www/valet/config.py
|
|
|
|
echo "Populate Valet Engine tables + Api indexes"
|
|
${CASSANDRA_BIN}cqlsh -f ./populate.cql
|
|
|
|
${CASSANDRA_BIN}cqlsh -e "DESCRIBE KEYSPACE ${VALET_KEYSPACE};"
|
|
|
|
echo "Done populating - ${VALET_KEYSPACE}"
|