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

> Hi all,
>
> in a new foreman installation, the web gui
> ("…/puppetclasses/import_environments") sees normally all the classes to
> be imported.
>
You mean it works fine via the gui but not via the rack task?

>
> 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.
>
try running as user foreman? make sure user foreman is in the puppet group?

> - Selinux is disabled
> - modulepath in settings.yaml ":modulepath: /etc/puppet/modules"
>
this should not be required generally

Ohad

··· On Wed, Sep 22, 2010 at 5:25 PM, Marcello de Sousa wrote:

> > in a new foreman installation, the web gui
> > ("…/puppetclasses/import_environments") sees normally all the classes to
> > be imported.
> You mean it works fine via the gui but not via the rack task?

Well, the GUI sees the classes but when I submit an import I get the
error mentioned above (…ActiveRecord::AssociationTypeMismatch…)
The rake import shows nothing (old: 0 current:0)

> > - I'm running rake as root.
> try running as user foreman? make sure user foreman is in the puppet group?

I did but no help.

> > - modulepath in settings.yaml ":modulepath: /etc/puppet/modules"
> this should not be required generally

Removed. No help.

Help ? :slight_smile:

Cheers