[tripleo] If undercloud_ntp_servers is not declared then NTP should not be configured
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Sorin Sbarnea |
Bug Description
When you use "undercloud.conf" file leaving this option at its default:
# List of ntp servers to use. (list value)
#undercloud_
because, for example, you already have the NTP service correctly configured and working on your system, the openstack undercloud install command should not fail as it does today:
TASK [Ensure system is NTP time synced] *******
fatal: [undercloud]: FAILED! => {"changed": true, "cmd": ["ntpdate", "-u", "pool.ntp.org"], "delta": "0:00:08.942220", "end": "2018-09-20 07:33:18.354579", "msg": "non-zero return code", "rc": 1, "start": "2018-09-20 07:33:09.412359", "stderr": "20 Sep 07:33:18 ntpdate[16718]: no server suitable for synchronization found", "stderr_lines": ["20 Sep 07:33:18 ntpdate[16718]: no server suitable for synchronization found"], "stdout": "", "stdout_lines": []}
NO MORE HOSTS LEFT *******
PLAY RECAP *******
undercloud : ok=136 changed=22 unreachable=0 failed=1
** Found ansible errors for undercloud deployment! **
[
[
"Ensure system is NTP time synced",
{
"_ansible_
"stderr_lines": [
"20 Sep 07:33:18 ntpdate[16718]: no server suitable for synchronization found"
],
"cmd": [
"ntpdate",
"-u",
"pool.ntp.org"
],
"end": "2018-09-20 07:33:18.354579",
"_ansible_
"stdout": "",
"changed": true,
"start": "2018-09-20 07:33:09.412359",
"delta": "0:00:08.942220",
"stderr": "20 Sep 07:33:18 ntpdate[16718]: no server suitable for synchronization found",
"rc": 1,
"invocation": {
"module_args": {
"warn": true,
"executable": null,
"_uses_shell": false,
"_raw_params": "ntpdate -u pool.ntp.org",
"removes": null,
"creates": null,
"chdir": null,
"stdin": null
}
},
"stdout_lines": [],
"msg": "non-zero return code"
}
]
]
Install artifact is located at /home/stack/
If the default NTP (pool.ntp.org) is not available, you get the above. This also means that on the other side internal configuration will be overridden by the default pool.ntp.org, without the user wanting it.
I see two choices here:
1) Making undercloud_
2) If undercloud_
In my opinion, two should be the correct way to give a right user experience.
I think we just need to document that there is a default value in the undercloud.conf. It is required as it can cause docker issues if you are not in a good state.