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

incompatible with chef 12.19.33 ? #92

Open
caboteria opened this issue Mar 1, 2017 · 1 comment
Open

incompatible with chef 12.19.33 ? #92

caboteria opened this issue Mar 1, 2017 · 1 comment

Comments

@caboteria
Copy link

Our kitchen tests started failing when we upgraded to chef 12.19.33.

test code:

describe 'recipe::system::apache' do
  it 'Installs the Apache web server' do
    package('httpd').must_be_installed
  end
end

test error:

    1) Error:
  recipe::system::apache#test_0001_Installs the Apache web server:
  NoMethodError: undefined method `arch' for Chef::Resource::Package
      /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.33/lib/chef/resource.rb:1377:in `method_missing'
      /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.33/lib/chef/provider/package/yum.rb:517:in `safe_arch_array'
      /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.33/lib/chef/provider/package/yum.rb:220:in `block in query_yum_cache'
      /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.33/lib/chef/provider/package/yum.rb:216:in `each'
      /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.33/lib/chef/provider/package/yum.rb:216:in `each_with_index'
      /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.33/lib/chef/provider/package/yum.rb:216:in `query_yum_cache'
      /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.33/lib/chef/provider/package/yum.rb:92:in `load_current_resource'

They pass when I use chef 12.18.31 instead.

@rpunt
Copy link

rpunt commented Mar 22, 2017

Same issue here; identical failure mode, same workaround (12.18.31).

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

No branches or pull requests

2 participants