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

reporter: chef-server-compliance generates error: NameError: uninitialized constant Reporter::ChefServer #234

Closed
qubitrenegade opened this issue Jun 7, 2017 · 0 comments

Comments

@qubitrenegade
Copy link

Cookbook version

4.0.0

Chef-client version

12.20.3

Platform Details

CentOS: 6 and 7.2

Scenario:

Attempting to use chef-server-compliance to report compliance results via chef-server proxy.

Steps to Reproduce:

  • create attributes:
{
  "audit": {
    "quiet": false,
    "reporter": [
      "chef-server-compliance"
    ],
    "fetcher": "chef-server",
    "profiles": [
      {
        "name": "linux",
        "compliance": "base/linux"
      }
    ]
  }
}
  • bootstrap node with recipe[audit::default] version 4.0.0

Expected Result:

Compliance results are reported without error.

Actual Result:

Receive error, results not reported to Chef Compliance server.

INFO: Reporting to chef-server-compliance
[2017-06-07T14:19:01-06:00] ERROR: Report handler Chef::Handler::AuditReport raised #<NameError: uninitialized constant Reporter::ChefServer>
[2017-06-07T14:19:01-06:00] ERROR: /var/chef/cache/cookbooks/audit/files/default/handler/audit_report.rb:241:in `send_report'
[2017-06-07T14:19:01-06:00] ERROR: /var/chef/cache/cookbooks/audit/files/default/handler/audit_report.rb:63:in `block in report'
[2017-06-07T14:19:01-06:00] ERROR: /var/chef/cache/cookbooks/audit/files/default/handler/audit_report.rb:62:in `each'
[2017-06-07T14:19:01-06:00] ERROR: /var/chef/cache/cookbooks/audit/files/default/handler/audit_report.rb:62:in `report'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/handler.rb:259:in `run_report_unsafe'
[2017-06-07T14:19:01-06:00] ERROR: /var/chef/cache/cookbooks/audit/files/default/handler/audit_report.rb:75:in `run_report_safely'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/handler.rb:125:in `block in run_report_handlers'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/handler.rb:123:in `each'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/handler.rb:123:in `run_report_handlers'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/handler.rb:135:in `block in <class:Handler>'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/client.rb:443:in `block in run_completed_successfully'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/client.rb:442:in `each'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/client.rb:442:in `run_completed_successfully'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/client.rb:301:in `run'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application.rb:295:in `block in fork_chef_client'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application.rb:283:in `fork'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application.rb:283:in `fork_chef_client'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application.rb:248:in `block in run_chef_client'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/local_mode.rb:44:in `with_server_connectivity'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application.rb:236:in `run_chef_client'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application/client.rb:450:in `loop'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application/client.rb:450:in `interval_run_chef_client'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application/client.rb:434:in `run_application'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/lib/chef/application.rb:59:in `run'
[2017-06-07T14:19:01-06:00] ERROR: /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.20.3/bin/chef-client:26:in `<top (required)>'
[2017-06-07T14:19:01-06:00] ERROR: /usr/bin/chef-client:57:in `load'
[2017-06-07T14:19:01-06:00] ERROR: /usr/bin/chef-client:57:in `<main>'
  - Chef::Handler::AuditReport
Running handlers complete
[2017-06-07T14:19:01-06:00] INFO: Report handlers complete
Chef Client finished, 0/2 resources updated in 05 seconds
qubitrenegade added a commit to qubitrenegade/audit that referenced this issue Jun 7, 2017
…rCompliance. Fixes chef-boneyard#234.  Bumped metadata to version 4.0.2

Signed-off-by: qubitrenegade <qubitrenegade@gmail.com>
chris-rock pushed a commit that referenced this issue Jun 29, 2017
…rCompliance. Fixes #234.  Bumped metadata to version 4.0.2

Signed-off-by: qubitrenegade <qubitrenegade@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant