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

Dual NIC - "error waiting for phc2sys" when phc2sysOpts is set to empty string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • 4.10.z
    • Networking / ptp
    • Important
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When Dual NIC is configured for ptp, only 1 should be configured with phc2sys; however ptplinux daemon logs shows phc2sys error when setting phc2sysOpts to empty string via ZTP.
      
      Note that we cannot remove the phc2sysOps via ZTP due to limitations. So customer would need to manually edit the ptpconfig to remove phc2sysOpts post ZTP to work around this issue. 
       

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

      ptp-operator.4.10.0-202303301555

      How reproducible:

      100%

      Steps to Reproduce:

      1. Deploy SNO DU node with Dual NIC ptp configs via ZTP (one NIC has phc2sysOpts set to "")
      
        spec:
          profile:
          - interface: ens5f0
            name: slave1
            phc2sysOpts: ""
      
      2. Check ptp daemon logs
      3.
      

      Actual results:

      I0428 16:33:10.139132   10552 daemon.go:394] Recreating phc2sys...
      I0428 16:33:10.139166   10552 daemon.go:320] Starting phc2sys...
      I0428 16:33:10.139256   10552 daemon.go:321] phc2sys cmd: /bin/chrt -f 10 /usr/sbin/phc2sys  -m -z /var/run/ptp4l.2.socket -t [ptp4l.2.config]
      autoconfiguration or valid source clock must be selected.usage: phc2sys [options]
       automatic configuration:
       -a             turn on autoconfiguration
       -r             synchronize system (realtime) clock
                      repeat -r to consider it also as a time source
       manual configuration:
       -c [dev|name]  slave clock (CLOCK_REALTIME)
       -d [dev]       master PPS device
       -s [dev|name]  master clock
       -O [offset]    slave-master time offset (0)
       -w             wait for ptp4l
       common options:
       -f [file]      configuration file
       -E [pi|linreg] clock servo (pi)
       -P [kp]        proportional constant (0.7)
       -I [ki]        integration constant (0.3)
       -S [step]      step threshold (disabled)
       -F [step]      step threshold only on start (0.00002)
       -R [rate]      slave clock update rate in HZ (1.0)
       -N [num]       number of master clock readings per update (5)
       -L [limit]     sanity frequency limit in ppb (200000000)
       -M [num]       NTP SHM segment number (0)
       -u [num]       number of clock updates in summary stats (0)
       -n [num]       domain number (0)
       -x             apply leap seconds by servo instead of kernel
       -z [path]      server address for UDS (/var/run/ptp4l)
       -l [num]       set the logging level to 'num' (6)
       -t [tag]       add tag to log messages
       -m             print messages to stdout
       -q             do not print messages to the syslog
       -v             prints the software version and exits
       -h             prints this message and exitsE0428 16:33:10.140587   10552 daemon.go:384] cmdRun() error waiting for phc2sys: exit status 255
      

      Expected results:

      phc2sys config is ignored for second nic when phc2sysOpts is set to empty string

      Additional info:

       

            aputtur@redhat.com Aneesh Puttur
            rhn-support-yliu1 Yang Liu
            Gowrishankar Rajaiyan Gowrishankar Rajaiyan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: