-
Bug
-
Resolution: Done-Errata
-
Undefined
-
None
-
4.15.z, 4.16
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:
- blocks
-
OCPBUGS-31698 interfaces for deleted ptpconfig profiles still appear in metrics- process are not getting terminated
-
- Closed
-
- links to
-
RHEA-2024:0041
OpenShift Container Platform 4.16.z bug fix update