From: Holger Levsen Date: Mon, 4 Mar 2013 18:45:32 +0000 (+0100) Subject: liveboot autotest: work in progress X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=fa59a3731cf39f588145858e294eed2127f7113b;p=profitbricks%2Fjenkins-build-scripts.git liveboot autotest: work in progress --- diff --git a/liveboot_gw_autotest.sh b/liveboot_gw_autotest.sh index 8a3d9c1..0a55b23 100755 --- a/liveboot_gw_autotest.sh +++ b/liveboot_gw_autotest.sh @@ -24,6 +24,15 @@ ssh-agent > $TMPFILE source $TMPFILE ssh-add ~/.ssh/id_ritest +# +# temp. until fabian has fixed liveboot +# +if ! ssh -t $PSERVER "sudo id" ; then + figlet fail + echo "pserver1301 needs to be manually configured until this has been automated." + echo "ask holger to run deploy_pserver_change.sh manually..." + exit 1 +fi # # prepare pserver # @@ -35,14 +44,13 @@ ssh -t $PSERVER "sudo mount /dev/sda1 -t ext3 /mnt/local_hdd" # # prepare core router # -ssh -t $CORE_ROUTER "sudo rm /opt/autotest -rf" -ssh -t $CORE_ROUTER "git clone git://git/ri/autotest.git /opt/autotest" +ssh -t $CORE_ROUTER "sudo rm /opt/autotest -rf ; sudo mkdir -p /opt/autotest ; sudo chown jenkins /opt/autotest" +ssh -t $CORE_ROUTER "cd /opt ; git clone git://git/ri/autotest.git" ssh -t $CORE_ROUTER "cd /opt/autotest ; git checkout develop" # # run autotests # -ssh -t $CORE_ROUTER "cd /opt/autotest ; cp config-jenkins.xml config.xml" #ssh -t -A $CORE_ROUTER "cd /opt/autotest ; ./run-compile.sh --config config-jenkins.xml" ssh -t -A $CORE_ROUTER "cd /opt/autotest ; ./run-compile.sh" diff --git a/pxe_install.sh b/pxe_install.sh index a09416a..eaef0d0 100755 --- a/pxe_install.sh +++ b/pxe_install.sh @@ -41,6 +41,8 @@ for i in $(seq 1 90) ; do else echo "but sshd is not running at $(date +%H:%M:%S)" fi + else + echo "$TARGET_HOST does not ping at $(date +%H:%M:%S)" fi done if ! $(nc -z $TARGET_HOST 22 ) ; then