Bug 2013690

Summary: Nil pointer exception when phc2sys options are missing
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: NetworkingAssignee: Sebastian Scheinkman <sscheink>
Networking sub component: ptp QA Contact: or marziano <omarzian>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: aputtur
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.z   
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-11-10 21:02:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2013273    
Bug Blocks:    

Description OpenShift BugZilla Robot 2021-10-13 14:21:17 UTC
+++ This bug was initially created as a clone of Bug #2013273 +++

Description of problem:

ptp config without phc2sys options  attribute will thrown nil pointer exception 

Version-Release number of selected component (if applicable):openshift 4.9


How reproducible:
Apply ptp config without phc2sysOpts

###
apiVersion: ptp.openshift.io/v1
kind: PtpConfig
metadata:
  name: ptp-config-bm-worker
  namespace: openshift-ptp 
spec:
  profile: 
  - name: "profile1" 
    ptp4lOpts: "-2  --summary_interval -4" 
    ptp4lConf: |
      [ens5f1]
      masterOnly 0
###

Comment 1 or marziano 2021-10-28 07:17:07 UTC
Verified on ptp-operator version 4.9.0-202110262214

Comment 4 errata-xmlrpc 2021-11-10 21:02:21 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 (OpenShift Container Platform 4.9.6 bug fix 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/RHBA-2021:4119