chef-boneyard / chef-client

Development repository for Chef Client cookbook
http://supermarket.chef.io/cookbooks/chef-client
Apache License 2.0
176 stars 421 forks source link

12.3.0 broken on ubuntu 18.04 #710

Closed jimrosenfeld closed 4 years ago

jimrosenfeld commented 4 years ago

Unable to converge on a local test instance of 18.04 with the following error. Rolling back to 12.2.0 works.

         * template[/etc/chef/client.rb] action create[2020-09-01T14:21:09-07:00] INFO: Processing template[/etc/chef/client.rb] action create (chef-client::config line 80)

           ================================================================================
           Error executing action `create` on resource 'template[/etc/chef/client.rb]'
           ================================================================================

           Chef::Exceptions::FileNotFound
           ------------------------------
           Cookbook 'chef-client' (12.3.0) does not contain a file at any of these locations:
             templates/host-default-ubuntu-1804.vagrantup.com/client.rb.erb
             templates/ubuntu-18.04/client.rb.erb
             templates/ubuntu/client.rb.erb
             templates/default/client.rb.erb
             templates/client.rb.erb

           This cookbook _does_ contain: ['templates/default/clearlinux/chef/chef-client.erb','templates/default/client.rb_resource.erb','templates/default/com.chef.chef-client.plist.erb','templates/default/debian/default/chef-client.erb','templates/default/debian/init.d/chef-client.erb','templates/default/fedora/sysconfig/chef-client.erb','templates/default/freebsd/chef-client.erb','templates/default/freebsd/chef.erb','templates/default/redhat/init.d/chef-client.erb','templates/default/redhat/sysconfig/chef-client.erb','templates/default/solaris/chef-client.erb','templates/default/solaris/manifest-5.11.xml.erb','templates/default/solaris/manifest.xml.erb','templates/default/suse/init.d/chef-client.erb','templates/default/windows/client.service.rb.erb','templates/default/suse/sysconfig/chef-client.erb']

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/chef-client/recipes/config.rb

            80: template "#{node['chef_client']['conf_dir']}/client.rb" do
            81:   source 'client.rb.erb'
            82:   owner d_owner
            83:   mode '0644'
            84:   variables(
            85:     chef_config: node['chef_client']['config'],
            86:     chef_requires: chef_requires,
            87:     ohai_disabled_plugins: node['ohai']['disabled_plugins'],
            88:     ohai_optional_plugins: node['ohai']['optional_plugins'],
            89:     start_handlers: node['chef_client']['config']['start_handlers'],
            90:     report_handlers: node['chef_client']['config']['report_handlers'],
            91:     exception_handlers: node['chef_client']['config']['exception_handlers'],
            92:     chef_license: node['chef_client']['chef_license']
            93:   )
            94:
            95:   if node['chef_client']['reload_config'] || ENV['TEST_KITCHEN']
            96:     notifies :run, 'ruby_block[reload_client_config]', :immediately
            97:   end
            98: end

           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/chef-client/recipes/config.rb:80:in `from_file'

           template("/etc/chef/client.rb") do
             action [:create]
             default_guard_interpreter :default
             source "client.rb.erb"
             declared_type :template
             cookbook_name "chef-client"
             recipe_name "config"
             mode "0644"
             variables {:chef_config=>{"chef_server_url"=>"chefzero://localhost:1", "validation_client_name"=>"chef-validator", "node_name"=>"default-ubuntu-1804", "verify_api_cert"=>true, "start_handlers"=>[], "report_handlers"=>[], "exception_handlers"=>[], "log_level"=>":info", "verbose_logging"=>false, "clear_gem_sources"=>true, "rubygems_url"=>"http://gems.blackline.corp/", "log_location"=>"/var/log/chef/client.log"}, :chef_requires=>[], :ohai_disabled_plugins=>[], :ohai_optional_plugins=>[], :start_handlers=>[], :report_handlers=>[], :exception_handlers=>[], :chef_license=>"accept"}
             group nil
             path "/etc/chef/client.rb"
             verifications []
           end

           System Info:
           ------------
           chef_version=15.4.45
           platform=ubuntu
           platform_version=18.04
           ruby=ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
           program_name=/opt/chef/bin/chef-client
           executable=/opt/chef/bin/chef-client
jimrosenfeld commented 4 years ago

Looks like there's a build in progress to fix this issue: https://travis-ci.org/github/chef-cookbooks/chef-client/builds/723244361

The issue shows up in the 12.3 release build here: https://travis-ci.org/github/chef-cookbooks/chef-client/builds/723228188

tas50 commented 4 years ago

12.3.1 fixes this issue.