Deployment fails validating NTP servers

Bug #1870045 reported by Carlos Goncalves
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
New
Undecided
Unassigned

Bug Description

CentOS 8 + TripleO standalone deployment fails validating NTP servers.

ASK [Ensure network service is enabled] ***************************************
Wednesday 01 April 2020 07:53:53 +0000 (0:00:00.102) 0:00:28.219 *******
changed: [standalone-1]

ASK [AllNodesValidationConfig] ************************************************
Wednesday 01 April 2020 07:53:54 +0000 (0:00:00.826) 0:00:29.046 *******
fatal: [standalone-1]: FAILED! => changed=true
  msg: non-zero return code
  rc: 1
  stderr: |-
    Failed to start Hiera: RuntimeError: Config file /etc/puppetlabs/puppet/hiera.yaml not found
  stderr_lines: <omitted>
  stdout: |-
    Trying to ping default gateway 192.168.121.1...Ping to 192.168.121.1 succeeded.
    SUCCESS
    Trying to ping 10.20.30.40 for local network 10.20.30.0/24.
    Ping to 10.20.30.40 succeeded.
    SUCCESS
    Testing NTP...FAILURE
  stdout_lines: <omitted>

O MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
standalone-1 : ok=49 changed=26 unreachable=0 failed=1 skipped=6 rescued=0 ignored=0
undercloud : ok=7 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

Configuration file /etc/puppetlabs/puppet/hiera.yaml does not exist. Hiera should use /etc/puppet/hiera.yaml instead.

[vagrant@standalone-1 ~]$ sudo hiera -c ntp::servers nil |tr -d '[],"'
Cannot find config file: ntp::servers

[vagrant@standalone-1 ~]$ sudo hiera -c /etc/puppet/hiera.yaml ntp::servers nil |tr -d '[],"'
nil

https://github.com/openstack/tripleo-heat-templates/blob/590496e1084bf70c5e47fbfc7ed61bca6f6c599c/validation-scripts/all-nodes.sh#L103

Revision history for this message
Carlos Goncalves (cgoncalves) wrote :

I believe we don't see this error in CI because validations are disabled in the CI scenarios.

https://github.com/openstack/tripleo-heat-templates/blob/master/ci/common/all-nodes-validation-disabled.yaml

Revision history for this message
Rabi Mishra (rabi) wrote :

Sounds like a duplicate of https://bugs.launchpad.net/tripleo/+bug/1869842. Bad version of puppet from epel.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.