Add timestamping

Times will be collected to timedata.log
This commit is contained in:
Mate Lakat 2014-01-29 13:28:00 +00:00
parent 836a1bb2ce
commit 2891d8299e
2 changed files with 4 additions and 0 deletions

View File

@ -24,7 +24,9 @@ nova boot \
IP=$(./get-ip-address-of-instance.sh $INSTANCE_NAME)
TSTAMP=$(date +%s)
./wait-until-done.sh jenkins@$IP $KEY_PATH
echo "TIMETOBOOTFROMSNAPSHOT $(expr $(date +%s) - $TSTAMP)" >> timedata.log
eval $(ssh-agent)

View File

@ -54,7 +54,9 @@ remote-bash root@$IP << EOF
bash /opt/xenapi-in-the-cloud/xenapi-in-rs.sh $XENSERVER_PASSWORD $APPLIANCE_URL
EOF
TSTAMP=$(date +%s)
./wait-until-done.sh $IP $KEY_PATH
echo "TIMETOINSTALLXENSERVER $(expr $(date +%s) - $TSTAMP)" >> timedata.log
# Use this key for jenkins
SSH_PUBLIC_KEY=$(ssh-keygen -y -f $KEY_PATH)