Hammer, error when creating host with Puppet class

Hi,
I can successfully create a host on a Libvirt provider by using a hammer
command line, but the command fails if I add the --puppet-class-ids option;
I get "Error: 500 Internal Server Error".

The Puppet class I want to add to the host has id = 2.
I tried using the option as --puppet-class-ids=2, --puppet-class-ids="2",
–puppet-class-ids="2," to no avail.

Any clues?

Thanks.
Marco

Found it!
By looking at logs and comparing them, I can see that hammer calls the
Foreman API with a "puppet_class_ids" parameter, while the correct
parameter used by the Foreman GUI is "puppetclass_ids".

Going to report it… but which one is the more appropriate issue tracker?


or
https://github.com/theforeman/hammer-cli-foreman/issues
?

Marco

··· On Thursday, December 5, 2013 12:20:57 AM UTC+1, zerozer...@gmail.com wrote:

I can successfully create a host on a Libvirt provider by using a hammer
command line, but the command fails if I add the --puppet-class-ids option;
I get “Error: 500 Internal Server Error”.

Please use the first link (redmine).

··· On 05/12/13 09:46, zerozerounouno@gmail.com wrote: > On Thursday, December 5, 2013 12:20:57 AM UTC+1, zerozer...@gmail.com wrote: > > > I can successfully create a host on a Libvirt provider by using a > hammer command line, but the command fails if I add > the --puppet-class-ids option; I get "Error: 500 Internal Server Error". > > > Found it! > By looking at logs and comparing them, I can see that hammer calls the > Foreman API with a "puppet_class_ids" parameter, while the correct > parameter used by the Foreman GUI is "puppetclass_ids". > > Going to report it� but which one is the more appropriate issue tracker? > http://projects.theforeman.org/projects/hammer-cli/issues > or > https://github.com/theforeman/hammer-cli-foreman/issues > ?


Dominic Cleal
Red Hat Engineering