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

additionalNTPsources option is not working as expected due to one of the assisted discovery ISO scripts

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When using the Agent-based Installer and specifying the additionalNTPsources parameter to add a custom NTP server in the agent-config.yaml, the expected behavior is that the Agent ISO replaces the entire chrony.conf file, including default NTP pool servers with the provided configuration. 
      
      However, this does not happen as expected. The additional NTP sources are being appended to the existing configuration instead of replacing it because of a script in the assisted-discovery ISO. 
      
      
      Agent ISO replace: https://github.com/openshift/installer/blob/main/pkg/asset/agent/image/ignition.go#L779-L802
      
      assited discovery ISO service:
      https://github.com/openshift/assisted-service/blob/ed1e534658677bd5882319bcc3b454be9feff910/internal/ignition/templates/add-ntp-sources.service
      
      append: https://github.com/openshift/assisted-service/blob/ed1e534658677bd5882319bcc3b454be9feff910/internal/ignition/templates/add-ntp-sources.sh#L4

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

          

      How reproducible:

          always

      Steps to Reproduce:

          1. Specify a custom NTP in the agent-config.yaml
          2. Install a cluster
          3. Check /etc/chrony.conf
          

      Actual results:

          when installation completes, there is the default pool server + custom NTP server in the /etc/chrony.conf. 

      Expected results:

          Only custom NTP server should be listed without the pool server

      Additional info:

       

              lgamliel liat gamliel
              rhn-support-dchong Daniel Chong
              None
              None
              Michael Burman Michael Burman
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: