Lines Matching full:remote
4 # Run a series of tests on remote systems under KVM.
6 # Usage: kvm-remote.sh "systems" [ <kvm.sh args> ]
7 # kvm-remote.sh "systems" /path/to/old/run [ <kvm-again.sh args> ]
37 # T: /tmp/kvm-remote.sh.$$
38 # resdir: /tmp/kvm-remote.sh.$$/res
39 # rundir: /tmp/kvm-remote.sh.$$/res/$ds ("-remote" suffix)
43 # TD: kvm-remote.sh.$$
44 # ds: yyyy.mm.dd-hh.mm.ss-remote
46 TD=kvm-remote.sh.$$
52 ds=`date +%Y.%m.%d-%H.%M.%S`-remote
69 kvm.sh --remote "$@" $datestamp --buildonly > $T/kvm.sh.out 2>&1
78 touch "$oldrun/remote-log"
79 echo $scriptname $args >> "$oldrun/remote-log"
80 echo | tee -a "$oldrun/remote-log"
81 echo " ----" kvm.sh output: "(`date`)" | tee -a "$oldrun/remote-log"
82 cat $T/kvm.sh.out | tee -a "$oldrun/remote-log"
85 kvm-again.sh $oldrun --dryrun --remote --rundir "$rundir" > $T/kvm-again.sh.out 2>&1
89 echo $scriptname: kvm-again.sh failed exit code $? | tee -a "$oldrun/remote-log"
90 cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log"
101 touch "$oldrun/remote-log"
102 echo $scriptname $args >> "$oldrun/remote-log"
103 kvm-again.sh "$oldrun" "$@" --dryrun --remote --rundir "$rundir" > $T/kvm-again.sh.out 2>&1
107 echo $scriptname: kvm-again.sh failed exit code $? | tee -a "$oldrun/remote-log"
108 cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log"
114 echo | tee -a "$oldrun/remote-log"
115 echo " ----" kvm-again.sh output: "(`date`)" | tee -a "$oldrun/remote-log"
117 echo | tee -a "$oldrun/remote-log"
118 echo Remote run directory: $rundir | tee -a "$oldrun/remote-log"
119 echo Local build-side run directory: $oldrun | tee -a "$oldrun/remote-log"
121 # Create the kvm-remote-N.sh scripts in the bin directory.
126 fn = dest "/kvm-remote-" n ".sh"
127 print "kvm-remote-noreap.sh " rundir " &" > fn;
133 print "rm " rundir "/remote.run" >> fn;
135 chmod +x $T/bin/kvm-remote-*.sh
145 echo System $i unreachable, giving up. | tee -a "$oldrun/remote-log"
148 echo $i: $ncpus CPUs " " `date` | tee -a "$oldrun/remote-log"
152 echo Build-products tarball: `du -h $T/binres.tgz` | tee -a "$oldrun/remote-log"
155 echo Downloading tarball to $i `date` | tee -a "$oldrun/remote-log"
161 …s.tgz to system $i, waiting and then retrying. $tries prior retries. | tee -a "$oldrun/remote-log"
169 echo Unable to download $T/binres.tgz to system $i, giving up. | tee -a "$oldrun/remote-log"
192 …re to $1 checking for file $2, retry after $sleeptime seconds. `date` | tee -a "$oldrun/remote-log"
198 echo " ---" File \"$2\" not found: ssh $1 test -f \"$2\" | tee -a "$oldrun/remote-log"
201 …e $ret: ssh $1 test -f \"$2\", retry after $sleeptime seconds. `date` | tee -a "$oldrun/remote-log"
208 # Function to start batches on idle remote $systems
227 if checkremotefile "$i" "$resdir/$ds/remote.run" 1>&2
231 …e=yes "$i" "cd \"$resdir/$ds\"; touch remote.run; PATH=\"$T/bin:$PATH\" nohup kvm-remote-$curbatch…
253 cat "$T/startbatches.stderr" | tee -a "$oldrun/remote-log"
260 echo All batches started. `date` | tee -a "$oldrun/remote-log"
265 echo " ---" Waiting for $i `date` | tee -a "$oldrun/remote-log"
266 while checkremotefile "$i" "$resdir/$ds/remote.run"
270 echo " ---" Collecting results from $i `date` | tee -a "$oldrun/remote-log"
271 …( cd "$oldrun"; ssh -o BatchMode=yes $i "cd $rundir; tar -czf - kvm-remote-*.sh.out */console.log …
274 ( kvm-end-run-stats.sh "$oldrun" "$starttime"; echo $? > $T/exitcode ) | tee -a "$oldrun/remote-log"