63030: regressions - FAIL
flight 63030 linux-4.1 real [real]
http://logs.test-lab.xenproject.org/osstest/logs/63030/
Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 15 guest-localmigrate.2 fail REGR. vs. 62318
Tests which are failing intermittently (not blocking):
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 13 guest-localmigrate fail in 63013 pass in 63030
test-armhf-armhf-xl-credit2 6 xen-boot fail pass in 63013
Regressions which are regarded as allowable (not blocking):
test-armhf-armhf-xl-rtds 11 guest-start fail like 62256
test-amd64-amd64-libvirt-pair 21 guest-migrate/src_host/dst_host fail like 62256 test-amd64-i386-libvirt-pair 21 guest-migrate/src_host/dst_host fail like 62256 test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 13 guest-localmigrate fail like 62318
test-amd64-amd64-xl-qemut-win7-amd64 17 guest-stop fail like 62318
test-amd64-amd64-xl-qemuu-win7-amd64 17 guest-stop fail like 62318
Tests which did not succeed, but are not blocking:
test-armhf-armhf-xl-rtds 13 saverestore-support-check fail in 63013 never pass
test-armhf-armhf-xl-rtds 12 migrate-support-check fail in 63013 never pass
test-armhf-armhf-xl-rtds 16 guest-start/debian.repeat fail in 63013 never pass test-armhf-armhf-xl-credit2 13 saverestore-support-check fail in 63013 never pass test-armhf-armhf-xl-credit2 12 migrate-support-check fail in 63013 never pass
test-armhf-armhf-xl-vhd 9 debian-di-install fail never pass
test-armhf-armhf-libvirt-qcow2 9 debian-di-install fail never pass
test-amd64-amd64-xl-pvh-intel 14 guest-saverestore fail never pass test-amd64-amd64-xl-pvh-amd 11 guest-start fail never pass test-armhf-armhf-libvirt-raw 9 debian-di-install fail never pass test-armhf-armhf-libvirt-xsm 12 migrate-support-check fail never pass test-armhf-armhf-libvirt-xsm 14 guest-saverestore fail never pass test-amd64-amd64-libvirt-xsm 12 migrate-support-check fail never pass test-armhf-armhf-libvirt 14 guest-saverestore fail never pass test-armhf-armhf-libvirt 12 migrate-support-check fail never pass test-armhf-armhf-xl-arndale 12 migrate-support-check fail never pass test-armhf-armhf-xl-arndale 13 saverestore-support-check fail never pass test-amd64-i386-libvirt-qemuu-debianhvm-amd64-xsm 10 migrate-support-check fail never pass test-amd64-i386-libvirt-xsm 12 migrate-support-check fail never pass test-amd64-amd64-libvirt 12 migrate-support-check fail never pass test-amd64-i386-libvirt 12 migrate-support-check fail never pass test-armhf-armhf-xl-cubietruck 12 migrate-support-check fail never pass test-armhf-armhf-xl-cubietruck 13 saverestore-support-check fail never pass test-armhf-armhf-xl-xsm 13 saverestore-support-check fail never pass test-armhf-armhf-xl-xsm 12 migrate-support-check fail never pass test-armhf-armhf-xl-multivcpu 13 saverestore-support-check fail never pass test-armhf-armhf-xl-multivcpu 12 migrate-support-check fail never pass test-amd64-amd64-libvirt-vhd 11 migrate-support-check fail never pass test-amd64-amd64-libvirt-qemuu-debianhvm-amd64-xsm 10 migrate-support-check fail never pass test-armhf-armhf-xl 12 migrate-support-check fail never pass test-armhf-armhf-xl 13 saverestore-support-check fail never pass
test-amd64-i386-xl-qemuu-win7-amd64 17 guest-stop fail never pass
test-amd64-i386-xl-qemut-win7-amd64 17 guest-stop fail never pass
version targeted for testing:
linux 27f1b7fed9c305ef46f8708f1bdde9cdb5f166bd
baseline version:
linux 36311a9ec4904c080bbdfcefc0f3d609ed508224
Last test of basis 62318 2015-09-24 00:30:22 Z 24 days Failing since 62540 2015-09-29 17:44:52 Z 19 days 17 attempts Testing same since 62659 2015-10-04 12:21:24 Z 14 days 15 attempts
------------------------------------------------------------
People who touched revisions under test:
"Eric W. Biederman" <[email protected]>
Aaron Brown <[email protected]>
Adam Lee <[email protected]>
Adrien Schildknecht <[email protected]>
Alex Deucher <[email protected]> Alexander Drozdov <[email protected]> Alexander Duyck <[email protected]> Alexandre Belloni <[email protected]> Alexei Starovoitov <[email protected]>
Alexey Brodkin <[email protected]>
Alexey Brodkin <[email protected]> Andrew Morton <[email protected]>
Andrew W Elble <[email protected]>
Andy Whitcroft <[email protected]>
Aneesh Kumar K.V <[email protected]> Angga <[email protected]> Anna Schumaker <[email protected]>
Ard Biesheuvel <[email protected]>
Ariel Nahum <[email protected]>
Atsushi Nemoto <[email protected]>
Bart Van Assche <[email protected]> Benjamin Coddington <[email protected]> Benjamin Herrenschmidt <[email protected]> Benoit Parrot <[email protected]>
Bob Copeland <[email protected]>
Bob Liu <[email protected]>
Brenden Blanco <[email protected]>
Brian Starkey <[email protected]>
Carol L Soto <[email protected]>
Catalin Marinas <[email protected]>
Chris Mason <[email protected]>
Christian Borntraeger <[email protected]> Christoph Hellwig <[email protected]>
Christophe Ricard <[email protected]> Christophe Ricard <[email protected]> Cong Wang <[email protected]>
Cong Wang <[email protected]>
Dan Carpenter <[email protected]>
Daniel Axtens <[email protected]>
Daniel Borkmann <[email protected]>
Darren Hart <[email protected]>
David Ahern <[email protected]>
David Dueck <[email protected]>
David Härdeman <[email protected]>
David Rientjes <[email protected]>
David S. Miller <[email protected]>
Ding Tianhong <[email protected]> dingtianhong <[email protected]>
Dmitry Torokhov <[email protected]>
Doug Ledford <[email protected]>
Edward Hyunkoo Jee <[email protected]>
Emil Medve <[email protected]>
Eric Dumazet <[email protected]>
Eric Sandeen <[email protected]>
Eric W. Biederman <[email protected]>
Eryu Guan <[email protected]>
Eugene Shatokhin <[email protected]> Filipe Manana <[email protected]>
Florian Fainelli <[email protected]>
Florian Westphal <[email protected]>
Fugang Duan <[email protected]>
Gavin Shan <[email protected]>
Greg Kroah-Hartman <[email protected]> Gregory Hoggarth <[email protected]> Haggai Eran <[email protected]>
Hans de Goede <[email protected]>
Hans Verkuil <[email protected]>
Heiko Stuebner <[email protected]>
Heiko Stübner <[email protected]>
Helge Deller <[email protected]>
Herbert Xu <[email protected]>
Hermin Anggawijaya <[email protected]> Hin-Tak Leung <[email protected]> huaibin Wang <[email protected]>
Ian Munsie <[email protected]>
Ido Schimmel <[email protected]>
Ivan Vecera <[email protected]>
J. Bruce Fields <[email protected]>
Jack Morgenstein <[email protected]> Jaewon Kim <[email protected]>
Jamal Hadi Salim <[email protected]>
Jan Kara <[email protected]>
Jann Horn <[email protected]>
Jason Gunthorpe <[email protected]> Jean Delvare <[email protected]>
Jeff Kirsher <[email protected]>
Jeff Layton <[email protected]>
Jeff Layton <[email protected]>
Jeff Vander Stoep <[email protected]>
Jeffery Miller <[email protected]>
Jens Axboe <[email protected]>
Jesse Gross <[email protected]>
Jesse Jones <[email protected]>
Jialing Fu <[email protected]>
Jiri Pirko <[email protected]>
Jisheng Zhang <[email protected]>
Joerg Roedel <[email protected]>
Johannes Berg <[email protected]>
John David Anglin <dave.anglin>
John David Anglin <[email protected]>
John Fastabend <[email protected]> Joonyoung Shim <[email protected]>
Julian Anastasov <[email protected]>
Kalle Valo <[email protected]>
Kees Cook <[email protected]>
Ken-ichirou MATSUZAWA <[email protected]> Kinglong Mee <[email protected]>
Krzysztof Kozlowski <[email protected]> Kyle Evans <[email protected]>
Lad, Prabhakar <[email protected]>
Larry Finger <[email protected]>
Lars Westerhoff <[email protected]> Laurent Pinchart <[email protected]> Leonidas Da Silva Barbosa <[email protected]> Leonidas S. Barbosa <[email protected]> Linus Lüssing <[email protected]>
Linus Torvalds <[email protected]> Linus Walleij <[email protected]>
Ludovic Desroches <[email protected]> Luis Henriques <[email protected]> Madalin Bucur <[email protected]>
Marc Zyngier <[email protected]>
Marcelo Ricardo Leitner <[email protected]> Markos Chandras <[email protected]> Matan Barak <[email protected]>
Matthew Rosato <[email protected]> Mauro Carvalho Chehab <[email protected]> Mel Gorman <[email protected]>
Michael Ellerman <[email protected]>
Michael S. Tsirkin <[email protected]>
Michal Hocko <[email protected]>
Mike Marciniszyn <[email protected]> Minchan Kim <[email protected]>
Minfei Huang <[email protected]>
Ming Lei <[email protected]>
Mitja Spes <[email protected]>
NeilBrown <[email protected]>
Nicolas Dichtel <[email protected]> Nicolas Ferre <[email protected]>
Nicolas Iooss <[email protected]> Nikolay Aleksandrov <[email protected]> Nikolay Aleksandrov <[email protected]> Niranjan Sivakumar <[email protected]>
Noa Osherovich <[email protected]>
Oleg Nesterov <[email protected]>
Oliver Hartkopp <[email protected]>
Oliver Neukum <[email protected]>
Or Gerlitz <[email protected]>
Paul Moore <[email protected]>
Pavel Fedin <[email protected]>
Peng Tao <[email protected]>
Peter Guo <[email protected]>
Phil Sutter <[email protected]>
Pratyush Anand <[email protected]>
Pravin B Shelar <[email protected]>
Ralf Baechle <[email protected]>
Rasesh Mody <[email protected]>
Richard Laing <[email protected]> Rob Herring <[email protected]>
Roopa Prabhu <[email protected]>
Russell King <[email protected]>
Sagi Grimberg <[email protected]>
Sakari Ailus <[email protected]>
Samuel Ortiz <[email protected]>
Scott Feldman <[email protected]>
Sergei Antonov <[email protected]>
Sergey Senozhatsky <[email protected]> Shachar Raindel <[email protected]>
Shani Michaeli <[email protected]>
Shawn Lin <[email protected]>
Shota Suzuki <[email protected]>
Stas Sergeev <[email protected]>
Stas Sergeev <[email protected]>
Stephen Smalley <[email protected]>
Steve French <[email protected]>
Steven Rostedt <[email protected]>
Stuart Yoder <[email protected]>
Sudip Mukherjee <[email protected]>
Takashi Iwai <[email protected]>
Theodore Ts'o <[email protected]>
Thierry Reding <[email protected]>
Thierry Strudel <[email protected]>
Thomas Gleixner <[email protected]>
Thomas Graf <[email protected]>
Thomas Huth <[email protected]>
Tilman Schmidt <[email protected]>
Timo Teräs <[email protected]>
Tobias Powalowski <[email protected]> Tony Luck <[email protected]>
Trond Myklebust <[email protected]> Tyler Hicks <[email protected]>
Ulf Hansson <[email protected]>
Varun Sethi <[email protected]>
Vlad Yasevich <[email protected]>
Vlad Zolotarov <[email protected]> Vlastimil Babka <[email protected]>
WANG Cong <[email protected]>
Will Deacon <[email protected]>
Wilson Kok <[email protected]>
Woodrow Shen <[email protected]>
Yao-Wen Mao <[email protected]>
Ying Xue <[email protected]>
Yinghai Lu <[email protected]>
Yishai Hadas <[email protected]>
Yuchung Cheng <[email protected]>
jobs:
build-amd64-xsm pass build-armhf-xsm pass build-i386-xsm pass build-amd64 pass build-armhf pass build-i386 pass build-amd64-libvirt pass build-armhf-libvirt pass build-i386-libvirt pass build-amd64-pvops pass build-armhf-pvops pass build-i386-pvops pass build-amd64-rumpuserxen pass build-i386-rumpuserxen pass test-amd64-amd64-xl pass test-armhf-armhf-xl pass test-amd64-i386-xl pass test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm pass test-amd64-i386-xl-qemut-debianhvm-amd64-xsm pass test-amd64-amd64-libvirt-qemuu-debianhvm-amd64-xsm pass test-amd64-i386-libvirt-qemuu-debianhvm-amd64-xsm pass test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm pass test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm pass test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm fail test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm fail test-amd64-amd64-libvirt-xsm pass test-armhf-armhf-libvirt-xsm fail test-amd64-i386-libvirt-xsm pass test-amd64-amd64-xl-xsm pass test-armhf-armhf-xl-xsm pass test-amd64-i386-xl-xsm pass test-amd64-amd64-xl-pvh-amd fail test-amd64-i386-qemut-rhel6hvm-amd pass test-amd64-i386-qemuu-rhel6hvm-amd pass test-amd64-amd64-xl-qemut-debianhvm-amd64 pass test-amd64-i386-xl-qemut-debianhvm-amd64 pass test-amd64-amd64-xl-qemuu-debianhvm-amd64 pass test-amd64-i386-xl-qemuu-debianhvm-amd64 pass test-amd64-i386-freebsd10-amd64 pass test-amd64-amd64-xl-qemuu-ovmf-amd64 pass test-amd64-i386-xl-qemuu-ovmf-amd64 pass test-amd64-amd64-rumpuserxen-amd64 pass test-amd64-amd64-xl-qemut-win7-amd64 fail test-amd64-i386-xl-qemut-win7-amd64 fail test-amd64-amd64-xl-qemuu-win7-amd64 fail test-amd64-i386-xl-qemuu-win7-amd64 fail test-armhf-armhf-xl-arndale pass test-amd64-amd64-xl-credit2 pass test-armhf-armhf-xl-credit2 fail test-armhf-armhf-xl-cubietruck pass test-amd64-i386-freebsd10-i386 pass test-amd64-i386-rumpuserxen-i386 pass test-amd64-amd64-xl-pvh-intel fail test-amd64-i386-qemut-rhel6hvm-intel pass test-amd64-i386-qemuu-rhel6hvm-intel pass test-amd64-amd64-libvirt pass test-armhf-armhf-libvirt fail test-amd64-i386-libvirt pass test-amd64-amd64-xl-multivcpu pass test-armhf-armhf-xl-multivcpu pass test-amd64-amd64-pair pass test-amd64-i386-pair pass test-amd64-amd64-libvirt-pair fail test-amd64-i386-libvirt-pair fail test-amd64-amd64-amd64-pvgrub pass test-amd64-amd64-i386-pvgrub pass test-amd64-amd64-pygrub pass test-armhf-armhf-libvirt-qcow2 fail test-amd64-amd64-xl-qcow2 pass test-armhf-armhf-libvirt-raw fail test-amd64-i386-xl-raw pass test-amd64-amd64-xl-rtds pass test-armhf-armhf-xl-rtds fail test-amd64-i386-xl-qemut-winxpsp3-vcpus1 pass test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 pass test-amd64-amd64-libvirt-vhd pass test-armhf-armhf-xl-vhd fail test-amd64-amd64-xl-qemut-winxpsp3 pass test-amd64-i386-xl-qemut-winxpsp3 pass test-amd64-amd64-xl-qemuu-winxpsp3 pass test-amd64-i386-xl-qemuu-winxpsp3 pass
------------------------------------------------------------
sg-report-flight on osstest.test-lab.xenproject.org
logs: /home/logs/logs
images: /home/logs/images
Logs, config files, etc. are available at
http://logs.test-lab.xenproject.org/osstest/logs
Explanation of these reports, and of osstest in general, is at
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README.email;hb=master
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README;hb=master
Test harness code can be found at
http://xenbits.xen.org/gitweb?p=osstest.git;a=summary
Not pushing.
(No revision log; it would be 5606 lines long.)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 9 lines · osstest service owner
flight 63030 linux-4.1 real [real]
http://logs.test-lab.xenproject.org/osstest/logs/63030/Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 15 guest-localmigrate.2 fail REGR. vs. 62318
Unfortunately there isn't much useful information in various log files. I think we need to wait for Ian's patch [0] to land in production in order to get more insight on what's going on.
Wei.
[0]: [PATCH OSSTEST] stubdom: Arrange for guest serial to go to a host logfile
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions - FAIL"):
Quoted 1 line · osstest service owner
...
Quoted 8 lines
Quoted 4 lines
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 15 guest-localmigrate.2 fail REGR. vs. 62318Unfortunately there isn't much useful information in various log files. I think we need to wait for Ian's patch [0] to land in production in order to get more insight on what's going on.
...
Quoted 1 line
[0]: [PATCH OSSTEST] stubdom: Arrange for guest serial to go to a host logfile
That osstest patch was in service in this flight. The guest kernel messages are in
et al, mixed in with the minios and stub qemu output.
I don't immediately see an explanation for the problem but (as we discovered with BSD) the success of this test depends on the gratuitous arp.
Ian.
Quoted 12 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions - FAIL"):
Quoted 1 line · osstest service owner
...
Quoted 8 lines
Quoted 4 lines
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 15 guest-localmigrate.2 fail REGR. vs. 62318Unfortunately there isn't much useful information in various log files. I think we need to wait for Ian's patch [0] to land in production in order to get more insight on what's going on.
...
Quoted 9 lines
Quoted 1 line
[0]: [PATCH OSSTEST] stubdom: Arrange for guest serial to go to a host logfile
That osstest patch was in service in this flight. The guest kernel messages are in
http://logs.test-lab.xenproject.org/osstest/logs/63030/test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm/merlot0---var-log-xen-qemu-dm-debianhvm.guest.osstest.log.3.gzet al, mixed in with the minios and stub qemu output.
Oops. I didn't have the latest OSSTest tree.
Quoted 6 lines
I don't immediately see an explanation for the problem but (as we discovered with BSD) the success of this test depends on the gratuitous arp.
From mere code inspection and document of lwip 1.3.0 I think mini-os
does send gratuitous ARP.
The call graph is like
call_main
start_netwokring
init_netfront <- netfront changes to connected state
netif_set_up <- sends gratuitous ARP [0]
app_main...
And according to FreeBSD changeset, the bug about gratuitous ARP was that the packet was sent before netfront was changed to connected state, so it doesn't look like mini-os has the same problem as FreeBSD did.
But this is only code inspection, so I'm not very confident whether everything does what it says it does.
Wei.
[0] http://lwip.wikia.com/wiki/Writing_a_device_driver
Gratuitous ARP
A "gratuitous ARP" can be generated by a call etharp_query(our_netif, its_ip_addr, NULL) (see RFC 3220, Section 4.6). Starting in version 1.3.0, the gratuitous ARP is generated by netif_set_up() and should not be done in the driver or application code.
Quoted 1 line
Ian.
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions - FAIL"):
Quoted 2 lines
From mere code inspection and document of lwip 1.3.0 I think mini-os does send gratuitous ARP.
The guest is using the PVHVM drivers at this point, with the backend directly in dom0, so it is the guest's gratuitous arp which is needed, I think.
Ian.
Quoted 9 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions
- FAIL"):Quoted 1 line
From mere code inspection and document of lwip 1.3.0 I think mini
-os
Quoted 1 line
does send gratuitous ARP.
The guest is using the PVHVM drivers at this point, with the backend directly in dom0, so it is the guest's gratuitous arp which is needed, I think.
It would be worth investigating whether mini-os's gratuitous ARP might also be occurring and confusing things, e.g. by coming after and therefore taking precedence over the one coming from the guest.
Ian.
Quoted 7 lines · Ian Campbell
Quoted 6 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions
- FAIL"):Quoted 1 line
From mere code inspection and document of lwip 1.3.0 I think mini
-os
Quoted 1 line
does send gratuitous ARP.
Quoted 8 lines
Quoted 3 lines
The guest is using the PVHVM drivers at this point, with the backend directly in dom0, so it is the guest's gratuitous arp which is needed, I think.
It would be worth investigating whether mini-os's gratuitous ARP might also be occurring and confusing things, e.g. by coming after and therefore taking precedence over the one coming from the guest.
Several observations:
1. The guest doesn't always send gratuitous arp -- but this might not be the cause of this failure. Guest works fine when using qemu-trad only.
2. Guest only sends one gratuitous arp at most.
3. When using stubdom, guest is a lot less responsive. See two experiments and analysis below.
I statically add arp entry for guest interface because arp entry some times gets deleted. Note that this is not covering up the root cause of failure because the arp entry is normally deleted after a few migration iterations. The failure on merlot* mostly fail on first iteration. And when arp entry is not available, the error for ssh should be "No route to host", not "timed out".
Furthermore when the arp entry is not available, dom0 naturally sends an arp request to guest. When stubdom is not in use, guest responded instantly, when stubdom is in use, guest was a lot less responsive.
I use a script to repeat migration and ssh.
i=1
while true; do
echo "#### iteration $i"
ssh localhost xl migrate wheezy-hvm localhost
if [ $? != 0 ]; then
echo "migration failed $?";
exit 1;
fi
timeout 40 ssh -o BatchMode=yes -o ConnectTimeout=100 -o ServerAliveInterval=100 [email protected] date
st=$?
if [ $st != 0 ]; then
echo "failed $st";
exit 1;
fi
i=$((i+1))done
At the same time
tcpdump -i xenbr0 arp and host $GUEST_IP
When stubdom is present.
Scenario 1:
xl shows "Migration successful."
...30s...
xenbr0 receives gratuitous arp
...1s...
ssh date command comes back
Scenario 2:
xenbr0 receives gratuitous arp
...1s...
xl shows "Migration successful."
ssh date command comes back
When stubdom was not present I never saw scenario 1.
Note that my machine is relative old (>6 years). It would never pass the test in osstest because in osstest the timeout is 10s.
The slowness in osstest seems to be host specific because all failures in guest migrate test failed on merlot*. It's not only linux-4.1 is failing, other branches fail the same test step on merlot*, too.
Wei.
Quoted 18 lines · Wei Liu
Quoted 7 lines · Ian Campbell
Quoted 6 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions
- FAIL"):Quoted 1 line
From mere code inspection and document of lwip 1.3.0 I think mini
-os
Quoted 1 line
does send gratuitous ARP.
Quoted 9 lines
Quoted 4 lines
The guest is using the PVHVM drivers at this point, with the backend directly in dom0, so it is the guest's gratuitous arp which is needed,
I think.It would be worth investigating whether mini-os's gratuitous ARP might also be occurring and confusing things, e.g. by coming after and therefore taking precedence over the one coming from the guest.
Quoted 5 lines
Several observations:
1. The guest doesn't always send gratuitous arp -- but this might not be the cause of this failure. Guest works fine when using qemu-trad only.
As in it always sends the arp when using qemu-trad, or that it is fine irrespective of not always sending it?
Quoted 1 line
2. Guest only sends one gratuitous arp at most.
This is as expected, but does the stubdom also send one?
Quoted 2 lines
3. When using stubdom, guest is a lot less responsive. See two experiments and analysis below.
Less responsive in use or only while migrating, or to ssh after migration, or to something else?
Quoted 7 lines
Scenario 1:
xl shows "Migration successful."
...30s...
xenbr0 receives gratuitous arp
...1s...
ssh date command comes back
Quoted 7 lines
Scenario 2:
xenbr0 receives gratuitous arp
...1s...
xl shows "Migration successful."
ssh date command comes backWhen stubdom was not present I never saw scenario 1.
It would be worth looking at the possibility of a delay between "Migration successful" and the target domain actually running. A 30s delay between the guest restarting and it sending the ARP would be pretty strange IMHO
Quoted 6 lines
Note that my machine is relative old (>6 years). It would never pass the test in osstest because in osstest the timeout is 10s.
The slowness in osstest seems to be host specific because all failures in guest migrate test failed on merlot*. It's not only linux-4.1 is failing, other branches fail the same test step on merlot*, too.
This could be a factor in common with the other qmu timeout on merlot which led to 9acfbe14d726.
It might be worth prodding AMD over that issue again.
Ian.
Quoted 19 lines · Ian Campbell
Quoted 18 lines · Wei Liu
Quoted 16 lines · Ian Campbell
Quoted 10 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions
- FAIL"):Quoted 1 line
From mere code inspection and document of lwip 1.3.0 I think mini
-os
Quoted 1 line
does send gratuitous ARP.
The guest is using the PVHVM drivers at this point, with the backend directly in dom0, so it is the guest's gratuitous arp which is needed,
I think.It would be worth investigating whether mini-os's gratuitous ARP might also be occurring and confusing things, e.g. by coming after and therefore taking precedence over the one coming from the guest.
Quoted 9 lines
Quoted 5 lines
Several observations:
1. The guest doesn't always send gratuitous arp -- but this might not be the cause of this failure. Guest works fine when using qemu-trad only.
As in it always sends the arp when using qemu-trad, or that it is fine irrespective of not always sending it?
Whether or not stubdom is in use, the guest behaves the same -- it doesn't always send gratuitous arp.
When using qemu-trad alone, it's always fine when it doesn't send gratuitous arp because either there is cache in dom0 that already has guest mac address or the guest responses instantly to dom0 arp request.
So it comes down to the responsiveness of guest is the key.
Quoted 4 lines
Quoted 1 line
2. Guest only sends one gratuitous arp at most.
This is as expected, but does the stubdom also send one?
There is at most one gratuitous arp request per migration, I think it's from guest, not stubdom. To identify the exact interface the arp packet comes from requires a bit of gymnastics with tcpdump that I haven't managed to do yesterday.
Quoted 6 lines
Quoted 2 lines
3. When using stubdom, guest is a lot less responsive. See two experiments and analysis below.
Less responsive in use or only while migrating, or to ssh after migration, or to something else?
For every activity after migration for a period of time, including both arp request / reply and ssh connection.
Quoted 13 lines
Quoted 13 lines
Scenario 1:
xl shows "Migration successful."
...30s...
xenbr0 receives gratuitous arp
...1s...
ssh date command comes backScenario 2:
xenbr0 receives gratuitous arp
...1s...
xl shows "Migration successful."
ssh date command comes back
Quoted 6 lines
Quoted 1 line
When stubdom was not present I never saw scenario 1.
It would be worth looking at the possibility of a delay between "Migration successful" and the target domain actually running. A 30s delay between the guest restarting and it sending the ARP would be pretty strange IMHO
The guest is in a weird state.
xl list shows the stubdom is in "b" state while guest has no state at all, heh.
Wei.
Quoted 13 lines
Quoted 6 lines
Note that my machine is relative old (>6 years). It would never pass the test in osstest because in osstest the timeout is 10s.
The slowness in osstest seems to be host specific because all failures in guest migrate test failed on merlot*. It's not only linux-4.1 is failing, other branches fail the same test step on merlot*, too.
This could be a factor in common with the other qmu timeout on merlot which led to
9acfbe14d726.It might be worth prodding AMD over that issue again.
Ian.
Quoted 35 lines · Wei Liu
Quoted 25 lines · Ian Campbell
Quoted 24 lines · Wei Liu
Quoted 15 lines · Ian Campbell
Quoted 5 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030:
regressions
- FAIL"):Quoted 2 lines
From mere code inspection and document of lwip 1.3.0 I think mini
Quoted 8 lines
-os
Quoted 1 line
does send gratuitous ARP.
The guest is using the PVHVM drivers at this point, with the backend
directly in dom0, so it is the guest's gratuitous arp which is needed,
I think.Quoted 5 lines
It would be worth investigating whether mini-os's gratuitous ARP might
also be occurring and confusing things, e.g. by coming after and therefore taking precedence over the one coming from the guest.Several observations:
Quoted 8 lines
Quoted 4 lines
1. The guest doesn't always send gratuitous arp -- but this might not be
the cause of this failure. Guest works fine when using qemu-trad only.As in it always sends the arp when using qemu-trad, or that it is fine irrespective of not always sending it?
Quoted 6 lines
Whether or not stubdom is in use, the guest behaves the same -- it doesn't always send gratuitous arp.
When using qemu-trad alone, it's always fine when it doesn't send gratuitous arp because either there is cache in dom0 that already has guest mac address or the guest responses instantly to dom0 arp request.
Where has this cache entry come from? Any preexisting ARP cache would be associated with vifX.0 and would go away when that device was destroyed and replace with vif(X+1).0.
Also this only work for localhost migration. If the domain actually moved to another host then the ARP is required in order for the physical switch to learn the new location.
Thus it seems to me that not always sending the gratuitous ARP is the most important thing to get to the bottom of here.
Quoted 2 lines
So it comes down to the responsiveness of guest is the key.
[...]
Quoted 25 lines
Quoted 7 lines
Quoted 2 lines
3. When using stubdom, guest is a lot less responsive. See two experiments and analysis below.
Less responsive in use or only while migrating, or to ssh after migration,
or to something else?For every activity after migration for a period of time, including both arp request / reply and ssh connection.
Quoted 14 lines
Quoted 14 lines
Scenario 1:
xl shows "Migration successful."
...30s...
xenbr0 receives gratuitous arp
...1s...
ssh date command comes backScenario 2:
xenbr0 receives gratuitous arp
...1s...
xl shows "Migration successful."
ssh date command comes backWhen stubdom was not present I never saw scenario 1.
So in that case you only saw Scenario 2 which includes a "receives gratuitous ARP". But above you state that even with non-stub case sometimes the grauitous ARP is not sent. Is this a 3rd case which isn't mentioned here?
Quoted 11 lines
Quoted 6 lines
It would be worth looking at the possibility of a delay between "Migration
successful" and the target domain actually running. A 30s delay between the
guest restarting and it sending the ARP would be pretty strange IMHOThe guest is in a weird state.
xl list shows the stubdom is in "b" state while guest has no state at all, heh.
Has it actually been started/unpaused then?
Ian.
Quoted 39 lines · Ian Campbell
Quoted 38 lines · Wei Liu
Quoted 25 lines · Ian Campbell
Quoted 24 lines · Wei Liu
Quoted 15 lines · Ian Campbell
Quoted 5 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030:
regressions
- FAIL"):Quoted 2 lines
From mere code inspection and document of lwip 1.3.0 I think mini
Quoted 8 lines
-os
Quoted 1 line
does send gratuitous ARP.
The guest is using the PVHVM drivers at this point, with the backend
directly in dom0, so it is the guest's gratuitous arp which is needed,
I think.Quoted 5 lines
It would be worth investigating whether mini-os's gratuitous ARP might
also be occurring and confusing things, e.g. by coming after and therefore taking precedence over the one coming from the guest.Several observations:
Quoted 8 lines
Quoted 4 lines
1. The guest doesn't always send gratuitous arp -- but this might not be
the cause of this failure. Guest works fine when using qemu-trad only.As in it always sends the arp when using qemu-trad, or that it is fine irrespective of not always sending it?
Whether or not stubdom is in use, the guest behaves the same -- it doesn't always send gratuitous arp.
Quoted 8 lines
Quoted 3 lines
When using qemu-trad alone, it's always fine when it doesn't send gratuitous arp because either there is cache in dom0 that already has guest mac address or the guest responses instantly to dom0 arp request.
Where has this cache entry come from? Any preexisting ARP cache would be associated with vifX.0 and would go away when that device was destroyed and replace with vif(X+1).0.
No, vif-bridge script has two runes for off-lining a vif
brctl delif $bridge $vif
ifconfig $vif down
Neither of these causes cache entry to be flushed.
Quoted 7 lines
Also this only work for localhost migration. If the domain actually moved to another host then the ARP is required in order for the physical switch to learn the new location.
Thus it seems to me that not always sending the gratuitous ARP is the most important thing to get to the bottom of here.
That's another issue, but this would cause other error (no route to host) instead of timeout. The failure exhibits timeout error -- let's do one thing at a time.
Quoted 27 lines
Quoted 2 lines
So it comes down to the responsiveness of guest is the key.
[...]
Quoted 24 lines
Quoted 7 lines
Quoted 2 lines
3. When using stubdom, guest is a lot less responsive. See two experiments and analysis below.
Less responsive in use or only while migrating, or to ssh after migration,
or to something else?For every activity after migration for a period of time, including both arp request / reply and ssh connection.
Quoted 13 lines
Quoted 13 lines
Scenario 1:
xl shows "Migration successful."
...30s...
xenbr0 receives gratuitous arp
...1s...
ssh date command comes backScenario 2:
xenbr0 receives gratuitous arp
...1s...
xl shows "Migration successful."
ssh date command comes back
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
When stubdom was not present I never saw scenario 1.
So in that case you only saw Scenario 2 which includes a "receives gratuitous ARP". But above you state that even with non-stub case sometimes the grauitous ARP is not sent. Is this a 3rd case which isn't mentioned here?
Scenario 3:
xl shows "Migration successful."
dom0 sends arp request because arp cache entry not available guest takes a long time to respond when using stubdom or responds
instantly when not using stubdom
Scenario 4:
xl shows "Migration successful."
(arp cache entry still available)
guest takes a long time to respond to ssh when using stubdom or
responds instantly when not using stubdom
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
It would be worth looking at the possibility of a delay between "Migration
successful" and the target domain actually running. A 30s delay between the
guest restarting and it sending the ARP would be pretty strange IMHO
Quoted 7 lines
Quoted 4 lines
The guest is in a weird state.
xl list shows the stubdom is in "b" state while guest has no state at all, heh.
Has it actually been started/unpaused then?
Yes, of course -- otherwise the state would have been "p". And I observed the transition from "p" to "weird state".
Wei.
Quoted 1 line
Ian.
Quoted 59 lines · Wei Liu
Quoted 51 lines · Ian Campbell
Quoted 42 lines · Wei Liu
Quoted 36 lines · Ian Campbell
Quoted 26 lines · Wei Liu
Quoted 17 lines · Ian Campbell
Quoted 7 lines · Ian Jackson
Wei Liu writes ("Re: [Xen-devel] [linux-4.1 test] 63030:
regressions
- FAIL"):Quoted 3 lines
From mere code inspection and document of lwip 1.3.0 I think
mini-os
Quoted 8 lines
Quoted 1 line
does send gratuitous ARP.
The guest is using the PVHVM drivers at this point, with the backend
directly in dom0, so it is the guest's gratuitous arp which is
needed,
I think.Quoted 7 lines
It would be worth investigating whether mini-os's gratuitous ARP
might
also be occurring and confusing things, e.g. by coming after and
therefore taking precedence over the one coming from the guest.Quoted 8 lines
Several observations:
1. The guest doesn't always send gratuitous arp -- but this might not
be
the cause of this failure. Guest works fine when using qemu
-trad
only.Quoted 4 lines
As in it always sends the arp when using qemu-trad, or that it is fine
irrespective of not always sending it?Quoted 7 lines
Whether or not stubdom is in use, the guest behaves the same -- it doesn't always send gratuitous arp.
When using qemu-trad alone, it's always fine when it doesn't send gratuitous arp because either there is cache in dom0 that already has guest mac address or the guest responses instantly to dom0 arp request.
Quoted 6 lines
Where has this cache entry come from? Any preexisting ARP cache would be
associated with vifX.0 and would go away when that device was destroyed and
replace with vif(X+1).0.
Quoted 5 lines
No, vif-bridge script has two runes for off-lining a vif
brctl delif $bridge $vif
ifconfig $vif downNeither of these causes cache entry to be flushed.
$vif disappearing when netback finally deletes the device will though. Or it should/used to.
Maybe this is happening after the new guest has started and confusing things somewhere?
Quoted 6 lines
Quoted 6 lines
Also this only work for localhost migration. If the domain actually moved
to another host then the ARP is required in order for the physical switch
to learn the new location.
Quoted 8 lines
Quoted 4 lines
Thus it seems to me that not always sending the gratuitous ARP is the most
important thing to get to the bottom of here.That's another issue, but this would cause other error (no route to host) instead of timeout. The failure exhibits timeout error -- let's do one thing at a time.
The presence of an ARP cache entry in dom0 pointing to the old VIF would also cause a timeout issue, I think, since the guest is no longer connected to that vif.
This stale ARP cache entry should be the first thing to investigate, before either the lack of a grat ARP or the slowness of the guest, since its presence will confuse the results in both those other cases.
Quoted 60 lines
Quoted 28 lines
Quoted 2 lines
So it comes down to the responsiveness of guest is the key.
[...]
Quoted 25 lines
Quoted 7 lines
Quoted 2 lines
3. When using stubdom, guest is a lot less responsive. See two experiments and analysis below.
Less responsive in use or only while migrating, or to ssh after migration,
or to something else?For every activity after migration for a period of time, including both
arp request / reply and ssh connection.Quoted 13 lines
Quoted 13 lines
Scenario 1:
xl shows "Migration successful."
...30s...
xenbr0 receives gratuitous arp
...1s...
ssh date command comes backScenario 2:
xenbr0 receives gratuitous arp
...1s...
xl shows "Migration successful."
ssh date command comes backQuoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
When stubdom was not present I never saw scenario 1.
So in that case you only saw Scenario 2 which includes a "receives gratuitous ARP". But above you state that even with non-stub case sometimes
the grauitous ARP is not sent. Is this a 3rd case which isn't mentioned here?Scenario 3:
xl shows "Migration successful."
dom0 sends arp request because arp cache entry not available guest takes a long time to respond when using stubdom or responds
instantly when not using stubdomScenario 4:
xl shows "Migration successful."
(arp cache entry still available)
guest takes a long time to respond to ssh when using stubdom or
responds instantly when not using stubdomQuoted 11 lines
Quoted 11 lines
Quoted 8 lines
It would be worth looking at the possibility of a delay between "Migration
successful" and the target domain actually running. A 30s delay between
the
guest restarting and it sending the ARP would be pretty strange IMHOThe guest is in a weird state.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
xl list shows the stubdom is in "b" state while guest has no state at all, heh.
Has it actually been started/unpaused then?
Yes, of course -- otherwise the state would have been "p". And I observed the transition from "p" to "weird state".
If weird state is "-----" then I think that is normal, it is "runnable but not running" IIRC.
Ian.
Ian Campbell writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions - FAIL"):
Quoted 5 lines · Wei Liu
Quoted 4 lines
No, vif-bridge script has two runes for off-lining a vif
brctl delif $bridge $vif
ifconfig $vif down
Quoted 7 lines
Quoted 1 line
Neither of these causes cache entry to be flushed.
$vif disappearing when netback finally deletes the device will though. Or it should/used to.
Maybe this is happening after the new guest has started and confusing things somewhere?
There is confusion here. Someone used the phrase `arp cache'. But there are actually two relevant runtime of MAC addresses:
* Each host has a neighbour database mapping IPv4 addresses to MAC addresses. This is used when trying to pass on an IPv4 datagram to a host on the same ethernet (same broadcast domain). This database is normally referred to as an `ARP cache'. Addresses are added to the table by both ARP requests and responses, and also in many implementations entries are refreshed by ordinary traffic.
In the test colo, the osstest VM is on the same (bridged) ethernet as the test box so, the relevant arp cache is the one in the osstest controller's kernel: the osstest controller wants to send an ssh SYN to the guest, and needs to construct an ethernet frame with the guest's MAC address. This is done using the osstest controller's ARP cache entry.
The osstest controller's ARP cache is unaffected by the migration. ARP cache entries do time out but only after a number of minutes, and the guest will have been spoken to recently by the controller. I have no reason to think that lack of an entry for the guest's IPv4 address in the osstest controller's ARP cache is relevant.
* Each bridge has a forwarding database mapping MAC addresses to its outbound links. This is normally referred to as the bridge (switch) learning', and the table as the MAC address table'. MAC addresses are learned when switch sees incoming frames. When the bridge receives a frame for a destination MAC address for which it has no entry, it forwards the frame out of all its ports. Special considerations apply to broadcast and multicast MAC addresses. None of this involves IPv4 or IPv6 addresses.
In the test colo in the migration test case, there are up to four relevant bridges:
* The source test box's dom0's software bridge. This has (logically speaking) three `ports':
- the test box's physical network interface
- the dom0 itself
- the vif corresponding to the outbound guest
- in a single-host test, the vif corresponding to the inbound guest
* The physical switch connecting the test boxes and the VM host (newcastle.test-lab.xenproject.org). This has two or three relevant physical ports, for the two or three relevant physical machines. (In fact there are VLANs involved but this is not relevant.)
* The software bridge in newcastle. This has two relevant ports:
- newcastle's physical interface
- the vif serving the osstest VM
* In a two-machine test, rather than a localhost test, the destination test box's dom0's software bridge, which parallels the source test box's.
When the guest stops running on the source (with its vif torn down), and starts running on the destination:
(a) The source test box software bridge should lose its MAC address table entry for the guest, because the corresponding port (the vif) is removed. However I am not sure whether this actually happens immediately in Linux.
It may be that instead the MAC address table entry for the guest remains present but points to the dead vif. In this case incoming frames from the wire, the for the guest will be dropped.
(b) The destination test box (if different) will come up without a MAC address entry for the guest. If a frame for the guest's MAC address arrives at the physical interface, it will be forwarded to all of the other interfaces enslaved to the
bridge: ie, to the dom0 (which will ignore it because it has the wrong destination MAC address) and to the newly-created guest.
(c) In a two-host test, the physical switch connecting the two test boxes will retain the wrong learnt switch port. It will forward frames for the guest (only) to the source test box, rather than the destination test box, where they will be discarded.
It is (a) and (c) that the gratuitous ARP is supposed to fix.
The guest is supposed to send, when its interface comes up after migration, a single broadcast gratuitous ARP response containing its own IPv4 and MAC addresses.
The IPv4 address in this message is irrelevant.
The purpose is to update the MAC address tables in all the switches in the network. Each switch which receives the gratuitous ARP updates its MAC address table to map the guest's MAC address to the port on which the gratuitous ARP was recevied.
If this happens, then frames from everywhere on the ethernet, to the guest, will be properly delivered. If it doesn't then there may be lost packets and/or low-level timeouts of various kinds.
Ian.
Quoted 34 lines · Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions
- FAIL"):Quoted 5 lines · Wei Liu
Quoted 4 lines
No, vif-bridge script has two runes for off-lining a vif
brctl delif $bridge $vif
ifconfig $vif downQuoted 8 lines
Quoted 1 line
Neither of these causes cache entry to be flushed.
$vif disappearing when netback finally deletes the device will though. Or
it should/used to.Maybe this is happening after the new guest has started and confusing things somewhere?
There is confusion here. Someone used the phrase `arp cache'. But there are actually two relevant runtime of MAC addresses:
* Each host has a neighbour database mapping IPv4 addresses to MAC addresses. This is used when trying to pass on an IPv4 datagram to a host on the same ethernet (same broadcast domain). This database is normally referred to as an `ARP cache'. Addresses are added to the table by both ARP requests and responses, and also in many implementations entries are refreshed by ordinary traffic.
In the test colo, the osstest VM is on the same (bridged) ethernet as the test box so, the relevant arp cache is the one in the osstest controller's kernel: the osstest controller wants to send an ssh SYN to the guest, and needs to construct an ethernet frame with the guest's MAC address. This is done using the osstest controller's ARP cache entry.
Quoted 5 lines
The osstest controller's ARP cache is unaffected by the migration. ARP cache entries do time out but only after a number of minutes, and the guest will have been spoken to recently by the controller. I have no reason to think that lack of an entry for the guest's IPv4 address in the osstest controller's ARP cache is relevant.
I was talking about this kind of ARP cache, but the one in the (single, since it is localhost migrate) dom0. That's because I had misread Wei's earlier script as sshing to the guest from dom0, not from his workstation (the "controller" in his scenario).
Sorry for the confusion.
FWIW I believe the source dom0's ARP entry will be dropped when the VIF device is destroyed.
Quoted 35 lines
* Each bridge has a forwarding database mapping MAC addresses to its outbound links. This is normally referred to as the bridge (switch)
learning', and the table as theMAC address table'. MAC addresses are learned when switch sees incoming frames. When the bridge receives a frame for a destination MAC address for which it has no entry, it forwards the frame out of all its ports. Special considerations apply to broadcast and multicast MAC addresses. None of this involves IPv4 or IPv6 addresses.In the test colo in the migration test case, there are up to four relevant bridges:
* The source test box's dom0's software bridge. This has (logically speaking) three `ports':
- the test box's physical network interface
- the dom0 itself
- the vif corresponding to the outbound guest
- in a single-host test, the vif corresponding to the inbound guest* The physical switch connecting the test boxes and the VM host (newcastle.test-lab.xenproject.org). This has two or three relevant physical ports, for the two or three relevant physical machines. (In fact there are VLANs involved but this is not relevant.)
* The software bridge in newcastle. This has two relevant ports:
- newcastle's physical interface
- the vif serving the osstest VM* In a two-machine test, rather than a localhost test, the destination test box's dom0's software bridge, which parallels the source test box's.
Quoted 7 lines
When the guest stops running on the source (with its vif torn down), and starts running on the destination:
(a) The source test box software bridge should lose its MAC address table entry for the guest, because the corresponding port (the vif) is removed. However I am not sure whether this actually happens immediately in Linux.
For Linux bridging I believe it happens at the latest when the vif device is deleted, or possibly when it is removed from the bridge (i.e. earlier).
IOW I do not believe that Linux bridge remembers old ports.
openvswitch might, I don't recall, but I don't think that is in the picture here.
Quoted 7 lines
It may be that instead the MAC address table entry for the guest remains present but points to the dead vif. In this case incoming frames from the wire, the for the guest will be dropped.
(b) The destination test box (if different) will come up without a MAC address entry for the guest.
Given the above I think even if it is the same as the source box, since it will have been forgotten by the "source" box when the original VIF disappeared.
Quoted 32 lines
If a frame for the guest's
MAC address arrives at the physical interface, it will be forwarded to all of the other interfaces enslaved to the
bridge: ie, to the dom0 (which will ignore it because it has the wrong destination MAC address) and to the newly-created guest.(c) In a two-host test, the physical switch connecting the two test boxes will retain the wrong learnt switch port. It will forward frames for the guest (only) to the source test box, rather than the destination test box, where they will be discarded.
It is (a) and (c) that the gratuitous ARP is supposed to fix.
The guest is supposed to send, when its interface comes up after migration, a single broadcast gratuitous ARP response containing its own IPv4 and MAC addresses.
The IPv4 address in this message is irrelevant.
The purpose is to update the MAC address tables in all the switches in the network. Each switch which receives the gratuitous ARP updates its MAC address table to map the guest's MAC address to the port on which the gratuitous ARP was recevied.
If this happens, then frames from everywhere on the ethernet, to the guest, will be properly delivered. If it doesn't then there may be lost packets and/or low-level timeouts of various kinds.
Ian.
Ian Campbell writes ("Re: [Xen-devel] [linux-4.1 test] 63030: regressions - FAIL"):
Quoted 2 lines
FWIW I believe the source dom0's ARP entry will be dropped when the VIF device is destroyed.
...
Quoted 2 lines
For Linux bridging I believe it happens at the latest when the vif device is deleted, or possibly when it is removed from the bridge (i.e. earlier).
In that case when there is only one physical host, the gratuitous ARP should not matter. Since if a switch sees a frame destined for a MAC address that isn't in its forwarding table, it must forward it to every port.
Ian.
Quoted 2 lines · Wei Liu
But this is only code inspection, so I'm not very confident whether everything does what it says it does.
Right,. I think this one probably needs someone to setup a system in a similar configuration and play with it.
xen-netfront.c calls netdev_notify_peers (née netif_notify_peers). I seem to vaguely recall that setting some sysctl (arp_notify?) can be required to allow that to actually do anything but I think that has been fixed i.e. NETDEV_NOTIFY_PEERS is unconditional in inetdev_event() and only NETDEV_CHANGEADDR is gated.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 7 lines · Ian Campbell
Quoted 2 lines · Wei Liu
But this is only code inspection, so I'm not very confident whether everything does what it says it does.
Right,. I think this one probably needs someone to setup a system in a similar configuration and play with it.
Is there an easy way to do that? Say, give me some runes so that I can lock a machine in Cambridge instance, run the failing test case.
Quoted 6 lines
xen-netfront.ccallsnetdev_notify_peers(néenetif_notify_peers). I seem to vaguely recall that setting some sysctl (arp_notify?) can be required to allow that to actually do anything but I think that has been fixed i.e.NETDEV_NOTIFY_PEERSis unconditional ininetdev_event()and onlyNETDEV_CHANGEADDRis gated.
Found your patch posted in 2011.
https://patchwork.ozlabs.org/patch/82813/
I think you're right and the said behaviour exists in Wheezy's 3.2 kernel.
Wei.
Quoted 1 line
Ian.
Quoted 11 lines · Wei Liu
Quoted 7 lines · Ian Campbell
Quoted 2 lines · Wei Liu
But this is only code inspection, so I'm not very confident whether everything does what it says it does.
Right,. I think this one probably needs someone to setup a system in a similar configuration and play with it.
Is there an easy way to do that? Say, give me some runes so that I can lock a machine in Cambridge instance, run the failing test case.
I could[0] but, why can't you just set things up on your existing test hosts, either using standalone mode or by just installing the guest by hand?
That's what I would do (probably the latter) in the first instance. It's very likely IME that you are going to need to poke at this interactively while debugging and to run repeated migrations etc to trigger the issue. IMHO trying to use osstest for such manual debugging is just going to get in the way.
Quoted 9 lines
Quoted 8 lines
xen-netfront.ccallsnetdev_notify_peers(néenetif_notify_peers). I seem
to vaguely recall that setting some sysctl (arp_notify?) can be required to
allow that to actually do anything but I think that has been fixed i.e.NETDEV_NOTIFY_PEERSis unconditional ininetdev_event()and onlyNETDEV_CHANGEADDRis gated.
Quoted 6 lines
Found your patch posted in 2011.
https://patchwork.ozlabs.org/patch/82813/
I think you're right and the said behaviour exists in Wheezy's 3.2 kernel.
This ended up as d11327ad6695db8117c78d70611e71102ceec2ac and:
$ git describe --contains d11327ad6695db8117c78d70611e71102ceec2ac v2.6.38-rc6~20^2~10
...suggests this was in mainline long before 3.2.
Ian.
[0] ./mg-allocate -U <timespan> <machine-name>
Where timespan is digits followed by d (for days), h (for hours) etc.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 7 lines · Ian Campbell
Quoted 6 lines
Found your patch posted in 2011.
https://patchwork.ozlabs.org/patch/82813/
I think you're right and the said behaviour exists in Wheezy's 3.2 kernel.
Quoted 6 lines
This ended up as
d11327ad6695db8117c78d70611e71102ceec2acand:$ git describe --contains d11327ad6695db8117c78d70611e71102ceec2ac v2.6.38-rc6~20^2~10...suggests this was in mainline long before 3.2.
And I have now confirmed that the kernel in the debian-7.2.0 iso we are using in testing today has this change in it.
Ian.
Quoted 17 lines · Ian Campbell
Quoted 11 lines · Wei Liu
Quoted 7 lines · Ian Campbell
Quoted 2 lines · Wei Liu
But this is only code inspection, so I'm not very confident whether everything does what it says it does.
Right,. I think this one probably needs someone to setup a system in a similar configuration and play with it.
Is there an easy way to do that? Say, give me some runes so that I can lock a machine in Cambridge instance, run the failing test case.
I could[0] but, why can't you just set things up on your existing test hosts, either using standalone mode or by just installing the guest by hand?
Quoted 6 lines
That's what I would do (probably the latter) in the first instance. It's very likely IME that you are going to need to poke at this interactively while debugging and to run repeated migrations etc to trigger the issue. IMHO trying to use osstest for such manual debugging is just going to get in the way.
I could do all these manually, but not without paying much attention:
allocating a new test box (all my test boxes are in use at the moment), run standalone mode, use standalone mode to install the test box, grab various tarballs from osstest website if I don't want to build them again, put them in suitable location and use standalone script to fiddle with standalone mode database, manually install a guest etc etc, let alone the bug we're hunting might not be reproducible on the new test box due to different hardware and external environment (as we've already witnessed in production osstest system), then I'm left in dilemma wondering whether I should repeat all these things (well, part of) again or just give up.
This looks like a list of endless tedious tasks and it could go wrong many places in between. If I can get OSSTest to lock a box and run up to the point that it reproduces the issue that would be of great help.
Furthermore, I can write down all the runes I use so that other people can do the same to reproduce bugs discovered in osstest. That would certainly help lower the barrier for people who want to help triaging bugs.
Wei.
Quoted 27 lines
Quoted 9 lines
Quoted 8 lines
xen-netfront.ccallsnetdev_notify_peers(néenetif_notify_peers). I seem
to vaguely recall that setting some sysctl (arp_notify?) can be required to
allow that to actually do anything but I think that has been fixed i.e.NETDEV_NOTIFY_PEERSis unconditional ininetdev_event()and onlyNETDEV_CHANGEADDRis gated.Quoted 6 lines
Found your patch posted in 2011.
https://patchwork.ozlabs.org/patch/82813/
I think you're right and the said behaviour exists in Wheezy's 3.2 kernel.
This ended up as
d11327ad6695db8117c78d70611e71102ceec2acand:$ git describe --contains d11327ad6695db8117c78d70611e71102ceec2ac v2.6.38-rc6~20^2~10...suggests this was in mainline long before 3.2.
Ian.
[0] ./mg-allocate -U <timespan> <machine-name>
Where timespan is digits followed by d (for days), h (for hours) etc.
Quoted 37 lines · Wei Liu
Quoted 17 lines · Ian Campbell
Quoted 11 lines · Wei Liu
Quoted 7 lines · Ian Campbell
Quoted 2 lines · Wei Liu
But this is only code inspection, so I'm not very confident whether everything does what it says it does.
Right,. I think this one probably needs someone to setup a system in a similar configuration and play with it.
Is there an easy way to do that? Say, give me some runes so that I can lock a machine in Cambridge instance, run the failing test case.
I could[0] but, why can't you just set things up on your existing test hosts, either using standalone mode or by just installing the guest by hand?
Quoted 6 lines
That's what I would do (probably the latter) in the first instance. It's very likely IME that you are going to need to poke at this interactively while debugging and to run repeated migrations etc to trigger the issue. IMHO trying to use osstest for such manual debugging is just going to get in the way.
I could do all these manually, but not without paying much attention:
allocating a new test box (all my test boxes are in use at the moment), run standalone mode, use standalone mode to install the test box, grab various tarballs from osstest website if I don't want to build them again, put them in suitable location and use standalone script to fiddle with standalone mode database, manually install a guest etc etc, let alone the bug we're hunting might not be reproducible on the new test box due to different hardware and external environment (as we've already witnessed in production osstest system), then I'm left in dilemma wondering whether I should repeat all these things (well, part of) again or just give up.
Quoted 3 lines
This looks like a list of endless tedious tasks and it could go wrong many places in between. If I can get OSSTest to lock a box and run up to the point that it reproduces the issue that would be of great help.
This seems to me to be making a mountain out of a mole hill, installing a Xen host should be bread and butter for most of us.
However, since you insist, I recently added some explanation in README of how to make an adhoc job including cloning a previous flight and forcing it to run on a given machine (useful if you think it might be machine specific).
There is no mechanical way to then lock a host on failure. What I usually do is run the mg-allocate run I mentioned in my previous mail after the test case has already started. Since mg-allocate has a higher priority than regular jobs, but with -U waits for the current job to finish, you are basically guaranteed that your mg-allocate will get the host next.
Quoted 4 lines
Furthermore, I can write down all the runes I use so that other people can do the same to reproduce bugs discovered in osstest. That would certainly help lower the barrier for people who want to help triaging bugs.
This sort of thing is of no help with triage. It might be useful for debugging and reproducing an issue, but triage does not involve doing such things, it is the step before.
I'm being pedantic here because I don't think it is helpful to overstate what triage involves, since that will put people off doing useful triage activities.
Ian.
Quoted 50 lines · Ian Campbell
Quoted 37 lines · Wei Liu
Quoted 17 lines · Ian Campbell
Quoted 11 lines · Wei Liu
Quoted 7 lines · Ian Campbell
Quoted 2 lines · Wei Liu
But this is only code inspection, so I'm not very confident whether everything does what it says it does.
Right,. I think this one probably needs someone to setup a system in a similar configuration and play with it.
Is there an easy way to do that? Say, give me some runes so that I can lock a machine in Cambridge instance, run the failing test case.
I could[0] but, why can't you just set things up on your existing test hosts, either using standalone mode or by just installing the guest by hand?
Quoted 6 lines
That's what I would do (probably the latter) in the first instance. It's very likely IME that you are going to need to poke at this interactively while debugging and to run repeated migrations etc to trigger the issue. IMHO trying to use osstest for such manual debugging is just going to get in the way.
I could do all these manually, but not without paying much attention:
allocating a new test box (all my test boxes are in use at the moment), run standalone mode, use standalone mode to install the test box, grab various tarballs from osstest website if I don't want to build them again, put them in suitable location and use standalone script to fiddle with standalone mode database, manually install a guest etc etc, let alone the bug we're hunting might not be reproducible on the new test box due to different hardware and external environment (as we've already witnessed in production osstest system), then I'm left in dilemma wondering whether I should repeat all these things (well, part of) again or just give up.Quoted 3 lines
This looks like a list of endless tedious tasks and it could go wrong many places in between. If I can get OSSTest to lock a box and run up to the point that it reproduces the issue that would be of great help.
This seems to me to be making a mountain out of a mole hill, installing a Xen host should be bread and butter for most of us.
However, since you insist, I recently added some explanation in README of how to make an adhoc job including cloning a previous flight and forcing it to run on a given machine (useful if you think it might be machine specific).
Quoted 6 lines
There is no mechanical way to then lock a host on failure. What I usually do is run the mg-allocate run I mentioned in my previous mail after the test case has already started. Since mg-allocate has a higher priority than regular jobs, but with -U waits for the current job to finish, you are basically guaranteed that your mg-allocate will get the host next.
Thanks. I will have a look at Osstest README to determine which way to proceed is better.
Quoted 5 lines
Quoted 4 lines
Furthermore, I can write down all the runes I use so that other people can do the same to reproduce bugs discovered in osstest. That would certainly help lower the barrier for people who want to help triaging bugs.
Quoted 8 lines
This sort of thing is of no help with triage. It might be useful for debugging and reproducing an issue, but triage does not involve doing such things, it is the step before.
I'm being pedantic here because I don't think it is helpful to overstate what triage involves, since that will put people off doing useful triage activities.
Right, I actually meant bug fixing.
Wei.
Quoted 1 line
Ian.