Bug 2040705 - Du policy for standard cluster runs the PTP daemon on masters and workers
Summary: Du policy for standard cluster runs the PTP daemon on masters and workers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Telco Edge
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.10.0
Assignee: Jim Ramsay
QA Contact: Joshua Clark
URL:
Whiteboard: Telco:RAN
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-14 15:18 UTC by Jim Ramsay
Modified: 2022-03-10 16:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:39:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift-kni cnf-features-deploy pull 907 0 None open Bug 2040705: ztp: Only run PTP daemons on worker nodes for standard clusters 2022-01-14 16:48:53 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:39:54 UTC

Description Jim Ramsay 2022-01-14 15:18:23 UTC
Description of problem:
Our example DU policy runs the PTP daemon on workers and masters. This is fine for SNO and 3-node clusters, where all workers are also masters, but not correct for standard clusters, where only workers should be running PTP.

How reproducible:
100%

Steps to Reproduce:
1. Deploy a standard cluster and DU profile with ZTP
2. Check where the ptp daemon pods are running

Actual results:
The PTP daemon is running on all nodes

Expected results:
The PTP daemon is only running on worker nodes

Additional info:
This can be accomplished by adding the following to the PtpOperatorConfig spec:
>  daemonNodeSelector:
>    node-role.kubernetes.io/worker: ""

Comment 3 Joshua Clark 2022-02-23 12:23:22 UTC
Verified fixed on a standard 5-node cluster:

[josclark@registry ~]$ oc get nodes
NAME                              STATUS   ROLES    AGE   VERSION
helix16.lab.eng.tlv2.redhat.com   Ready    worker   8h    v1.23.3+2e8bad7
helix17.lab.eng.tlv2.redhat.com   Ready    master   8h    v1.23.3+2e8bad7
helix23.lab.eng.tlv2.redhat.com   Ready    worker   8h    v1.23.3+2e8bad7
helix26.lab.eng.tlv2.redhat.com   Ready    master   8h    v1.23.3+2e8bad7
helix27.lab.eng.tlv2.redhat.com   Ready    master   8h    v1.23.3+2e8bad7

In this example, helix16 and helix23 are the worker nodes.

[josclark@registry ~]$ oc get pods -A|grep -i linuxptp-daemon |awk {'print $2'} |while read POD; do oc get pod -n openshift-ptp $POD -o yaml |grep nodeName: ; done
  nodeName: helix16.lab.eng.tlv2.redhat.com
  nodeName: helix23.lab.eng.tlv2.redhat.com

PTP pods are only running on the worker nodes.

Comment 5 errata-xmlrpc 2022-03-10 16:39:37 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 (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


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