Classes to be imported visible only through the GUI

Some more info:

When I submit an import (of a class or environment) through the GUI I see in
the server logs:

(…)
Parameters: {"commit"=>"Update",
"changed"=>{"new"=>{"environments"=>["development"]}},
"action"=>"obsolete_and_new",
"authenticity_token"=>"emUHRybiqemt/JrDYXymxB5vsowBMjJJPDuelCn/AGo=",
"controller"=>"environments"}

ActiveRecord::AssociationTypeMismatch (Puppetclass(#-610791258) expected,
got NilClass(#-604339728)):
app/models/environment.rb:89:in obsolete_and_new' app/models/environment.rb:85:ineach'
app/models/environment.rb:85:in obsolete_and_new' app/models/environment.rb:83:ineach'
app/models/environment.rb:83:in obsolete_and_new' app/models/environment.rb:80:ineach'
app/models/environment.rb:80:in obsolete_and_new' app/controllers/application_controller.rb:47:inobsolete_and_new'
/usr/lib/ruby/1.8/thread.rb:135:in synchronize' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:ineach'
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

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

Gr,
Marcello

··· > -----Original Message----- > From: Marcello de Sousa [mailto:lists@area151.com] > Sent: woensdag 22 september 2010 17:26 > To: 'Foreman users' > Subject: Classes to be imported visible only through the GUI > > Hi all, > > in a new foreman installation, the web gui > (".../puppetclasses/import_environments") sees normally all the classes > to be imported. > > But "rake puppet:import:puppet_classes" doesn't find any classes, and I > get: > Environment old:0 current:0 > PuppetClasses old:0 current:0 > > Extra info: > - Pemissions: /usr/local/foreman/* is owned by "foreman" > - I'm running rake as root. > - Selinux is disabled > - modulepath in settings.yaml ":modulepath: /etc/puppet/modules" > - I'm testing the latest develop git branch. > > Do I miss something ? Any ideas ? > > Cheers, > Marcello