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

ptp operator socket management need rework since a few test case fails due to cleaning up the file before other processes are terminated.

XMLWordPrintable

    • Important
    • No
    • False
    • Hide

      None

      Show
      None

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

      Description of problem:
      ptp operator socket management need rework since a few test case fails due to cleaning up the file before other processes are terminated.

      linux ptp daemon has two differen Unix domain socket dependecy.
      1. ptp4l/phc2sys and probably ts2phc uses same  Unix domain socket used for local PTP management.
      2. sidecar listens to event socket  and each process in linux ptp daemon writes to it.
      In current implmentation  when any process reecives SIGTERM, the cleanup process kills commonly used ptp management socket. This disturbs otther running process.For an example if phc2sys is stopped, it cleans up socket file, this puts ptp4l in error state and side car stopes recieving any messages.

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

       

      How reproducible:

      everytime, on delete of ptpconfig , the process that terminates one ptp process puts other process in error state and side car is not able to  recieve any updates after first process is killed. This puts process status event metrics with wrong values .

      Steps to Reproduce:

      1.apply ptp config
      2.delete ptp config
      3.watch logs , you will see socket error. 
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

            josricha Joseph Richard (Inactive)
            openshift-crt-jira-prow OpenShift Prow Bot
            Ofer Bochan Ofer Bochan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: