Getting <ArgumentError>: <comparison of String with 1 failed> while using update_vm_name method.

Solution Verified - Updated -

Issue

  • While provisioning multiple VMs from a service by using update_vm_name method, the service provisioning is failed with the following error:

    [----] E, [2020-11-27T00:22:32.598696 #473483:2b103e7aee7c] ERROR -- : The following error occurred during instance method <update_vm_name> for AR object <#<ManageIQ::Providers::Redhat::InfraManager::Provision id: 156, description: "Provision from [RHEL7.2] to [cfme036]", state: "pending", request_type: "template", userid: "admin", options: {:initial_pass=>true, :service_template_request=>false, ....
    .....
    [----] E, [2020-11-27T00:22:32.598903 #473483:2b103e7aee7c] ERROR -- : MiqAeServiceModelBase.ar_method raised: <ArgumentError>: <comparison of String with 1 failed>
    [----] E, [2020-11-27T00:22:32.598955 #473483:2b103e7aee7c] ERROR -- : /var/www/miq/vmdb/app/models/miq_provision/options_helper.rb:60:in `>'
    /var/www/miq/vmdb/app/models/miq_provision/options_helper.rb:60:in `get_hostname'
    /var/www/miq/vmdb/app/models/miq_provision.rb:68:in `update_vm_name'
    

Environment

  • Red Hat CloudForms 5.0
  • Red Hat Virtualization 4.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In