Problem: New host provisioning failing after upgrading Foreman/Katello
After discovering a new host and attempting to provision with custom parameters through the UI I am met with a ‘Host not found’ error. We are not using DHCP
Expected outcome: Host provisioning succeeds
Foreman and Proxy versions: Foreman 3.18/Katello 4.20
Distribution and version: RedHat Enterprise Linux 9.8
Other relevant data:
When entering custom fields for provisioning the IPv4 subnet field appears empty even though this information should already be populated for the host from discovery

Looking at the production log at the time of the failed build on the Foreman server I see some 404s being thrown but I am having trouble deducing where this host information is being lost
2026-06-24T10:42:44 [I|app|16f9d0e4] Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 1.5ms | Allocations: 1598)
2026-06-24T10:42:44 [I|app|56dc8d0e] Started GET "/rhsm/consumers/57256280-9fa9-400e-9f62-6aa63f3507be/certificates/serials" for REDACTED at 2026-06-24 10:42:44 -0400
2026-06-24T10:42:44 [I|app|56dc8d0e] Processing by Katello::Api::Rhsm::CandlepinProxiesController#serials as JSON
2026-06-24T10:42:44 [I|app|56dc8d0e] Parameters: {"id"=>"57256280-9fa9-400e-9f62-6aa63f3507be"}
2026-06-24T10:42:44 [E|app|56dc8d0e] RestClient::NotFound: Katello::Resources::Candlepin::Consumer: 404 Not Found {"displayMessage":"Consumer with ID(s) 57256280-9fa9-400e-9f62-6aa63f3507be could not be found.","requestUuid":"ede5781f-6b4f-43be-bf2f-3321a9817cba"} (GET /candlepin/consumers/57256280-9fa9-400e-9f62-6aa63f3507be)
56dc8d0e | Body: {"displayMessage":"Consumer with ID(s) 57256280-9fa9-400e-9f62-6aa63f3507be could not be found.","requestUuid":"ede5781f-6b4f-43be-bf2f-3321a9817cba"}
56dc8d0e |
2026-06-24T10:42:44 [E|app|56dc8d0e] /usr/share/gems/gems/katello-4.19.2/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:316:in `block in find_host'
2026-06-24T10:42:44 [I|app|56dc8d0e] Rendered text template (Duration: 0.0ms | Allocations: 5)
2026-06-24T10:42:44 [I|app|56dc8d0e] Completed 404 Not Found in 54ms (Views: 1.8ms | ActiveRecord: 1.6ms | Allocations: 7055)
2026-06-24T10:42:44 [I|app|b7a50709] Started GET "/rhsm/consumers/57256280-9fa9-400e-9f62-6aa63f3507be" for REDACTED at 2026-06-24 10:42:44 -0400
2026-06-24T10:42:44 [I|app|b7a50709] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2026-06-24T10:42:44 [I|app|b7a50709] Parameters: {"id"=>"57256280-9fa9-400e-9f62-6aa63f3507be"}
2026-06-24T10:42:44 [E|app|b7a50709] RestClient::NotFound: Katello::Resources::Candlepin::Consumer: 404 Not Found {"displayMessage":"Consumer with ID(s) 57256280-9fa9-400e-9f62-6aa63f3507be could not be found.","requestUuid":"bc6aecd3-0ba5-4e8e-a0a9-9721d509e9f2"} (GET /candlepin/consumers/57256280-9fa9-400e-9f62-6aa63f3507be)
b7a50709 | Body: {"displayMessage":"Consumer with ID(s) 57256280-9fa9-400e-9f62-6aa63f3507be could not be found.","requestUuid":"bc6aecd3-0ba5-4e8e-a0a9-9721d509e9f2"}
b7a50709 |
2026-06-24T10:42:44 [E|app|b7a50709] /usr/share/gems/gems/katello-4.19.2/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:316:in `block in find_host'
2026-06-24T10:42:44 [I|app|b7a50709] Rendered text template (Duration: 0.0ms | Allocations: 1)
2026-06-24T10:42:44 [I|app|b7a50709] Completed 404 Not Found in 23ms (Views: 0.4ms | ActiveRecord: 1.3ms | Allocations: 6725)
2026-06-24T10:42:44 [I|app|abec04f8] Started GET "/rhsm/consumers/57256280-9fa9-400e-9f62-6aa63f3507be/content_overrides" for REDACTED at 2026-06-24 10:42:44 -0400
2026-06-24T10:42:44 [I|app|abec04f8] Processing by Katello::Api::Rhsm::CandlepinProxiesController#get as JSON
2026-06-24T10:42:44 [I|app|abec04f8] Parameters: {"id"=>"57256280-9fa9-400e-9f62-6aa63f3507be"}
2026-06-24T10:42:44 [E|app|abec04f8] RestClient::NotFound: 404 Not Found
abec04f8 | Body: {"displayMessage":"Unit with ID \"57256280-9fa9-400e-9f62-6aa63f3507be\" could not be found.","requestUuid":"9bb3fe83-20bd-4de8-8ee6-222427c68ba8"}
abec04f8 |
2026-06-24T10:42:44 [E|app|abec04f8] /usr/share/gems/gems/katello-4.19.2/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:82:in `get'
2026-06-24T10:42:44 [I|app|abec04f8] Rendered text template (Duration: 0.0ms | Allocations: 1)
2026-06-24T10:42:44 [I|app|abec04f8] Completed 404 Not Found in 23ms (Views: 0.3ms | ActiveRecord: 1.2ms | Allocations: 5888)
2026-06-24T10:42:44 [I|app|eaff8072] Started GET "/rhsm/status" for REDACTED at 2026-06-24 10:42:44 -0400
2026-06-24T10:42:44 [I|app|eaff8072] Processing by Katello::Api::Rhsm::CandlepinProxiesController#server_status as JSON
2026-06-24T10:42:44 [I|app|eaff8072] Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 1.3ms | Allocations: 6050)
2026-06-24T10:42:46 [I|app|2b3c061a] Started GET "/notification_recipients" for REDACTED at 2026-06-24 10:42:46 -0400
2026-06-24T10:42:46 [I|app|2b3c061a] Processing by NotificationRecipientsController#index as JSON
2026-06-24T10:42:46 [I|app|2b3c061a] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms | Allocations: 2049)
2026-06-24T10:42:48 [I|app|3f4efdee] Started PUT "/rhsm/consumers/57256280-9fa9-400e-9f62-6aa63f3507be/profiles" for REDACTED at 2026-06-24 10:42:48 -0400
2026-06-24T10:42:48 [I|app|3f4efdee] Processing by Katello::Api::Rhsm::CandlepinDynflowProxyController#upload_profiles as JSON
2026-06-24T10:42:48 [I|app|3f4efdee] Parameters: {"id"=>"57256280-9fa9-400e-9f62-6aa63f3507be"}
2026-06-24T10:42:48 [E|app|3f4efdee] RestClient::NotFound: Katello::Resources::Candlepin::Consumer: 404 Not Found {"displayMessage":"Consumer with ID(s) 57256280-9fa9-400e-9f62-6aa63f3507be could not be found.","requestUuid":"4d26b017-b031-449a-a3a0-9e2ba3ff9a89"} (GET /candlepin/consumers/57256280-9fa9-400e-9f62-6aa63f3507be)
3f4efdee | Body: {"displayMessage":"Consumer with ID(s) 57256280-9fa9-400e-9f62-6aa63f3507be could not be found.","requestUuid":"4d26b017-b031-449a-a3a0-9e2ba3ff9a89"}
3f4efdee |
2026-06-24T10:42:48 [E|app|3f4efdee] /usr/share/gems/gems/katello-4.19.2/app/controllers/katello/api/rhsm/candlepin_dynflow_proxy_controller.rb:48:in `block in find_host'
2026-06-24T10:42:48 [I|app|3f4efdee] Rendered text template (Duration: 0.0ms | Allocations: 5)
2026-06-24T10:42:48 [I|app|3f4efdee] Completed 404 Not Found in 26ms (Views: 1.7ms | ActiveRecord: 2.1ms | Allocations: 7126)
2026-06-24T10:42:48 [I|app|765d82bc] Started GET "/rhsm/consumers/57256280-9fa9-400e-9f62-6aa63f3507be" for REDACTED at 2026-06-24 10:42:48 -0400
2026-06-24T10:42:48 [I|app|765d82bc] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2026-06-24T10:42:48 [I|app|765d82bc] Parameters: {"id"=>"57256280-9fa9-400e-9f62-6aa63f3507be"}
2026-06-24T10:42:48 [E|app|765d82bc] RestClient::NotFound: Katello::Resources::Candlepin::Consumer: 404 Not Found {"displayMessage":"Consumer with ID(s) 57256280-9fa9-400e-9f62-6aa63f3507be could not be found.","requestUuid":"edbc3a46-11cc-4554-bb6e-31dc16cae8d9"} (GET /candlepin/consumers/57256280-9fa9-400e-9f62-6aa63f3507be)
765d82bc | Body: {"displayMessage":"Consumer with ID(s) 57256280-9fa9-400e-9f62-6aa63f3507be could not be found.","requestUuid":"edbc3a46-11cc-4554-bb6e-31dc16cae8d9"}
765d82bc |
2026-06-24T10:42:48 [E|app|765d82bc] /usr/share/gems/gems/katello-4.19.2/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:316:in `block in find_host'
2026-06-24T10:42:48 [I|app|765d82bc] Rendered text template (Duration: 0.0ms | Allocations: 2)
2026-06-24T10:42:48 [I|app|765d82bc] Completed 404 Not Found in 24ms (Views: 1.6ms | ActiveRecord: 1.9ms | Allocations: 7046)
2026-06-24T10:42:56 [I|app|1273e51b] Started GET "/notification_recipients" for REDACTED at 2026-06-24 10:42:56 -0400
2026-06-24T10:42:56 [I|app|1273e51b] Processing by NotificationRecipientsController#index as JSON
2026-06-24T10:42:56 [I|app|1273e51b] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms | Allocations: 2165)
2026-06-24T10:43:06 [I|app|aa447e51] Started GET "/notification_recipients" for REDACTED at 2026-06-24 10:43:06 -0400
2026-06-24T10:43:06 [I|app|aa447e51] Processing by NotificationRecipientsController#index as JSON
2026-06-24T10:43:06 [I|app|aa447e51] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms | Allocations: 1963)
2026-06-24T10:43:08 [I|app|914b162e] Started PATCH "/hosts/598" for REDACTED at 2026-06-24 10:43:08 -0400
2026-06-24T10:43:08 [I|app|914b162e] Processing by HostsController#update as */*
2026-06-24T10:43:08 [I|app|914b162e] Parameters: {"authenticity_token"=>"REDACTED", "host"=>{"name"=>"lnxtestb5", "hostgroup_id"=>"15", "content_facet_attributes"=>{"content_source_id"=>"", "lifecycle_environment_id"=>"3", "content_view_id"=>"25"}, "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "mac"=>"00:50:56:ab:c8:c1", "identifier"=>"ens192", "name"=>"lnxtestb5", "domain_id"=>"2", "subnet_id"=>"4", "ip"=>"REDACTED", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"0", "tag"=>"", "attached_to"=>"", "id"=>"1194"}}, "architecture_id"=>"1", "operatingsystem_id"=>"22", "build"=>"1", "medium_id"=>"23", "ptable_id"=>"181", "pxe_loader"=>"None", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"47-Users", "enabled"=>"1", "model_id"=>"9", "comment"=>"", "overwrite"=>"false"}, "media_selector"=>"install_media", "id"=>"598"}
2026-06-24T10:43:08 [I|app|914b162e] Rendered common/404.html.erb within layouts/application (Duration: 0.9ms | Allocations: 562)
2026-06-24T10:43:08 [I|app|914b162e] Rendered layouts/base.html.erb (Duration: 1.8ms | Allocations: 2280)
2026-06-24T10:43:08 [I|app|914b162e] Rendered layout layouts/application.html.erb (Duration: 3.0ms | Allocations: 3130)
2026-06-24T10:43:08 [I|app|914b162e] Completed 404 Not Found in 11ms (Views: 3.7ms | ActiveRecord: 1.0ms | Allocations: 7285)
2026-06-24T10:43:16 [I|app|8af72708] Started GET "/notification_recipients" for REDACTED at 2026-06-24 10:43:16 -0400
2026-06-24T10:43:16 [I|app|8af72708] Processing by NotificationRecipientsController#index as JSON
2026-06-24T10:43:16 [I|app|8af72708] Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.5ms | Allocations: 1972)
2026-06-24T10:43:26 [I|app|c2a9a644] Started GET "/notification_recipients" for REDACTED at 2026-06-24 10:43:26 -0400
This process worked for us on Foreman 3.16 however this broke for us when we upgraded to Foreman 3.17 and after upgrading to Foreman 3.18 this issue is still occurring
