PTP configuration change for interface ptp_role doesn't take effect after unlock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
David Sullivan |
Bug Description
Brief Description
-----------------
After the configuration change on interface ptp_role from none to slave doesn’t take place immediately in the node after unlock. The file change on /etc/ptp4l.conf was happened after the process ptp4l was up. Due to this PTP slave clock is not getting locked to master clock . This issue was found when changing the configuration from management as slave and mechanishm e2e to ptp interface as slave and mechanishm p2p.
As a workaround another lock and unlock on the host was able to resolve this issue.
compute-
-rw-r--r-- 1 root root 2144 Jan 31 20:57 /etc/ptp4l.conf
compute-
root 2550 1 0 20:56 ? 00:00:00 /usr/sbin/ptp4l -f /etc/ptp4l.conf
100.119 | compute-0 is not locked to remote PTP Grand Master | host=compute-
compute-0:~$ date
Fri Jan 31 19:12:24 UTC 2020
compute-0:~$ sudo /usr/sbin/pmc -u -b 0 'GET TIME_STATUS_NP'
Password:
sending: GET TIME_STATUS_NP
Severity
--------
Major
Steps to Reproduce
------------------
1. Pre setup as PTP slave as management and mechanism=e2e
2. lock the node to change PTP management to PTP slave and PTP interface as slave.
System host-lock compute-0
3. system host-if-modify compute-0 ptp0 --ptp-role slave
4. system host-if-modify compute-0 mgmt0 --ptp-role none
5. system host-unlock compute-0
6. Verify file change and process time. Verify master clock locked to slave.
System Configuration
-------
Regular system wcp-71-75
Expected Behavior
------------------
PTP configuration take effect after unlock
Actual Behavior
----------------
As per description failure
Reproducibility
---------------
reproduced re-execution application apply was unsuccessful.
Load
----
stx3.0 designer load as of " 2020-01-
Last Pass
---------
This was not tested. Since the lab(switch) was supporting either management as slave or only
ptp interface is slave configuration. So only one configuration was tested per lab.
Timestamp/Logs
--------------
Test Activity
-------------
Regression test
summary: |
- PTP configraution change for interface ptp_role doesn't take effect + PTP configuration change for interface ptp_role doesn't take effect after unlock |
description: | updated |
tags: | added: stx.retestneeded |
Changed in starlingx: | |
assignee: | nobody → David Sullivan (dsullivanwr) |
stx.4.0 / medium priority - ptp started with the incorrect config and requires an extra lock/unlock cycle. Medium priority as there is a workaround, but should be fixed.