Project

General

Profile

Bug #6610

Unconfigured puppetdb_foreman doesn't show error messages

Added by Daniel Lobato Garcia about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

An user has puppetdb_foreman installed, but not configured:

http://fpaste.org/118050/14054166/

Puppetdb_foreman will fail to get the SETTINGS[:puppetdb] and therefore host deletion will be stopped. https://github.com/theforeman/puppetdb_foreman/blob/master/app/models/puppetdb_foreman/host_extensions.rb#L25

Solution:

Make puppetdb_foreman show an error on the UI on host deletion. To avoid restarting the application, make this a configurable setting in the UI, not in the yaml file.
Also update puppetdb_foreman to make it register with Foreman instead of load it as an old plugin. This will require rebuilding gems/rpms/debs that included a sample settings.yaml.

History

#1 Updated by Dominic Cleal about 6 years ago

  • Project changed from Foreman to Plugins
  • Category deleted (Plugin integration)

#2 Updated by Dominic Cleal about 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Fixed in puppetdb 0.0.6 and .7. 0.0.7 has been released as gem and RPM, debs in progress here: https://github.com/theforeman/foreman-packaging/pull/283

Also available in: Atom PDF