Prepare for move to new VM
cover Prepare for move to new VM
We're trying to move off the creaking server "woking"; as an interim move, we have a new VM "osstest" on the same Citrix internal network.
1/6 git: Use "git foo" rather than "git-foo"
2/6 production-config: use /home/xc_tftpboot, not /tftpboot 3/6 readglobalconfig: change default DhcpWatchMethod 4/6 production-config: authorise iwj@osstest key 5/6 production-config: do not set WebspaceUrl,, WebspaceFile 6/6 Executive.pm: Change default ControlDaemonHost
Following a successful adhoc test invoking things the new VM I have sent this into the osstest push gate already.
PATCH 1/6 git: Use "git foo" rather than "git-foo"
All of our machines now have "git foo" and have done for some time, and some are going to not have "git-foo".
--- adhoc-revtuple-generator | 4 ++-- ap-fetch-version | 4 ++-- ap-fetch-version-baseline | 2 +- ap-fetch-version-old | 4 ++-- cr-for-branches | 12 ++++++------ cr-publish-flight-logs | 2 +- cri-common | 2 +- mg-execute-flight | 4 ++-- 8 files changed, 17 insertions(+), 17 deletions(-)
adhoc-revtuple-generator +2 -2
@@ -106,7 +106,7 @@ END print DEBUG "GIT-GEN UPCMD\n$upcmd\n"; shellcmd($upcmd) if $doupdate; my $cmd= "cd $c{Repos}/$treename &&". - " git-log --pretty=raw --date-order $tree->{Latest}"; + " git log --pretty=raw --date-order $tree->{Latest}"; print DEBUG "GIT-GEN CMD $cmd\n"; my $fh= new IO::File; open $fh, "$cmd |" or die $!;
@@ -305,7 +305,7 @@ sub xu_withtag_generator ($) { die unless $targetqemu =~ m/^[^-]/; $!=0; $?=0; $targetqemu= `cd $c{Repos}/$qemutree && - git-rev-parse '$targetqemu^0'`; + git rev-parse '$targetqemu^0'`; die "$! $?" if (!defined $targetqemu) or $?; chomp $targetqemu; }
ap-fetch-version +2 -2
@@ -70,8 +70,8 @@ linuxfirmware) $UPSTREAM_TREE_LINUXFIRMWARE master daily-cron.$branch ;; osstest) - git-fetch $HOME/testing.git pretest:ap-fetch >&2 - git-rev-parse ap-fetch^0 + git fetch $HOME/testing.git pretest:ap-fetch >&2 + git rev-parse ap-fetch^0 ;; *) echo >&2 "branch $branch ?"
ap-fetch-version-baseline +1 -1
@@ -31,7 +31,7 @@ case "$branch" in #linux) # cd $repos/xen # git fetch -f $BASE_TREE_LINUX $BASE_TAG_LINUX:$BASE_LOCALREV_LINUX -# git-rev-parse $BASE_LOCALREV_LINUX^0 +# git rev-parse $BASE_LOCALREV_LINUX^0 # ;; *) exec ./ap-fetch-version-old "$@"
ap-fetch-version-old +2 -2
@@ -74,8 +74,8 @@ linuxfirmware) $TREE_LINUXFIRMWARE master daily-cron-old.$branch ;; osstest) - git-fetch -f $HOME/testing.git incoming:ap-fetch - git-rev-parse ap-fetch^0 + git fetch -f $HOME/testing.git incoming:ap-fetch + git rev-parse ap-fetch^0 ;; *) echo >&2 "branch $branch ?"
cr-for-branches +6 -6
@@ -43,8 +43,8 @@ with-lock-ex $fetchwlem data-tree-lock bash -ec ' exec >>$LOGFILE date printf "%s\n" "$FOR_LOGFILE" - git-pull . incoming:master 2>&1 ||: - git-checkout HEAD + git pull . incoming:master 2>&1 ||: + git checkout HEAD ' export OSSTEST_TEST_PULLFROM=`pwd`
@@ -91,10 +91,10 @@ for branch in $BRANCHES; do log ... - git-fetch $OSSTEST_TEST_PULLFROM master:incoming 2>&1 ||: - git-fetch $OSSTEST_TEST_PULLFROM incoming:incoming 2>&1 ||: - git-pull --no-commit . incoming:master 2>&1 ||: - git-checkout HEAD + git fetch $OSSTEST_TEST_PULLFROM master:incoming 2>&1 ||: + git fetch $OSSTEST_TEST_PULLFROM incoming:incoming 2>&1 ||: + git pull --no-commit . incoming:master 2>&1 ||: + git checkout HEAD set +e "$@" 2>&1
cr-publish-flight-logs +1 -1
@@ -43,7 +43,7 @@ if ($push_harness) { my $githost= $c{HarnessPublishGitUserHost}; my $gitdir= $c{HarnessPublishGitRepoDir}; - system_checked("git-push $githost:$gitdir HEAD:flight-$flight"); + system_checked("git push $githost:$gitdir HEAD:flight-$flight"); system_checked("ssh $githost 'cd $gitdir && git update-server-info'"); }
cri-common +1 -1
@@ -32,7 +32,7 @@ repo_tree_rev_fetch_git () { fi cd $repos/$treename git fetch -f $realurl $remotetag:$localtag >&2 - git-rev-parse $localtag^0 + git rev-parse $localtag^0 } select_xenbranch () {
mg-execute-flight +2 -2
@@ -53,7 +53,7 @@ if [ x"$flight" = x ]; then badusage; fi set +e tty=`exec 2>/dev/null; tty` -branch=`exec 2>/dev/null; git-branch | sed -n 's/^\* //p'` +branch=`exec 2>/dev/null; git branch | sed -n 's/^\* //p'` set -e export OSSTEST_RESOURCE_PRIORITY=${OSSTEST_RESOURCE_PRIORITY--8}
@@ -80,7 +80,7 @@ Subject: [adhoc test] $subject $OSSTEST_RESOURCE_PREINFO END -git-log -n1 --pretty=format:'harness %h: %s' | perl -pe 's/(.{70}).+/$1.../' +git log -n1 --pretty=format:'harness %h: %s' | perl -pe 's/(.{70}).+/$1.../' echo cat <tmp/$flight.report
Signature · 1 line
1.7.10.4
PATCH 2/6 production-config: use /home/xc_tftpboot, not /tftpboot
In reply to Ian JacksonFrom: Ian Jackson <[email protected]>
This is available on both woking and on the new osstest VM.
--- production-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
production-config +1 -1
@@ -64,7 +64,7 @@ END PlanRogueAllocationDuration= 86400*7 -TftpPath /tftpboot/pxe/ +TftpPath /home/xc_tftpboot/pxe/ TftpPlayDir osstest/ TftpTmpDir osstest/tmp/ TftpPxeDir /
Signature · 1 line
1.7.10.4
PATCH 3/6 readglobalconfig: change default DhcpWatchMethod
In reply to Ian JacksonFrom: Ian Jackson <[email protected]>
Use the TCP connection to woking, so that it works after we switch to the new osstest VM.
--- Osstest.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest.pm +1 -1
@@ -92,7 +92,7 @@ sub readglobalconfig () { return if $readglobalconfig_done; $readglobalconfig_done=1; - $c{HostProp_DhcpWatchMethod} = 'leases dhcp3 /var/lib/dhcp3/dhcpd.leases'; + $c{HostProp_DhcpWatchMethod} = 'leases dhcp3 woking.cam.xci-test.com:5556'; $c{AuthorizedKeysFiles} = ''; $c{AuthorizedKeysAppend} = '';
Signature · 1 line
1.7.10.4
PATCH 4/6 production-config: authorise iwj@osstest key
In reply to Ian JacksonFrom: Ian Jackson <[email protected]>
Just like the iwj@woking key.
--- production-config | 1 + 1 file changed, 1 insertion(+)
production-config +1 -0
@@ -94,4 +94,5 @@ ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq8eHHFJ+XHYgpHxfSdciq0b3tYPdMhHf9CgtwdKGSqCy ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAs6FF9nfzWIlLPeYdqNteJBoYJAcgGxQgeNi7FHYDgWNFhoYPlMPXWOuXhgNxA2/vkX9tUMVZaAh+4WTL1iRBW5B/AS/Ek2O7uM2Uq8v68D2aU9/XalLVnIxssr84pewUmKW8hZfjNnRm99RTQ2Knr2BvtwcHqXtdGYdTYCJkel+FPYQ51yXGRU7dS0D59WapkDFU1tH1Y8s+dRZcRZNRJ5f1w/KO1zx1tOrZRkO3fPlEGNZHVUYfpZLPxz0VX8tOeoaOXhKZO8vSp1pD0L/uaD6FOmugMZxbtq9wEjhZciNCq61ynRf2yt2v9DMu4EAzbW/Ws7OBvWtYj/RHcSxKbw== [email protected] ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2m8+FRm8zaCy4+L2ZLsINt3OiRzDu82JE67b4Xyt3O0+IEyflPgw5zgGH69ypOn2GqYTaiBoiYNoAn9bpUksMk71q+co4gsZJ17Acm0256A3NP46ByT6z6/AKTl58vwwNKSCEAzNru53sXTYw2TcCZUN8A4vXY76OeJNJmCmgBDHCNod9fW6+EOn8ZSU1YjFUBV2UmS2ekKmsGNP5ecLAF1bZ8I13KpKUIDIY+UiG0UMwTWDfQY59SNsz6bCxv9NsxSXL29RS2XHFeIQis7t6hJuyZTT4b9YzjEAxvk8kdGzzK6314kwILibm1O1Y8LLyrYsWK1AvnJQFIhcYXF0EQ== iwj@mariner ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApAkFv1FwknjOoataWvq5SRN/eUHjfQ5gfWnGJpIa4qnT+zAqYuC10BAHu3pHPV6NiedMxud0KcYlu/giQBMVMnYBdb7gWKdK4AQTgxHgvMMWHufa8oTLONLRsvyp1wQADJBzjQSjmo6HHF9faUckZHfJTfRxqLuR/3ENIyl+CRV9G6KfN9fbABejBxdfsbuTHc5ew2JsYxhDJsDFHgMjtrUoHI/d6eBTQDx8GRj8uUor8W+riFpW3whTH9dqloOyrqIke2qGVQlMNmzx5Z04vB1+n95nu9c5SGOZTUT4BQ5FybEANWQsNfJ7b3aMcYgVCVkKuRHSbW8Q4Pyn1Nh31w== ian@liberator +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDY+wyHPeVjiqPzmKZxSxA0fxQ8r0zKMN1cYxJrryE68XzrocprAEqrGR8n3LN3JBApt4kf5gNn4DUdDo6BmCrnTuO4p43ydKJ2BDtWjQJAYdm0g5ttvF3C0A0wnog+jP3WZhTXu40LohKWO5a0If4/SBTkZvKBuSGV4v6wihbeA2Y2aEqwIlfvdSeq96jcbppNXlhWC4bB8VIVU1pa422nTQwpLdaD4qdLi31FEWSqPd2Ro/Z5i/w22M/5wvjYMkUXQcQIn6IsajM6BR56aBGgzIxWGwkxp7iQMPCCXJ4/wTpP1A5lU4k3B8FJCkM9nnSM2koPPr+HSnOKewBqwD1V iwj@osstest END
Signature · 1 line
1.7.10.4
PATCH 5/6 production-config: do not set WebspaceUrl, WebspaceFile
In reply to Ian JacksonFrom: Ian Jackson <[email protected]>
The defaults,
$c{WebspaceFile} ||= "$ENV{'HOME'}/public_html/";
$c{WebspaceUrl} ||= "http://$myfqdn/~$whoami/";are adequate. This means the configuration can work on both woking and the new osstest VM.
--- production-config | 3 --- 1 file changed, 3 deletions(-)
production-config +0 -3
@@ -29,9 +29,6 @@ Logs /home/xc_osstest/logs Results /home/xc_osstest/results PubBaseDir /home/xc_osstest -WebspaceFile /export/home/osstest/public_html/ -WebspaceUrl="http://woking.$c{DnsDomain}/~osstest/" - OverlayLocal /export/home/osstest/overlay-local LogsMinSpaceMby= 10*1e3
Signature · 1 line
1.7.10.4
PATCH 6/6 Executive.pm: Change default ControlDaemonHost
In reply to Ian JacksonWe are going to move these daemons from woking to the new osstest VM. So use a DNS alias for now.
--- Osstest/Executive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/Executive.pm +1 -1
@@ -88,7 +88,7 @@ our (@all_lock_tables) = qw(flights resources); # Transactional reads must take out locks as if they were modifying augmentconfigdefaults( - ControlDaemonHost => 'woking.cam.xci-test.com', + ControlDaemonHost => 'control-daemons.osstest.cam.xci-test.com', OwnerDaemonPort => 4031, QueueDaemonPort => 4032, QueueDaemonRetry => 120, # seconds
Signature · 1 line
1.7.10.4