Report templates missing

Problem:
In GUI and also with hammer no report templates are shown.

Expected outcome:
Report templates are visible and can be used.

Foreman and Proxy versions:
1.18 (both)

Foreman and Proxy plugin versions:
Name : tfm-rubygem-foreman_templates
Version : 6.0.3

Distribution and version:
Centos 7
Other relevant data:
Templates are generally showed eg. provisioning, finish, pxe etc but the report templates are missing.
If I check it with hammer, the result is
hammer report-template list
Error: undefined method `action’ for nil:NilClass
A try to sync/import the templates again leads to following error:
{:name=>“Host - compare content hosts packages”,
:id=>nil,
:changed=>false,
:imported=>false,
:additional_errors=>
“Template type ReportTemplate was not found, are you missing a plugin?”,
:exception=>“uninitialized constant ReportTemplate”,
:validation_errors=>{},
:file=>“host_compare_content_hosts_packages.erb”,
:type=>nil},
{:name=>“User - Registered Users”,
:id=>nil,
:changed=>false,
:imported=>false,
:additional_errors=>
“Template type ReportTemplate was not found, are you missing a plugin?”,
:exception=>“uninitialized constant ReportTemplate”,
:validation_errors=>{},
:file=>“registered_users.erb”,
:type=>nil},

How can I fix it ? Is it possible to manually create this template type ? If so, how ?

Kind regards
Martin

Report templates were only introduced in Foreman 1.20, which was released a year and a half ago. It is not possible to use them with older versions of Foreman.
The current latest version in Foreman 1.24, with 2.0 expected very soon. I highly recommend upgrading to a supported version of Foreman.

Hi Tomer,
thank you for fast answering.
You are right an update would be very good and the task has a high priority for me. The problem is that we have some clients (AIX, Solaris) which can’t be update to a puppet version higher than 3.x and foreman 1.19 dropped support for such clients if I understand it right.
I try hard to get rid of these clients :slight_smile:
Kind regards
Martin

I might be wrong, as puppet isn’t my expertise, but I think you can have puppet 3 clients connecting to a newer puppet server.

That would be a great thing :slight_smile: I will check it.