-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
6.15.z, 6.16.z, 6.17.z, 6.18.z
-
None
-
False
-
Important
-
sat-rocket
-
None
-
None
-
None
-
None
-
Yes
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 #
<% 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 -
" : '' %>
<% else -%>
timezone --utc <%= host_param('time-zone') || 'UTC' %>
<% if host_param('ntp-server') -%>
timesource --ntp-server <%= host_param('ntp-server') %>
<% end -%>
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