ts-xen-install: Store HOST_physnic runvar
PATCH 1/3 ts-xen-install: Store HOST_physnic runvar
--- ts-xen-install | 1 + 1 file changed, 1 insertion(+)
ts-xen-install +1 -0
@@ -309,6 +309,7 @@ END print EO or die $! unless $suppress; } + store_runvar("$ho->{Ident}_physnic", $physif); }); }
Signature · 1 line
1.7.10.4
PATCH 3/3 ts-tcpdump-start: Start a tcpdump before migration
Provisionally add this before the migration tests to see (a) how much extra disk space etc. it uses (b) whether it helps us debug our migration problems.
--- sg-run-job | 2 ++ 1 file changed, 2 insertions(+)
sg-run-job +2 -0
@@ -290,6 +290,7 @@ proc run-job/test-pair {} { run-ts . = ts-guests-nbd-mirror + dst_host src_host + debian per-host-ts . =(*) {ts-leak-check basis} run-ts . = ts-guest-start + src_host + debian + per-host-ts . =(*) ts-tcpdump-start run-ts . = ts-guest-migrate src_host dst_host + debian run-ts . = ts-guest-migrate dst_host src_host + debian run-ts . = ts-guest-stop src_host + debian
@@ -302,6 +303,7 @@ proc run-job/test-pair {} { proc test-guest-migr {g} { if {[catch { run-ts . = ts-migrate-support-check + host $g }]} return + run-ts . =(*) ts-tcpdump-start foreach iteration {{} .2} { run-ts . =$iteration ts-guest-saverestore + host $g run-ts . =$iteration ts-guest-localmigrate + host $g
Signature · 1 line
1.7.10.4
PATCH 2/3 ts-tcpdump-start: New test step script
In reply to Ian JacksonSets up a tcpdump on a dom0. (We do not log traffic to other test boxes in the job because that might include large amounts of migration or test data.)
Also arrange that:
- We stop the tcpdump when doing log capture
- We capture the tcpdump record (by adding a big pattern to the log list)
- We do not treat the tcpdump as a leaked process
With this, a new step can be added to existing jobs as needed.
(The "killall tcpdump ||:" is duplicated in ts-tcpdump-start and ts-logs-capture because the error handling ought to be different, so that a refactoring to make it common would add more complexity than it saves.)
fixup! ts-tcpdump-start: New test step script
--- ts-leak-check | 4 ++++ ts-logs-capture | 13 ++++++++++++ ts-tcpdump-start | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100755 ts-tcpdump-start
ts-leak-check +4 -0
@@ -80,6 +80,10 @@ sub start_check () { push @suppress, $&; } + if ($r{"$ho->{Ident}_tcpdump"}) { + push @suppress, '^process .* tcpdump$'; + } + my $leaf= "leak-current-$ho->{Name}"; $statefh= open_unique_stashfile(\$leaf); }
ts-logs-capture +13 -0
@@ -33,6 +33,16 @@ our ($whhost) = @ARGV; $whhost ||= 'host'; our $ho= selecthost($whhost); +sub stop_traces ($) { + my ($lho) = @_; + if ($r{"$lho->{Ident}_tcpdump"}) { + eval { + target_cmd_root($lho, "killall tcpdump ||:"); + }; + warn $@ if length $@; + }; +} + sub try_fetch_logs ($$) { my ($lho, $logfilepats) = @_; my $ok= 0;
@@ -136,6 +146,8 @@ sub fetch_logs_host_guests () { /home/osstest/osstest-confirm-booted.log + /var/log/osstest-* + )]; if (!try_fetch_logs($ho, $logs)) { logm("log fetching failed, trying hard host reboot...");
@@ -220,6 +232,7 @@ sub fetch_logs_guest ($) { } } +stop_traces($ho); serial_fetch_logs($ho); fetch_logs_host_guests(); logm("logs captured to $stash");
ts-tcpdump-start new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
1.7.10.4