Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19996

Satellite create host failed to create a compute (Libvirt) instance "Error saving the server: Call to virDomainDefineXML failed: unsupported configuration: VNC password is 16 characters long, only 8 permitted"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.12.4
    • None
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • CLOSED
    • 800
    • Rocket
    • Important
    • 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:

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: