Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-40736 Red Hat Satellite 6: After RHEL 9 host provisioning, syntax issue found in chrony.conf file when defining multiple NTP servers in "Global parameter"
  3. SAT-41975

[QE] Red Hat Satellite 6: After RHEL 9 host provisioning, syntax issue found in chrony.conf file when defining multiple NTP servers in "Global parameter"

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Provisioning
    • Satellite Rocket Sprint 13, Satellite Rocket Sprint 14, Satellite Rocket Sprint 15

      Description of problem:

      Defining multiple ntp server in a "Global parameter" , separated with (comma) for RHEL 9 hosts , breaks the syntax in " /etc/chrony.conf" after host provisioned through Red Hat Satellite 

      How reproducible:
      100%
       

      Is this issue a regression from an earlier version:
      Yes

       

      Steps to Reproduce:

      1. Create "string" type "global parameter" for "NTP" and put the value as shown below:

      Global Parameter named - ntp-server
      Type: String
      Value: "ntpserver1.example.com,ntpserver2.example.com"

      2. Provisioned the RHEL 9 host through Red Hat Satellite and check syntax in "/etc/chrony.conf" on deployed host

      Actual behavior:

      • On newly deploy RHEL 8 vm's, this generates a correct server configuration in /etc/chrony.conf:
        server ntpserver1.example.com
        server ntpserver2.example.com
        
      • On newly deploy RHEL 9, on the other hand, this generates an incorrect server configuration in /etc/chrony.conf:
        server ntpserver1.example.com,ntpserver2.example.com
        

      WORKAROUND:
      ------------
      >> Updating the "os_major" from <9 to <=10 in the "Kickstart Default" template fix the issue.

      ORIGINAL:

      <% if rhel_compatible && os_major < 9 -%>
      timezone --utc <%= host_param('time-zone') || 'UTC' %> <%= host_param('ntp-server') ? "--ntpservers #{host_param('ntp-server')}" : '' %>
      <% else -%>
      timezone --utc <%= host_param('time-zone') || 'UTC' %>
      <% if host_param('ntp-server') -%>
      timesource --ntp-server <%= host_param('ntp-server') %>
      <% end -%>
      

      RESOLVED:

      <% if rhel_compatible && os_major <=10 -%>
      timezone --utc <%= host_param('time-zone') || 'UTC' %> <%= host_param('ntp-server') ? "--ntpservers #{host_param('ntp-server')}" : '' %>
      <% else -%>
      timezone --utc <%= host_param('time-zone') || 'UTC' %>
      <% if host_param('ntp-server') -%>
      timesource --ntp-server <%= host_param('ntp-server') %>
      

      Expected behavior:
      In RHEL 9 host "/etc/chrony.conf" post build, the NTP server should be updated in 2 separate lines.

      Business Impact / Additional info:

      Breaks the NTP configuration on RHEL 9 host provisioned via Red Hat Satellite

      QE Tracker for https://issues.redhat.com/browse/SAT-40736

              rhn-support-sganar Shubham Ganar
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: