-
Notifications
You must be signed in to change notification settings - Fork 16
Troubleshooting
-
SSL Certificate Verification Issues
Unless you create valid certificates for the Chef, OneView, and ICsP servers, you may see these errors. The proper way to handle this is to import these "untrusted" certificates into your machine's trusted certificate store, not just turn off all ssl certificate validations.
- Solution: See examples/ssl_issues.md and examples/install_ssl_certs.rb
-
Chef run fails with "NoMethodError: private method `include' called for Chef::Resource::Machine:Class"
NoMethodError: private method 'include' called for Chef::Resource::Machine:Class /home/chef/.gem/ruby/gems/cheffish-2.0.2/lib/cheffish.rb:117:in node_attributes' /home/chef/.gem/ruby/gems/chef-provisioning-1.6.0/lib/chef/resource/machine.rb:31:inclass:Machine' /home/chef/.gem/ruby/gems/chef-provisioning-1.6.0/lib/chef/resource/machine.rb:8:in class:Resource'
- **Root Cause:** Ruby versions below 2.1 define `Module.include()` as a private method, while 2.1 and above define it as public. [Cheffish](https://github.com/chef/cheffish/blob/master/lib/cheffish.rb) calls the include method on the Chef::Resource::Machine class, expecting it to be public.
- **Solution:** Upgrade your ruby version to >= 2.1. Since this is running inside chef-client (which has it's own Ruby installation), you'll probably have to upgrade your chef-client version.
- **'gem install chef-provisioning-oneview' fails with...**
gem install chef-provisioning-oneview Building native extensions. This could take a while... ERROR: Error installing chef-provisioning-oneview: ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
creating Makefile
/usr/local/share/gems/gems/libyajl2-1.2.0/ext/libyajl2
extconf.rb:104:in makemakefiles': unhanded exception from extconf.rb:138:in
- **Solution:** Ensure that both make and gcc packages are installed, then try again.