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

PtpConfigDualCardGmWpc.yaml source-cr is missing ts2phc.master 0 for 2nd card

XMLWordPrintable

    • Moderate
    • No
    • CNF RAN Sprint 248, CNF RAN Sprint 249
    • 2
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      In 2 card GM wpc environment, 2nd ptp GM card is not set to use GPS

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

      4.14 and 4.15

      How reproducible:

          100%

      Steps to Reproduce:

          1. Deploy SNO with ptp-operator and 2 card GM ptpconfig following the PtpConfigGmWpcTwoCards.yaml in source-cr
          2. Disable the SMA connection between WPC cards by disabling the pin on the receiving card:
      
      [kni@registry.kni-qe-61 ~]$ oc -n openshift-ptp  exec -it ds/linuxptp-daemon -c linuxptp-daemon-container -- bash
      [root@helix60 /]# cat /sys/class/net/ens5f0/device/ptp/*/pins/SMA1
      1 1
      [root@helix60 /]# echo 0 1 > /sys/class/net/ens5f0/device/ptp/*/pins/SMA1
      [root@helix60 /]# cat /sys/class/net/ens5f0/device/ptp/*/pins/SMA1
      0 1
          3. Check ptp clock states in metrics for FREERUN state:
      
      [kni@registry.kni-qe-61 ~]$ oc -n openshift-ptp  exec -it ds/linuxptp-daemon -c linuxptp-daemon-container -- curl -v localhost:9091/metrics | grep openshift_ptp_clock_state

      Actual results:

          Clock state for 2nd GM interface remains locked:
      
      [kni@registry.kni-qe-61 ~]$ oc -n openshift-ptp  exec -it ds/linuxptp-daemon -c linuxptp-daemon-container -- curl -v localhost:9091/metrics | grep openshift_ptp_clock_state
      # HELP openshift_ptp_clock_state 0 = FREERUN, 1 = LOCKED, 2 = HOLDOVER
      # TYPE openshift_ptp_clock_state gauge
      openshift_ptp_clock_state{iface="CLOCK_REALTIME",node="helix60.lab.eng.rdu2.redhat.com",process="phc2sys"} 1
      openshift_ptp_clock_state{iface="eno1239x",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_clock_state{iface="ens3f1npx",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_clock_state{iface="ens5fx",node="helix60.lab.eng.rdu2.redhat.com",process="dpll"} 1
      openshift_ptp_clock_state{iface="ens5fx",node="helix60.lab.eng.rdu2.redhat.com",process="ts2phc"} 1
      openshift_ptp_clock_state{iface="ens7fx",node="helix60.lab.eng.rdu2.redhat.com",process="GM"} 1
      openshift_ptp_clock_state{iface="ens7fx",node="helix60.lab.eng.rdu2.redhat.com",process="dpll"} 1
      openshift_ptp_clock_state{iface="ens7fx",node="helix60.lab.eng.rdu2.redhat.com",process="gnss"} 1
      openshift_ptp_clock_state{iface="ens7fx",node="helix60.lab.eng.rdu2.redhat.com",process="ts2phc"} 1
      

      Expected results:

      Clock state for 2nd GM interface should show GM and dpll in FREERUN:
          
      [kni@registry.kni-qe-61 ~]$ oc -n openshift-ptp  exec -it ds/linuxptp-daemon -c linuxptp-daemon-container -- curl -v localhost:9091/metrics | grep openshift_ptp_clock_state
      # HELP openshift_ptp_clock_state 0 = FREERUN, 1 = LOCKED, 2 = HOLDOVER
      # TYPE openshift_ptp_clock_state gauge
      openshift_ptp_clock_state{iface="CLOCK_REALTIME",node="helix60.lab.eng.rdu2.redhat.com",process="phc2sys"} 1
      openshift_ptp_clock_state{iface="eno1239x",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 0
      openshift_ptp_clock_state{iface="ens3f1npx",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 0
      openshift_ptp_clock_state{iface="ens5fx",node="helix60.lab.eng.rdu2.redhat.com",process="dpll"} 0
      openshift_ptp_clock_state{iface="ens5fx",node="helix60.lab.eng.rdu2.redhat.com",process="ts2phc"} 1
      openshift_ptp_clock_state{iface="ens7fx",node="helix60.lab.eng.rdu2.redhat.com",process="GM"} 0
      openshift_ptp_clock_state{iface="ens7fx",node="helix60.lab.eng.rdu2.redhat.com",process="dpll"} 1
      openshift_ptp_clock_state{iface="ens7fx",node="helix60.lab.eng.rdu2.redhat.com",process="gnss"} 1
      openshift_ptp_clock_state{iface="ens7fx",node="helix60.lab.eng.rdu2.redhat.com",process="ts2phc"} 1
      

      Additional info:

          

              jacding@redhat.com Jack Ding
              bblock@redhat.com Bonnie Block
              Hen Shay Hassid Hen Shay Hassid
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: