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

Error: undefined method `normalize_architecture' for Mixlib::Install::Util:Class #151

Closed
predominant opened this issue Apr 14, 2017 · 2 comments
Assignees

Comments

@predominant
Copy link

Cookbook version

2.0.3

Chef-client version

12.17.44

Platform Details

Ubuntu 14.04

Scenario:

Converge

Steps to Reproduce:

Converge on any client fails with 2.0.3. Stacktrace below. push-jobs specifically, which depends on chef-ingredient.

Expected Result:

Successful converge

Actual Result:

================================================================================
    Error executing action `install` on resource 'chef_ingredient[push-jobs-client]'
    ================================================================================
    
    NoMethodError
    -------------
    undefined method `normalize_architecture' for Mixlib::Install::Util:Class
    
    Cookbook Trace:
    ---------------
    /var/chef/cache/cookbooks/chef-ingredient/libraries/helpers.rb:287:in `installer'
    /var/chef/cache/cookbooks/chef-ingredient/libraries/default_handler.rb:96:in `configure_from_channel'
    /var/chef/cache/cookbooks/chef-ingredient/libraries/default_handler.rb:46:in `configure_package'
    /var/chef/cache/cookbooks/chef-ingredient/libraries/default_handler.rb:23:in `handle_install'
    /var/chef/cache/cookbooks/chef-ingredient/resources/chef_ingredient.rb:59:in `block in class_from_file'
    
    Resource Declaration:
    ---------------------
    # In /var/chef/cache/cookbooks/push-jobs/recipes/package.rb
    
     51: chef_ingredient 'push-jobs-client' do
     52:   version package_version || node['push_jobs']['package_version']
     53:   package_source local_package_path if defined?(local_package_path)
     54:   platform_version_compatibility_mode true
     55: end
    
    Compiled Resource:
    ------------------
    # Declared in /var/chef/cache/cookbooks/push-jobs/recipes/package.rb:51:in `from_file'
    
    chef_ingredient("push-jobs-client") do
      action [:install]
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      declared_type :chef_ingredient
      cookbook_name "push-jobs"
      recipe_name "package"
      platform_version_compatibility_mode true
      product_name "push-jobs-client"
    end
    
    Platform:
    ---------
    x86_64-linux
@wrightp wrightp self-assigned this Apr 14, 2017
@wrightp
Copy link

wrightp commented Apr 14, 2017

Thank you for reporting. mixlib-install gem needs to be set to 3.2 https://github.com/chef-cookbooks/chef-ingredient/blob/master/libraries/helpers.rb#L90

@wrightp
Copy link

wrightp commented Apr 14, 2017

chef-ingredient 2.0.4 published to supermarket with the mixlib-install 3.2 version pin.

@wrightp wrightp closed this as completed Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants