Compute Resource offline, editing host and compute_resoruce failing

Problem: editing Compute Resource and Host failing when target is dead

Expected outcome: Allow editing of records (to unmanage, clean up etc)

Foreman and Proxy versions: 3.17.2

Foreman and Proxy plugin versions:

Distribution and version: CentOS Stream 9

After losing a libvirt-managed compute resource we can no longer unmanage VMs by either:

  1. editing the host record
  2. running hammer host update --managed false --name <name>

Editing the CS record from the webUI is failing as well.

What can we do?

Here are the logs for the edit CR record:

Foreman version: 3.17.2
Plugins:
 - foreman-tasks 11.0.6
 - foreman_ansible 17.0.2
 - foreman_discovery 26.1.1
 - foreman_fog_proxmox 0.21.0
 - foreman_remote_execution 16.3.1
 - foreman_statistics 2.1.0
 - foreman_webhooks 4.0.2
 - katello 4.19.2

2026-05-24T23:34:54 [I|app|e23c4c64] Started GET "/compute_resources/284-kvm194-example-com/edit" for 10.225.108.60 at 2026-05-24 23:34:54 +0000
2026-05-24T23:34:54 [I|app|e23c4c64] Processing by ComputeResourcesController#edit as HTML
2026-05-24T23:34:54 [I|app|e23c4c64]   Parameters: {"id"=>"284-kvm194-example-com"}

(nothing after)

i worked around the problem by doing a SQL update on the compute_resource record, pointing the url to a working libvirt endpoint. Edit/deletion works after that.