Host provisioning with Google Compute plugin

Hi Foreman,

I am having issues creating a new host in foreman using GCP. When I attempt to create a host I see:

Failed to create a compute gcp__bel (europe-west1-b-Google) instance ERF50-1985 [Foreman::WrappedException]: Cannot insert instance! ([Google::cloud::InvalidArgumentError]: An error has occurred when making a REST request: Invalid value for field ‘resource.networkInterfaces[0].subnetwork’: ‘’. Network interface must specify a subnet if the network resource is in custom subnet mode.)

In Compute profiles I added the correct VPC under Network, but there is no option to add a subnet. I did add the subnets in the Infrastructure → subnet section, but that does not change the error.
I also attempted to add via hammer or the API but saw the same error message. Even if I tried adding the keywords subnetwork with my subenet name that exists in GCP.

I am running foreman version 3.19.1 with foreman_google plugin 3.0.7

Does anyone have any ideas how I might resolve this?

Many Thanks,

Tania

Hi, this looks like an issue. Could you please share the DEBUG logs from your instance so I can take a look at what’s going on?

Hi,

In the production log I see:

2026-08-04T08:46:05 [I|app|f44965d9] Started POST "/hosts" for 10.1.224.162 at 2026-08-04 08:46:05 +0000
2026-08-04T08:46:05 [I|app|f44965d9] Processing by HostsController#create as */*
2026-08-04T08:46:05 [I|app|f44965d9]   Parameters: {"authenticity_token"=>"BwxkeQQ_HtsrAW2-EZW9el0KHPzXPm-uEXmd_Hvjeyj7hWErOaaJ0Cs4482nOsQ1TVS5VTX6Et3OD6pYp9RRLA", "host"=>{"name"=>"my-host", "organization_id"=>"1", "location_id"=>"11", "hostgroup_id"=>"3", "compute_resource_id"=>"10", "content_facet_attributes"=>{"content_source_id"=>"", "lifecycle_environment_id"=>"", "content_view_id"=>""}, "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"my-host", "domain_id"=>"14", "subnet_id"=>"24", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "compute_attributes"=>{"machine_type"=>"n2-standard-4", "network"=>"corp-it-vpc-emea", "associate_external_ip"=>"0", "volumes_attributes"=>{"0"=>{"_delete"=>"", "disk_size_gb"=>"40"}}, "image_id"=>"8953124356797367975"}, "architecture_id"=>"1", "operatingsystem_id"=>"3", "provision_method"=>"image", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "pxe_loader"=>"Grub2 UEFI", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"5-Users", "enabled"=>"1", "comment"=>"", "overwrite"=>"false"}}
2026-08-04T08:46:05 [W|api|f44965d9] param host[puppetclass_*] has been deprecated in favor of host[puppet_attributes][puppetclass_*]
2026-08-04T08:46:05 [W|app|f44965d9] Scoped order is ignored, it's forced to be batch order.
2026-08-04T08:46:33 [I|app|f44965d9] Add realm entry for new host my-host.bel.gcp.my.domain
2026-08-04T08:46:34 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:34 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:34 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [W|app|f44965d9] Could not find a provider for my-host.bel.gcp.my.domain. Providers returned {"MediumProviders::Default"=>["Ubuntu24.04_cloud 24.04 medium was not set for host 'my-host.bel.gcp.my.domain'", "Invalid medium '' for 'Ubuntu24.04_cloud 24.04'"], "Katello::ManagedContentMediumProvider"=>["Kickstart repository was not set for host 'my-host.bel.gcp.my.domain'", "Content source was not set for host 'my-host.bel.gcp.my.domain'"]}
2026-08-04T08:46:35 [I|app|f44965d9] Adding Compute instance for my-host.bel.gcp.my.domain
2026-08-04T08:47:29 [W|app|f44965d9] Failed to create a compute my_gcp_project_bel (europe-west1-b-Google) instance my-host.bel.gcp.my.domain: ERF50-1985 [Foreman::WrappedException]: Cannot insert instance! ([Google::Cloud::InvalidArgumentError]: An error has occurred when making a REST request: Invalid value for field 'resource.networkInterfaces[0].subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode.)
 f44965d9 |  
2026-08-04T08:47:29 [I|app|f44965d9] Backtrace for 'Failed to create a compute my_gcp_project_bel (europe-west1-b-Google) instance my-host.bel.gcp.my.domain: ERF50-1985 [Foreman::WrappedException]: Cannot insert instance! ([Google::Cloud::InvalidArgumentError]: An error has occurred when making a REST request: Invalid value for field 'resource.networkInterfaces[0].subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode.)
 f44965d9 |  ' error (Foreman::WrappedException): ERF50-1985 [Foreman::WrappedException]: Cannot insert instance! ([Google::Cloud::InvalidArgumentError]: An error has occurred when making a REST request: Invalid value for field 'resource.networkInterfaces[0].subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode.)
 f44965d9 | /usr/share/gems/gems/foreman_google-3.0.7/app/models/foreman_google/gce.rb:71:in `rescue in create_vm'
 f44965d9 | /usr/share/gems/gems/foreman_google-3.0.7/app/models/foreman_google/gce.rb:60:in `create_vm'
 f44965d9 | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:112:in `setCompute'
 f44965d9 | /usr/share/foreman/app/models/concerns/orchestration.rb:227:in `execute'
 f44965d9 | /usr/share/foreman/app/models/concerns/orchestration.rb:149:in `block in process'
 f44965d9 | /usr/share/foreman/app/models/concerns/orchestration.rb:141:in `each'
 f44965d9 | /usr/share/foreman/app/models/concerns/orchestration.rb:141:in `process'
 f44965d9 | /usr/share/foreman/app/models/concerns/orchestration.rb:41:in `around_save_orchestration'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:138:in `run_callbacks'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:929:in `_run_save_callbacks'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/callbacks.rb:455:in `create_or_update'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/timestamp.rb:126:in `create_or_update'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/persistence.rb:615:in `save'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/validations.rb:47:in `save'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/transactions.rb:298:in `block in save'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/transactions.rb:298:in `save'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/suppressor.rb:50:in `save'
 f44965d9 | /usr/share/foreman/app/controllers/hosts_controller.rb:102:in `create'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/base.rb:215:in `process_action'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/rendering.rb:165:in `process_action'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/callbacks.rb:234:in `block in process_action'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
 f44965d9 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
 f44965d9 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
 f44965d9 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
 f44965d9 | /usr/share/gems/gems/audited-5.8.0/lib/audited/sweeper.rb:16:in `around'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
 f44965d9 | /usr/share/gems/gems/audited-5.8.0/lib/audited/sweeper.rb:16:in `around'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:138:in `run_callbacks'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/callbacks.rb:233:in `process_action'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/rescue.rb:23:in `process_action'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:206:in `block in instrument'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:206:in `instrument'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/instrumentation.rb:66:in `process_action'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
 f44965d9 | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/base.rb:151:in `process'
 f44965d9 | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/rendering.rb:39:in `process'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal.rb:188:in `dispatch'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal.rb:251:in `dispatch'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/routing/route_set.rb:32:in `serve'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/journey/router.rb:32:in `each'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/journey/router.rb:32:in `serve'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/routing/route_set.rb:852:in `call'
 f44965d9 | /usr/share/gems/gems/katello-4.21.0/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
 f44965d9 | /usr/share/gems/gems/katello-4.21.0/lib/katello/middleware/event_daemon.rb:10:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/apipie-dsl-2.6.2/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 f44965d9 | /usr/share/gems/gems/apipie-rails-1.5.0/lib/apipie/static_dispatcher.rb:72:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'
 f44965d9 | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 f44965d9 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 f44965d9 | /usr/share/gems/gems/apipie-rails-1.5.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/tempfile_reaper.rb:15:in `call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/etag.rb:27:in `call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/conditional_get.rb:40:in `call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/head.rb:12:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/http/permissions_policy.rb:38:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/http/content_security_policy.rb:39:in `call'
 f44965d9 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/session/abstract/id.rb:266:in `context'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/session/abstract/id.rb:260:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/cookies.rb:704:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:99:in `run_callbacks'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/show_exceptions.rb:29:in `call'
 f44965d9 | /usr/share/gems/gems/railties-7.0.10/lib/rails/rack/logger.rb:40:in `call_app'
 f44965d9 | /usr/share/gems/gems/railties-7.0.10/lib/rails/rack/logger.rb:27:in `call'
 f44965d9 | /usr/share/gems/gems/sprockets-rails-3.5.2/lib/sprockets/rails/quiet_assets.rb:17:in `call'
 f44965d9 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 f44965d9 | /usr/share/gems/gems/katello-4.21.0/lib/katello/prevent_json_parsing.rb:12:in `call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/method_override.rb:24:in `call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/runtime.rb:22:in `call'
 f44965d9 | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/executor.rb:14:in `call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/sendfile.rb:127:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 f44965d9 | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/host_authorization.rb:131:in `call'
 f44965d9 | /usr/share/gems/gems/secure_headers-7.1.0/lib/secure_headers/middleware.rb:11:in `call'
 f44965d9 | /usr/share/gems/gems/railties-7.0.10/lib/rails/engine.rb:531:in `call'
 f44965d9 | /usr/share/gems/gems/railties-7.0.10/lib/rails/railtie.rb:226:in `public_send'
 f44965d9 | /usr/share/gems/gems/railties-7.0.10/lib/rails/railtie.rb:226:in `method_missing'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/urlmap.rb:74:in `block in call'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/urlmap.rb:58:in `each'
 f44965d9 | /usr/share/gems/gems/rack-2.2.23/lib/rack/urlmap.rb:58:in `call'
 f44965d9 | /usr/share/gems/gems/puma-6.6.1/lib/puma/configuration.rb:279:in `call'
 f44965d9 | /usr/share/gems/gems/puma-6.6.1/lib/puma/request.rb:99:in `block in handle_request'
 f44965d9 | /usr/share/gems/gems/puma-6.6.1/lib/puma/thread_pool.rb:390:in `with_force_shutdown'
 f44965d9 | /usr/share/gems/gems/puma-6.6.1/lib/puma/request.rb:98:in `handle_request'
 f44965d9 | /usr/share/gems/gems/puma-6.6.1/lib/puma/server.rb:472:in `process_client'
 f44965d9 | /usr/share/gems/gems/puma-6.6.1/lib/puma/server.rb:254:in `block in run'
 f44965d9 | /usr/share/gems/gems/puma-6.6.1/lib/puma/thread_pool.rb:167:in `block in spawn_thread'
 f44965d9 | /usr/share/gems/gems/logging-2.4.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2026-08-04T08:47:29 [W|app|f44965d9] Rolling back due to a problem: [#<Orchestration::Task:0x00007ffa6a170478 @name="Set up compute instance my-host.bel.gcp.my.domain", @id="Set up compute instance my-host.bel.gcp.my.domain", @status="failed", @priority=3, @action=[#<Host::Managed id: nil, name: "my-host.bel.gcp.my.domain", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: nil, architecture_id: 1, operatingsystem_id: 3, ptable_id: nil, medium_id: nil, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: 3, owner_id: 5, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 10, puppet_proxy_id: 1, certname: nil, image_id: 19, organization_id: 1, location_id: 11, type: "Host::Managed", otp: "7YzaHGPNvkmPThOyC5ij02C", realm_id: 1, compute_profile_id: 5, provision_method: "image", grub_pass: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: "Grub2 UEFI", initiated_at: nil, build_errors: nil, creator_id: nil, discovery_rule_id: nil>, :setCompute], @created=1785833193.3124583, @timestamp=2026-08-04 08:47:29.631587649 UTC>]
2026-08-04T08:47:29 [I|app|f44965d9] Delete realm entry for my-host.bel.gcp.my.domain
2026-08-04T08:47:35 [I|app|f44965d9] Processed 3 tasks from queue 'Host::Managed Main', completed 0/5
2026-08-04T08:47:35 [E|app|f44965d9] Task 'Create realm entry for my-host.bel.gcp.my.domain' *rollbacked*
2026-08-04T08:47:35 [E|app|f44965d9] Task 'Check renderability of template '50_Finish_Default'.' *rollbacked*
2026-08-04T08:47:35 [E|app|f44965d9] Task 'Set up compute instance my-host.bel.gcp.my.domain' *failed*
2026-08-04T08:47:35 [E|app|f44965d9] Task 'Acquire IP addresses for my-host.bel.gcp.my.domain' *canceled*
2026-08-04T08:47:35 [E|app|f44965d9] Task 'Query instance details for my-host.bel.gcp.my.domain' *canceled*
2026-08-04T08:47:35 [W|api|f44965d9] param host[puppetclass_*] has been deprecated in favor of host[puppet_attributes][puppetclass_*]
2026-08-04T08:47:35 [W|api|f44965d9] param host[puppetclass_*] has been deprecated in favor of host[puppet_attributes][puppetclass_*]
2026-08-04T08:47:35 [W|api|f44965d9] param host[puppetclass_*] has been deprecated in favor of host[puppet_attributes][puppetclass_*]
2026-08-04T08:47:35 [E|app|f44965d9] Failed to save: Failed to create a compute my_gcp_project_bel (europe-west1-b-Google) instance my-host.bel.gcp.my.domain: ERF50-1985 [Foreman::WrappedException]: Cannot insert instance! ([Google::Cloud::InvalidArgumentError]: An error has occurred when making a REST request: Invalid value for field 'resource.networkInterfaces[0].subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode.)
 f44965d9 |  
2026-08-04T08:48:03 [I|app|f44965d9]   Rendered hosts/new.html.erb within layouts/application (Duration: 28110.3ms | Allocations: 427813)
2026-08-04T08:48:03 [I|app|f44965d9]   Rendered layouts/base.html.erb (Duration: 22.3ms | Allocations: 20803)
2026-08-04T08:48:03 [I|app|f44965d9]   Rendered layout layouts/application.html.erb (Duration: 28134.4ms | Allocations: 449103)
2026-08-04T08:48:03 [I|app|f44965d9] Completed 200 OK in 117872ms (Views: 28104.2ms | ActiveRecord: 76.2ms | Allocations: 1336650)

Thanks,

Tania

thanks,
could you also share details about the subnet, host group and compute profile?
You can use hammer for the ouputs, it will show enough data for me.
Feel free to omit sensitive data, I just want to make sure I have same data setup as you.

Hi,

I added in Create Host:

Host

Name: my_host

Organisation: my_org

Location: GCP_BEL

Host_group: virtual_desktop

Deploy On: gcp_myproject_bel

compute_profile: vdk_staff

environment: master

Puppet proxy: my_proxy

Puppet ca proxy: my_proxy

Realm: MY_DOMAIN

Virtual_Machine

Machine type: n2-standard-4

Network: my_vpc

Size: 40

Operating System

Architecture: x86_64

Operating system: Ubuntu 24.04 LTS (cloud)

Image: Ubuntu-2404-Noble

Provisioning template: finish

Interfaces

Domain: my_domain

ipv4 subnet: gcp_my_subnet

Everything else as is.

Thanks,
Tania

Hi, I drafted a PR for subnet support.
Could you test it in your non-production environment?

With the Packit tool, it should be simple:

sudo dnf install -y 'dnf*-command(copr)'
sudo dnf copr enable packit/theforeman-foreman_google-95 rhel-9-x86_64
sudo dnf install -y rubygem-foreman_google-3.0.8-2.20260805102823619769.pr95.7.g5786832.el9.noarch

Once you confirm it’s working for your case, I will continue with the PR (team reviews, documentation, testing, …)

Hi,

I followed those instructions, ran foreman-maintain service restart, confirmed I could see the foreman_goolgle plugin was 3.0.8 in the GUI.

Just navigating to Infrastructure → Compute Resources → clicking on MY_GCP_Resource sees Oops, we’re sorry but something went wrong undefined method ‘name‘ for nil:NilClass.

production.log shows:

2026-08-06T09:18:24 [I|app|643bc66f] Backtrace for 'undefined method `name' for nil:NilClass' error (ActionView::Template::Error): undefined method `name' for nil:NilClass

 643bc66f | /usr/share/foreman/app/views/compute_resources/show.html.erb:1:in `_app_views_compute_resources_show_html_erb__911921000141088415_965500'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/base.rb:244:in `public_send'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/base.rb:244:in `_run'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/template.rb:157:in `block in render'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:208:in `instrument'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/template.rb:361:in `instrument_render_template'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/template.rb:155:in `render'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/renderer/template_renderer.rb:65:in `block (2 levels) in render_template'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:206:in `block in instrument'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications/instrumenter.rb:24:in `instrument'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:206:in `instrument'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/renderer/template_renderer.rb:60:in `block in render_template'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/renderer/template_renderer.rb:75:in `block in render_with_layout'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:206:in `block in instrument'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications/instrumenter.rb:24:in `instrument'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:206:in `instrument'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/renderer/template_renderer.rb:74:in `render_with_layout'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/renderer/template_renderer.rb:59:in `render_template'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/renderer/template_renderer.rb:11:in `render'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/renderer/renderer.rb:29:in `render_to_object'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/rendering.rb:117:in `block in _render_template'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/base.rb:270:in `in_rendering_context'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/rendering.rb:116:in `_render_template'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/streaming.rb:216:in `_render_template'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/rendering.rb:103:in `render_to_body'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/rendering.rb:158:in `render_to_body'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/renderers.rb:141:in `render_to_body'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/rendering.rb:27:in `render'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/rendering.rb:139:in `render'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/instrumentation.rb:22:in `block (2 levels) in render'

 643bc66f | /usr/share/ruby/benchmark.rb:308:in `realtime'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/core_ext/benchmark.rb:14:in `ms'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/instrumentation.rb:22:in `block in render'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/instrumentation.rb:91:in `cleanup_view_runtime'

 643bc66f | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/instrumentation.rb:21:in `render'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/implicit_render.rb:35:in `default_render'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/basic_implicit_render.rb:7:in `send_action'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/base.rb:215:in `process_action'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/rendering.rb:165:in `process_action'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/callbacks.rb:234:in `block in process_action'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:118:in `block in run_callbacks'

 643bc66f | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'

 643bc66f | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'

 643bc66f | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'

 643bc66f | /usr/share/gems/gems/audited-5.8.0/lib/audited/sweeper.rb:16:in `around'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'

 643bc66f | /usr/share/gems/gems/audited-5.8.0/lib/audited/sweeper.rb:16:in `around'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:127:in `block in run_callbacks'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:138:in `run_callbacks'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/callbacks.rb:233:in `process_action'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/rescue.rb:23:in `process_action'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:206:in `block in instrument'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications/instrumenter.rb:24:in `instrument'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/notifications.rb:206:in `instrument'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/instrumentation.rb:66:in `process_action'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal/params_wrapper.rb:259:in `process_action'

 643bc66f | /usr/share/gems/gems/activerecord-7.0.10/lib/active_record/railties/controller_runtime.rb:27:in `process_action'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/abstract_controller/base.rb:151:in `process'

 643bc66f | /usr/share/gems/gems/actionview-7.0.10/lib/action_view/rendering.rb:39:in `process'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal.rb:188:in `dispatch'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_controller/metal.rb:251:in `dispatch'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/routing/route_set.rb:32:in `serve'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/journey/router.rb:50:in `block in serve'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/journey/router.rb:32:in `each'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/journey/router.rb:32:in `serve'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/routing/route_set.rb:852:in `call'

 643bc66f | /usr/share/gems/gems/katello-4.21.0/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'

 643bc66f | /usr/share/gems/gems/katello-4.21.0/lib/katello/middleware/event_daemon.rb:10:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/apipie-dsl-2.6.2/lib/apipie_dsl/static_dispatcher.rb:67:in `call'

 643bc66f | /usr/share/gems/gems/apipie-rails-1.5.0/lib/apipie/static_dispatcher.rb:72:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/static.rb:23:in `call'

 643bc66f | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'

 643bc66f | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'

 643bc66f | /usr/share/gems/gems/apipie-rails-1.5.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/tempfile_reaper.rb:15:in `call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/etag.rb:27:in `call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/conditional_get.rb:27:in `call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/head.rb:12:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/http/permissions_policy.rb:38:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/http/content_security_policy.rb:39:in `call'

 643bc66f | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/session/abstract/id.rb:266:in `context'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/session/abstract/id.rb:260:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/cookies.rb:704:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/callbacks.rb:99:in `run_callbacks'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/callbacks.rb:26:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/show_exceptions.rb:29:in `call'

 643bc66f | /usr/share/gems/gems/railties-7.0.10/lib/rails/rack/logger.rb:40:in `call_app'

 643bc66f | /usr/share/gems/gems/railties-7.0.10/lib/rails/rack/logger.rb:27:in `call'

 643bc66f | /usr/share/gems/gems/sprockets-rails-3.5.2/lib/sprockets/rails/quiet_assets.rb:17:in `call'

 643bc66f | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/remote_ip.rb:93:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/request_id.rb:26:in `call'

 643bc66f | /usr/share/gems/gems/katello-4.21.0/lib/katello/prevent_json_parsing.rb:12:in `call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/method_override.rb:24:in `call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/runtime.rb:22:in `call'

 643bc66f | /usr/share/gems/gems/activesupport-7.0.10/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/executor.rb:14:in `call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/sendfile.rb:127:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/ssl.rb:77:in `call'

 643bc66f | /usr/share/gems/gems/actionpack-7.0.10/lib/action_dispatch/middleware/host_authorization.rb:131:in `call'

 643bc66f | /usr/share/gems/gems/secure_headers-7.1.0/lib/secure_headers/middleware.rb:11:in `call'

 643bc66f | /usr/share/gems/gems/railties-7.0.10/lib/rails/engine.rb:531:in `call'

 643bc66f | /usr/share/gems/gems/railties-7.0.10/lib/rails/railtie.rb:226:in `public_send'

 643bc66f | /usr/share/gems/gems/railties-7.0.10/lib/rails/railtie.rb:226:in `method_missing'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/urlmap.rb:74:in `block in call'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/urlmap.rb:58:in `each'

 643bc66f | /usr/share/gems/gems/rack-2.2.23/lib/rack/urlmap.rb:58:in `call'

 643bc66f | /usr/share/gems/gems/puma-6.6.1/lib/puma/configuration.rb:279:in `call'

 643bc66f | /usr/share/gems/gems/puma-6.6.1/lib/puma/request.rb:99:in `block in handle_request'

 643bc66f | /usr/share/gems/gems/puma-6.6.1/lib/puma/thread_pool.rb:390:in `with_force_shutdown'

 643bc66f | /usr/share/gems/gems/puma-6.6.1/lib/puma/request.rb:98:in `handle_request'

 643bc66f | /usr/share/gems/gems/puma-6.6.1/lib/puma/server.rb:472:in `process_client'

 643bc66f | /usr/share/gems/gems/puma-6.6.1/lib/puma/server.rb:254:in `block in run'

 643bc66f | /usr/share/gems/gems/puma-6.6.1/lib/puma/thread_pool.rb:167:in `block in spawn_thread'

 643bc66f | /usr/share/gems/gems/logging-2.4.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'

2026-08-06T09:18:24 [I|app|643bc66f]   Rendered common/500.html.erb within layouts/application (Duration: 1.7ms | Allocations: 904)

2026-08-06T09:18:24 [I|app|643bc66f]   Rendered layouts/base.html.erb (Duration: 3.1ms | Allocations: 2424)

2026-08-06T09:18:24 [I|app|643bc66f]   Rendered layout layouts/application.html.erb (Duration: 5.3ms | Allocations: 3591)

2026-08-06T09:18:24 [I|app|643bc66f] Completed 500 Internal Server Error in 16ms (Views: 5.8ms | ActiveRecord: 0.9ms | Allocations: 7990)

Thanks,
Tania

Yeah, I think I know where the problem lies, I forgot about the data migration.
Could you try to edit the compute profile and select a subnet (again) and save the profile? That should help.

(I will update the PR to make sure this is handled meanwhile)

Fixed it; the new build should be available here: Packit Service

Hi,

Editing it produces the same error message, so can’t edit.

I installed the new build 3.0.8-2 and same error.

I can however edit and see subnets in compute profiles, and creating VM works with the selected subnet.

Thanks,
Tania

Awesome, glad to hear that. I will pass this information to the team and will continue with the issue

Editing it produces the same error message, so can’t edit

Hmm, that means our test coverage is lacking some scenarios , that has to be improved.

Thank you