-
Bug
-
Resolution: Cannot Reproduce
-
Undefined
-
None
-
4.14.z, 4.15.z, 4.17.z, 4.16.z
-
None
-
False
-
Description of problem:
This report is about the MachineConfig (50-[masters|workers]-chrony-configuration) created during an agent-based cluster installation that applies the /etc/chrony.conf file.
During installation, if communication with any of the NTP servers specified in additionalNTPSources in the agent-config.yaml fails, a MachineConfig is generated with the following content.
$ oc get mc 50-masters-chrony-configuration -o yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 50-masters-chrony-configuration
spec:
config:
ignition:
version: 3.1.0
storage:
files:
- contents:
source: data:text/plain;charset=utf-8;base64,CnBvb2wgMC5yaGVsLnBvb2wubnRwLm9yZyBpYnVyc3QKZHJpZnRmaWxlIC92YXIvbGliL2Nocm9ueS9kcmlmdAptYWtlc3RlcCAxLjAgMwpydGNzeW5jCmxvZ2RpciAvdmFyL2xvZy9jaHJvbnk=
mode: 420
overwrite: true
path: /etc/chrony.conf
When decoded from base64, it shows that the NTP servers listed in additionalNTPSources are not added.
$ echo "CnBvb2wgMC5yaGVsLnBvb2wubnRwLm9yZyBpYnVyc3QKZHJpZnRmaWxlIC92YXIvbGliL2Nocm9ueS9kcmlmdAptYWtlc3RlcCAxLjAgMwpydGNzeW5jCmxvZ2RpciAvdmFyL2xvZy9jaHJvbnk=" | base64 -d pool 0.rhel.pool.ntp.org iburst driftfile /var/lib/chrony/drift makestep 1.0 3 rtcsync logdir /var/log/chrony
If the cluster is installed in a disconnected environment, all nodes will fail to sync time with the NTP servers because of this MachineConfig’s /etc/chrony.conf configuration, causing the NodeClockNotSynchronising alert to trigger.
The logic generating the MachineConfig should also include the additionalNTPSources from agent-config.yaml.
How reproducible:
EveryTime
Steps to Reproduce:
1. Create ISO by agent-config.yaml with additionalNTPSources 2. Install cluster by ABI in disconnected environment without NTPserver
Actual results:
As mentioned above, the MachineConfig are applied without the IPs from additionalNTPSources in /etc/chrony.conf.
Expected results:
The MachineConfig are applied with the IPs from additionalNTPSources in /etc/chrony.conf.
Additional info: