Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-54226

cluster-compare flags PTP operator config Event apiversion should be integer instead of floating point string

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 1
    • Low
    • None
    • Rejected
    • Telco kube-compare Sprint 268, Telco kube-compare Sprint 269
    • 2
    • In Progress
    • Release Note Not Required
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      cluster-compare of PTPoperatorConfig CR improperly flags .spec.ptpEventConfig.apiVersion to be an integer instead of a string float value. 
      The values "2.0" or "1.0" should be configured instead of 2 or 1
      
      
      
      Diff Output: diff -u -N /tmp/MERGED-2910767149/ptp-openshift-io-v1_ptpoperatorconfig_openshift-ptp_default /tmp/LIVE-3499010376/ptp-openshift-io-v1_ptpoperatorconfig_openshift-ptp_default
      --- /tmp/MERGED-2910767149/ptp-openshift-io-v1_ptpoperatorconfig_openshift-ptp_default	2025-03-25 14:14:18.270020420 -0400
      +++ /tmp/LIVE-3499010376/ptp-openshift-io-v1_ptpoperatorconfig_openshift-ptp_default	2025-03-25 14:14:18.270020420 -0400
      @@ -7,6 +7,6 @@
         daemonNodeSelector:
           node-role.kubernetes.io/master: ""
         ptpEventConfig:
      -    apiVersion: 1
      +    apiVersion: "1.0"
           enableEventPublisher: true
           transportHost: http://ptp-event-publisher-service-NODE_NAME.openshift-ptp.svc.cluster.local:9043
      
      
      Diff Output: diff -u -N /tmp/MERGED-3463769962/ptp-openshift-io-v1_ptpoperatorconfig_openshift-ptp_default /tmp/LIVE-2128075619/ptp-openshift-io-v1_ptpoperatorconfig_openshift-ptp_default
      --- /tmp/MERGED-3463769962/ptp-openshift-io-v1_ptpoperatorconfig_openshift-ptp_default	2025-03-25 14:13:34.105312762 -0400
      +++ /tmp/LIVE-2128075619/ptp-openshift-io-v1_ptpoperatorconfig_openshift-ptp_default	2025-03-25 14:13:34.105312762 -0400
      @@ -7,6 +7,6 @@
         daemonNodeSelector:
           node-role.kubernetes.io/master: ""
         ptpEventConfig:
      -    apiVersion: 2
      +    apiVersion: "2.0"
           enableEventPublisher: true
           transportHost: http://ptp-event-publisher-service-NODE_NAME.openshift-ptp.svc.cluster.local:9043
      
      product documentation for this parameter: https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/networking/using-precision-time-protocol-hardware#cnf-configuring-the-ptp-fast-event-publisher-v2_ptp-consumer
          

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

      ztp-4.19.0-26
      cluster-compare version v4.19.0 (2025-03-13 20:15:54+00:00)
          

      How reproducible:

      always
          

      Steps to Reproduce:

          1. run oc cluster-compare on ptpoperatorconfig CR
          2. review output of tool
          3.
          

      Actual results:

      cluster-compare expects a value of .spec. ptpEventConfig.apiVersion to be 1 or 2 (integer)
          

      Expected results:

      allowed value for apiVersion are strings "1.0" or "2.0" according to docs
          

      Additional info:

      
          

              jramsay1@redhat.com Jim Ramsay
              rhn-support-dgonyier Dwaine Gonyier
              None
              None
              Dwaine Gonyier Dwaine Gonyier
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: