* [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line
@ 2026-11-23 4:34 Eva Kurchatova
2026-11-23 4:39 ` no-reply
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Eva Kurchatova @ 2026-11-23 4:34 UTC (permalink / raw)
To: khorenko, vladimir.riabchun; +Cc: devel
openvswitch.sh waits for "listening on upcall packet handler" in the
output file of the ovs-dpctl.py upcall listener, but the line stays in
the stdout buffer until a MISS upcall, printed with flush=True, flushes
it. test_tunnel_metadata thus fails its 5 second wait unless some other
packet reaches the listener first.
Flush the line when it is printed.
Fixes: 30d772a03582 ("selftests: openvswitch: add psample test")
https://virtuozzo.atlassian.net/browse/VSTOR-156360
Feature: fix selftests
Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
tools/testing/selftests/net/openvswitch/ovs-dpctl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
index ec59af9dcc32..c36df6d971ee 100644
--- a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
+++ b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
@@ -1863,7 +1863,7 @@ class OvsPacket(GenericNetlinkSocket):
self.bind(OVS_PACKET_FAMILY, OvsPacket.ovs_packet_msg)
def upcall_handler(self, up=None):
- print("listening on upcall packet handler:", self.epid)
+ print("listening on upcall packet handler:", self.epid, flush=True)
while True:
try:
msgs = self.get()
--
2.56.1
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line
2026-11-23 4:34 [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line Eva Kurchatova
@ 2026-11-23 4:39 ` no-reply
2026-11-30 15:59 ` Konstantin Khorenko
2026-11-30 15:59 ` Konstantin Khorenko
2 siblings, 0 replies; 4+ messages in thread
From: no-reply @ 2026-11-23 4:39 UTC (permalink / raw)
To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests: openvswitch: Fixes tag cites wrong commit for
unflushed print
--
commit 411f457bcae02af568f7387155563ab92377e39b
Author: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
> selftests: openvswitch: flush the upcall listener's first line
>
> openvswitch.sh waits for "listening on upcall packet handler" in the
> output file of the ovs-dpctl.py upcall listener, but the line stays in
> the stdout buffer until a MISS upcall, printed with flush=True, flushes
> it. test_tunnel_metadata thus fails its 5 second wait unless some other
> packet reaches the listener first.
>
> Flush the line when it is printed.
>
> Fixes: 30d772a03582 ("selftests: openvswitch: add psample test")
>
> https://virtuozzo.atlassian.net/browse/VSTOR-156360
> Feature: fix selftests
>
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
[Severity: Low]
Does the Fixes: tag name the right commit? 30d772a03582 ("selftests: openvswitch: add psample test") did not touch this print. The unflushed print of "listening on upcall packet handler:" was added by 9feac87b673c ("selftests: openvswitch: add support for upcall testing"). Should the tag point at that commit instead?
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261123043443.1686524-1-eva.kurchatova@virtuozzo.com?part=1
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line
2026-11-23 4:34 [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line Eva Kurchatova
2026-11-23 4:39 ` no-reply
@ 2026-11-30 15:59 ` Konstantin Khorenko
2026-11-30 15:59 ` Konstantin Khorenko
2 siblings, 0 replies; 4+ messages in thread
From: Konstantin Khorenko @ 2026-11-30 15:59 UTC (permalink / raw)
To: Eva Kurchatova; +Cc: devel
Applying with this fix on my side:
- the message says what 30d772a03582 broke: test_psample reads the
netlink pid from the same line without waiting.
The tag naming 30d772a03582 is right, not 9feac87b673c as Sashiko
suggested: 9feac87b673c added the print, but no test read the line
until 30d772a03582 made test_psample grep the pid from it. The message
only named test_tunnel_metadata, which came later, so the tag looked
unrelated.
On Mon, 23 Nov 2026 06:34:42 +0200, Eva Kurchatova wrote:
> it. test_tunnel_metadata thus fails its 5 second wait unless some other
> packet reaches the listener first.
Added: "test_psample reads the netlink pid from the same line without
waiting and gets an empty one the same way." With an empty pid the
flow becomes userspace(pid=,...), add-flow fails on int(""), and the
ping of test_psample fails. Please keep the sentence in the upstream
submission (VSTOR-156594).
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line
2026-11-23 4:34 [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line Eva Kurchatova
2026-11-23 4:39 ` no-reply
2026-11-30 15:59 ` Konstantin Khorenko
@ 2026-11-30 15:59 ` Konstantin Khorenko
2 siblings, 0 replies; 4+ messages in thread
From: Konstantin Khorenko @ 2026-11-30 15:59 UTC (permalink / raw)
To: vladimir.riabchun, Eva Kurchatova; +Cc: devel
On Mon, 23 Nov 2026 06:34:42 +0200, Eva Kurchatova wrote:
> selftests: openvswitch: flush the upcall listener's first line
Applied to branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz, will be released in rh10-6.12.0-211.75.1.26.6.vz10, thanks!
[1/1] selftests: openvswitch: flush the upcall listener's first line
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/a63fea978f0d
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-30 16:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 4:34 [Devel] [PATCH hci-8.2] selftests: openvswitch: flush the upcall listener's first line Eva Kurchatova
2026-11-23 4:39 ` no-reply
2026-11-30 15:59 ` Konstantin Khorenko
2026-11-30 15:59 ` Konstantin Khorenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.