Actions
Bug #31163
closedRegistration facet does not reload properly when code changes
Status:
Resolved
Priority:
High
Assignee:
-
Category:
Rails
Target version:
-
Description
When testing something on the host api, every time the code reloaded the api breaks due to the registration facet not being properly registered.
To reproduce, hit `/api/hosts`, change something in the code so rails will reload, and hit the `/api/hosts` endpoint again.
Interesting portion of the stacktrace:
2020-10-25T18:23:41 [I|app|8e68af37] Backtrace for 'Action failed' error (ActionView::Template::Error): undefined local variable or method `registration_facet' for #<Host::Managed:0x00007f6f74257908> 8e68af37 | Did you mean? registration_facet! 8e68af37 | registration_token 8e68af37 | registration_url 8e68af37 | /home/tbrisker/.rvm/gems/ruby-2.6.3@foreman/gems/activemodel-6.0.3.4/lib/active_model/attribute_methods.rb:432:in `method_missing' 8e68af37 | /home/tbrisker/.rvm/gems/ruby-2.6.3@foreman/gems/audited-4.9.0/lib/audited/auditor.rb:99:in `method_missing' 8e68af37 | /home/tbrisker/foreman/app/models/concerns/foreman_register/host_extensions.rb:8:in `registration_facet!' 8e68af37 | /home/tbrisker/foreman/app/models/concerns/foreman_register/host_extensions.rb:12:in `registration_token' 8e68af37 | /home/tbrisker/foreman/app/views/api/v2/hosts/main.json.rabl:37:in `block in cached_source_2123035666155962752'
Updated by Tomer Brisker about 4 years ago
- Has duplicate Bug #31309: Creating new host fails with undefined local variable or method `registration_facet' added
Updated by Lukas Zapletal about 4 years ago
- Priority changed from Normal to High
I get this error when issuing "hammer host create" everytime, even after fresh restart.
Updated by Lukas Zapletal about 4 years ago
Oleh tried this and it looks on his deployment it only triggers after a code change. So it is just me... :-(
bundle exec bin/hammer host create --name fake$(openssl rand -hex 3) --hostgroup "CentOS 7.0" --interface="mac=$(echo -n 52:54:00:; openssl rand -hex 3 | sed 's/\(..\)/\1:/g; s/.$//'),primary=true,provision=true" --location "Default Location" --organization "Default Organization"
13:53:17 rails.1 | 2020-11-12T13:53:17 [I|app|4c16c97a] Started GET "/apidoc/v2.cs.json" for ::1 at 2020-11-12 13:53:17 +0100 13:53:17 rails.1 | 2020-11-12T13:53:17 [I|app|4c16c97a] Processing by Apipie::ApipiesController#index as JSON 13:53:17 rails.1 | 2020-11-12T13:53:17 [I|app|4c16c97a] Parameters: {"version"=>"v2.cs.json", "apipy"=>{}} 13:53:28 rails.1 | 2020-11-12T13:53:28 [W|app|4c16c97a] Creating scope :completer_scope. Overwriting existing method Location.completer_scope. 13:53:28 rails.1 | 2020-11-12T13:53:28 [W|app|4c16c97a] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope. 13:53:28 rails.1 | 2020-11-12T13:53:28 [W|app|4c16c97a] DEPRECATION WARNING: Controller-level `force_ssl` is deprecated and will be removed from Rails 6.1. Please enable `config.force_ssl` in your environment configuration to enable the ActionDispatch::SSL middleware to more fully enforce that your application communicate over HTTPS. If needed, you can use `config.ssl_options` to exempt matching endpoints from being redirected to HTTPS. (called from block in <module:RequireSsl> at /home/lzap/Projekty/foreman/app/controllers/concerns/foreman/controller/require_ssl.rb:7) 13:53:28 rails.1 | 2020-11-12T13:53:28 [W|app|4c16c97a] DEPRECATION WARNING: Controller-level `force_ssl` is deprecated and will be removed from Rails 6.1. Please enable `config.force_ssl` in your environment configuration to enable the ActionDispatch::SSL middleware to more fully enforce that your application communicate over HTTPS. If needed, you can use `config.ssl_options` to exempt matching endpoints from being redirected to HTTPS. (called from block in <module:RequireSsl> at /home/lzap/Projekty/foreman/app/controllers/concerns/foreman/controller/require_ssl.rb:7) 13:53:28 rails.1 | 2020-11-12T13:53:28 [W|app|4c16c97a] DEPRECATION WARNING: Controller-level `force_ssl` is deprecated and will be removed from Rails 6.1. Please enable `config.force_ssl` in your environment configuration to enable the ActionDispatch::SSL middleware to more fully enforce that your application communicate over HTTPS. If needed, you can use `config.ssl_options` to exempt matching endpoints from being redirected to HTTPS. (called from block in <module:RequireSsl> at /home/lzap/Projekty/foreman/app/controllers/concerns/foreman/controller/require_ssl.rb:7) 13:53:30 rails.1 | 2020-11-12T13:53:30 [I|app|4c16c97a] Completed 404 Not Found in 13096ms (ActiveRecord: 73.7ms | Allocations: 1710128) 13:53:30 rails.1 | 4c16c97a | 13:53:30 rails.1 | 4c16c97a | 13:53:31 rails.1 | 2020-11-12T13:53:31 [I|app|46d0e8e0] Started GET "/apidoc/v2.json" for ::1 at 2020-11-12 13:53:31 +0100 13:53:31 rails.1 | 2020-11-12T13:53:31 [I|app|46d0e8e0] Processing by Apipie::ApipiesController#index as JSON 13:53:31 rails.1 | 2020-11-12T13:53:31 [I|app|46d0e8e0] Parameters: {"version"=>"v2.json", "apipy"=>{}} 13:53:33 rails.1 | 2020-11-12T13:53:33 [W|app|46d0e8e0] Creating scope :completer_scope. Overwriting existing method Location.completer_scope. 13:53:33 rails.1 | 2020-11-12T13:53:33 [W|app|46d0e8e0] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope. 13:53:33 rails.1 | 2020-11-12T13:53:33 [W|app|46d0e8e0] DEPRECATION WARNING: Controller-level `force_ssl` is deprecated and will be removed from Rails 6.1. Please enable `config.force_ssl` in your environment configuration to enable the ActionDispatch::SSL middleware to more fully enforce that your application communicate over HTTPS. If needed, you can use `config.ssl_options` to exempt matching endpoints from being redirected to HTTPS. (called from block in <module:RequireSsl> at /home/lzap/Projekty/foreman/app/controllers/concerns/foreman/controller/require_ssl.rb:7) 13:53:33 rails.1 | 2020-11-12T13:53:33 [W|app|46d0e8e0] DEPRECATION WARNING: Controller-level `force_ssl` is deprecated and will be removed from Rails 6.1. Please enable `config.force_ssl` in your environment configuration to enable the ActionDispatch::SSL middleware to more fully enforce that your application communicate over HTTPS. If needed, you can use `config.ssl_options` to exempt matching endpoints from being redirected to HTTPS. (called from block in <module:RequireSsl> at /home/lzap/Projekty/foreman/app/controllers/concerns/foreman/controller/require_ssl.rb:7) 13:53:33 rails.1 | 2020-11-12T13:53:33 [W|app|46d0e8e0] DEPRECATION WARNING: Controller-level `force_ssl` is deprecated and will be removed from Rails 6.1. Please enable `config.force_ssl` in your environment configuration to enable the ActionDispatch::SSL middleware to more fully enforce that your application communicate over HTTPS. If needed, you can use `config.ssl_options` to exempt matching endpoints from being redirected to HTTPS. (called from block in <module:RequireSsl> at /home/lzap/Projekty/foreman/app/controllers/concerns/foreman/controller/require_ssl.rb:7) 13:53:37 rails.1 | 2020-11-12T13:53:37 [I|app|46d0e8e0] Completed 200 OK in 5492ms (Views: 248.0ms | ActiveRecord: 70.8ms | Allocations: 3541594) 13:53:37 rails.1 | 46d0e8e0 | 13:53:37 rails.1 | 46d0e8e0 | 13:53:38 rails.1 | 2020-11-12T13:53:38 [I|app|57391668] Started GET "/api/organizations?search=name+%3D+%22Default+Organization%22&per_page=1000&page=1" for ::1 at 2020-11-12 13:53:38 +0100 13:53:38 rails.1 | 2020-11-12T13:53:38 [I|app|57391668] Processing by Api::V2::OrganizationsController#index as JSON 13:53:38 rails.1 | 2020-11-12T13:53:38 [I|app|57391668] Parameters: {"search"=>"name = \"Default Organization\"", "per_page"=>"1000", "page"=>"1", "apiv"=>"v2", "organization"=>{}} 13:53:38 rails.1 | 2020-11-12T13:53:38 [D|app|57391668] Authenticated user admin against INTERNAL authentication source 13:53:38 rails.1 | 2020-11-12T13:53:38 [D|app|57391668] Post-login processing for admin 13:53:38 rails.1 | 2020-11-12T13:53:38 [I|app|57391668] Authorized user admin(Admin User) 13:53:38 rails.1 | 2020-11-12T13:53:38 [D|app|57391668] Post-login processing for admin 13:53:38 rails.1 | 2020-11-12T13:53:38 [D|tax|57391668] Current location set to none 13:53:38 rails.1 | 2020-11-12T13:53:38 [D|tax|57391668] Current organization set to none 13:53:38 rails.1 | 2020-11-12T13:53:38 [D|tax|57391668] Current location set to none 13:53:38 rails.1 | 2020-11-12T13:53:38 [D|tax|57391668] Current organization set to none 13:53:38 rails.1 | 2020-11-12T13:53:38 [I|app|57391668] Rendering api/v2/taxonomies/index.json.rabl within api/v2/layouts/index_layout 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|57391668] Rendered api/v2/taxonomies/index.json.rabl within api/v2/layouts/index_layout (Duration: 26.7ms | Allocations: 9066) 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|app|57391668] Body: { 13:53:39 rails.1 | 57391668 | "total": 1, 13:53:39 rails.1 | 57391668 | "subtotal": 1, 13:53:39 rails.1 | 57391668 | "page": 1, 13:53:39 rails.1 | 57391668 | "per_page": 1000, 13:53:39 rails.1 | 57391668 | "search": "name = \"Default Organization\"", 13:53:39 rails.1 | 57391668 | "sort": { 13:53:39 rails.1 | 57391668 | "by": null, 13:53:39 rails.1 | 57391668 | "order": null 13:53:39 rails.1 | 57391668 | }, 13:53:39 rails.1 | 57391668 | "results": [{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2020-10-05 12:48:13 UTC","updated_at":"2020-10-05 12:48:13 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}] 13:53:39 rails.1 | 57391668 | } 13:53:39 rails.1 | 57391668 | 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|57391668] Completed 200 OK in 394ms (Views: 25.1ms | ActiveRecord: 29.6ms | Allocations: 94643) 13:53:39 rails.1 | 57391668 | 13:53:39 rails.1 | 57391668 | 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|0c930a3e] Started GET "/api/hostgroups?search=name+%3D+%22CentOS+7.0%22&per_page=1000&page=1" for ::1 at 2020-11-12 13:53:39 +0100 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|0c930a3e] Processing by Api::V2::HostgroupsController#index as JSON 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|0c930a3e] Parameters: {"search"=>"name = \"CentOS 7.0\"", "per_page"=>"1000", "page"=>"1", "apiv"=>"v2", "hostgroup"=>{}} 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|app|0c930a3e] Authenticated user admin against INTERNAL authentication source 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|app|0c930a3e] Post-login processing for admin 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|0c930a3e] Authorized user admin(Admin User) 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|app|0c930a3e] Post-login processing for admin 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|tax|0c930a3e] Current location set to none 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|tax|0c930a3e] Current organization set to none 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|tax|0c930a3e] Current location set to none 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|tax|0c930a3e] Current organization set to none 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|0c930a3e] Rendering api/v2/hostgroups/index.json.rabl within api/v2/layouts/index_layout 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|0c930a3e] Rendered api/v2/hostgroups/index.json.rabl within api/v2/layouts/index_layout (Duration: 271.7ms | Allocations: 79699) 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|app|0c930a3e] Body: { 13:53:39 rails.1 | 0c930a3e | "total": 1, 13:53:39 rails.1 | 0c930a3e | "subtotal": 1, 13:53:39 rails.1 | 0c930a3e | "page": 1, 13:53:39 rails.1 | 0c930a3e | "per_page": 1000, 13:53:39 rails.1 | 0c930a3e | "search": "name = \"CentOS 7.0\"", 13:53:39 rails.1 | 0c930a3e | "sort": { 13:53:39 rails.1 | 0c930a3e | "by": null, 13:53:39 rails.1 | 0c930a3e | "order": null 13:53:39 rails.1 | 0c930a3e | }, 13:53:39 rails.1 | 0c930a3e | "results": [{"subnet_id":1,"subnet_name":"dummy","operatingsystem_id":1,"operatingsystem_name":"CentOS 7.0","domain_id":1,"domain_name":"dummy.lan","environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":117,"ptable_name":"Kickstart default","medium_id":1,"medium_name":"CentOS 7 mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-11-12 12:24:54 UTC","updated_at":"2020-11-12 12:24:54 UTC","id":1,"name":"CentOS 7.0","title":"CentOS 7.0","description":"","puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null}] 13:53:39 rails.1 | 0c930a3e | } 13:53:39 rails.1 | 0c930a3e | 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|0c930a3e] Completed 200 OK in 489ms (Views: 248.9ms | ActiveRecord: 38.8ms | Allocations: 92007) 13:53:39 rails.1 | 0c930a3e | 13:53:39 rails.1 | 0c930a3e | 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|6086c67b] Started POST "/api/hosts" for ::1 at 2020-11-12 13:53:39 +0100 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|6086c67b] Processing by Api::V2::HostsController#create as JSON 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|6086c67b] Parameters: {"location_id"=>2, "organization_id"=>1, "host"=>{"name"=>"fake539332", "location_id"=>2, "organization_id"=>1, "hostgroup_id"=>1, "build"=>true, "managed"=>true, "enabled"=>true, "overwrite"=>true, "compute_attributes"=>{"volumes_attributes"=>{}}, "interfaces_attributes"=>[{"mac"=>"52:54:00:ae:6b:0f", "primary"=>"true", "provision"=>"true"}]}, "apiv"=>"v2"} 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|app|6086c67b] Authenticated user admin against INTERNAL authentication source 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|app|6086c67b] Post-login processing for admin 13:53:39 rails.1 | 2020-11-12T13:53:39 [I|app|6086c67b] Authorized user admin(Admin User) 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|app|6086c67b] Post-login processing for admin 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|tax|6086c67b] Current location set to Default Location 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|tax|6086c67b] Current organization set to Default Organization 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|tax|6086c67b] Current location set to Default Location 13:53:39 rails.1 | 2020-11-12T13:53:39 [D|tax|6086c67b] Current organization set to Default Organization 13:53:40 rails.1 | 2020-11-12T13:53:40 [D|app|6086c67b] IPAM IPAM::RandomDb searching range 192.168.55.10 - 192.168.55.253 13:53:40 rails.1 | 2020-11-12T13:53:40 [D|app|6086c67b] Found 192.168.55.41 in 1 iterations 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on mac 52:54:00:ae:6b:0f 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on ip 192.168.55.41 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on type Nic::Managed 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on name fake539332.dummy.lan 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on host_id 7 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on subnet_id 1 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on domain_id 1 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on attrs {} 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on provider 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on username 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on password [redacted] 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on virtual false 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on link true 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on identifier 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on tag 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on attached_to 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on managed true 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on mode balance-rr 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on attached_devices 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on bond_options 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on primary true 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on provision true 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on compute_attributes {} 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on ip6 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Nic::Managed (7) create event on subnet6_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on name fake539332.dummy.lan 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on root_pass $5$7pOJQ0elomBn3Khr$jJ4EdIdjkVwTdizBuSFH86HlOUc8RjiaYpJo/DfZlZ0 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on architecture_id 1 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on operatingsystem_id 1 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on environment_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on ptable_id 117 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on medium_id 1 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on build true 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on comment 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on disk 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on installed_at 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on model_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on hostgroup_id 1 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on owner_id 4 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on owner_type User 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on enabled true 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on puppet_ca_proxy_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on managed true 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on use_image 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on image_file 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on uuid 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on compute_resource_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on puppet_proxy_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on certname 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on image_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on organization_id 1 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on location_id 2 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on otp 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on realm_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on compute_profile_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on provision_method 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on grub_pass $5$7pOJQ0elomBn3Khr$jJ4EdIdjkVwTdizBuSFH86HlOUc8RjiaYpJo/DfZlZ0 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on discovery_rule_id 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on pxe_loader 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on initiated_at 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|aud|6086c67b] Host::Base (7) create event on build_errors 13:53:40 rails.1 | 2020-11-12T13:53:40 [D|not|6086c67b] Notification event: UINotifications::DestroyHost - checking for notifications 13:53:40 rails.1 | 2020-11-12T13:53:40 [D|app|6086c67b] custom hook after_build on fake539332.dummy.lan will be executed if defined. 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|app|6086c67b] ForemanWebhooks::EventSubscriber: build_entered.event.foreman event received 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|app|6086c67b] ForemanWebhooks::EventSubscriber: host_created.event.foreman event received 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|app|6086c67b] Rendering api/v2/hosts/create.json.rabl 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|app|6086c67b] Rendered api/v2/hosts/create.json.rabl (Duration: 255.8ms | Allocations: 46841) 13:53:40 rails.1 | 2020-11-12T13:53:40 [W|app|6086c67b] Action failed 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|app|6086c67b] Backtrace for 'Action failed' error (ActionView::Template::Error): undefined local variable or method `registration_facet' for #<Host::Managed:0x00007fcfcd5412e0> 13:53:40 rails.1 | 6086c67b | Did you mean? registration_facet! 13:53:40 rails.1 | 6086c67b | registration_token 13:53:40 rails.1 | 6086c67b | registration_url 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activemodel-6.0.3.4/lib/active_model/attribute_methods.rb:432:in `method_missing' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/audited-4.9.0/lib/audited/auditor.rb:99:in `method_missing' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/models/concerns/foreman_register/host_extensions.rb:8:in `registration_facet!' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/models/concerns/foreman_register/host_extensions.rb:12:in `registration_token' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/views/api/v2/hosts/main.json.rabl:37:in `block in cached_source_2541515350808041314' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:157:in `node' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:116:in `block in compile_settings' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:115:in `each' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:115:in `compile_settings' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:60:in `block in to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:252:in `cache_results' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:51:in `to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:90:in `to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:50:in `block in render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:385:in `cache_results' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:49:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/config/initializers/rabl_init.rb:49:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:129:in `block in merge_engines_into_result' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:121:in `each' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:121:in `merge_engines_into_result' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:57:in `block in to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:252:in `cache_results' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:51:in `to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:90:in `to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:50:in `block in render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:385:in `cache_results' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:49:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/config/initializers/rabl_init.rb:49:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:129:in `block in merge_engines_into_result' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:121:in `each' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:121:in `merge_engines_into_result' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:57:in `block in to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:252:in `cache_results' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/builder.rb:51:in `to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:90:in `to_hash' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:103:in `to_dumpable' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:112:in `to_json' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:50:in `block in render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:385:in `cache_results' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rabl-0.14.3/lib/rabl/engine.rb:49:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/config/initializers/rabl_init.rb:49:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/views/api/v2/hosts/create.json.rabl:3:in `_app_views_api_v__hosts_create_json_rabl___814157889669225558_345640' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:58:in `block (2 levels) in render_template' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:57:in `block in render_template' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:65:in `render_with_layout' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:56:in `render_template' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:13:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:29:in `render_to_object' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:117:in `block in _render_template' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/base.rb:304:in `in_rendering_context' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:116:in `_render_template' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/streaming.rb:218:in `_render_template' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:103:in `render_to_body' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:52:in `render_to_body' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/renderers.rb:142:in `render_to_body' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/abstract_controller/rendering.rb:25:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:36:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/core_ext/benchmark.rb:14:in `block in ms' 13:53:40 rails.1 | 6086c67b | /usr/share/ruby/benchmark.rb:308:in `realtime' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/core_ext/benchmark.rb:14:in `ms' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:44:in `block in render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activerecord-6.0.3.4/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:43:in `render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/responders-3.0.1/lib/action_controller/responder.rb:240:in `default_render' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/responders-3.0.1/lib/action_controller/responder.rb:190:in `to_format' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/responders-3.0.1/lib/action_controller/responder.rb:165:in `respond' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/responders-3.0.1/lib/action_controller/responder.rb:158:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/responders-3.0.1/lib/action_controller/respond_with.rb:213:in `respond_with' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/controllers/api/base_controller.rb:160:in `process_success' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/controllers/api/base_controller.rb:165:in `process_response' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/controllers/api/v2/hosts_controller.rb:144:in `create' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:195:in `process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:30:in `process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:42:in `block in process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:112:in `block in run_callbacks' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:139:in `run_callbacks' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:41:in `process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rescue.rb:22:in `process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:32:in `process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/params_wrapper.rb:245:in `process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activerecord-6.0.3.4/lib/active_record/railties/controller_runtime.rb:27:in `process_action' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:136:in `process' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:39:in `process' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:190:in `dispatch' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:254:in `dispatch' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:33:in `serve' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/mapper.rb:18:in `block in <class:Constraints>' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/mapper.rb:48:in `serve' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:49:in `block in serve' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `each' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `serve' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:834:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/apipie-dsl-2.3.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/apipie-rails-0.5.18/lib/apipie/static_dispatcher.rb:66:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/bullet-6.1.0/lib/bullet/rack.rb:15:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/apipie-rails-0.5.18/lib/apipie/extractor/recorder.rb:137:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/lib/foreman/middleware/telemetry.rb:10:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/apipie-rails-0.5.18/lib/apipie/middleware/checksum_in_headers.rb:27:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:40:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/http/content_security_policy.rb:18:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/cookies.rb:648:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activerecord-6.0.3.4/lib/active_record/migration.rb:567:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:101:in `run_callbacks' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:26:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/executor.rb:14:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:37:in `call_app' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:28:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/quiet_assets.rb:13:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/remote_ip.rb:81:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/request_id.rb:27:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/executor.rb:14:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/static.rb:126:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/host_authorization.rb:82:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/secure_headers-6.3.1/lib/secure_headers/middleware.rb:11:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/engine.rb:527:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `public_send' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `method_missing' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in `block in call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `each' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/puma-4.3.6/lib/puma/configuration.rb:228:in `call' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/puma-4.3.6/lib/puma/server.rb:713:in `handle_request' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/puma-4.3.6/lib/puma/server.rb:472:in `process_client' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/puma-4.3.6/lib/puma/server.rb:328:in `block in run' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/puma-4.3.6/lib/puma/thread_pool.rb:134:in `block in spawn_thread' 13:53:40 rails.1 | 6086c67b | /home/lzap/Projekty/foreman/vendor/ruby/ruby/2.7.0/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context' 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|app|6086c67b] Rendering api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|app|6086c67b] Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (Duration: 0.6ms | Allocations: 165) 13:53:40 rails.1 | 2020-11-12T13:53:40 [I|app|6086c67b] Completed 500 Internal Server Error in 1070ms (Views: 2.1ms | ActiveRecord: 99.3ms | Allocations: 280945) 13:53:40 rails.1 | 6086c67b | 13:53:40 rails.1 | 6086c67b |
Updated by Tomer Brisker about 4 years ago
- Status changed from New to Resolved
Looks like this has been resolved by some other fix, can't reproduce on current develop
Updated by Tomer Brisker about 4 years ago
- Related to Bug #31518: foreman_hooks: create hook fails to render host with "You cannot call create unless the parent is saved" added
Updated by Tomer Brisker about 4 years ago
Looks like #31163 probably solved this as well.
Actions