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

Audit error with 7.0.1 . undefined method `name' for nil:NilClass inspec.rb #325

Open
timusmc96 opened this issue Jul 18, 2018 · 5 comments
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@timusmc96
Copy link

timusmc96 commented Jul 18, 2018

Cookbook version

7.0.1

Chef-client version

13.6.4

Platform Details

rhel 6.9, seems to be the issue, not picking up profiles 'name' with audit wrapper cookbook

Scenario:

inspec_gem[inspec] (audit::inspec line 20) had an error: NoMethodError: undefined method `name' for nil:NilClass

undefined method `name' for nil:NilClass

# In /var/chef/cache/cookbooks/audit/recipes/inspec.rb

 20: inspec_gem 'inspec' do
 21:   version node['audit']['inspec_version']
 22:   source node['audit']['inspec_gem_source']
 23:   action :nothing
 24: end.run_action(:install)

Steps to Reproduce:

[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]

Expected Result:

[What are you expecting to happen as the consequence of above reproduction steps?]

Actual Result:

[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]

@jdgoins
Copy link

jdgoins commented Jul 23, 2018

+1 we're seeing this in our environment as well. Same chef client version (13.6.4) and audit CB version. Still looking for patterns.

@timusmc96
Copy link
Author

No luck either with 14.x clients, it is strange seeing this on rhel 6.x and not seeing this on rhel7. I have been looking around and not really seeing any issues. every 30 minutes client runs, it is not picking up the profile for rhel6

@jdgoins
Copy link

jdgoins commented Jul 23, 2018

I'm seeing this on RHEL 7 as well. Restarting the chef-client service seems to be resolving the issue.

@timusmc96
Copy link
Author

On our end, the run the client on the node, no issues at all, but when the client runs on its 30 minute schedule, this error occurs

@timusmc96
Copy link
Author

restart took care of these

@zenspider zenspider added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Development

No branches or pull requests

3 participants