Commit 91451bb5 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Block rOCCI functional tests on VM build

parent 62e198ba
...@@ -74,9 +74,23 @@ else ...@@ -74,9 +74,23 @@ else
echo "Details on server instance ${SUFFIX}"; echo "Details on server instance ${SUFFIX}";
echo "Meaning: kamaki server info ${SERVER_URL}"; echo "Meaning: kamaki server info ${SERVER_URL}";
CMD="${BASE_CMD} --action describe --resource ${SUFFIX}"; CMD="${BASE_CMD} --action describe --resource ${SUFFIX} > vm.info";
echo "$CMD"; echo "$CMD";
eval $CMD; eval $CMD;
STATE=(`awk '/occi.compute.state/{n=split($0,a," = "); print a[2];}' vm.info`)
WAIT=1;
while [ $STATE != 'active' ]
do
echo "Server state is ${STATE}"
echo "wait ${WAIT}\" and check again"
sleep $WAIT;
let "WAIT++";
echo "$CMD";
eval $CMD;
STATE=(`awk '/occi.compute.state/{n=split($0,a," = "); print a[2];}' vm.info`);
done;
cat vm.info;
echo "Destroy server instance ${SUFFIX}"; echo "Destroy server instance ${SUFFIX}";
echo "Meaning: kamaki server delete ${SERVER_URL}"; echo "Meaning: kamaki server delete ${SERVER_URL}";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment