Storeconfigs

Hello,

I have activated the storeconfig.
When I want to view the all puppet classe

http://foreman/hosts/xxx/storeconfig_klasses

I have got this error

Processing HostsController#storeconfig_klasses (for 10.111.X.X at
2011-06-24 10:00:09) [GET]
Parameters: {"action"=>"storeconfig_klasses", "id"=>"XXXX",
"controller"=>"hosts"}
ESC[4;36;1mUser Load (0.1ms)ESC[0m ESC[0;1mSELECT * FROM users
WHERE (users.id = 2) ESC[0m
Setting current user thread-local variable to id078710
ESC[4;35;1mHost Load (0.7ms)ESC[0m ESC[0mSELECT * FROM hosts
WHERE (hosts.name = 'XXXXX') LIMIT 1
ESC[0m
ESC[4;36;1mUser Load (0.1ms)ESC[0m ESC[0;1mSELECT * FROM users
WHERE (users.id = 1) ESC[0m
Rendering template within layouts/application
Rendering hosts/storeconfig_klasses

ActionView::TemplateError (Couldn't find Puppet::Rails::Resource
without an ID) on line #3 of app/views/hosts/
storeconfig_klasses.html.erb:
1: <% title "All Puppet Classes for #{@host}" %>
2: <ul>
3: <% for klass in @host.classes_from_storeconfigs -%>
4: <li><%= h klass %></li>
5: <% end -%>
6: </ul>

app/models/host.rb:480:in `classes_from_storeconfigs&#39;
app/views/hosts/storeconfig_klasses.html.erb:3
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize&#39;
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service&#39;
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run&#39;
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread&#39;
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start&#39;
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread&#39;
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start&#39;
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each&#39;
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start&#39;
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start&#39;
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start&#39;

Rendering /usr/share/foreman/public/500.html (500 Internal Server
Error)

this was fixed at Bug #973: Error 500 when click "All Puppet Classes" - Foreman

Ohad

··· On Fri, Jun 24, 2011 at 11:01 AM, Vincent wrote: > Hello, > > I have activated the storeconfig. > When I want to view the all puppet classe > > http://foreman/hosts/xxx/storeconfig_klasses > > > I have got this error > > Processing HostsController#storeconfig_klasses (for 10.111.X.X at > 2011-06-24 10:00:09) [GET] > Parameters: {"action"=>"storeconfig_klasses", "id"=>"XXXX", > "controller"=>"hosts"} > ESC[4;36;1mUser Load (0.1ms)ESC[0m ESC[0;1mSELECT * FROM `users` > WHERE (`users`.`id` = 2) ESC[0m > Setting current user thread-local variable to id078710 > ESC[4;35;1mHost Load (0.7ms)ESC[0m ESC[0mSELECT * FROM `hosts` > WHERE (`hosts`.`name` = 'XXXXX') LIMIT 1 > ESC[0m > ESC[4;36;1mUser Load (0.1ms)ESC[0m ESC[0;1mSELECT * FROM `users` > WHERE (`users`.`id` = 1) ESC[0m > Rendering template within layouts/application > Rendering hosts/storeconfig_klasses > > ActionView::TemplateError (Couldn't find Puppet::Rails::Resource > without an ID) on line #3 of app/views/hosts/ > storeconfig_klasses.html.erb: > 1: <% title "All Puppet Classes for #{@host}" %> > 2:
    > 3: <% for klass in @host.classes_from_storeconfigs -%> > 4:
  • <%= h klass %>
  • > 5: <% end -%> > 6:
> > app/models/host.rb:480:in `classes_from_storeconfigs' > app/views/hosts/storeconfig_klasses.html.erb:3 > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' > /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' > /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' > /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' > /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' > > Rendering /usr/share/foreman/public/500.html (500 Internal Server > Error) > > -- > 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. > >

I run foreman 0.4
Does I need to update to the dev version ?

··· On 24 juin, 10:04, Ohad Levy wrote: > On Fri, Jun 24, 2011 at 11:01 AM, Vincent wrote: > > Hello, > > > I have activated the storeconfig. > > When I want to view the all puppet classe > > >http://foreman/hosts/xxx/storeconfig_klasses > > > I have got this error > > > Processing HostsController#storeconfig_klasses (for 10.111.X.X at > > 2011-06-24 10:00:09) [GET] > > Parameters: {"action"=>"storeconfig_klasses", "id"=>"XXXX", > > "controller"=>"hosts"} > > ESC[4;36;1mUser Load (0.1ms)ESC[0m ESC[0;1mSELECT * FROM `users` > > WHERE (`users`.`id` = 2) ESC[0m > > Setting current user thread-local variable to id078710 > > ESC[4;35;1mHost Load (0.7ms)ESC[0m ESC[0mSELECT * FROM `hosts` > > WHERE (`hosts`.`name` = 'XXXXX') LIMIT 1 > > ESC[0m > > ESC[4;36;1mUser Load (0.1ms)ESC[0m ESC[0;1mSELECT * FROM `users` > > WHERE (`users`.`id` = 1) ESC[0m > > Rendering template within layouts/application > > Rendering hosts/storeconfig_klasses > > > ActionView::TemplateError (Couldn't find Puppet::Rails::Resource > > without an ID) on line #3 of app/views/hosts/ > > storeconfig_klasses.html.erb: > > 1: <% title "All Puppet Classes for #{@host}" %> > > 2:
    > > 3: <% for klass in @host.classes_from_storeconfigs -%> > > 4:
  • <%= h klass %>
  • > > 5: <% end -%> > > 6:
> > > app/models/host.rb:480:in `classes_from_storeconfigs' > > app/views/hosts/storeconfig_klasses.html.erb:3 > > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > > /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > > /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > > /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' > > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > > /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' > > /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' > > /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' > > /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' > > /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' > > > Rendering /usr/share/foreman/public/500.html (500 Internal Server > > Error) > > > -- > > 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 athttp://groups.google.com/group/foreman-users?hl=en. > > this was fixed athttp://theforeman.org/issues/973 > > Ohad

oups I run 0.3 sorry

So I only need to replace the file app/models/host.rb ?

··· On 24 juin, 10:27, Vincent wrote: > I run foreman 0.4 > Does I need to update to the dev version ? > > On 24 juin, 10:04, Ohad Levy wrote: > > > > > > > > > On Fri, Jun 24, 2011 at 11:01 AM, Vincent wrote: > > > Hello, > > > > I have activated the storeconfig. > > > When I want to view the all puppet classe > > > >http://foreman/hosts/xxx/storeconfig_klasses > > > > I have got this error > > > > Processing HostsController#storeconfig_klasses (for 10.111.X.X at > > > 2011-06-24 10:00:09) [GET] > > > Parameters: {"action"=>"storeconfig_klasses", "id"=>"XXXX", > > > "controller"=>"hosts"} > > > ESC[4;36;1mUser Load (0.1ms)ESC[0m ESC[0;1mSELECT * FROM `users` > > > WHERE (`users`.`id` = 2) ESC[0m > > > Setting current user thread-local variable to id078710 > > > ESC[4;35;1mHost Load (0.7ms)ESC[0m ESC[0mSELECT * FROM `hosts` > > > WHERE (`hosts`.`name` = 'XXXXX') LIMIT 1 > > > ESC[0m > > > ESC[4;36;1mUser Load (0.1ms)ESC[0m ESC[0;1mSELECT * FROM `users` > > > WHERE (`users`.`id` = 1) ESC[0m > > > Rendering template within layouts/application > > > Rendering hosts/storeconfig_klasses > > > > ActionView::TemplateError (Couldn't find Puppet::Rails::Resource > > > without an ID) on line #3 of app/views/hosts/ > > > storeconfig_klasses.html.erb: > > > 1: <% title "All Puppet Classes for #{@host}" %> > > > 2:
    > > > 3: <% for klass in @host.classes_from_storeconfigs -%> > > > 4:
  • <%= h klass %>
  • > > > 5: <% end -%> > > > 6:
> > > > app/models/host.rb:480:in `classes_from_storeconfigs' > > > app/views/hosts/storeconfig_klasses.html.erb:3 > > > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > > > /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > > > /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > > > /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > > > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' > > > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > > > /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' > > > /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' > > > /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' > > > /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' > > > /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' > > > > Rendering /usr/share/foreman/public/500.html (500 Internal Server > > > Error) > > > > -- > > > 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 athttp://groups.google.com/group/foreman-users?hl=en. > > > this was fixed athttp://theforeman.org/issues/973 > > > Ohad