Hi,
i try to create a host in foreman (fresh installed with teh foreman
puppet module) and get the error (failed 400 Bad Request.
Here is the error in the Log:
Processing HostsController#create (for 192.168.100.1 at 2011-10-14
19:43:18) [POST]
Parameters: {"commit"=>"Submit", "action"=>"create",
"authenticity_token"=>"VOmdASw/jaZiG1h3cJhtxlBfMHSW74AwbsSiD/mmoi8=",
"controller"=>"hosts", "host"=>{"comment"=>"", "architecture_id"=>"1",
"subnet_id"=>"1", "managed"=>"true", "puppetproxy_id"=>"1",
"name"=>"testhost", "host_parameters_attributes"=>{"0"=>{"name"=>"",
"nested"=>"", "value"=>"", "_destroy"=>""}},
"puppetmaster_name"=>"puppet", "mac"=>"52:54:00:ae:21:de",
"domain_id"=>"1", "enabled"=>"1", "root_pass"=>"[FILTERED]",
"medium_id"=>"5", "build"=>"1", "hostgroup_id"=>"1", "ptable_id"=>"1",
"ip"=>"192.168.100.3", "environment_id"=>"1", "model_id"=>"",
"disk"=>"", "puppetclass_ids"=>[""], "operatingsystem_id"=>"1"}}
failed 400 Bad Request
Failed to save: failed 400 Bad Request
Rendering template within layouts/application
Rendering hosts/new
Completed in 261ms (View: 190, DB: 12) | 200 OK [https://192.168.100.2/
hosts]
any idea?
rgds florian
> Hi,
>
> i try to create a host in foreman (fresh installed with teh foreman
> puppet module) and get the error (failed 400 Bad Request.
>
> Here is the error in the Log:
> Processing HostsController#create (for 192.168.100.1 at 2011-10-14
> 19:43:18) [POST]
> Parameters: {"commit"=>"Submit", "action"=>"create",
> "authenticity_token"=>"VOmdASw/jaZiG1h3cJhtxlBfMHSW74AwbsSiD/mmoi8=",
> "controller"=>"hosts", "host"=>{"comment"=>"", "architecture_id"=>"1",
> "subnet_id"=>"1", "managed"=>"true", "puppetproxy_id"=>"1",
> "name"=>"testhost", "host_parameters_attributes"=>{"0"=>{"name"=>"",
> "nested"=>"", "value"=>"", "_destroy"=>""}},
> "puppetmaster_name"=>"puppet", "mac"=>"52:54:00:ae:21:de",
> "domain_id"=>"1", "enabled"=>"1", "root_pass"=>"[FILTERED]",
> "medium_id"=>"5", "build"=>"1", "hostgroup_id"=>"1", "ptable_id"=>"1",
> "ip"=>"192.168.100.3", "environment_id"=>"1", "model_id"=>"",
> "disk"=>"", "puppetclass_ids"=>[""], "operatingsystem_id"=>"1"}}
> failed 400 Bad Request
> Failed to save: failed 400 Bad Request
> Rendering template within layouts/application
> Rendering hosts/new
> Completed in 261ms (View: 190, DB: 12) | 200 OK [https://192.168.100.2/
> hosts]
>
>
>
> any idea?
what does the proxy log say?
···
On Fri, Oct 14, 2011 at 7:51 PM, Florian Koch wrote:
rgds florian
–
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.
Hi,
proxy log:
http://pastie.org/2696688
···
On Oct 14, 9:42 pm, Ohad Levy wrote:
> On Fri, Oct 14, 2011 at 7:51 PM, Florian Koch
>
>
>
>
>
>
>
> wrote:
> > Hi,
>
> > i try to create a host in foreman (fresh installed with teh foreman
> > puppet module) and get the error (failed 400 Bad Request.
>
> > Here is the error in the Log:
> > Processing HostsController#create (for 192.168.100.1 at 2011-10-14
> > 19:43:18) [POST]
> > Parameters: {"commit"=>"Submit", "action"=>"create",
> > "authenticity_token"=>"VOmdASw/jaZiG1h3cJhtxlBfMHSW74AwbsSiD/mmoi8=",
> > "controller"=>"hosts", "host"=>{"comment"=>"", "architecture_id"=>"1",
> > "subnet_id"=>"1", "managed"=>"true", "puppetproxy_id"=>"1",
> > "name"=>"testhost", "host_parameters_attributes"=>{"0"=>{"name"=>"",
> > "nested"=>"", "value"=>"", "_destroy"=>""}},
> > "puppetmaster_name"=>"puppet", "mac"=>"52:54:00:ae:21:de",
> > "domain_id"=>"1", "enabled"=>"1", "root_pass"=>"[FILTERED]",
> > "medium_id"=>"5", "build"=>"1", "hostgroup_id"=>"1", "ptable_id"=>"1",
> > "ip"=>"192.168.100.3", "environment_id"=>"1", "model_id"=>"",
> > "disk"=>"", "puppetclass_ids"=>[""], "operatingsystem_id"=>"1"}}
> > failed 400 Bad Request
> > Failed to save: failed 400 Bad Request
> > Rendering template within layouts/application
> > Rendering hosts/new
> > Completed in 261ms (View: 190, DB: 12) | 200 OK [https://192.168.100.2/
> > hosts]
>
> > any idea?
>
> what does the proxy log say?
>
>
>
>
>
>
>
>
>
> > rgds florian
>
> > --
> > 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.