Description of problem: ----------------------- ntp.conf is overridden by os-apply-config and might cause issues for ceph cluster. Puppet tries to restore the config, but it's still overwritten. /var/log/puppet/heat-debug.log:2017-04-11 17:22:58 +0000 Puppet (info): FileBucket got a duplicate file {md5}c07b9a377faea45b96b7d3bf8976004b /var/log/puppet/heat-debug.log:2017-04-11 17:22:58 +0000 /Stage[main]/Ntp::Config/File[/etc/ntp.conf] (info): Filebucketed /etc/ntp.conf to puppet with sum c07b9a377faea45b96b7d3bf8976004b /var/log/puppet/heat-debug.log:2017-04-11 17:22:58 +0000 /Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content (notice): content changed '{md5}c07b9a377faea45b96b7d3bf8976004b' to '{md5}8ea449d7aa73245c001c0134b5b23e2d' /var/log/puppet/heat-debug.log:2017-04-11 17:28:05 +0000 Puppet (info): FileBucket got a duplicate file {md5}c07b9a377faea45b96b7d3bf8976004b /var/log/puppet/heat-debug.log:2017-04-11 17:28:05 +0000 /Stage[main]/Ntp::Config/File[/etc/ntp.conf] (info): Filebucketed /etc/ntp.conf to puppet with sum c07b9a377faea45b96b7d3bf8976004b /var/log/puppet/heat-debug.log:2017-04-11 17:28:05 +0000 /Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content (notice): content changed '{md5}c07b9a377faea45b96b7d3bf8976004b' to '{md5}8ea449d7aa73245c001c0134b5b23e2d' /var/log/puppet/heat-debug.log:2017-04-11 17:33:11 +0000 Puppet (info): FileBucket got a duplicate file {md5}c07b9a377faea45b96b7d3bf8976004b /var/log/puppet/heat-debug.log:2017-04-11 17:33:11 +0000 /Stage[main]/Ntp::Config/File[/etc/ntp.conf] (info): Filebucketed /etc/ntp.conf to puppet with sum c07b9a377faea45b96b7d3bf8976004b /var/log/puppet/heat-debug.log:2017-04-11 17:33:11 +0000 /Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content (notice): content changed '{md5}c07b9a377faea45b96b7d3bf8976004b' to '{md5}8ea449d7aa73245c001c0134b5b23e2d' Excerpt from os-apply-config.log -------------------------------- [2017/04/12 07:58:28 AM] [INFO] writing /etc/os-net-config/config.json [2017/04/12 07:58:28 AM] [INFO] writing /etc/ntp.conf [2017/04/12 07:58:28 AM] [INFO] writing /var/run/heat-config/heat-config [2017/04/12 07:58:28 AM] [INFO] writing /etc/os-collect-config.conf [2017/04/12 07:58:28 AM] [INFO] success [2017/04/12 07:59:10 AM] [INFO] writing /etc/os-net-config/config.json [2017/04/12 07:59:10 AM] [INFO] writing /etc/ntp.conf [2017/04/12 07:59:10 AM] [INFO] writing /var/run/heat-config/heat-config [2017/04/12 07:59:10 AM] [INFO] writing /etc/os-collect-config.conf [2017/04/12 07:59:10 AM] [INFO] success Version-Release number of selected component (if applicable): ------------------------------------------------------------- os-apply-config-6.0.0-1.el7ost.noarch openstack-tripleo-heat-templates-6.0.0-4.el7ost.noarch Steps to Reproduce: ------------------- 1. Deploy RHOS-11 2. Minor update UC 3. Minor update OC 4. Check /etc/ntp.conf on OC nodes.
Remove /usr/libexec/os-apply-config/templates/etc/ntp.conf
Another file that has to be removed /usr/libexec/os-refresh-config/configure.d/40-truncate-nova-config changed in commit http://git.openstack.org/cgit/openstack/tripleo-puppet-elements/commit/?id=85f4604298e3618fafabb5af3152166f9a7ab6a2 but never provided by any rpm.
Point to stable/ocata, not yet merged there.
Another workaround where re-deploy isn't required is: [root@osp11-compute000 ~]# grep server /etc/ntp.conf # Local users may interrogate the ntp server more closely. # Remote NTP server(s) to synchronize with. server 127.127.1.0 # local clock address [root@osp11-compute000 ~]# echo 'include ::tripleo::profile::base::time::ntp' |puppet apply exception: connect failed Notice: hiera(): Cannot load backend module_data: cannot load such file -- hiera/backend/module_data_backend Warning: Undefined variable 'deploy_config_name'; (file & line not available) Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Bool. There is further documentation for validate_legacy function in the README. at ["unknown", 1]:["/etc/puppet/modules/tripleo/manifests/profile/base/time/ntp.pp", 29] (at /etc/puppet/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation') Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Absolute_Path. There is further documentation for validate_legacy function in the README. at ["unknown", 1]:["/etc/puppet/modules/tripleo/manifests/profile/base/time/ntp.pp", 29] (at /etc/puppet/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation') Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::String. There is further documentation for validate_legacy function in the README. at ["unknown", 1]:["/etc/puppet/modules/tripleo/manifests/profile/base/time/ntp.pp", 29] (at /etc/puppet/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation') Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Array. There is further documentation for validate_legacy function in the README. at ["unknown", 1]:["/etc/puppet/modules/tripleo/manifests/profile/base/time/ntp.pp", 29] (at /etc/puppet/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation') Warning: This method is deprecated, please use the stdlib validate_legacy function, with Pattern[]. There is further documentation for validate_legacy function in the README. at ["unknown", 1]:["/etc/puppet/modules/tripleo/manifests/profile/base/time/ntp.pp", 29] (at /etc/puppet/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation') Warning: This method is deprecated, please use the stdlib validate_legacy function, with Stdlib::Compat::Numeric. There is further documentation for validate_legacy function in the README. at ["unknown", 1]:["/etc/puppet/modules/tripleo/manifests/profile/base/time/ntp.pp", 29] (at /etc/puppet/modules/stdlib/lib/puppet/functions/deprecation.rb:25:in `deprecation') Notice: Compiled catalog for osp11-compute000.flusche.co in environment production in 0.73 seconds Notice: /Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content: content changed '{md5}c07b9a377faea45b96b7d3bf8976004b' to '{md5}80b50defbb2abdcd9b16675667468ca1' Notice: /Stage[main]/Ntp::Config/File[/etc/ntp.conf]/seluser: seluser changed 'unconfined_u' to 'system_u' Notice: /Stage[main]/Ntp::Config/File[/etc/ntp.conf]/seltype: seltype changed 'etc_t' to 'net_conf_t' Notice: /Stage[main]/Ntp::Service/Service[ntp]: Triggered 'refresh' from 1 events Notice: Applied catalog in 0.93 seconds [root@osp11-compute000 ~]# grep server /etc/ntp.conf # Set up servers for ntpd with next options: # server - IP address or DNS name of upstream NTP server # prefer - select preferrable server server 192.168.0.10 server 2001:470:b92e::10
This appears to have already gone out already but should be verified.
According to our records, this should be resolved by openstack-tripleo-common-6.1.0-2.el7ost. This build is available now.
Verified with: openstack-tripleo-common-6.1.0-3.el7ost.noarch ; rhosp-director-images-ipa-11.0-20170830.1.el7ost.noarch rhosp-director-images-11.0-20170830.1.el7ost.noarch openstack-tripleo-heat-templates-6.2.0-3.el7ost.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3098