Problem:
When I try to provision for the first time a discovered host. I receive an error on the UI " Host not found Please try to update your request" . The same error occurs if I click on “Monitor” >> “Audits” >> discovered host >> “Host details”
Expected outcome:
Host provisioned with correct settings
Foreman and Proxy versions:
Katello 3.10
Foreman 1.20.2
Foreman and Proxy plugin versions:
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)
logs
==> /var/log/foreman-proxy/proxy.log <==
2019-03-05T16:46:58 301786b9 [I] Started GET /nodes/discoverytestd01p
2019-03-05T16:46:58 301786b9 [E] Node discoverytestd01p not found
2019-03-05T16:46:58 301786b9 [I] Finished GET /nodes/discoverytestd01p with 404 (147.77 ms)
2019-03-05T16:46:58 301786b9 [I] Started GET /nodes/discoverytestd01p
2019-03-05T16:46:58 301786b9 [E] Node discoverytestd01p not found
2019-03-05T16:46:58 301786b9 [I] Finished GET /nodes/discoverytestd01p with 404 (68.47 ms)
2019-03-05T16:46:58 301786b9 [I] Started GET /nodes/discoverytestd01p
2019-03-05T16:46:58 301786b9 [E] Node discoverytestd01p not found
2019-03-05T16:46:58 301786b9 [I] Finished GET /nodes/discoverytestd01p with 404 (60.82 ms)
2019-03-05T16:46:58 301786b9 [I] Started GET /nodes/discoverytestd01p
2019-03-05T16:46:59 301786b9 [E] Node discoverytestd01p not found
2019-03-05T16:46:59 301786b9 [I] Finished GET /nodes/discoverytestd01p with 404 (41.73 ms)
2019-03-05T16:46:59 301786b9 [I] Started GET /nodes/discoverytestd01p
2019-03-05T16:46:59 301786b9 [E] Node discoverytestd01p not found
2019-03-05T16:46:59 301786b9 [I] Finished GET /nodes/discoverytestd01p with 404 (60.92 ms)
==> /var/log/foreman/production.log <==
2019-03-05T16:46:58 [I|app|b1722] Rendered hosts/_progress.html.erb (1.2ms)
2019-03-05T16:46:58 [I|app|b1722] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_chef-0.8.1/app/views/foreman_chef/hosts/_chef_tab.html.erb (252.1ms)
2019-03-05T16:46:58 [I|app|b1722] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0/app/views/overrides/activation_keys/_host_environment_select.html.erb (28.7ms)
2019-03-05T16:46:58 [I|app|b1722] Rendered hosts/puppet/_main_tab_fields.html.erb (11.4ms)
2019-03-05T16:46:58 [I|app|] Started GET "/notification_recipients" for 172.18.11.16 at 2019-03-05 16:46:58 -0600
2019-03-05T16:46:59 [I|app|598be] Processing by NotificationRecipientsController#index as JSON
2019-03-05T16:46:59 [I|app|598be] Current user set to timbrooks (admin)
2019-03-05T16:46:59 [I|app|b1722] Rendered hosts/puppet/_puppet_classes_tab.html.erb (12.2ms)
==> /var/log/foreman/production.log <==
2019-03-05T16:46:59 [I|app|598be] Completed 200 OK in 177ms (Views: 0.5ms | ActiveRecord: 17.4ms)
2019-03-05T16:46:59 [I|app|b1722] Deface: [WARNING] No :original defined for 'add_execution_interface', you should change its definition to include:
:original => 'dbe1da973bfb251a74b994e7ae11bc8d11502c97'
2019-03-05T16:46:59 [I|app|b1722] Rendered nic/_base_form.html.erb (85.5ms)
2019-03-05T16:46:59 [I|app|b1722] Rendered nic/_virtual_form.html.erb (2.4ms)
2019-03-05T16:47:00 [I|app|b1722] Loaded compute resource data for networks in 0.176779084 seconds
2019-03-05T16:47:00 [I|app|b1722] Rendered compute_resources_vms/form/vmware/_network.html.erb (184.5ms)
2019-03-05T16:47:00 [I|app|b1722] Rendered nic/_provider_specific_form.html.erb (766.4ms)
2019-03-05T16:47:00 [I|app|b1722] Rendered nic/manageds/_managed.html.erb (886.5ms)
2019-03-05T16:47:00 [I|app|b1722] Rendered nic/_base_form.html.erb (74.0ms)
2019-03-05T16:47:00 [I|app|b1722] Rendered nic/_virtual_form.html.erb (1.3ms)
2019-03-05T16:47:00 [I|app|b1722] Rendered compute_resources_vms/form/vmware/_network.html.erb (3.1ms)
2019-03-05T16:47:00 [I|app|b1722] Rendered nic/_provider_specific_form.html.erb (5.4ms)
2019-03-05T16:47:00 [I|app|b1722] Rendered nic/manageds/_managed.html.erb (90.2ms)
2019-03-05T16:47:00 [I|app|b1722] Rendered hosts/_interfaces.html.erb (991.7ms)
2019-03-05T16:47:00 [I|app|b1722] Loaded compute resource data for cluster-SiteD-Compute in 0.1542765 seconds
2019-03-05T16:47:01 [I|app|b1722] Loaded compute resource data for resource_pools in 0.598402811 seconds
2019-03-05T16:47:01 [I|app|b1722] Loaded compute resource data for folders in 0.234076542 seconds
2019-03-05T16:47:01 [I|app|b1722] Loaded compute resource data for storage_pods in 0.191755503 seconds
==> /var/log/foreman/production.log <==
2019-03-05T16:47:03 [I|app|b1722] Loaded compute resource data for datastores in 1.875735791 seconds
2019-03-05T16:47:03 [I|app|b1722] Rendered compute_resources_vms/form/vmware/_base.html.erb (3433.6ms)
2019-03-05T16:47:03 [I|app|b1722] Rendered compute_resources_vms/form/_volumes.html.erb (1.8ms)
2019-03-05T16:47:03 [I|app|b1722] Rendered hosts/_compute_detail.html.erb (3450.8ms)
2019-03-05T16:47:03 [I|app|b1722] Rendered hosts/_compute.html.erb (3460.2ms)
2019-03-05T16:47:03 [I|app|b1722] Rendered common/os_selection/_architecture.html.erb (11.9ms)
2019-03-05T16:47:03 [I|app|b1722] Deface: [WARNING] No :original defined for 'hosts_select_media_type', you should change its definition to include:
:original => '356145b9d744833e37767c56700139090bc696d7'
2019-03-05T16:47:03 [I|app|b1722] Deface: [WARNING] No :original defined for 'hosts_select_synced_content', you should change its definition to include:
:original => '356145b9d744833e37767c56700139090bc696d7'
2019-03-05T16:47:04 [I|app|b1722] Rendered common/os_selection/_pxe_loader.html.erb (7.7ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered common/os_selection/_operatingsystem.html.erb (267.8ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered hosts/provision_method/build/_form.html.erb (294.9ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered hosts/provision_method/image/_form.html.erb (0.9ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered hosts/_operating_system.html.erb (337.4ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered hosts/_unattended.html.erb (3809.8ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered collection of puppetclasses/_class_parameters.html.erb [0 times] (0.0ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered puppetclasses/_classes_parameters.html.erb (31.0ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered common_parameters/_inherited_parameters.html.erb (31.1ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered common_parameters/_parameter.html.erb (3.9ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered common_parameters/_parameters.html.erb (15.8ms)
2019-03-05T16:47:04 [I|app|b1722] Rendered hosts/_form.html.erb (5949.9ms)
2019-03-05T16:47:04 [I|app|b1722] Completed 200 OK in 6802ms (Views: 6239.1ms | ActiveRecord: 194.4ms)
==> /var/log/foreman/production.log <==
2019-03-05T16:47:04 [I|app|] Started GET "/compute_resources/2/images?operatingsystem_id=1&architecture_id=1" for 172.18.11.16 at 2019-03-05 16:47:04 -0600
2019-03-05T16:47:04 [I|app|eaf40] Processing by ImagesController#index as JSON
2019-03-05T16:47:04 [I|app|eaf40] Parameters: {"operatingsystem_id"=>"1", "architecture_id"=>"1", "compute_resource_id"=>"2"}
2019-03-05T16:47:04 [I|app|eaf40] Current user set to timbrooks (admin)
2019-03-05T16:47:04 [I|app|eaf40] Completed 200 OK in 24ms (Views: 0.6ms | ActiveRecord: 5.7ms)
==> /var/log/foreman/production.log <==
2019-03-05T16:47:25 [I|app|] Started PATCH "/hosts/1" for 172.18.11.16 at 2019-03-05 16:47:25 -0600
2019-03-05T16:47:25 [I|app|d32a4] Processing by HostsController#update as */*
2019-03-05T16:47:25 [I|app|d32a4] Parameters: {"utf8"=>"✓", "authenticity_token"=>"1rUr+AT6VPnOlbx8Gw1TvTxy1hUeQWLkNcvYotA51zvsO15p2swReDdYChHmUwwGq4v5YIzvwd/qxO3T8p5WrQ==", "host"=>{"run_list"=>{"0"=>{"type"=>"recipe", "name"=>"carfax_default"}}, "override_chef_attributes"=>"true", "name"=>"discoverytestd01p", "hostgroup_id"=>"37", "content_facet_attributes"=>{"lifecycle_environment_id"=>"4", "content_view_id"=>"13", "content_source_id"=>"8", "kickstart_repository_id"=>"88"}, "environment_id"=>"", "chef_proxy_id"=>"1", "chef_environment_id"=>"71", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "mac"=>"00:50:56:9c:cf:3f", "identifier"=>"ens192", "name"=>"discoverytestd01p", "domain_id"=>"3", "subnet_id"=>"", "ip"=>"172.28.128.1", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"dvportgroup-33293"}, "id"=>"1"}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"8192", "firmware"=>"bios", "cluster"=>"SiteD-Compute", "resource_pool"=>"Production-Compute", "path"=>"/Datacenters/Carrolton/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":52428800,\"sizeGb\":50,\"storagePod\":\"D001-Compute-Production\"}]}"}, "architecture_id"=>"1", "operatingsystem_id"=>"1", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"138", "pxe_loader"=>"PXELinux UEFI", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"5-Users", "enabled"=>"1", "comment"=>"", "overwrite"=>"false"}, "media_selector"=>"synced_content", "id"=>"1"}
2019-03-05T16:47:25 [I|app|d32a4] Current user set to timbrooks (admin)
2019-03-05T16:47:25 [I|app|d32a4] Rendering common/404.html.erb within layouts/application
2019-03-05T16:47:25 [I|app|d32a4] Rendered common/404.html.erb within layouts/application (2.7ms)
2019-03-05T16:47:25 [I|app|d32a4] Rendered layouts/_application_content.html.erb (0.7ms)
2019-03-05T16:47:25 [I|app|d32a4] Rendering layouts/base.html.erb
2019-03-05T16:47:25 [I|app|d32a4] Rendered layouts/base.html.erb (2.3ms)
2019-03-05T16:47:25 [I|app|d32a4] Completed 404 Not Found in 39ms (Views: 13.7ms | ActiveRecord: 4.7ms)
==> /var/log/httpd/foreman-ssl_access_ssl.log <==
172.18.11.16 - - [05/Mar/2019:16:47:25 -0600] "GET /webpack/vendor-8f1a560ed7b654fe8dba.js?_=1551825997836 HTTP/1.1" 200 1280821 "https://katellod02p.d.carfax.us/discovered_hosts/mac0050569ccf3f/edit?utf8=%E2%9C%93&host%5Bhostgroup_id%5D=&host%5Borganization_id%5D=1&host%5Blocation_id%5D=2" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15"
172.18.11.16 - - [05/Mar/2019:16:47:25 -0600] "GET /webpack/bundle-bd58b138bfe3abee18b4.js?_=1551825997837 HTTP/1.1" 200 47365 "https://katellod02p.d.carfax.us/discovered_hosts/mac0050569ccf3f/edit?utf8=%E2%9C%93&host%5Bhostgroup_id%5D=&host%5Borganization_id%5D=1&host%5Blocation_id%5D=2" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15"
172.18.11.16 - - [05/Mar/2019:16:47:25 -0600] "GET /assets/application-64307e378000581d0ac20e49d7378f494afc01605226ae3cd435b94f5cdf2fb0.js?_=1551825997838 HTTP/1.1" 200 71887 "https://katellod02p.d.carfax.us/discovered_hosts/mac0050569ccf3f/edit?utf8=%E2%9C%93&host%5Bhostgroup_id%5D=&host%5Borganization_id%5D=1&host%5Blocation_id%5D=2" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15"
```