-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
6.12.4
-
None
Description of problem:
- Create new host fails with the following error:
"Failed to create a compute LOCATION hypervisor (Libvirt) instance hostname.example.org: Error saving the server: Call to virDomainDefineXML failed: unsupported configuration: VNC password is 16 characters long, only 8 permitted"
Version-Release number of selected component (if applicable):
- Satellite 6.12.4.1
How reproducible:
100%
Steps to Reproduce:
1. In Satellite UI, navigate to Hosts -> Create Host
2. Complete the form and select a Libvirt resource in the "Deploy On" field
3. Click Submit
Actual results:
- Create host on Libvirt compute resource fails and displays error in the Satellite UI.
- VM disk is created on the Libvirt storage resource but not the VM itself.
- Backtrace is generated in /var/log/foreman/production.log
~~~
2023-09-12T12:43:29 [I|app|ef5004e5] Adding Compute instance for vm1.example.org
2023-09-12T12:43:29 [W|app|ef5004e5] Unhandled Libvirt error
2023-09-12T12:43:29 [I|app|ef5004e5] Backtrace for 'Unhandled Libvirt error' error (Fog::Errors::Error): Error saving the server: Call to virDomainDefineXML failed: unsupported configuration: VNC password is 16 characters long, only 8 permitted
ef5004e5 | /usr/share/gems/gems/fog-libvirt-0.9.0/lib/fog/libvirt/models/compute/server.rb:71:in `rescue in save'
ef5004e5 | /usr/share/gems/gems/fog-libvirt-0.9.0/lib/fog/libvirt/models/compute/server.rb:63:in `save'
ef5004e5 | /usr/share/foreman/app/models/compute_resources/foreman/model/libvirt.rb:162:in `create_vm'
ef5004e5 | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:107:in `setCompute'
ef5004e5 | /usr/share/foreman/app/models/concerns/orchestration.rb:227:in `execute'
ef5004e5 | /usr/share/foreman/app/models/concerns/orchestration.rb:152:in `block in process'
ef5004e5 | /usr/share/foreman/app/models/concerns/orchestration.rb:144:in `each'
ef5004e5 | /usr/share/foreman/app/models/concerns/orchestration.rb:144:in `process'
ef5004e5 | /usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
[..]
~~~
Expected results:
- Create host on Libvirt compute resource successfully.
Additional info:
- Issue reported upstream - Unable to create libvirt compute resource VM instances - Foreman 3.2.1 w/ Katello 4.4.1, AlmaLinux 8.6
(https://community.theforeman.org/t/unable-to-create-libvirt-compute-resource-vm-instances-foreman-3-2-1-w-katello-4-4-1-almalinux-8-6/29441)