Node with a Vlan type PTP interface is not syncing with the GM.

Bug #1989797 reported by Caio Bruchert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Caio Bruchert

Bug Description

Brief Description

VLAN type ptp slave port configured on a pci-sriov interface. The system comes fine from locked/unlocked. Ptp process auto starts but the node never syncs with the Boundry clock.

Severity

Standard.

Steps to Reproduce

Steps to reproduce:

Customer configures ptp=slave role on a VLAN type interface.
Node comes up after lock/unlock
No alarms except ptp not locked to GM
ptp4l and phc2sys process running fine
user.log sitting on "master clock not ready.. waiting"

The user does the following steps to sync the node:

1) Kill ptp4l & phc2sys process
2) Run below 2 commands:

sudo ptp4l -i vlan192 -f /etc/ptp4l.conf

sudo phc2sys -u 10 -s vlan192 -w -m -n 24 | awk '{ print strftime("%c: "), $0; fflush(); }'
The node will start syncing with the GM.

Expected Behavior

The node should sync with PTP GM through a vlan type PTP=slave interface.

Reproducibility

Seen in the overall customer environment.

System Configuration

Standalone AIO-SX

Timestamp/Logs

Alarms

Workaround

User has to first kill ptp process (ptp4l and phc2sys) and issue a manual ptp4l command with the vlan interface specified followed by starting phc2sys to sync the node with BC.

Caio Bruchert (cbrucher)
Changed in starlingx:
assignee: nobody → Caio Bruchert (cbrucher)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/config/+/857946

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

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

commit da96f7e2ccbf0c801ec61a3d7695e5baad13a8da
Author: Caio Bruchert <email address hidden>
Date: Thu Sep 15 14:39:30 2022 -0400

    PTP: fix VLAN interface not working

    ptp4l configuration needs the correct VLAN interface name for the
    port section.

    For example: if the VLAN interface creates the Linux interface named
    'vlan100@enp0s8', the port section must be 'vlan100' and not 'enp0s8'
    nor 'vlan100@enp0s8'.

    Test Plan:
    PASS: Assign VLAN interface to PTP instance
    PASS: Assign bond interface to PTP instance
    PASS: Assign eth interface to PTP instance

    Closes-Bug: 1989797

    Signed-off-by: Caio Bruchert <email address hidden>
    Change-Id: I953fee83151bc1546786e495514c9352c8ccfc0a

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.8.0 stx.networking
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.