Why there is an error "NoneType' object has no attribute 'get_id'" while migrating RHV 4.0 from baremetal to hosted-engine?

Solution Verified - Updated -

Issue

  • While migrating BareMetal-Manager to the hosted engine setup, it failed with following error:
[ INFO  ] Creating VM
          You can now connect to the VM with the following command:
            hosted-engine --console
          You can also graphically connect to the VM from your system with the following command:
            remote-viewer vnc://<hostname>:5900
          Use temporary password "6822prvL" to connect to vnc console.
          Please ensure that your Guest OS is properly configured to support serial console according to your distro documentation.
          Follow http://www.ovirt.org/Serial_Console_Setup#I_need_to_access_the_console_the_old_way for more info.
          If you need to reboot the VM you will need to start it manually using the command:
          hosted-engine --vm-start
          You can then set a temporary password using the command:
          hosted-engine --add-console-password
          Please install and setup the engine in the VM.
          You may also be interested in installing ovirt-guest-agent-common package in the VM.


          The VM has been rebooted.
          To continue please install oVirt-Engine in the VM
          (Follow http://www.ovirt.org/Quick_Start_Guide for more info).

          Make a selection from the options below:
          (1) Continue setup - oVirt-Engine installation is ready and ovirt-engine service is up
          (2) Abort setup
          (3) Power off and restart the VM
          (4) Destroy VM and abort setup

          (1, 2, 3, 4)[1]: 1

          Checking for oVirt-Engine status at <hostname>.
[ INFO  ] Engine replied: DB Up!Welcome to Health Status!
[ INFO  ] Acquiring internal CA cert from the engine
[ INFO  ] The following CA certificate is going to be used, please immediately interrupt if not correct:
[ INFO  ] Issuer: C=US, O=domain, CN=CN_NAME.36046, Subject: C=US, O=dmain, CN=CN_NAME36046, Fingerprint (SHA-1): BC37B95B4B8F63900698C3F71409F4E2A3C7168F
[ INFO  ] Connecting to the Engine
          Enter the name of the cluster to which you want to add the host (Default, cluster names...) [Default]: <cluster_name>
[ ERROR ] Failed to execute stage 'Closing up': 'NoneType' object has no attribute 'get_id'
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20170302094223.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Hosted Engine deployment failed: this system is not reliable, please check the issue,fix and redeploy
          Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20170302091401-yki0ta.log

Environment

  • Red Hat Virtualization 4.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content