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!