[ovs-git] [ovn-org/ovn] ba0874: ovn-trace: fix trigger_event warning.

Lorenzo Bianconi noreply at github.com
Fri Jan 8 12:40:37 UTC 2021


  Branch: refs/heads/branch-20.12
  Home:   https://github.com/ovn-org/ovn
  Commit: ba0874b4f1efdf5ea47c134e2df2aacedead7937
      https://github.com/ovn-org/ovn/commit/ba0874b4f1efdf5ea47c134e2df2aacedead7937
  Author: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
  Date:   2021-01-08 (Fri, 08 Jan 2021)

  Changed paths:
    M tests/ovn.at
    M utilities/ovn-trace.c

  Log Message:
  -----------
  ovn-trace: fix trigger_event warning.

Fix the following ovn-trace warning triggered by controller_event:

00001|ovntrace|WARN|trigger_event(event = "empty_lb_backends", meter = "",
				  vip = "192.168.0.100:80", protocol = "tcp",
				  load_balancer = "2c5462a7-b6ca-4b02-86c9-b9aa98a570e8");
parsing actions failed (Syntax error a t `vip' expecting empty_lb_backends option name.)

The issue can be triggered running the following reproducer in ovn-sanbox:

$./ovn-setup.sh
$ovn-nbctl lb-add lb0 192.168.0.100:80 ""
$ovn-nbctl ls-lb-add sw0 lb0
$ovn-nbctl --wait=hv set NB_Global . options:controller_event=true
$ovn-trace sw0 'inport == "sw0-port1" && eth.src == 50:54:00:00:00:01 && ip4.src==192.168.0.2 && eth.dst == 00:00:00:00:ff:01 && ip4.dst==192.168.0.100 && tcp && tcp.dst==80'

Acked-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

(cherry-picked from master commit f35e33228f6fec97bbecc1f01e28e366d826b585)




More information about the git mailing list