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

interfaces for deleted ptpconfig profiles still appear in metrics- process are not getting terminated

XMLWordPrintable

    • Moderate
    • No
    • CNF RAN Sprint 251, CNF Ran Sprint 252
    • 2
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress
    • 4/4: Waiting on verification in 4.16

      This is a clone of issue OCPBUGS-31602. The following is the description of the original issue:

      Description of problem:

          

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

          

      How reproducible:

          

      Steps to Reproduce:

          1. Deploy spoke with GM and slave ptpconfigs
      [kni@registry.kni-qe-61 ~]$ oc get ptpconfigs.ptp.openshift.io -A
      NAMESPACE       NAME               AGE
      openshift-ptp ...  du-ptp-slave-gm1   143m
      openshift-ptp   du-ptp-slave-gm2   143m
      openshift-ptp   grandmaster1       47h
      

       

      
          2. Check metrics (eno12399 and ens3f1np1 are slave)
      # TYPE openshift_ptp_interface_role gauge
      openshift_ptp_interface_role{iface="eno12399",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_interface_role{iface="ens3f1np1",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_interface_role{iface="ens5f0",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f1",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f2",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f3",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens7f3",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
          2. Delete slave ptpconfigs
      [kni@registry.kni-qe-61 ~]$ oc get ptpconfigs.ptp.openshift.io -n openshift-ptp
      NAME           AGE
      grandmaster1   11h
      
           3. Check metrics 
      [kni@registry.kni-qe-61 ~]$ oc exec -it ds/linuxptp-daemon  -n openshift-ptp -c linuxptp-daemon-container -- curl -s localhost:9091/metrics | grep role
      # HELP openshift_ptp_interface_role 0 = PASSIVE, 1 = SLAVE, 2 = MASTER, 3 = FAULTY, 4 = UNKNOWN, 5 = LISTENING
      # TYPE openshift_ptp_interface_role gauge
      openshift_ptp_interface_role{iface="eno12399",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_interface_role{iface="ens3f1np1",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_interface_role{iface="ens5f0",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f1",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f2",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f3",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens7f3",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2    

      Actual results:

      [kni@registry.kni-qe-61 ~]$ oc exec -it ds/linuxptp-daemon  -n openshift-ptp -c linuxptp-daemon-container -- curl -s localhost:9091/metrics | grep role
      # HELP openshift_ptp_interface_role 0 = PASSIVE, 1 = SLAVE, 2 = MASTER, 3 = FAULTY, 4 = UNKNOWN, 5 = LISTENING
      # TYPE openshift_ptp_interface_role gauge
      openshift_ptp_interface_role{iface="eno12399",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_interface_role{iface="ens3f1np1",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_interface_role{iface="ens5f0",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f1",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f2",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f3",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens7f3",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2    

      Expected results:

      interfaces from deleted ptpconfigs should not appear in metrics    

      Additional info:

          

              aputtur@redhat.com Aneesh Puttur
              openshift-crt-jira-prow OpenShift Prow Bot
              Hen Shay Hassid Hen Shay Hassid
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: