Error loading interfaces information: Internal Server Error

Problem:
Creating new host on libvirt compute resource results in an error below interfaces:
Error loading interfaces information: Internal Server Error

Expected outcome:
Being able to see and edit a network interface for a new host to be created

Foreman and Proxy versions:
Fresh install of 2.4.0

Foreman and Proxy plugin versions:
No plugins.

Distribution and version:
Red Hat 7

Other relevant data:
Installed following the guide:
foreman-installer --scenario foreman --foreman-initial-organization "Testlab" --foreman-initial-location "Core" --foreman-initial-admin-username admin --foreman-initial-admin-password blablabla

I added the compute resource, again following the manual (which is missing ‘foreman-installer --enable-foreman-compute-libvirt’). It works, I can see all the vm’s.

When I create a new host and choose libvirt to deploy on, I see the following in the production.log:

2021-05-18T17:26:15 [W|app|5299618f] uninitialized constant Fog::Libvirt::Error
 5299618f | Did you mean?  Fog::Errors
 5299618f |                IOError
 5299618f |                Errno
2021-05-18T17:26:15 [I|app|5299618f] Backtrace for 'uninitialized constant Fog::Libvirt::Error
 5299618f | Did you mean?  Fog::Errors
 5299618f |                IOError
 5299618f |                Errno' error (ActionView::Template::Error): uninitialized constant Fog::Libvirt::Error
 5299618f | Did you mean?  Fog::Errors
 5299618f |                IOError
 5299618f |                Errno

Then a whole lot of log lines with /gems/ and then:

2021-05-18T17:26:15 [I|app|5299618f]   Rendering common/500.html.erb
2021-05-18T17:26:15 [I|app|5299618f]   Rendered common/500.html.erb (Duration: 1.0ms | Allocations: 352)
2021-05-18T17:26:15 [I|app|5299618f] Completed 500 Internal Server Error in 242ms (Views: 1.7ms | ActiveRecord: 7.6ms | Allocations: 40130)

Now, when I try to import an existing host, I get:
**Oops, we're sorry but something went wrong** uninitialized constant Fog::Libvirt::Error Did you mean? Fog::Errors IOError Errno.

I’ve been at this for a while, and I came to try this on Foreman because Satellite was throwing me an error that led me to this:
https://bugzilla.redhat.com/show_bug.cgi?id=1732505
It links to foreman and then to fog-libvirt which I believe is patched?

I’m not sure what to try next, please if someone can help me I would greatly appreciate it. If you require more info, just ask!

Thanks!

The original BZ talks about an issue that only happens if the bridge name is undefined, which can happen on special type of interfaces. I sent a fix some time ago to fog-libvirt, it was released in 0.8.0. Foreman 2.4 comes with this version of fog-libvirt. I’m quite sure that it’s already fixed in there.

The error you show here seems as something different. It seems the fog-libvirt has another problem and didn’t rename exceptions after the namespace change. Could you please get the full trace? Try getting it by

foreman-rake errors:fetch_log request_id=5299618f

it may contain the full backtrace already. I think you refer to them as log lines with /gems/, that part is actually super helpful for us.

2 Likes

Thanks for the quick respsonse! Very helpful. I checked my Satellite 6.9.1 installation, it comes with fog-libvirt 0.7.0 and it throws me the error message 'Call to virNetworkGetBridgeName failed: internal error: network 'vlan60' does not have a bridge name.'. And you’re right of course, Foreman throws another error message and to confirm, fog-libvirt is 0.8.0.

Unfortunately, I cannot upload files due to being a new user. Below is the log inline. If you need anything else, just say the word!

# foreman-rake errors:fetch_log request_id=60036495
2021-05-19T12:03:27 [I|app|60036495] Started GET "/compute_resources/1-Paradise/vms/e2bd6a57-34fb-4168-bd26-bbf188bf42fd/import?type=managed" for 192.168.1.199 at 2021-05-19 12:03:27 +0200
2021-05-19T12:03:27 [I|app|60036495] Processing by ComputeResourcesVmsController#import as HTML
2021-05-19T12:03:27 [I|app|60036495]   Parameters: {"type"=>"managed", "compute_resource_id"=>"1-Paradise", "id"=>"e2bd6a57-34fb-4168-bd26-bbf188bf42fd"}
2021-05-19T12:03:28 [I|app|60036495]   Rendering compute_resources_vms/import.html.erb within layouts/application
2021-05-19T12:03:28 [I|app|60036495]   Rendered hosts/_progress.html.erb (Duration: 1.8ms | Allocations: 246)
2021-05-19T12:03:28 [I|app|60036495]   Rendered hosts/puppet/_main_tab_fields.html.erb (Duration: 8.7ms | Allocations: 2651)
2021-05-19T12:03:28 [I|app|60036495]   Rendered hosts/puppet/_puppet_classes_tab.html.erb (Duration: 1.0ms | Allocations: 238)
2021-05-19T12:03:28 [I|app|60036495]   Rendered nic/_base_form.html.erb (Duration: 47.5ms | Allocations: 18156)
2021-05-19T12:03:28 [I|app|60036495]   Rendered nic/_virtual_form.html.erb (Duration: 1.6ms | Allocations: 1017)
2021-05-19T12:03:28 [I|app|60036495]   Rendered compute_resources_vms/form/libvirt/_network.html.erb (Duration: 73.0ms | Allocations: 5358)
2021-05-19T12:03:28 [I|app|60036495]   Rendered nic/_provider_specific_form.html.erb (Duration: 74.9ms | Allocations: 6014)
2021-05-19T12:03:28 [I|app|60036495]   Rendered nic/manageds/_managed.html.erb (Duration: 126.9ms | Allocations: 26692)
2021-05-19T12:03:28 [I|app|60036495]   Rendered hosts/_interfaces.html.erb (Duration: 129.1ms | Allocations: 27654)
2021-05-19T12:03:28 [I|app|60036495]   Rendered hosts/_form.html.erb (Duration: 225.1ms | Allocations: 53864)
2021-05-19T12:03:28 [I|app|60036495]   Rendered compute_resources_vms/import.html.erb within layouts/application (Duration: 228.1ms | Allocations: 54224)
2021-05-19T12:03:28 [W|app|60036495] uninitialized constant Fog::Libvirt::Error
 60036495 | Did you mean?  Fog::Errors
 60036495 |                IOError
 60036495 |                Errno
2021-05-19T12:03:28 [I|app|60036495] Backtrace for 'uninitialized constant Fog::Libvirt::Error
 60036495 | Did you mean?  Fog::Errors
 60036495 |                IOError
 60036495 |                Errno' error (ActionView::Template::Error): uninitialized constant Fog::Libvirt::Error
 60036495 | Did you mean?  Fog::Errors
 60036495 |                IOError
 60036495 |                Errno
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-libvirt-0.8.0/lib/fog/libvirt/requests/compute/list_networks.rb:34:in `rescue in network_to_attributes'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-libvirt-0.8.0/lib/fog/libvirt/requests/compute/list_networks.rb:32:in `network_to_attributes'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-libvirt-0.8.0/lib/fog/libvirt/requests/compute/list_networks.rb:9:in `block in list_networks'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-libvirt-0.8.0/lib/fog/libvirt/requests/compute/list_networks.rb:8:in `each'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-libvirt-0.8.0/lib/fog/libvirt/requests/compute/list_networks.rb:8:in `list_networks'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-libvirt-0.8.0/lib/fog/libvirt/models/compute/networks.rb:11:in `all'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-core-2.1.0/lib/fog/core/collection.rb:112:in `lazy_load'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-core-2.1.0/lib/fog/core/collection.rb:16:in `any?'
 60036495 | /usr/share/foreman/app/helpers/compute_resources_vms_helper.rb:73:in `libvirt_networks'
 60036495 | /usr/share/foreman/app/views/compute_resources_vms/form/libvirt/_network.html.erb:5:in `_app_views_compute_resources_vms_form_libvirt__network_html_erb__3146550756125472931_48722840'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:53:in `render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:38:in `render'
 60036495 | /usr/share/foreman/app/views/nic/_provider_specific_form.html.erb:14:in `block in _app_views_nic__provider_specific_form_html_erb__3938138382308258324_48753440'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2191:in `fields_for'
 60036495 | /usr/share/foreman/app/views/nic/_provider_specific_form.html.erb:13:in `_app_views_nic__provider_specific_form_html_erb__3938138382308258324_48753440'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:53:in `render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:38:in `render'
 60036495 | /usr/share/foreman/app/views/nic/manageds/_managed.html.erb:16:in `_app_views_nic_manageds__managed_html_erb___4363790312123928360_126852880'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:22:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:34:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:304:in `in_rendering_context'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:30:in `render'
 60036495 | /usr/share/foreman/app/views/hosts/_interfaces.html.erb:50:in `block in _app_views_hosts__interfaces_html_erb__3461727634708740000_126899640'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2547:in `block in fields_for_nested_model'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2546:in `fields_for_nested_model'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2532:in `block in fields_for_with_nested_attributes'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/delegation.rb:87:in `each'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/relation/delegation.rb:87:in `each'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2526:in `fields_for_with_nested_attributes'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2166:in `fields_for'
 60036495 | /usr/share/foreman/app/views/hosts/_interfaces.html.erb:49:in `_app_views_hosts__interfaces_html_erb__3461727634708740000_126899640'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:53:in `render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:38:in `render'
 60036495 | /usr/share/foreman/app/views/hosts/_form.html.erb:101:in `block (2 levels) in _app_views_hosts__form_html_erb__3059149342878198028_69934282156360'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:452:in `form_for'
 60036495 | /usr/share/foreman/app/helpers/form_helper.rb:303:in `form_for'
 60036495 | /usr/share/foreman/app/views/hosts/_form.html.erb:7:in `block in _app_views_hosts__form_html_erb__3059149342878198028_69934282156360'
 60036495 | /usr/share/foreman/app/models/taxonomy.rb:83:in `block (2 levels) in as_taxonomy'
 60036495 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:195:in `as_location'
 60036495 | /usr/share/foreman/app/models/taxonomy.rb:82:in `block in as_taxonomy'
 60036495 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:154:in `as_org'
 60036495 | /usr/share/foreman/app/models/taxonomy.rb:81:in `as_taxonomy'
 60036495 | /usr/share/foreman/app/views/hosts/_form.html.erb:6:in `_app_views_hosts__form_html_erb__3059149342878198028_69934282156360'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:22:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:34:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:304:in `in_rendering_context'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:30:in `render'
 60036495 | /usr/share/foreman/app/views/compute_resources_vms/import.html.erb:3:in `_app_views_compute_resources_vms_import_html_erb__2896318001754450830_69934282242100'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:58:in `block (2 levels) in render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:57:in `block in render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:65:in `render_with_layout'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:56:in `render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:13:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:117:in `block in _render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/base.rb:304:in `in_rendering_context'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:116:in `_render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:103:in `render_to_body'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/abstract_controller/rendering.rb:25:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:36:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
 60036495 | /opt/rh/rh-ruby25/root/usr/share/ruby/benchmark.rb:308:in `realtime'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:43:in `render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:195:in `process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
 60036495 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 60036495 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 60036495 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:139:in `run_callbacks'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:41:in `process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/rescue.rb:22:in `process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.4/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:136:in `process'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:39:in `process'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:190:in `dispatch'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:254:in `dispatch'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:49:in `block in serve'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `each'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `serve'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:834:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-dsl-2.3.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/static_dispatcher.rb:66:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/extractor/recorder.rb:137:in `call'
 60036495 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 60036495 | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
 60036495 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/cookies.rb:648:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:101:in `run_callbacks'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:37:in `call_app'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:28:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 60036495 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/request_id.rb:27:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.4/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/executor.rb:14:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/static.rb:126:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-6.3.0/lib/secure_headers/middleware.rb:11:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.4/lib/rails/engine.rb:527:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `public_send'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `method_missing'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in `block in call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `each'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-5.1.1/lib/puma/configuration.rb:246:in `call'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-5.1.1/lib/puma/request.rb:76:in `block in handle_request'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-5.1.1/lib/puma/thread_pool.rb:337:in `with_force_shutdown'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-5.1.1/lib/puma/request.rb:75:in `handle_request'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-5.1.1/lib/puma/server.rb:431:in `process_client'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-5.1.1/lib/puma/thread_pool.rb:145:in `block in spawn_thread'
 60036495 | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2021-05-19T12:03:28 [I|app|60036495]   Rendering common/500.html.erb within layouts/application
2021-05-19T12:03:28 [I|app|60036495]   Rendered common/500.html.erb within layouts/application (Duration: 7.1ms | Allocations: 717)
2021-05-19T12:03:28 [I|app|60036495]   Rendered layouts/_application_content.html.erb (Duration: 0.3ms | Allocations: 110)
2021-05-19T12:03:28 [I|app|60036495]   Rendering layouts/base.html.erb
2021-05-19T12:03:28 [I|app|60036495]   Rendered layouts/base.html.erb (Duration: 1.4ms | Allocations: 1040)
2021-05-19T12:03:28 [I|app|60036495] Completed 500 Internal Server Error in 366ms (Views: 10.6ms | ActiveRecord: 19.2ms | Allocations: 67348)

Foreman version: 2.4.0

Grepping takes me to this patch @Marek_Hulan

Should the rescue be ::Libvirt::Error instead? I think so:

Can you make the suggested change, restart foreman and try again? Then you should probably see the real cause of the problem.

1 Like

Awesome, That works!

I needed to correct some items such as the domain and some network settings but after that VM’s imports.

The reason for the domains and network is because Foreman is not yet configured with a domain and network, I’ll go through that now and see if I can deploy new hosts directly on Libvirt.

1 Like

Glad it worked, upstream is a bit busy so I can’t tell when this is gonna be merged and released.