Bug 1914303
| Summary: | linuxptp-daemon is not forwarding ptp4l stderr output to openshift logs | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Philippe HUET <phuet> |
| Component: | Networking | Assignee: | Sebastian Scheinkman <sscheink> |
| Networking sub component: | ptp | QA Contact: | huirwang |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | zzhao |
| Version: | 4.6 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.7.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-02-24 15:51:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Philippe HUET
2021-01-08 15:02:37 UTC
Hi Philippe, thanks for the report! is it possible to request a ptpConfig resource so I can test it? Thanks! Sebastian Hi Sebastien,
I have no ptp capable devices accessible right now. But what you could try using something like:
oc create -f- <<_EOF_
apiVersion: ptp.openshift.io/v1
kind: PtpConfig
metadata:
name: slave
namespace: openshift-ptp
spec:
profile:
- name: "slave"
interface: "eth1"
ptp4lOpts: "-2 -s -S"
phc2sysOpts: "-a -r -n 24"
ptp4lConf: |
[global]
#
# Default Data Set
#
slaveOnly 1
priority1 128
domainNumber 24
boundary_clock_jbod 1
logAnnounceInterval -3
delay_mechanism E2E
network_transport L2
tx_timestamp_timeout 20
dataset_comparison G.8275.x
time_stamping hardware
clockClass 255
logSyncInterval -4
logMinDelayReqInterval -4
summary_interval 6
priority2 128
clock_servo linreg
logging_level 6
recommend:
- profile: "slave"
priority: 1
match:
- nodeLabel: "node-role.kubernetes.io/worker"
_EOF_
If you restart the pod on worker nodes, you should have something like:
```
I0111 16:51:42.642015 4165308 daemon.go:210] Starting ptp4l...
I0111 16:51:42.642077 4165308 daemon.go:211] ptp4l cmd: /usr/sbin/ptp4l -f /ptp4l-conf/slave.conf -i eth1 -2 -s -S -m --summary_interval 1
phc2sys[457366.272]: Waiting for ptp4l...
E0111 16:51:42.671987 4165308 daemon.go:245] cmdRun() error waiting for ptp4l: exit status 255
phc2sys[457367.274]: Waiting for ptp4l...
phc2sys[457368.275]: Waiting for ptp4l...
phc2sys[457369.278]: Waiting for ptp4l...
phc2sys[457370.279]: Waiting for ptp4l...
```
But you don't get the real error output of ptp4l which is:
```
oc exec -c linuxptp-daemon-container linuxptp-daemon-vn6ld -- /usr/sbin/ptp4l -f /ptp4l-conf/slave.conf -i eth1 -2 -s -S -m --summary_interval 1
ptp4l[458329.321]: ioctl SIOCETHTOOL failed: No such device
ptp4l[458329.325]: ioctl SIOCGIFHWADDR failed: No such device
ptp4l[458329.325]: failed to generate a clock identity
failed to create a clock
command terminated with exit code 255
```
Most of the error messages produced by ptp4l are written on stderr and not stdout and linuxptp-daemon is only relaying stdout from ptp4l to container stdout.
Philippe
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5633 |