Actions
Bug #20357
open404 when selecting a puppet class for a new host
Status:
New
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
-
Description
from the logs:
[app] [I] Started POST "/puppetclasses/33/parameters" for ::1 at 2017-07-20 10:29:01 +0300 [app] [I] Processing by PuppetclassesController#parameters as */* [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"NVup8UXy4VlhZjoGxRwcVwQ9AeUk4V7WI8A8GnXekn9k18eVtChNw9CwqDm79MI/pwSQhA/Le5yHtqxCWxplWw==", "host"=>{"name"=>"hope-tanke", "organization_id"=>"1", "location_id"=>"", "hostgroup_id"=>"1", "compute_resource_id"=>"29", "config_group_ids"=>[""], "puppetclass_ids"=>["", "33"], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"hope-tanke", "domain_id"=>"6", "subnet_id"=>"1", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualE1000", "network"=>"dvportgroup-125"}}}, "compute_attributes"=>{"cpus"=>"1", "corespersocket"=>"1", "memory_mb"=>"768", "firmware"=>"automatic", "cluster"=>"", "path"=>"/Datacenters/RH_Engineering/vm", "guest_id"=>"otherGuest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"0", "cpuHotAddEnabled"=>"0", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"VirtualLsiLogicController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":10485760,\"sizeGb\":10,\"eagerzero\":true}]}"}, "architecture_id"=>"1", "operatingsystem_id"=>"44", "provision_method"=>"build", "build"=>"1", "medium_id"=>"2", "ptable_id"=>"104", "pxe_loader"=>"PXELinux BIOS", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"1-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"build image", "provider"=>"Vmware", "fakepassword"=>"[FILTERED]", "bare_metal_capabilities"=>"build", "host_id"=>"undefined", "id"=>"33"} [sql] [D] ActiveRecord::SessionStore::Session Load (0.2ms) SELECT "sessions".* FROM "sessions" WHERE "sessions"."session_id" = ? ORDER BY "sessions"."id" ASC LIMIT ? [["session_id", "01daaa37d34e6c9cd5273e70deb1b42b"], ["LIMIT", 1]] [sql] [D] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] [app] [I] Current user: admin (administrator) [app] [D] Setting current user thread-local variable to admin [sql] [D] (0.1ms) SELECT COUNT(*) FROM "taxonomies" WHERE "taxonomies"."type" IN ('Organization') [app] [D] Setting current organization thread-local variable to none [sql] [D] (0.2ms) SELECT COUNT(*) FROM "taxonomies" WHERE "taxonomies"."type" IN ('Location') [app] [D] Setting current location thread-local variable to none [sql] [D] AuthSource Load (0.3ms) SELECT "auth_sources".* FROM "auth_sources" WHERE "auth_sources"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] [sql] [D] (0.1ms) SELECT "taxonomies"."id" FROM "taxonomies" WHERE "taxonomies"."type" IN ('Location') LIMIT ? [["LIMIT", 1]] [sql] [D] (0.6ms) SELECT "taxonomies"."id" FROM "taxonomies" WHERE "taxonomies"."type" IN ('Organization') LIMIT ? [["LIMIT", 1]] [sql] [D] Puppetclass Load (0.2ms) SELECT "puppetclasses".* FROM "puppetclasses" WHERE "puppetclasses"."id" = ? ORDER BY puppetclasses.name LIMIT ? [["id", 33], ["LIMIT", 1]] [sql] [D] Host::Base Load (0.3ms) SELECT "hosts".* FROM "hosts" WHERE "hosts"."id" = ? LIMIT ? [["id", 0], ["LIMIT", 1]] [app] [D] not found: Couldn't find Host::Base with 'id'=undefined [app] [I] Rendering common/404.html.erb within layouts/application [app] [I] Rendered common/404.html.erb within layouts/application (1.6ms) [app] [I] Rendered layouts/_application_content.html.erb (4.6ms) [app] [I] Rendering layouts/base.html.erb [app] [I] Rendered layouts/base.html.erb (229.5ms) [app] [I] Completed 404 Not Found in 263ms (Views: 242.5ms | ActiveRecord: 2.1ms) [sql] [D] CACHE (0.0ms) SELECT "sessions".* FROM "sessions" WHERE "sessions"."session_id" = ? ORDER BY "sessions"."id" ASC LIMIT ? [["session_id", "01daaa37d34e6c9cd5273e70deb1b42b"], ["LIMIT", 1]]
Updated by Ohad Levy almost 7 years ago
would appericiate help to figure out which commit caused it to know if its 1.15 or 1.16
Updated by Daniel Lobato Garcia almost 7 years ago
Is that for a generic new host, any attributes set? I did:
- Click on create new host
- Only chose an environment (no more options, loc/org were set by default)
- Applied a few classes:
2017-07-20T08:08:51 56044ba4 [app] [I] Started POST "/puppetclasses/157/parameters" for ::1 at 2017-07-20 08:08:51 +0000 2017-07-20T08:08:51 56044ba4 [app] [I] Processing by PuppetclassesController#parameters as */* 2017-07-20T08:08:51 56044ba4 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"e5wj0NpRuSrtpzPJE6VVnGauwDPszB/SZ35hC+uoewG18zaxUDWZbnY/78Sx1b1EUhYDWmbagTIxk+2Nr4fbAg==", "host"=>{"name"=>"emma-vivona", "organization_id"=>"4", "location_id"=>"2", "hostgroup_id"=>"", "compute_resource_id"=>"", "compute_profile_id"=>"", "content_facet_attributes"=>{"lifecycle_environment_id"=>"", "content_view_id"=>"", "content_source_id"=>""}, "environment_id"=>"1", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "realm_id"=>"", "ansible_role_ids"=>[""], "config_group_ids"=>[""], "puppetclass_ids"=>["", "62", "58", "59", "157"], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"emma-vivona", "domain_id"=>"", "subnet_id"=>"", "subnet6_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "architecture_id"=>"", "provision_method"=>"build", "build"=>"1", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "bare_metal_capabilities"=>"build", "host_id"=>"null", "id"=>"157"} 2017-07-20T08:08:51 56044ba4 [app] [I] Current user: dlobatog (administrator) 2017-07-20T08:08:51 56044ba4 [app] [D] Setting current user thread-local variable to dlobatog 2017-07-20T08:08:51 56044ba4 [app] [D] Setting current organization thread-local variable to centos7-devel-lobacorp 2017-07-20T08:08:51 56044ba4 [app] [D] Setting current location thread-local variable to Local SSD 2017-07-20T08:08:51 56044ba4 [app] [I] Rendered puppetclasses/_class_parameters.html.erb (11.4ms) 2017-07-20T08:08:51 56044ba4 [app] [I] Completed 200 OK in 60ms (Views: 10.8ms | ActiveRecord: 11.9ms) 2017-07-20T08:08:52 2da87fee [app] [D] 2017-07-20T08:08:52 2da87fee [app] [D] 2017-07-20T08:08:52 2da87fee [app] [I] Started POST "/puppetclasses/153/parameters" for ::1 at 2017-07-20 08:08:52 +0000 2017-07-20T08:08:52 2da87fee [app] [I] Processing by PuppetclassesController#parameters as */* 2017-07-20T08:08:52 2da87fee [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"e5wj0NpRuSrtpzPJE6VVnGauwDPszB/SZ35hC+uoewG18zaxUDWZbnY/78Sx1b1EUhYDWmbagTIxk+2Nr4fbAg==", "host"=>{"name"=>"emma-vivona", "organization_id"=>"4", "location_id"=>"2", "hostgroup_id"=>"", "compute_resource_id"=>"", "compute_profile_id"=>"", "content_facet_attributes"=>{"lifecycle_environment_id"=>"", "content_view_id"=>"", "content_source_id"=>""}, "environment_id"=>"1", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "realm_id"=>"", "ansible_role_ids"=>[""], "config_group_ids"=>[""], "puppetclass_ids"=>["", "62", "58", "59", "157", "153"], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"emma-vivona", "domain_id"=>"", "subnet_id"=>"", "subnet6_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "architecture_id"=>"", "provision_method"=>"build", "build"=>"1", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "bare_metal_capabilities"=>"build", "host_id"=>"null", "id"=>"153"} 2017-07-20T08:08:52 2da87fee [app] [I] Current user: dlobatog (administrator) 2017-07-20T08:08:52 2da87fee [app] [D] Setting current user thread-local variable to dlobatog 2017-07-20T08:08:52 2da87fee [app] [D] Setting current organization thread-local variable to centos7-devel-lobacorp 2017-07-20T08:08:52 2da87fee [app] [D] Setting current location thread-local variable to Local SSD 2017-07-20T08:08:52 2da87fee [app] [I] Rendered puppetclasses/_class_parameters.html.erb (9.6ms) 2017-07-20T08:08:52 2da87fee [app] [I] Completed 200 OK in 58ms (Views: 10.4ms | ActiveRecord: 11.9ms)
Updated by Ohad Levy almost 7 years ago
for me - steps to reproduce:
1. select create new host
2. select an env (in my case org was not preselected).
3. change to the puppet classes tab, expand one and select it.
4. notice 404.
Actions