Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-12855

BZ#2216021 [OVN] Security group logging using option "--target" for port isn't working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • openstack-neutron
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Set
    • Not Set
    • Not Set
    • None

      Description of problem:
      According to command help [1], option "--target" when creating security group log should work to narrow down logging action for specific port.

      I manually tested the following scenario using CLI:
      2 VMs using same SG allowing ICMP, on same compute, same network, made log object with target port of second VM, pinged both using FIPs, got all traffic to both VMs logged
      (test failure).

      [1]
      """
      $ openstack network log create --help
      usage: openstack network log create ...

      Create a new network log

      positional arguments:
      <name> Name for the network log

      optional arguments:
      ...
      --resource <resource>
      Name or ID of resource (security group or firewall
      group) that used for logging. You can control for
      logging target combination with --target option.
      --target <target> Port (name or ID) for logging. You can control for
      logging target combination with --resource option.
      ...
      """

      Version-Release number of selected component (if applicable):
      RHOS-17.1-RHEL-9-20230607.n.2

      How reproducible:
      100% so far

      Steps to Reproduce:
      1. recreate same resources of scenario
      2. ping both VMs
      3. notice common log file on same hypervisor compute

      Actual results:
      got all traffic to both VMs logged

      Expected results:
      get only traffic to second VM logged (targeted port)

      Additional info:
      I got a devnest with reproducer in case further checks needed.
      please contact before use to avoid collisions.
      tmux session on BM host (special key -> ctrl+x)
      root@shark6.mobius.lab.eng.rdu2.redhat.com

              egarciar@redhat.com Elvira Garcia
              jira-bugzilla-migration RH Bugzilla Integration
              Maor Blaustein Maor Blaustein
              rhos-dfg-networking-squad-neutron
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: