"something went wrong." trying to vew reports

I enabled stored configs… not sure if that is related… but in this
fresh setup I am trying to build, after enabling reporting on a
client, and "foreman" reports on the server, using the provided: /usr/
share/foreman/extras/puppet/foreman/files/foreman-report.rb
which I edited to correct the URL for forman to be:
$foreman_url="https://puppet.my.dom.ain"

I now get an error when I click "reports"… in the debugging enabled
log I see what follows…

Any idea what am forgetting?

Thanks a lot.

Processing ReportsController#index (for 10.212.129.236 at 2010-10-13
15:27:46) [GET]
Parameters: {"action"=>"index", "controller"=>"reports"}
SQL (0.1ms) SELECT count(*) AS count_all FROM reports
Report Load (0.1ms) SELECT * FROM reports ORDER BY
reports.created_at DESC LIMIT 0, 20
Host Load (0.2ms) SELECT * FROM hosts WHERE (hosts.id = 1)
Domain Columns (0.4ms) SHOW FIELDS FROM domains
Domain Load (0.1ms) SELECT * FROM domains WHERE (domains.id
= 3)
Rendering template within layouts/standard
Rendering reports/index

ActionView::TemplateError (undefined method `round_with_precision' for
0:Fixnum) on line #27 of app/views/reports/_list.html.erb:
24: <td><%= h report.failed %></td>
25: <td><%= h report.failed_restarts %></td>
26: <td><%= h report.skipped %></td>
27: <td><%= h report.config_retrieval %></td>
28: <td><%= h report.runtime %></td>
29: <td align="right">
30: <%= link_to "Details", report %>

which version are you using of foreman, puppet? this should have been
resolved in the latest develop tree a while ago.

Ohad

··· On Wed, Oct 13, 2010 at 9:48 PM, Mohamed wrote:

I enabled stored configs… not sure if that is related… but in this
fresh setup I am trying to build, after enabling reporting on a
client, and “foreman” reports on the server, using the provided: /usr/
share/foreman/extras/puppet/foreman/files/foreman-report.rb
which I edited to correct the URL for forman to be:
$foreman_url=“https://puppet.my.dom.ain

I now get an error when I click “reports”… in the debugging enabled
log I see what follows…

Any idea what am forgetting?

Thanks a lot.

Processing ReportsController#index (for 10.212.129.236 at 2010-10-13
15:27:46) [GET]
Parameters: {“action”=>“index”, “controller”=>“reports”}
SQL (0.1ms) SELECT count(*) AS count_all FROM reports
Report Load (0.1ms) SELECT * FROM reports ORDER BY
reports.created_at DESC LIMIT 0, 20
Host Load (0.2ms) SELECT * FROM hosts WHERE (hosts.id = 1)
Domain Columns (0.4ms) SHOW FIELDS FROM domains
Domain Load (0.1ms) SELECT * FROM domains WHERE (domains.id
= 3)
Rendering template within layouts/standard
Rendering reports/index

ActionView::TemplateError (undefined method `round_with_precision’ for
0:Fixnum) on line #27 of app/views/reports/_list.html.erb:
24:

<%= h report.failed %>
25: <%= h report.failed_restarts %>
26: <%= h report.skipped %>
27: <%= h report.config_retrieval %>
28: <%= h report.runtime %>
29:
30: <%= link_to “Details”, report %>


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

I built an RPM for foreman-0.1-5.tar.bz2, from
http://theforeman.org/projects/foreman/files
Is there more recent tarball?

Thanks a lot.
Mohamed.

··· On Thu, Oct 14, 2010 at 6:19 AM, Ohad Levy wrote: > which version are you using of foreman, puppet? this should have been > resolved in the latest develop tree a while ago. > Ohad > > On Wed, Oct 13, 2010 at 9:48 PM, Mohamed wrote: >> >> I enabled stored configs... not sure if that is related... but in this >> fresh setup I am trying to build, after enabling reporting on a >> client, and "foreman" reports on the server, using the provided: /usr/ >> share/foreman/extras/puppet/foreman/files/foreman-report.rb >> which I edited to correct the URL for forman to be: >> $foreman_url="https://puppet.my.dom.ain" >> >> >> I now get an error when I click "reports".... in the debugging enabled >> log I see what follows... >> >> Any idea what am forgetting? >> >> Thanks a lot. >> >> Processing ReportsController#index (for 10.212.129.236 at 2010-10-13 >> 15:27:46) [GET] >> Parameters: {"action"=>"index", "controller"=>"reports"} >> SQL (0.1ms) SELECT count(*) AS count_all FROM `reports` >> Report Load (0.1ms) SELECT * FROM `reports` ORDER BY >> reports.created_at DESC LIMIT 0, 20 >> Host Load (0.2ms) SELECT * FROM `hosts` WHERE (`hosts`.`id` = 1) >> Domain Columns (0.4ms) SHOW FIELDS FROM `domains` >> Domain Load (0.1ms) SELECT * FROM `domains` WHERE (`domains`.`id` >> = 3) >> Rendering template within layouts/standard >> Rendering reports/index >> >> ActionView::TemplateError (undefined method `round_with_precision' for >> 0:Fixnum) on line #27 of app/views/reports/_list.html.erb: >> 24: <%= h report.failed %> >> 25: <%= h report.failed_restarts %> >> 26: <%= h report.skipped %> >> 27: <%= h report.config_retrieval %> >> 28: <%= h report.runtime %> >> 29: >> 30: <%= link_to "Details", report %> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To post to this group, send email to foreman-users@googlegroups.com. >> To unsubscribe from this group, send email to >> foreman-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/foreman-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to > foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/foreman-users?hl=en. >


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard

and using puppet-2.6.2-0.3

··· On Thu, Oct 14, 2010 at 9:31 AM, Mohamed Lrhazi wrote: > I built an RPM for foreman-0.1-5.tar.bz2, from > http://theforeman.org/projects/foreman/files > Is there more recent tarball? > > Thanks a lot. > Mohamed. > > > On Thu, Oct 14, 2010 at 6:19 AM, Ohad Levy wrote: >> which version are you using of foreman, puppet? this should have been >> resolved in the latest develop tree a while ago. >> Ohad >> >> On Wed, Oct 13, 2010 at 9:48 PM, Mohamed wrote: >>> >>> I enabled stored configs... not sure if that is related... but in this >>> fresh setup I am trying to build, after enabling reporting on a >>> client, and "foreman" reports on the server, using the provided: /usr/ >>> share/foreman/extras/puppet/foreman/files/foreman-report.rb >>> which I edited to correct the URL for forman to be: >>> $foreman_url="https://puppet.my.dom.ain" >>> >>> >>> I now get an error when I click "reports".... in the debugging enabled >>> log I see what follows... >>> >>> Any idea what am forgetting? >>> >>> Thanks a lot. >>> >>> Processing ReportsController#index (for 10.212.129.236 at 2010-10-13 >>> 15:27:46) [GET] >>> Parameters: {"action"=>"index", "controller"=>"reports"} >>> SQL (0.1ms) SELECT count(*) AS count_all FROM `reports` >>> Report Load (0.1ms) SELECT * FROM `reports` ORDER BY >>> reports.created_at DESC LIMIT 0, 20 >>> Host Load (0.2ms) SELECT * FROM `hosts` WHERE (`hosts`.`id` = 1) >>> Domain Columns (0.4ms) SHOW FIELDS FROM `domains` >>> Domain Load (0.1ms) SELECT * FROM `domains` WHERE (`domains`.`id` >>> = 3) >>> Rendering template within layouts/standard >>> Rendering reports/index >>> >>> ActionView::TemplateError (undefined method `round_with_precision' for >>> 0:Fixnum) on line #27 of app/views/reports/_list.html.erb: >>> 24: <%= h report.failed %> >>> 25: <%= h report.failed_restarts %> >>> 26: <%= h report.skipped %> >>> 27: <%= h report.config_retrieval %> >>> 28: <%= h report.runtime %> >>> 29: >>> 30: <%= link_to "Details", report %> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Foreman users" group. >>> To post to this group, send email to foreman-users@googlegroups.com. >>> To unsubscribe from this group, send email to >>> foreman-users+unsubscribe@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/foreman-users?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To post to this group, send email to foreman-users@googlegroups.com. >> To unsubscribe from this group, send email to >> foreman-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/foreman-users?hl=en. >> > > > > -- > " Logic merely sanctions the conquests of the intuition." > Jacques Hadamard >


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard

http://theforeman.org/foreman-nightly.tar.bz2
or even http://theforeman.org/foreman-0.1.6-rc1.noarch.rpm (which is about 2
days old).

Ohad

··· On Thu, Oct 14, 2010 at 3:31 PM, Mohamed Lrhazi wrote:

I built an RPM for foreman-0.1-5.tar.bz2, from
Files - Foreman
Is there more recent tarball?

Thanks a lot.
Mohamed.

On Thu, Oct 14, 2010 at 6:19 AM, Ohad Levy ohadlevy@gmail.com wrote:

which version are you using of foreman, puppet? this should have been
resolved in the latest develop tree a while ago.
Ohad

On Wed, Oct 13, 2010 at 9:48 PM, Mohamed lrhazi@gmail.com wrote:

I enabled stored configs… not sure if that is related… but in this
fresh setup I am trying to build, after enabling reporting on a
client, and “foreman” reports on the server, using the provided: /usr/
share/foreman/extras/puppet/foreman/files/foreman-report.rb
which I edited to correct the URL for forman to be:
$foreman_url=“https://puppet.my.dom.ain

I now get an error when I click “reports”… in the debugging enabled
log I see what follows…

Any idea what am forgetting?

Thanks a lot.

Processing ReportsController#index (for 10.212.129.236 at 2010-10-13
15:27:46) [GET]
Parameters: {“action”=>“index”, “controller”=>“reports”}
SQL (0.1ms) SELECT count(*) AS count_all FROM reports
Report Load (0.1ms) SELECT * FROM reports ORDER BY
reports.created_at DESC LIMIT 0, 20
Host Load (0.2ms) SELECT * FROM hosts WHERE (hosts.id = 1)
Domain Columns (0.4ms) SHOW FIELDS FROM domains
Domain Load (0.1ms) SELECT * FROM domains WHERE (domains.id
= 3)
Rendering template within layouts/standard
Rendering reports/index

ActionView::TemplateError (undefined method `round_with_precision’ for
0:Fixnum) on line #27 of app/views/reports/_list.html.erb:
24:

<%= h report.failed %>
25: <%= h report.failed_restarts %>
26: <%= h report.skipped %>
27: <%= h report.config_retrieval %>
28: <%= h report.runtime %>
29:
30: <%= link_to “Details”, report %>


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

I installed the rpm, foreman-0.1.6-rc1.noarch.rpm, reloaded apache,
refreshed my reports page, and it works! Thanks a lot.
I notice one thing though… I have this one client host for now, and
run one little change on it, a file creation action… the report page
shows it with the "success" icon, the one usual used for "report says
nothing good or bad happened" : /images/true.png
the actual report shown when report opened is correct and does list
the successful file creation.

is that a known issue?

Thanks.
Mohamed.

··· On Thu, Oct 14, 2010 at 10:51 AM, Ohad Levy wrote: > http://theforeman.org/foreman-nightly.tar.bz2 > or even http://theforeman.org/foreman-0.1.6-rc1.noarch.rpm (which is about 2 > days old). > Ohad > > On Thu, Oct 14, 2010 at 3:31 PM, Mohamed Lrhazi wrote: >> >> I built an RPM for foreman-0.1-5.tar.bz2, from >> http://theforeman.org/projects/foreman/files >> Is there more recent tarball? >> >> Thanks a lot. >> Mohamed. >> >> >> On Thu, Oct 14, 2010 at 6:19 AM, Ohad Levy wrote: >> > which version are you using of foreman, puppet? this should have been >> > resolved in the latest develop tree a while ago. >> > Ohad >> > >> > On Wed, Oct 13, 2010 at 9:48 PM, Mohamed wrote: >> >> >> >> I enabled stored configs... not sure if that is related... but in this >> >> fresh setup I am trying to build, after enabling reporting on a >> >> client, and "foreman" reports on the server, using the provided: /usr/ >> >> share/foreman/extras/puppet/foreman/files/foreman-report.rb >> >> which I edited to correct the URL for forman to be: >> >> $foreman_url="https://puppet.my.dom.ain" >> >> >> >> >> >> I now get an error when I click "reports".... in the debugging enabled >> >> log I see what follows... >> >> >> >> Any idea what am forgetting? >> >> >> >> Thanks a lot. >> >> >> >> Processing ReportsController#index (for 10.212.129.236 at 2010-10-13 >> >> 15:27:46) [GET] >> >> Parameters: {"action"=>"index", "controller"=>"reports"} >> >> SQL (0.1ms) SELECT count(*) AS count_all FROM `reports` >> >> Report Load (0.1ms) SELECT * FROM `reports` ORDER BY >> >> reports.created_at DESC LIMIT 0, 20 >> >> Host Load (0.2ms) SELECT * FROM `hosts` WHERE (`hosts`.`id` = 1) >> >> Domain Columns (0.4ms) SHOW FIELDS FROM `domains` >> >> Domain Load (0.1ms) SELECT * FROM `domains` WHERE (`domains`.`id` >> >> = 3) >> >> Rendering template within layouts/standard >> >> Rendering reports/index >> >> >> >> ActionView::TemplateError (undefined method `round_with_precision' for >> >> 0:Fixnum) on line #27 of app/views/reports/_list.html.erb: >> >> 24: <%= h report.failed %> >> >> 25: <%= h report.failed_restarts %> >> >> 26: <%= h report.skipped %> >> >> 27: <%= h report.config_retrieval %> >> >> 28: <%= h report.runtime %> >> >> 29: >> >> 30: <%= link_to "Details", report %> >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Foreman users" group. >> >> To post to this group, send email to foreman-users@googlegroups.com. >> >> To unsubscribe from this group, send email to >> >> foreman-users+unsubscribe@googlegroups.com. >> >> For more options, visit this group at >> >> http://groups.google.com/group/foreman-users?hl=en. >> >> >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Foreman users" group. >> > To post to this group, send email to foreman-users@googlegroups.com. >> > To unsubscribe from this group, send email to >> > foreman-users+unsubscribe@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/foreman-users?hl=en. >> > >> >> >> >> -- >> " Logic merely sanctions the conquests of the intuition." >> Jacques Hadamard >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To post to this group, send email to foreman-users@googlegroups.com. >> To unsubscribe from this group, send email to >> foreman-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/foreman-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to > foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/foreman-users?hl=en. >


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard

I'm not sure I'm following, any chance you can open an issue and attach a
couple of snapshots?

thanks,
Ohad

··· On Thu, Oct 14, 2010 at 5:14 PM, Mohamed Lrhazi wrote:

I installed the rpm, foreman-0.1.6-rc1.noarch.rpm, reloaded apache,
refreshed my reports page, and it works! Thanks a lot.
I notice one thing though… I have this one client host for now, and
run one little change on it, a file creation action… the report page
shows it with the “success” icon, the one usual used for “report says
nothing good or bad happened” : /images/true.png
the actual report shown when report opened is correct and does list
the successful file creation.

is that a known issue?

Thanks.
Mohamed.

On Thu, Oct 14, 2010 at 10:51 AM, Ohad Levy ohadlevy@gmail.com wrote:

http://theforeman.org/foreman-nightly.tar.bz2
or even http://theforeman.org/foreman-0.1.6-rc1.noarch.rpm (which is
about 2
days old).
Ohad

On Thu, Oct 14, 2010 at 3:31 PM, Mohamed Lrhazi lrhazi@gmail.com > wrote:

I built an RPM for foreman-0.1-5.tar.bz2, from
Files - Foreman
Is there more recent tarball?

Thanks a lot.
Mohamed.

On Thu, Oct 14, 2010 at 6:19 AM, Ohad Levy ohadlevy@gmail.com wrote:

which version are you using of foreman, puppet? this should have been
resolved in the latest develop tree a while ago.
Ohad

On Wed, Oct 13, 2010 at 9:48 PM, Mohamed lrhazi@gmail.com wrote:

I enabled stored configs… not sure if that is related… but in
this

fresh setup I am trying to build, after enabling reporting on a
client, and “foreman” reports on the server, using the provided:
/usr/

share/foreman/extras/puppet/foreman/files/foreman-report.rb
which I edited to correct the URL for forman to be:
$foreman_url=“https://puppet.my.dom.ain

I now get an error when I click “reports”… in the debugging
enabled

log I see what follows…

Any idea what am forgetting?

Thanks a lot.

Processing ReportsController#index (for 10.212.129.236 at 2010-10-13
15:27:46) [GET]
Parameters: {“action”=>“index”, “controller”=>“reports”}
SQL (0.1ms) SELECT count(*) AS count_all FROM reports
Report Load (0.1ms) SELECT * FROM reports ORDER BY
reports.created_at DESC LIMIT 0, 20
Host Load (0.2ms) SELECT * FROM hosts WHERE (hosts.id = 1)
Domain Columns (0.4ms) SHOW FIELDS FROM domains
Domain Load (0.1ms) SELECT * FROM domains WHERE (domains.id
= 3)
Rendering template within layouts/standard
Rendering reports/index

ActionView::TemplateError (undefined method `round_with_precision’
for

0:Fixnum) on line #27 of app/views/reports/_list.html.erb:
24:

<%= h report.failed %>
25: <%= h report.failed_restarts %>
26: <%= h report.skipped %>
27: <%= h report.config_retrieval %>
28: <%= h report.runtime %>
29:
30: <%= link_to “Details”, report %>


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

I just did. Bug #406
Thanks a lot.

··· On Thu, Oct 14, 2010 at 1:48 PM, Ohad Levy wrote: > I'm not sure I'm following, any chance you can open an issue and attach a > couple of snapshots? > thanks, > Ohad > > On Thu, Oct 14, 2010 at 5:14 PM, Mohamed Lrhazi wrote: >> >> I installed the rpm, foreman-0.1.6-rc1.noarch.rpm, reloaded apache, >> refreshed my reports page, and it works! Thanks a lot. >> I notice one thing though.... I have this one client host for now, and >> run one little change on it, a file creation action... the report page >> shows it with the "success" icon, the one usual used for "report says >> nothing good or bad happened" : /images/true.png >> the actual report shown when report opened is correct and does list >> the successful file creation. >> >> is that a known issue? >> >> Thanks. >> Mohamed. >> >> On Thu, Oct 14, 2010 at 10:51 AM, Ohad Levy wrote: >> > http://theforeman.org/foreman-nightly.tar.bz2 >> > or even http://theforeman.org/foreman-0.1.6-rc1.noarch.rpm (which is >> > about 2 >> > days old). >> > Ohad >> > >> > On Thu, Oct 14, 2010 at 3:31 PM, Mohamed Lrhazi >> > wrote: >> >> >> >> I built an RPM for foreman-0.1-5.tar.bz2, from >> >> http://theforeman.org/projects/foreman/files >> >> Is there more recent tarball? >> >> >> >> Thanks a lot. >> >> Mohamed. >> >> >> >> >> >> On Thu, Oct 14, 2010 at 6:19 AM, Ohad Levy wrote: >> >> > which version are you using of foreman, puppet? this should have been >> >> > resolved in the latest develop tree a while ago. >> >> > Ohad >> >> > >> >> > On Wed, Oct 13, 2010 at 9:48 PM, Mohamed wrote: >> >> >> >> >> >> I enabled stored configs... not sure if that is related... but in >> >> >> this >> >> >> fresh setup I am trying to build, after enabling reporting on a >> >> >> client, and "foreman" reports on the server, using the provided: >> >> >> /usr/ >> >> >> share/foreman/extras/puppet/foreman/files/foreman-report.rb >> >> >> which I edited to correct the URL for forman to be: >> >> >> $foreman_url="https://puppet.my.dom.ain" >> >> >> >> >> >> >> >> >> I now get an error when I click "reports".... in the debugging >> >> >> enabled >> >> >> log I see what follows... >> >> >> >> >> >> Any idea what am forgetting? >> >> >> >> >> >> Thanks a lot. >> >> >> >> >> >> Processing ReportsController#index (for 10.212.129.236 at 2010-10-13 >> >> >> 15:27:46) [GET] >> >> >> Parameters: {"action"=>"index", "controller"=>"reports"} >> >> >> SQL (0.1ms) SELECT count(*) AS count_all FROM `reports` >> >> >> Report Load (0.1ms) SELECT * FROM `reports` ORDER BY >> >> >> reports.created_at DESC LIMIT 0, 20 >> >> >> Host Load (0.2ms) SELECT * FROM `hosts` WHERE (`hosts`.`id` = 1) >> >> >> Domain Columns (0.4ms) SHOW FIELDS FROM `domains` >> >> >> Domain Load (0.1ms) SELECT * FROM `domains` WHERE (`domains`.`id` >> >> >> = 3) >> >> >> Rendering template within layouts/standard >> >> >> Rendering reports/index >> >> >> >> >> >> ActionView::TemplateError (undefined method `round_with_precision' >> >> >> for >> >> >> 0:Fixnum) on line #27 of app/views/reports/_list.html.erb: >> >> >> 24: <%= h report.failed %> >> >> >> 25: <%= h report.failed_restarts %> >> >> >> 26: <%= h report.skipped %> >> >> >> 27: <%= h report.config_retrieval %> >> >> >> 28: <%= h report.runtime %> >> >> >> 29: >> >> >> 30: <%= link_to "Details", report %> >> >> >> >> >> >> -- >> >> >> You received this message because you are subscribed to the Google >> >> >> Groups >> >> >> "Foreman users" group. >> >> >> To post to this group, send email to foreman-users@googlegroups.com. >> >> >> To unsubscribe from this group, send email to >> >> >> foreman-users+unsubscribe@googlegroups.com. >> >> >> For more options, visit this group at >> >> >> http://groups.google.com/group/foreman-users?hl=en. >> >> >> >> >> > >> >> > -- >> >> > You received this message because you are subscribed to the Google >> >> > Groups >> >> > "Foreman users" group. >> >> > To post to this group, send email to foreman-users@googlegroups.com. >> >> > To unsubscribe from this group, send email to >> >> > foreman-users+unsubscribe@googlegroups.com. >> >> > For more options, visit this group at >> >> > http://groups.google.com/group/foreman-users?hl=en. >> >> > >> >> >> >> >> >> >> >> -- >> >> " Logic merely sanctions the conquests of the intuition." >> >> Jacques Hadamard >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Foreman users" group. >> >> To post to this group, send email to foreman-users@googlegroups.com. >> >> To unsubscribe from this group, send email to >> >> foreman-users+unsubscribe@googlegroups.com. >> >> For more options, visit this group at >> >> http://groups.google.com/group/foreman-users?hl=en. >> >> >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Foreman users" group. >> > To post to this group, send email to foreman-users@googlegroups.com. >> > To unsubscribe from this group, send email to >> > foreman-users+unsubscribe@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/foreman-users?hl=en. >> > >> >> >> >> -- >> " Logic merely sanctions the conquests of the intuition." >> Jacques Hadamard >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To post to this group, send email to foreman-users@googlegroups.com. >> To unsubscribe from this group, send email to >> foreman-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/foreman-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to > foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/foreman-users?hl=en. >


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard

Hi,

I've added a patch[1] which hopefully fixes the issue (and all Puppet 2.6.x
reports issues), if you can,
please test it (backup your db first)!
I'm not pushing it to the git repository at the moment, as I would like to
get as much feedback out of this change before.

thanks,
Ohad

[1] - Bug #405: Foreman cannot process 2.6.2 reports - Foreman

··· On Fri, Oct 15, 2010 at 3:05 PM, Mohamed Lrhazi wrote:

I just did. Bug #406
Thanks a lot.

On Thu, Oct 14, 2010 at 1:48 PM, Ohad Levy ohadlevy@gmail.com wrote:

I’m not sure I’m following, any chance you can open an issue and attach a
couple of snapshots?
thanks,
Ohad

On Thu, Oct 14, 2010 at 5:14 PM, Mohamed Lrhazi lrhazi@gmail.com > wrote:

I installed the rpm, foreman-0.1.6-rc1.noarch.rpm, reloaded apache,
refreshed my reports page, and it works! Thanks a lot.
I notice one thing though… I have this one client host for now, and
run one little change on it, a file creation action… the report page
shows it with the “success” icon, the one usual used for “report says
nothing good or bad happened” : /images/true.png
the actual report shown when report opened is correct and does list
the successful file creation.

is that a known issue?

Thanks.
Mohamed.

On Thu, Oct 14, 2010 at 10:51 AM, Ohad Levy ohadlevy@gmail.com wrote:

http://theforeman.org/foreman-nightly.tar.bz2
or even http://theforeman.org/foreman-0.1.6-rc1.noarch.rpm (which is
about 2
days old).
Ohad

On Thu, Oct 14, 2010 at 3:31 PM, Mohamed Lrhazi lrhazi@gmail.com > >> > wrote:

I built an RPM for foreman-0.1-5.tar.bz2, from
Files - Foreman
Is there more recent tarball?

Thanks a lot.
Mohamed.

On Thu, Oct 14, 2010 at 6:19 AM, Ohad Levy ohadlevy@gmail.com > wrote:

which version are you using of foreman, puppet? this should have
been

resolved in the latest develop tree a while ago.
Ohad

On Wed, Oct 13, 2010 at 9:48 PM, Mohamed lrhazi@gmail.com wrote:

I enabled stored configs… not sure if that is related… but in
this
fresh setup I am trying to build, after enabling reporting on a
client, and “foreman” reports on the server, using the provided:
/usr/
share/foreman/extras/puppet/foreman/files/foreman-report.rb
which I edited to correct the URL for forman to be:
$foreman_url=“https://puppet.my.dom.ain

I now get an error when I click “reports”… in the debugging
enabled
log I see what follows…

Any idea what am forgetting?

Thanks a lot.

Processing ReportsController#index (for 10.212.129.236 at
2010-10-13

15:27:46) [GET]
Parameters: {“action”=>“index”, “controller”=>“reports”}
SQL (0.1ms) SELECT count(*) AS count_all FROM reports
Report Load (0.1ms) SELECT * FROM reports ORDER BY
reports.created_at DESC LIMIT 0, 20
Host Load (0.2ms) SELECT * FROM hosts WHERE (hosts.id =

Domain Columns (0.4ms) SHOW FIELDS FROM domains
Domain Load (0.1ms) SELECT * FROM domains WHERE
(domains.id

= 3)
Rendering template within layouts/standard
Rendering reports/index

ActionView::TemplateError (undefined method `round_with_precision’
for
0:Fixnum) on line #27 of app/views/reports/_list.html.erb:
24:

<%= h report.failed %>
25: <%= h report.failed_restarts %>
26: <%= h report.skipped %>
27: <%= h report.config_retrieval %>
28: <%= h report.runtime %>
29:
30: <%= link_to “Details”, report %>


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To post to this group, send email to
foreman-users@googlegroups.com.

To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To post to this group, send email to
foreman-users@googlegroups.com.

To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.

For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


" Logic merely sanctions the conquests of the intuition."
Jacques Hadamard


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.