From 2891d8299ef099967b5413c64ba46c961cc83088 Mon Sep 17 00:00:00 2001 From: Mate Lakat Date: Wed, 29 Jan 2014 13:28:00 +0000 Subject: [PATCH] Add timestamping Times will be collected to timedata.log --- launch-node.sh | 2 ++ update-node-image.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/launch-node.sh b/launch-node.sh index e01ce8b..4b724d8 100755 --- a/launch-node.sh +++ b/launch-node.sh @@ -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) diff --git a/update-node-image.sh b/update-node-image.sh index 0826ad4..cef85df 100755 --- a/update-node-image.sh +++ b/update-node-image.sh @@ -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)