-
Bug
-
Resolution: Obsolete
-
Undefined
-
None
-
4.15
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:
- is blocked by
-
OCPBUGS-31602 interfaces for deleted ptpconfig profiles still appear in metrics- process are not getting terminated
- Closed
- is depended on by
-
OCPBUGS-32448 interfaces for deleted ptpconfig profiles still appear in metrics- process are not getting terminated
- Closed
- is duplicated by
-
OCPBUGS-31597 gnss does not sync with ptp-operator.v4.15.0-202403281339
- Closed