From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Thomas Huth <thuth@redhat.com>
Cc: Peter Xu <peterx@redhat.com>,
qemu-devel@nongnu.org,
Leonardo Bras Soares Passos <lsoaresp@redhat.com>,
"Dr . David Alan Gilbert" <dgilbert@redhat.com>,
Juan Quintela <quintela@redhat.com>
Subject: Re: [PATCH] tests: migration-test: Allow test to run without uffd
Date: Wed, 20 Jul 2022 15:32:20 +0100 [thread overview]
Message-ID: <YtgR9LL2znac2dsQ@redhat.com> (raw)
In-Reply-To: <9240083d-ef58-466a-14c1-1c858f67e1d4@redhat.com>
On Wed, Jul 20, 2022 at 04:11:43PM +0200, Thomas Huth wrote:
> On 19/07/2022 12.37, Daniel P. Berrangé wrote:
> > On Tue, Jul 19, 2022 at 12:28:24PM +0200, Thomas Huth wrote:
> > > On 18/07/2022 21.14, Peter Xu wrote:
> > > > Hi, Thomas,
> > > >
> > > > On Mon, Jul 18, 2022 at 08:23:26PM +0200, Thomas Huth wrote:
> > > > > On 07/07/2022 20.46, Peter Xu wrote:
> > > > > > We used to stop running all tests if uffd is not detected. However
> > > > > > logically that's only needed for postcopy not the rest of tests.
> > > > > >
> > > > > > Keep running the rest when still possible.
> > > > > >
> > > > > > Signed-off-by: Peter Xu <peterx@redhat.com>
> > > > > > ---
> > > > > > tests/qtest/migration-test.c | 11 +++++------
> > > > > > 1 file changed, 5 insertions(+), 6 deletions(-)
> > > > >
> > > > > Did you test your patch in the gitlab-CI? I just added it to my testing-next
> > > > > branch and the the test is failing reproducibly on macOS here:
> > > > >
> > > > > https://gitlab.com/thuth/qemu/-/jobs/2736260861#L6275
> > > > > https://gitlab.com/thuth/qemu/-/jobs/2736623914#L6275
> > > > >
> > > > > (without your patch the whole test is skipped instead)
> > > >
> > > > Thanks for reporting this.
> > > >
> > > > Is it easy to figure out which test was failing on your side? I cannot
> > > > easily reproduce this here on a MacOS with M1.
> > >
> > > I've modified the yml file to only run the migration test in verbose mode
> > > and got this:
> > >
> > > ...
> > > ok 5 /x86_64/migration/validate_uuid_src_not_set
> > > # starting QEMU: exec ./qemu-system-x86_64 -qtest unix:/tmp/qtest-58011.sock
> > > -qtest-log /dev/null -chardev socket,path=/tmp/qtest-58011.qmp,id=char0 -mon
> > > chardev=char0,mode=control -display none -accel kvm -accel tcg -name
> > > source,debug-threads=on -m 150M -serial
> > > file:/tmp/migration-test-ef2fMr/src_serial -drive
> > > file=/tmp/migration-test-ef2fMr/bootsect,format=raw -uuid
> > > 11111111-1111-1111-1111-111111111111 2>/dev/null -accel qtest
> > > # starting QEMU: exec ./qemu-system-x86_64 -qtest unix:/tmp/qtest-58011.sock
> > > -qtest-log /dev/null -chardev socket,path=/tmp/qtest-58011.qmp,id=char0 -mon
> > > chardev=char0,mode=control -display none -accel kvm -accel tcg -name
> > > target,debug-threads=on -m 150M -serial
> > > file:/tmp/migration-test-ef2fMr/dest_serial -incoming
> > > unix:/tmp/migration-test-ef2fMr/migsocket -drive
> > > file=/tmp/migration-test-ef2fMr/bootsect,format=raw 2>/dev/null -accel
> > > qtest
> > > ok 6 /x86_64/migration/validate_uuid_dst_not_set
> > > # starting QEMU: exec ./qemu-system-x86_64 -qtest unix:/tmp/qtest-58011.sock
> > > -qtest-log /dev/null -chardev socket,path=/tmp/qtest-58011.qmp,id=char0 -mon
> > > chardev=char0,mode=control -display none -accel kvm -accel tcg -name
> > > source,debug-threads=on -m 150M -serial
> > > file:/tmp/migration-test-ef2fMr/src_serial -drive
> > > file=/tmp/migration-test-ef2fMr/bootsect,format=raw -accel qtest
> > > # starting QEMU: exec ./qemu-system-x86_64 -qtest unix:/tmp/qtest-58011.sock
> > > -qtest-log /dev/null -chardev socket,path=/tmp/qtest-58011.qmp,id=char0 -mon
> > > chardev=char0,mode=control -display none -accel kvm -accel tcg -name
> > > target,debug-threads=on -m 150M -serial
> > > file:/tmp/migration-test-ef2fMr/dest_serial -incoming
> > > unix:/tmp/migration-test-ef2fMr/migsocket -drive
> > > file=/tmp/migration-test-ef2fMr/bootsect,format=raw -accel qtest
> > > **
> > > ERROR:../tests/qtest/migration-helpers.c:181:wait_for_migration_status:
> > > assertion failed: (g_test_timer_elapsed() < MIGRATION_STATUS_WAIT_TIMEOUT)
> > > Bail out!
> > > ERROR:../tests/qtest/migration-helpers.c:181:wait_for_migration_status:
> > > assertion failed: (g_test_timer_elapsed() < MIGRATION_STATUS_WAIT_TIMEOUT)
> >
> > This is the safety net we put it to catch case where the test has
> > got stuck. It is set at 2 minutes.
> >
> > There's a chance that is too short, so one first step might be to
> > increase to 10 minutes and see if the tests pass. If it still fails,
> > then its likely a genuine bug
>
> I tried to increase it to 5 minutes first, but that did not help. In a
> second try, I increased it to 10 minutes, and then the test was passing,
> indeed:
>
> https://cirrus-ci.com/task/5819072351830016?logs=build#L7208
>
> Could it maybe be accelerated, e.g. by tweaking the downtime limit again?
Oh when I tweaked convergance tunables i missed the auto-converge
case as its code looks a bit different.
Possibly change test_migrate_auto_converge
/* Now, when we tested that throttling works, let it converge */
migrate_set_parameter_int(from, "downtime-limit", downtime_limit);
migrate_set_parameter_int(from, "max-bandwidth", max_bandwidth);
to
migrate_ensure_converge(from);
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2022-07-20 14:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-07 18:46 [PATCH] tests: migration-test: Allow test to run without uffd Peter Xu
2022-07-08 9:57 ` Daniel P. Berrangé
2022-07-18 18:23 ` Thomas Huth
2022-07-18 19:14 ` Peter Xu
2022-07-19 8:32 ` Daniel P. Berrangé
2022-07-19 10:28 ` Thomas Huth
2022-07-19 10:37 ` Daniel P. Berrangé
2022-07-19 19:53 ` Peter Xu
2022-07-20 10:52 ` Thomas Huth
2022-07-20 12:55 ` Peter Xu
2022-07-20 14:11 ` Thomas Huth
2022-07-20 14:32 ` Daniel P. Berrangé [this message]
2022-07-21 18:24 ` Peter Xu
2022-07-22 8:14 ` Thomas Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YtgR9LL2znac2dsQ@redhat.com \
--to=berrange@redhat.com \
--cc=dgilbert@redhat.com \
--cc=lsoaresp@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).