Bug 2013273
| Summary: | Nil pointer exception when phc2sys options are missing | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Aneesh Puttur <aputtur> |
| Component: | Networking | Assignee: | Aneesh Puttur <aputtur> |
| Networking sub component: | ptp | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | unspecified | CC: | cgoncalves, hhassid, keyoung, nkononov |
| Version: | 4.10 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.10.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: | 2022-03-10 16:18:42 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2013690 | ||
Server Version: 4.10.0-0.nightly-2021-12-21-130047
PTP Version: ptp-operator.4.10.0-202112230034-6589cc888f
PTP config:
-----------
apiVersion: ptp.openshift.io/v1
kind: PtpConfig
metadata:
name: ptp-configs-five
namespace: openshift-ptp
spec:
profile:
- name: master
interface: ens5f1
ptp4lOpts: -2 --summary_interval -4
recommend:
- match:
- nodeLabel: ptp/master
priority: 10
profile: master
Bug has been validated!
cluster version: 4.10.0-rc.2
PTP version: ptp-operator.4.10.0-202201261535
PTP config:
~~~~~~~~~~
apiVersion: ptp.openshift.io/v1
kind: PtpConfig
metadata:
name: ptp-configs-five
namespace: openshift-ptp
spec:
profile:
- name: master
interface: ens1f0
ptp4lOpts: -2 --summary_interval -4
recommend:
- match:
- nodeLabel: ptp/grandmaster
priority: 10
profile: master
~~~~~~~~~~
NAME AGE
ptp-configs-five 4m11s
Name: ptp-configs-five
Namespace: openshift-ptp
Labels: <none>
Annotations: <none>
API Version: ptp.openshift.io/v1
Kind: PtpConfig
Metadata:
Creation Timestamp: 2022-02-01T13:07:17Z
Generation: 1
Managed Fields:
API Version: ptp.openshift.io/v1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:spec:
.:
f:profile:
f:recommend:
Manager: kubectl-client-side-apply
Operation: Update
Time: 2022-02-01T13:07:17Z
Resource Version: 3451099
UID: e69a49f3-e735-4891-b085-4412cff67d39
Spec:
Profile:
Interface: ens1f0
Name: master
ptp4lOpts: -2 --summary_interval -4
Recommend:
Match:
Node Label: ptp/grandmaster
Priority: 10
Profile: master
Events: <none>
ptp4l[436633.814]: [ptp4l.0.config] selected local clock 0c42a1.fffe.bcf468 as best master
ptp4l[436633.814]: [ptp4l.0.config] assuming the grand master role
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.10.3 security 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-2022:0056 |
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 ###