Closed aellert closed 10 years ago
It seems unlikely how puppetdb_foreman can be causing this, since it only triggers puppetdb calls when hosts are removed, an event that does not happen when creating reports. What makes you think this is a puppetdb problem?
I can possibly help if you post a copy of the contents of your bundler.d directory, Gemfile and config/settings.yaml.
Here is the contents :
ls bundler.d/ assets.rb fog.rb foreman_hooks.rb i18n.rb libvirt.rb postgresql.rb puppetdb_foreman.rb sqlite.rb vmware.rb
$ cat Gemfile require File.expand_path('../config/settings', FILE) require File.expand_path('../lib/regexp_extensions', FILE)
source 'https://rubygems.org'
gem 'rails', '3.2.13' gem 'json' gem 'rest-client', :require => 'rest_client' gem "audited-activerecord", "3.0.0" gem "will_paginate", "~> 3.0.2" gem "ancestry", "~> 1.3" gem 'scoped_search', '>= 2.5' gem 'net-ldap' gem 'uuidtools' gem "apipie-rails", '0.0.16' gem 'rabl', '>= 0.7.5' gem 'oauth'
if RUBY_VERSION =~ /^1.8/
gem 'safemode', '~> 1.0.1' gem 'ruby_parser', '>= 2.3.1', '< 3.0'
gem 'nokogiri', '~> 1.5.0' else
gem 'safemode', '~> 1.2' gem 'ruby_parser', '~> 3.0.0' end
Dir["#{File.dirname(FILE)}/bundler.d/*.rb"].each do |bundle|
self.instance_eval(Bundler.read_file(bundle)) end
:puppet_server: puppet.domain.fr :unattended: true :puppetconfdir: /etc/puppet/puppet.conf :login: true :require_ssl: true :locations_enabled: false :organizations_enabled: false
:puppetdb: :enabled: true :address: 'https://localhost:8081/v2/commands'
Thanks for your help.
Try without the quotes around 'localhost:8081...'
:puppetdb:
:enabled: true
:address: https://localhost:8081/v2/commands
Same result without the quotes..
Closing due to inactivity.
Hi,
Nightly cron doesn't send reports anymore since I've installed puppetdb_foreman. Here is the output with --trace :
$ export RAILS_ENV=production; export FOREMAN_HOME=/usr/share/foreman; cd ${FOREMAN_HOME} && bundle exec /usr/bin/rake --trace reports:summarize (in /usr/share/foreman) rake aborted! uninitialized constant Rake::DSL /usr/share/foreman/vendor/ruby/1.8/gems/foreman_hooks-0.3.2/lib/foreman_hooks.rb:75:in load_missing_constant' /usr/share/foreman/Rakefile:3 /usr/lib/ruby/1.8/rake.rb:2383:inload' /usr/lib/ruby/1.8/rake.rb:2383:in raw_load_rakefile' /usr/lib/ruby/1.8/rake.rb:2017:inload_rakefile' /usr/lib/ruby/1.8/rake.rb:2068:in standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:2016:inload_rakefile' /usr/lib/ruby/1.8/rake.rb:2000:in run' /usr/lib/ruby/1.8/rake.rb:2068:instandard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1998:in `run' /usr/bin/rake:28
Here is my environment :
I've already post an issue on https://github.com/domcleal/foreman_hooks/issues/10 but it doesn't seem to be related to foreman_hooks project.
Thanks for your help.