Date: Fri, 21 Aug 2015 16:14:16 GMT From: kczekirda@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r290029 - in soc2015/kczekirda/master: . cluster cluster/node01 cluster/node01/cluster cluster/node01/usr cluster/node01/usr/obj cluster/node02 cluster/node02/cluster cluster/node02/... Message-ID: <201508211614.t7LGEGC5038045@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kczekirda Date: Fri Aug 21 16:14:15 2015 New Revision: 290029 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=290029 Log: management infrastructure Added: soc2015/kczekirda/master/ soc2015/kczekirda/master/cluster/ soc2015/kczekirda/master/cluster/new_task.sh (contents, props changed) soc2015/kczekirda/master/cluster/node01/ soc2015/kczekirda/master/cluster/node01/cluster/ soc2015/kczekirda/master/cluster/node01/cluster/bsdinstall.input soc2015/kczekirda/master/cluster/node01/cluster/run.sh (contents, props changed) soc2015/kczekirda/master/cluster/node01/usr/ soc2015/kczekirda/master/cluster/node01/usr/obj/ soc2015/kczekirda/master/cluster/node02/ soc2015/kczekirda/master/cluster/node02/cluster/ soc2015/kczekirda/master/cluster/node02/cluster/bsdinstall.input soc2015/kczekirda/master/cluster/node02/cluster/run.sh (contents, props changed) soc2015/kczekirda/master/cluster/node02/usr/ soc2015/kczekirda/master/cluster/node02/usr/obj/ soc2015/kczekirda/master/cluster/node03/ soc2015/kczekirda/master/cluster/node03/cluster/ soc2015/kczekirda/master/cluster/node03/cluster/bsdinstall.input soc2015/kczekirda/master/cluster/node03/cluster/run.sh (contents, props changed) soc2015/kczekirda/master/cluster/node03/usr/ soc2015/kczekirda/master/cluster/node03/usr/obj/ Added: soc2015/kczekirda/master/cluster/new_task.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/kczekirda/master/cluster/new_task.sh Fri Aug 21 16:14:15 2015 (r290029) @@ -0,0 +1,24 @@ +#!/bin/sh + +cd /cluster/usr/src + +while [ -e pid ] +do + sleep 10 +done + +touch pid + +curl http://192.168.22.3:8080/admin/change_task_status/$1/preparing + +svn up -r $1 + +rsync -ahW --no-compress --exclude '.svn' /cluster/usr/src/ /cluster/$1/ + +echo "export revision=$1" > /cluster/$2/cluster/rev + +curl http://192.168.22.3:8080/admin/change_boot/$2/cluster.ipxe + +curl http://192.168.22.3:8080/admin/change_task_status/$1/running + +rm /cluster/usr/src/pid \ No newline at end of file Added: soc2015/kczekirda/master/cluster/node01/cluster/bsdinstall.input ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/kczekirda/master/cluster/node01/cluster/bsdinstall.input Fri Aug 21 16:14:15 2015 (r290029) @@ -0,0 +1,5 @@ +PARTITIONS=ada0 +DISTRIBUTIONS="kernel.txz base.txz" + +#!/bin/sh +echo "Installation complete, running in host system" \ No newline at end of file Added: soc2015/kczekirda/master/cluster/node01/cluster/run.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/kczekirda/master/cluster/node01/cluster/run.sh Fri Aug 21 16:14:15 2015 (r290029) @@ -0,0 +1,46 @@ +#!/bin/sh + +master="192.168.22.3:8080" +nfs="192.168.22.19" + +pkg update +yes | pkg install python +yes | pkg install curl + +. /cluster/rev + +mount -t nfs -o nolockd $nfs:/mnt/tank/freebsd/$revision /usr/src +mount -t nfs -o nolockd $nfs:/mnt/tank/freebsd/$(hostname)/usr/obj /usr/obj + +echo "make build start" >> /usr/src/log +echo $(date) >> /usr/src/log + +cd /usr/src +curl http://$master/admin/change_node_status/$(hostname)/buildworld +curl http://$master/admin/change_task_status/$revision/buildworld +make -j4 buildworld + +curl http://$master/admin/change_node_status/$(hostname)/buildkernel +curl http://$master/admin/change_task_status/$revision/buildkernel +make -j4 buildkernel + +echo "make ftp start" >> /usr/src/log +echo $(date) >> /usr/src/log + +cd /usr/src/release +curl http://$master/admin/change_node_status/$(hostname)/makeftp +curl http://$master/admin/change_task_status/$revision/makeftp +make ftp + +echo "finish" >> /usr/src/log +echo $(date) >> /usr/src/log + +curl http://$master/admin/change_node_status/$(hostname)/installation +curl http://$master/admin/change_task_status/$revision/installation + +export BSDINSTALL_DISTDIR=/usr/src/release/ftp/ +bsdinstall script /cluster/bsdinstall.input + +curl http://$master/admin/change_node_status/$(hostname)/rebooting +curl http://$master/admin/change_task_status/$revision/done +# reboot Added: soc2015/kczekirda/master/cluster/node02/cluster/bsdinstall.input ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/kczekirda/master/cluster/node02/cluster/bsdinstall.input Fri Aug 21 16:14:15 2015 (r290029) @@ -0,0 +1,5 @@ +PARTITIONS=ada0 +DISTRIBUTIONS="kernel.txz base.txz" + +#!/bin/sh +echo "Installation complete, running in host system" \ No newline at end of file Added: soc2015/kczekirda/master/cluster/node02/cluster/run.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/kczekirda/master/cluster/node02/cluster/run.sh Fri Aug 21 16:14:15 2015 (r290029) @@ -0,0 +1,46 @@ +#!/bin/sh + +master="192.168.22.3:8080" +nfs="192.168.22.19" + +pkg update +yes | pkg install python +yes | pkg install curl + +. /cluster/rev + +mount -t nfs -o nolockd $nfs:/mnt/tank/freebsd/$revision /usr/src +mount -t nfs -o nolockd $nfs:/mnt/tank/freebsd/$(hostname)/usr/obj /usr/obj + +echo "make build start" >> /usr/src/log +echo $(date) >> /usr/src/log + +cd /usr/src +curl http://$master/admin/change_node_status/$(hostname)/buildworld +curl http://$master/admin/change_task_status/$revision/buildworld +make -j4 buildworld + +curl http://$master/admin/change_node_status/$(hostname)/buildkernel +curl http://$master/admin/change_task_status/$revision/buildkernel +make -j4 buildkernel + +echo "make ftp start" >> /usr/src/log +echo $(date) >> /usr/src/log + +cd /usr/src/release +curl http://$master/admin/change_node_status/$(hostname)/makeftp +curl http://$master/admin/change_task_status/$revision/makeftp +make ftp + +echo "finish" >> /usr/src/log +echo $(date) >> /usr/src/log + +curl http://$master/admin/change_node_status/$(hostname)/installation +curl http://$master/admin/change_task_status/$revision/installation + +export BSDINSTALL_DISTDIR=/usr/src/release/ftp/ +bsdinstall script /cluster/bsdinstall.input + +curl http://$master/admin/change_node_status/$(hostname)/rebooting +curl http://$master/admin/change_task_status/$revision/done +# reboot Added: soc2015/kczekirda/master/cluster/node03/cluster/bsdinstall.input ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/kczekirda/master/cluster/node03/cluster/bsdinstall.input Fri Aug 21 16:14:15 2015 (r290029) @@ -0,0 +1,5 @@ +PARTITIONS=ada0 +DISTRIBUTIONS="kernel.txz base.txz" + +#!/bin/sh +echo "Installation complete, running in host system" \ No newline at end of file Added: soc2015/kczekirda/master/cluster/node03/cluster/run.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/kczekirda/master/cluster/node03/cluster/run.sh Fri Aug 21 16:14:15 2015 (r290029) @@ -0,0 +1,46 @@ +#!/bin/sh + +master="192.168.22.3:8080" +nfs="192.168.22.19" + +pkg update +yes | pkg install python +yes | pkg install curl + +. /cluster/rev + +mount -t nfs -o nolockd $nfs:/mnt/tank/freebsd/$revision /usr/src +mount -t nfs -o nolockd $nfs:/mnt/tank/freebsd/$(hostname)/usr/obj /usr/obj + +echo "make build start" >> /usr/src/log +echo $(date) >> /usr/src/log + +cd /usr/src +curl http://$master/admin/change_node_status/$(hostname)/buildworld +curl http://$master/admin/change_task_status/$revision/buildworld +make -j4 buildworld + +curl http://$master/admin/change_node_status/$(hostname)/buildkernel +curl http://$master/admin/change_task_status/$revision/buildkernel +make -j4 buildkernel + +echo "make ftp start" >> /usr/src/log +echo $(date) >> /usr/src/log + +cd /usr/src/release +curl http://$master/admin/change_node_status/$(hostname)/makeftp +curl http://$master/admin/change_task_status/$revision/makeftp +make ftp + +echo "finish" >> /usr/src/log +echo $(date) >> /usr/src/log + +curl http://$master/admin/change_node_status/$(hostname)/installation +curl http://$master/admin/change_task_status/$revision/installation + +export BSDINSTALL_DISTDIR=/usr/src/release/ftp/ +bsdinstall script /cluster/bsdinstall.input + +curl http://$master/admin/change_node_status/$(hostname)/rebooting +curl http://$master/admin/change_task_status/$revision/done +# reboot
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508211614.t7LGEGC5038045>