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: Audit report was not generated properly, skipped reporting #291

Closed
siddhu07 opened this Issue Oct 24, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@siddhu07

siddhu07 commented Oct 24, 2017

Cookbook version 5.0.3

[Version of the cookbook where you are encountering the issue]

Chef-client version Chef: 13.2.20

Platform Details ubuntu 16.04

Scenario: when trying to run audit cookbook and trying to make it as compliance node.

Expected Result: node should be added to the compliance and visible in chef automate UI

Actual Result:

WARN: No audit tests are defined.
ERROR: Audit report was not generated properly, skipped reporting

Attributes/default.rb

default['audit']['reporter'] = ['chef-server-automate','json-file']
default['audit']['profiles'] = [
{
'name': 'InSpec Profile',
'compliance': 'admin/cassandra'
}
]

@adamleff

This comment has been minimized.

Collaborator

adamleff commented Oct 25, 2017

@siddhu07 The error you're receiving indicates that there were no InSpec profiles configured to run so no report was generated. I'm afraid without any additional details, it's difficult to determine where the problem lies.

Can you please share additional information about how you configured the audit cookbook? What node attributes did you set?

@siddhu07

This comment has been minimized.

siddhu07 commented Oct 26, 2017

@adamleff i have updated my question. i just downloaded audit cookbook from supermarket and tried to bootstrap. And i tried other way, just created a cookbook added "depends audit" in metadata.rb and edited recipe, and tried to bootstrap. both failed

@adamleff

This comment has been minimized.

Collaborator

adamleff commented Oct 26, 2017

I still do not have output or information to be able to properly help you. I would suggest trying a non-compliance endpoint, such as perhaps:

{
  name: 'linux-baseline',
  url: 'https://github.com/dev-sec/linux-baseline/archive/master.tar.gz'
}

... to perhaps rule out an issue with the way your Chef Server / Chef Automate is set up.

Please also run chef-client in debug mode (chef-client -l debug) and create a gist at gist.github.com with the output so we can see exactly what's going on.

Also, if you are a Chef customer, I would strongly encourage you to log an issue with support so you get more personalized support. We cannot guarantee SLAs on GitHub issues, but we still want you to be successful. Please reach out to support if you are indeed a customer.

@siddhu07

This comment has been minimized.

siddhu07 commented Oct 30, 2017

thanks @adamleff , i got it. i bootstrapped with wrapper cookbook, deleted all dependencies and started from first.

@siddhu07 siddhu07 closed this Oct 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment