Firewall rules missing UDP port 319 for PTP

Bug #2039177 reported by Andre Kantek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Andre Kantek

Bug Description

Brief Description

PTP needs UDP ports 319 and 320 to be opened by the firewall. Currently only 320 is being opened.

This is due to a copy/paste error in code:

in sysinv/sysinv/sysinv/sysinv/common/platform_firewall.py
    "udp":
        {
            constants.PLATFORM_FIREWALL_SM_PORT_1,
            constants.PLATFORM_FIREWALL_SM_PORT_2,
            constants.PLATFORM_FIREWALL_NTP_PORT,
            constants.PLATFORM_FIREWALL_PTP_PORT,
            constants.PLATFORM_FIREWALL_PTP_PORT,
        }

in sysinv/sysinv/sysinv/sysinv/common/constants.py
PLATFORM_FIREWALL_PTP_PORT = 319
PLATFORM_FIREWALL_PTP_PORT = 320
Severity

Critical

Steps to Reproduce

After installation check OAM firewall rules with:
kubectl get globalnetworkpolicies.crd.projectcalico.org controller-oam-if-gnp -o yaml

Expected Behavior

action: Allow
destination:
ports:
123
- 319
- 320
2222
2223
ipVersion: 4
metadata:
annotations:
name: stx-ingr-controller-oam-udp4
protocol: UDP

Actual Behavior

action: Allow
destination:
ports:
123
- 320
2222
2223
ipVersion: 4
metadata:
annotations:
name: stx-ingr-controller-oam-udp4
protocol: UDP
Reproducibility

Reproducible

System Configuration

Any

Timestamp/Logs

See above.

Alarms

NA

Test Activity

NA

Workaround

Add missing 319 UDP port using:
kubectl edit globalnetworkpolicies.crd.projectcalico.org controller-oam-if-gnp

Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
tags: added: stx.9.0 stx.networking
Changed in starlingx:
assignee: nobody → Andre Kantek (akantek)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/898115
Committed: https://opendev.org/starlingx/config/commit/064e504a05d3e7d8d85ca96e79a0b8c905337cf6
Submitter: "Zuul (22348)"
Branch: master

commit 064e504a05d3e7d8d85ca96e79a0b8c905337cf6
Author: Andre Kantek <email address hidden>
Date: Thu Oct 12 09:44:42 2023 -0300

    Correct typo for PTP's UDP ports in the OAM firewall

    The OAM firewall is not adding UDP port 319 due to a typo. This change
    corrects that.

    Test Plan
    [PASS] validate the the OAM firewall contain ports 319 and 320 in
            the UDP ingress rule.

    Closes-Bug: 2039177

    Change-Id: I9b7be222562708685a32dc04cf2fc5a35c8e1c1f
    Signed-off-by: Andre Kantek <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.