Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef 13 failure: Property timeout must be one of: String, Integer! You passed nil. #155

Closed
legal90 opened this issue Apr 18, 2017 · 4 comments
Labels
Type: Bug Does not work as expected.

Comments

@legal90
Copy link

legal90 commented Apr 18, 2017

Cookbook version

2.0.4

Chef-client version

13.0.118

Platform Details

Windows 2012 R2

Scenario:

I'm bootstrapping the node with this run-list: omnibus::default

Steps to Reproduce:

The content of Berksfile.lock:

DEPENDENCIES
  apt
  omnibus
  yum-epel

GRAPH
  apt (6.1.0)
  build-essential (8.0.1)
    mingw (>= 1.1)
    seven_zip (>= 0.0.0)
  chef-ingredient (2.0.4)
  chef-sugar (3.4.0)
  compat_resource (12.19.0)
  dmg (3.1.1)
  git (6.0.0)
    build-essential (>= 0.0.0)
    dmg (>= 0.0.0)
    yum-epel (>= 0.0.0)
  homebrew (3.0.0)
  mingw (2.0.0)
    seven_zip (>= 0.0.0)
  ohai (5.0.3)
  omnibus (5.1.7)
    build-essential (>= 6.0.0)
    chef-ingredient (>= 0.21.4)
    chef-sugar (>= 3.2.0)
    git (>= 0.0.0)
    homebrew (>= 0.0.0)
    remote_install (>= 0.0.0)
    seven_zip (>= 0.0.0)
    windows (>= 0.0.0)
    windows-sdk (>= 0.0.0)
    wix (>= 0.0.0)
  remote_install (1.0.2)
  seven_zip (2.0.2)
    windows (>= 1.2.2)
  windows (3.0.5)
    ohai (>= 4.0.0)
  windows-sdk (1.0.2)
  wix (3.2.0)
    windows (>= 2.0)
  yum-epel (2.1.1)
    compat_resource (>= 12.16.3)

Try to bootstrap the node with run-list omnibus::default using Chef-Client v13.0.118

Expected Result:

Node is converged successfully.

Actual Result:

Cookbook validation failure. Snippet from the TestKitchen output:

      resolving cookbooks for run list: ["omnibus::default"]
       Synchronizing Cookbooks:
         - omnibus (5.1.5)
         - build-essential (8.0.0)
         - chef-sugar (3.4.0)
         - chef-ingredient (2.0.1)
         - git (6.0.0)
         - homebrew (3.0.0)
         - remote_install (1.0.2)
         - seven_zip (2.0.2)
         - windows (3.0.4)
         - wix (3.2.0)
         - windows-sdk (1.0.2)
         - mingw (2.0.0)
         - dmg (3.1.0)
         - yum-epel (2.1.1)
         - ohai (5.0.2)
         - compat_resource (12.16.3)
       Installing Cookbook Gems:
       Compiling Cookbooks...
       Recipe: chef-sugar::default
         * chef_gem[chef-sugar] action install
           - install version 3.4.0 of package chef-sugar
         Converging 21 resources
         * chef_gem[chef-sugar] action install (up to date)
       Recipe: omnibus::_omnibus_toolchain
         * chef_ingredient[omnibus-toolchain] action install
         Recipe: <Dynamically Defined Resource>
           * chef_gem[mixlib-install] action install
             - install version ~> 3 of package mixlib-install

           ================================================================================
           Error executing action `install` on resource 'chef_ingredient[omnibus-toolchain]'
           ================================================================================

           Chef::Exceptions::ValidationFailed
           ----------------------------------
           Property timeout must be one of: String, Integer!  You passed nil.

           Resource Declaration:
           ---------------------
           # In C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/omnibus/recipes/_omnibus_toolchain.rb

            20: chef_ingredient node['omnibus']['toolchain_name'] do
            21:   version node['omnibus']['toolchain_version']
            22:   channel node['omnibus']['toolchain_channel'].to_sym
            23:   architecture(windows_arch_i386? ? 'i386' : 'x86_64')
            24:   platform_version_compatibility_mode true
            25:   action(windows? ? :install : :upgrade)
            26: end
            27:

           Compiled Resource:
           ------------------
           # Declared in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/omnibus/recipes/_omnibus_toolchain.rb:20:in `from_file'

           chef_ingredient("omnibus-toolchain") do
             action [:install]
             default_guard_interpreter :default
             declared_type :chef_ingredient
             cookbook_name "omnibus"
             recipe_name "_omnibus_toolchain"
             version "1.1.64"
             channel :stable
             architecture "x86_64"
             platform_version_compatibility_mode true
           end

           System Info:
           ------------
           chef_version=13.0.118
           platform=windows
           platform_version=6.3.9600
           ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
           program_name=C:/opscode/chef/bin/chef-client
           executable=C:/opscode/chef/bin/chef-client
@wrightp
Copy link

wrightp commented Apr 18, 2017

Thank you for reporting. chef-ingredient is not yet chef 13 compliant.

@wrightp wrightp added the Type: Bug Does not work as expected. label Apr 18, 2017
@wrightp
Copy link

wrightp commented Apr 18, 2017

I was able to reproduce this. I'll get a fix out and make sure windows is running in CI.

@wrightp
Copy link

wrightp commented Apr 20, 2017

this will be fixed in the next release

@wrightp wrightp closed this as completed Apr 20, 2017
@legal90
Copy link
Author

legal90 commented Apr 20, 2017

@wrightp Thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants