No reports Foreman 1.3

Hi,

I have a default Foreman 1.3 install. I have provisioned a host and don't
see any reports. I tried the method described on the release notes but I
still see the below message:

DEPRECATION: /reports/create is deprecated, update your report processor to
POST to /api/reports
See the Foreman 1.3 release notes for a new example report processor.

My foreman.rb was already in the below location so I did not need to add or
edit it. I see the correct URL $foreman_url='https://foreman.mydomain.com'

/usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb

I had to add 'reports = log, foreman' to [main] in the puppet.conf on the
master, then restarted httpd.

I also saw the /var/lib/puppet/reports directory is empty so also added
'reportdir = /var/lib/puppet/reports' to puppet.conf and restarted. I still
see the same DEPRECIATION message reported and no reports. I see a greyed
out N next to my host.

All the puppet modules have synced to the new host, so everything is works
in that respect, I just can't see any reports for it.

The client puppet.conf also has 'report = true'

Any help would be great.

Thanks,

> Hi,
>
> I have a default Foreman 1.3 install. I have provisioned a host and
> don't see any reports. I tried the method described on the release notes
> but I still see the below message:
>
> DEPRECATION: /reports/create is deprecated, update your report processor
> to POST to /api/reports
> See the Foreman 1.3 release notes for a new example report processor.
>
> My foreman.rb was already in the below location so I did not need to add
> or edit it. I see the correct URL
> $foreman_url='https://foreman.mydomain.com'

You need to update it if it's already there, since the content changed
between 1.2 and 1.3.

Check Foreman :: Manual for the
links to the new version. Just copy the settings out of your current
version and apply to the new template.

Be sure to restart the puppetmaster (or httpd) after doing that.

> /usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb
>
> I had to add 'reports = log, foreman' to [main] in the puppet.conf on
> the master, then restarted httpd.
>
> I also saw the /var/lib/puppet/reports directory is empty so also added
> 'reportdir = /var/lib/puppet/reports' to puppet.conf and restarted. I
> still see the same DEPRECIATION message reported and no reports. I see a
> greyed out N next to my host.

Yeah, the DEPRECATION message indicates the report processor is out of date.

Regards,

··· On 25/10/13 12:08, Oleg Mcnoleg wrote:


Dominic Cleal
Red Hat Engineering

Hi Oleg,

I just had the same issue. Look for 'foreman-report' files, you should have
both v1 and v2 in /usr/share/foreman-installer/modules/foreman/templates/.
replace /usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb with v2;
adjust the parameters; restart httpd.

Cheers,
Peter

··· On Friday, 25 October 2013 04:08:51 UTC-7, Oleg Mcnoleg wrote: > > Hi, > > I have a default Foreman 1.3 install. I have provisioned a host and don't > see any reports. I tried the method described on the release notes but I > still see the below message: > > DEPRECATION: /reports/create is deprecated, update your report processor > to POST to /api/reports > See the Foreman 1.3 release notes for a new example report processor. > > My foreman.rb was already in the below location so I did not need to add > or edit it. I see the correct URL $foreman_url=' > https://foreman.mydomain.com' > > /usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb > > I had to add 'reports = log, foreman' to [main] in the puppet.conf on the > master, then restarted httpd. > > I also saw the /var/lib/puppet/reports directory is empty so also added > 'reportdir = /var/lib/puppet/reports' to puppet.conf and restarted. I still > see the same DEPRECIATION message reported and no reports. I see a greyed > out N next to my host. > > All the puppet modules have synced to the new host, so everything is works > in that respect, I just can't see any reports for it. > > The client puppet.conf also has 'report = true' > > Any help would be great. > > Thanks, > > > >