Bug 1768328 - Some parameters in PTP operator log cannot display correctly.
Summary: Some parameters in PTP operator log cannot display correctly.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.3.0
Assignee: zenghui.shi
QA Contact: huirwang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-04 05:34 UTC by huirwang
Modified: 2020-01-23 11:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 11:10:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ptp-operator pull 15 0 'None' 'closed' 'BUG 1768328: print profile value instead of pointer' 2019-11-20 11:24:25 UTC
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:10:40 UTC

Description huirwang 2019-11-04 05:34:07 UTC
Version:
4.3.0-0.nightly-2019-10-29-140935

How to Reproduce:
1. Depoly PTP operator following the guide 
https://github.com/openshift/ptp-operator

2. Deploy a ptp config file:
oc create -f  tmp/ptpconfig2.yaml

apiVersion: ptp.openshift.io/v1
kind: PtpConfig
metadata:
  name: example-ptpconfig2
  namespace: openshift-ptp
spec:
  profile:
  - name: "profile2"
    interface: "enp134s0f0"
    ptp4lOpts: "-s -2"
    phc2sysOpts: "-a -r"
  recommend:
  - profile: "profile2"
    priority: 1
    match:
    - nodeLabel: "node-role.kubernetes.io/worker="


3. After deployed, check the operator logs

Actual Result:
The name, interface,Ptp4lOpts,Phc2sysOpts parameter is not correct display.
I1031 09:59:54.496847       1 recommend.go:44] recommended ptp profile name: profile2 for node: huirwa-7xwkm-w-a-6g8td.c.openshift-qe.internal
I1031 09:59:54.496853       1 recommend.go:30] ptp profile to be updated: &{Name:0xc000d486c0 Interface:0xc000d486d0 Ptp4lOpts:0xc000d486e0 Phc2sysOpts:0xc000d486f0 Ptp4lConf:<nil>} for node: huirwa-7xwkm-w-a-6g8td.c.openshift-qe.internal

Expected Result:
Should display the correct text.

Comment 5 errata-xmlrpc 2020-01-23 11:10:26 UTC
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, 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/RHBA-2020:0062


Note You need to log in before you can comment on or make changes to this bug.