Project

General

Profile

Actions

Feature #7086

open

Puppet modules being skipped or failed to import should be reported or noticed by foreman.

Added by Roy Williams over 10 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Puppet integration
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The issue is if you have a syntax error within a puppet module, or even a general error that prevents foreman from using it. It should be shown as a notice ( not an error since this should be a graceful failure to import ).

I imported a module, with a silly mistake, which could have been avoided through the use of the puppet agent itself. However in lieu of modules I create it would be good to know if a module pulled from a third party source was faulty instead of indicating nothing has changed or happened.


Related issues 2 (1 open1 closed)

Related to Foreman - Bug #3900: Class removed because invalid syntax validationNew12/17/2013Actions
Has duplicate Foreman - Feature #11181: Display errors encountered when importing classes in the UIDuplicate07/21/2015Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Related to Bug #3900: Class removed because invalid syntax validation added
Actions #2

Updated by Dominic Cleal over 9 years ago

  • Has duplicate Feature #11181: Display errors encountered when importing classes in the UI added
Actions #3

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Duplicate

Thanks for the report, I'm closing to close this in order to combine it with #3900 which ought to be possible to fix now.

Actions #4

Updated by Dominic Cleal about 8 years ago

  • Status changed from Duplicate to New
  • Priority changed from Low to Normal

Correction: I'm reopening it as #3900 is a more complex requirement, since it may need some memorising of which class was imported from where, so when a syntax error occurs it can skip classes originally imported from the file with the error.

#15095 provides a classes_and_errors API in the smart proxy which includes error information in the response. This includes syntax and permission errors (#2289).

Note that the API will return a different response format and is only available on certain versions. It will return a 501 response if it isn't usable, so in that case, the original classes API should be used instead.

Actions

Also available in: Atom PDF