Description of problem: The ptp-operator deployment miss the tolerations by default Version: 4.3.0-0.nightly-2019-10-31-003134 How to Reproduce: 1. Depoly PTP operator following the guide https://github.com/openshift/ptp-operator 2. Check ptp operator status 3. Check ptp operator deployment. Actual Result: huiran-mac:ptp-operator hrwang$ oc get pods -n openshift-ptp NAME READY STATUS RESTARTS AGE ptp-operator-5d98757fff-hvz44 0/1 Pending 0 101m ptp operator deployment, it missed the toleartion parts tolerations: - effect: NoSchedule key: node-role.kubernetes.io/master operator: Exists huiran-mac:ptp-operator hrwang$ oc get deployments -n openshift-ptp -o yaml apiVersion: v1 items: - apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "2" kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"name":"ptp-operator","namespace":"openshift-ptp"},"spec":{"replicas":1,"selector":{"matchLabels":{"name":"ptp-operator"}},"template":{"metadata":{"labels":{"name":"ptp-operator"}},"spec":{"containers":[{"args":["ptp-operator --alsologtostderr -v 10"],"command":["/bin/bash","-c","--"],"env":[{"name":"WATCH_NAMESPACE","valueFrom":{"fieldRef":{"fieldPath":"metadata.namespace"}}},{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}},{"name":"OPERATOR_NAME","value":"ptp-operator"},{"name":"RELEASE_VERSION","value":"v4.3.0"},{"name":"LINUXPTP_DAEMON_IMAGE","value":"quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.3.0-201911010555-ose-ptp"}],"image":"quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.3.0-201910302317-ose-ptp-operator","imagePullPolicy":"IfNotPresent","name":"ptp-operator"}],"nodeSelector":{"node-role.kubernetes.io/master":""},"serviceAccountName":"ptp-operator"}}}} creationTimestamp: "2019-11-04T03:17:52Z" generation: 2 labels: name: ptp-operator name: ptp-operator namespace: openshift-ptp resourceVersion: "1349740" selfLink: /apis/extensions/v1beta1/namespaces/openshift-ptp/deployments/ptp-operator uid: eeb2fdcf-eb00-405d-b05c-cee538909662 spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: name: ptp-operator strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: creationTimestamp: null labels: name: ptp-operator spec: containers: - args: - ptp-operator --alsologtostderr -v 10 command: - /bin/bash - -c - -- env: - name: WATCH_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: OPERATOR_NAME value: ptp-operator - name: RELEASE_VERSION value: v4.3.0 - name: LINUXPTP_DAEMON_IMAGE value: quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.3.0-201911010555-ose-ptp image: quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.3.0-201910302317-ose-ptp-operator imagePullPolicy: IfNotPresent name: ptp-operator resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst nodeSelector: node-role.kubernetes.io/master: "" restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: ptp-operator serviceAccountName: ptp-operator terminationGracePeriodSeconds: 30 status: availableReplicas: 1 conditions: - lastTransitionTime: "2019-11-04T05:21:48Z" lastUpdateTime: "2019-11-04T05:21:48Z" message: Deployment has minimum availability. reason: MinimumReplicasAvailable status: "True" type: Available - lastTransitionTime: "2019-11-04T05:21:22Z" lastUpdateTime: "2019-11-04T05:21:48Z" message: ReplicaSet "ptp-operator-69d565978" has successfully progressed. reason: NewReplicaSetAvailable status: "True" type: Progressing observedGeneration: 2 readyReplicas: 1 replicas: 1 updatedReplicas: 1 kind: List metadata: resourceVersion: "" selfLink: "" Expected Result: The ptp operator pod should be in running status by default.
Hi Huiran, This has been fixed with commit: https://github.com/openshift/ptp-operator/commit/deaf8b45ba1364cd2981503eb32caac49415ade6 Could you please try with latest ptp-operator image (it should contain the fix bindata - linuxptp daemon template)? Thanks! Zenghui
Deployed ptp-operator with latest manifests from https://github.com/openshift/ptp-operator. It worked. huiran-mac:script hrwang$ oc get pods -n openshift-ptp NAME READY STATUS RESTARTS AGE linuxptp-daemon-4jnnm 1/1 Running 0 21s linuxptp-daemon-722gw 1/1 Running 0 21s linuxptp-daemon-8tc77 1/1 Running 0 21s linuxptp-daemon-jbfxz 1/1 Running 0 21s linuxptp-daemon-wzlbb 1/1 Running 0 21s ptp-operator-cccbfb46f-92wjw 1/1 Running 0 35s
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