Displaying 4 results from an estimated 4 matches for "node_address".
Did you mean:
mode_address
2009 Jul 21
2
[PATCH node-image] Adds a preserve option for autotest VMs.
...efine=${2-true}
+ # if preserving nodes then exit
+ if $preserve_vm; then return; fi
+
if [ -n "${nodename}" ]; then
check=$(sudo virsh list --all)
if [[ "${check}" =~ "${nodename}" ]]; then
@@ -670,6 +676,7 @@ setup_for_testing () {
NODE_ADDRESS=$NETWORK.100
debug "NODE_ADDRESS=${NODE_ADDRESS}"
DNSMASQ_PID=0
+ debug "preserve_vm=${preserve_vm}"
}
# cleans up any loose ends
@@ -691,12 +698,14 @@ debugging=false
isofile="${PWD}/ovirt-node-image.iso"
show_viewer=false
vm_prefix="$$"...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...ot}
+ --log-facility=$WORKDIR/dnsmasq-${nodename}.log
+ --log-queries
+ --log-dhcp
+ --pid-file=${pidfile}"
+ if [ -n "$macaddress" ]; then
+ dns_startup="${dns_startup} --dhcp-host=${macaddress},${NODE_ADDRESS}"
+ fi
+ # start dnsmasq
+ eval $dns_startup
+ debug "pidfile=$pidfile"
+ DNSMASQ_PID=$(sudo cat $pidfile)
+ debug "DNSMASQ_PID=${DNSMASQ_PID}"
+}
+
+# Kills the running instance of dnsmasq.
+stop_dnsmasq () {
+ if [ -n "${DNSMASQ_PID-}" -a &q...
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...start_networking $nodename $IFACE_NAME false true $workdir
@@ -556,7 +557,7 @@ exit 3'
add_test "test_stateful_pxe"
test_stateful_pxe () {
local nodename="${vm_prefix}-stateful-pxe"
- local workdir=$(mktemp -d)
+ local workdir=$WORKDIR
local ipaddress=${NODE_ADDRESS}
for var in nodename workdir ipaddress; do
@@ -683,6 +684,7 @@ cleanup_after_testing () {
destroy_node $vm
done
stop_networking
+ rm -rf $WORKDIR
}
# check commandline options
@@ -715,7 +717,7 @@ set +u
if [ $# -gt 0 -a -n "$1" ]; then RESULTS=$1; else RE...
2009 May 19
1
[PATCH node-image] Fixing the autotest script.
...=tftpboot/pxelinux.0
+ --enable-tftp
+ --tftp-root=${tftproot}
+ --log-facility=/tmp/dnsmasq-${nodename}.log
+ --log-queries
+ --log-dhcp
+ --pid-file=${pidfile}"
if [ -n "$macaddress" ]; then
dns_startup="${dns_startup} --dhcp-host=${macaddress},${NODE_ADDRESS}"
fi
@@ -407,8 +406,7 @@ tests=''; testcount=0;
# $1 - test name
add_test () {
- tests[$testcount]=$1
- testcount=$testcount+1
+ tests="${tests} $1"
}
# $1 - node name
@@ -470,19 +468,20 @@ substitute_boot_device () {
fi
}
-add_test "test_st...