<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 6, 2016 at 5:45 PM, Sandro Bonazzola <span dir="ltr"><<a href="mailto:sbonazzo@redhat.com" target="_blank">sbonazzo@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="gmail-m_-831203030921989301gmail-"></span><div>OK.</div><div>Must I start from scratch or can I use the generated answer file from previous step in any way?</div><span class="gmail-m_-831203030921989301gmail-"></span></div></div></div></blockquote></span><br><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-m_-831203030921989301gmail-"><div><div>[ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-<wbr>setup/answers/answers-20161206<wbr>171233.conf'</div></div></span></div></div></div></blockquote></span><div class="gmail_quote"><span class="gmail-"><div><br></div></span><div>You can re-use the answer file:</div><div>hosted-engine --deploy --config-append=/var/lib/<wbr>ovirt-hosted-engine-setup/<wbr>answers/answers-20161206171233<wbr>.conf</div><span class="gmail-"><div><br></div></span></div><span class="gmail-">
</span></div></div>
</blockquote></div><br></div><div class="gmail_extra">It seems I got the same inside the new log file<br><br>2016-12-06 21:13:31 INFO otopi.plugins.gr_he_setup.vm.runvm mixins._create_vm:149 Creating VM
<br>2016-12-06 21:13:31 DEBUG otopi.plugins.gr_he_setup.vm.runvm mixins._create_vm:281 {'status': {
<br>'message': u'Error creating the requested VM', 'code': 9}}
<br>2016-12-06 21:13:31 DEBUG otopi.context context._executeMethod:142 method exception
<br>Traceback (most recent call last):
<br> File "/usr/lib/python2.7/site-packages/otopi/context.py", line 132, in _executeMethod
<br> method['method']()
<br> File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-setup/vm/runvm.py", line 168, in _boot_from_hd
<br> self._create_vm()
<br> File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/mixins.py", line 287, in _create_vm
<br> message=status['status']['message']
<br>RuntimeError: Cannot create the VM: Error creating the requested VM
<br>2016-12-06 21:13:31 ERROR otopi.context context._executeMethod:151 Failed to execute stage 'Closing up': Cannot create the VM: Error creating the requested VM
<br>2016-12-06 21:13:31 ERROR otopi.context context._executeMethod:151 Failed to execute stage 'Closing up': Cannot create the VM: Error creating the requested VM
<br>2016-12-06 21:13:31 DEBUG otopi.context context.dumpEnvironment:760 ENVIRONMENT DUMP - BEGIN
<br>2016-12-06 21:13:31 DEBUG otopi.context context.dumpEnvironment:770 ENV BASE/error=bool:'True'
<br>2016-12-06 21:13:31 DEBUG otopi.context context.dumpEnvironment:770 ENV BASE/exceptionInfo=list:'[(<type 'exceptions.RuntimeError'>, RuntimeError('Cannot create the VM: Error creating the requested VM',), <traceback object at 0x5cd7dd0>)]'
<br><br>Current packages:<br>[root@ovirt41 ~]# rpm -qa|grep qemu | grep kvm
<br>qemu-kvm-ev-2.6.0-27.1.el7.x86_64
<br>qemu-kvm-tools-ev-2.6.0-27.1.el7.x86_64
<br>qemu-kvm-common-ev-2.6.0-27.1.el7.x86_64
<br>[root@ovirt41 ~]#
<br><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">But in vdsm.log I see this message:<br><br>2016-12-06 21:13:25,587 ERROR (jsonrpc/6) [root] failed to retrieve Hosted Engine HA info (api:
<br>252)
<br>Traceback (most recent call last):
<br> File "/usr/lib/python2.7/site-packages/vdsm/host/api.py", line 231, in _getHaInfo
<br> stats = instance.get_all_stats()
<br> File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py", line 102, in
<br> get_all_stats
<br> with broker.connection(self._retries, self._wait):
<br> File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
<br> return self.gen.next()
<br> File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 99, in
<br> connection
<br> self.connect(retries, wait)
<br> File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 78, in
<br> connect
<br> raise BrokerConnectionError(error_msg)
<br>BrokerConnectionError: Failed to connect to broker, the number of errors has exceeded the limit
<br> (1)
<br>2016-12-06 21:13:25,589 INFO (jsonrpc/6) [jsonrpc.JsonRpcServer] RPC call Host.getStats succee
<br>ded in 0.01 seconds (__init__:515)
<br>2016-12-06 21:13:31,796 INFO (jsonrpc/7) [jsonrpc.JsonRpcServer] RPC call VM.getStats failed (
<br>error 1) in 0.00 seconds (__init__:515)
<br>2016-12-06 21:13:31,806 ERROR (jsonrpc/0) [virt.api] FINISH create error=Error creating the requested VM (api:54)
<br>Traceback (most recent call last):
<br> File "/usr/lib/python2.7/site-packages/vdsm/common/api.py", line 52, in method
<br> ret = func(*args, **kwargs)
<br> File "/usr/share/vdsm/API.py", line 220, in create
<br> 'Unknown display type %s' % vmParams.get('display'))
<br>CannotCreateVM: Error creating the requested VM
<br>2016-12-06 21:13:31,808 INFO (jsonrpc/0) [jsonrpc.JsonRpcServer] RPC call VM.create failed (error 9) in 0.00 seconds (__init__:515)
<br><br></div><div class="gmail_extra">So I think the problem consists in trying to create engine with qxl video device (that is a right initial option offered...)<br><br></div><div class="gmail_extra">I changed the answer file this way<br><br>old = <<br>new = ><br><br>< OVEHOSTED_VDSM/consoleType=str:qxl
<br>---
<br>> OVEHOSTED_VDSM/consoleType=str:vnc
<br><br></div><div class="gmail_extra">and the deploy went ahead creating the VM<br></div><div class="gmail_extra"><br>[ INFO ] Creating VM
<br> You can now connect to the VM with the following command:
<br> hosted-engine --console
<br> You can also graphically connect to the VM from your system with the following command:
<br> remote-viewer vnc://ovirt41.localdomain.local:5900
<br> Use temporary password "0979VeaN" to connect to vnc console.
<br> Please ensure that your Guest OS is properly configured to support serial console according to your distro documentation.
<br> Follow <a href="http://www.ovirt.org/Serial_Console_Setup#I_need_to_access_the_console_the_old_way">http://www.ovirt.org/Serial_Console_Setup#I_need_to_access_the_console_the_old_way</a> for more info.
<br> If you need to reboot the VM you will need to start it manually using the command:
<br> hosted-engine --vm-start
<br> You can then set a temporary password using the command:
<br> hosted-engine --add-console-password
<br>[ INFO ] Running engine-setup on the appliance
<br><br></div><div class="gmail_extra">But it seems stuck in the bios.... see:<br><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvSE1mWFVIUEhiRTg/view?usp=sharing">https://drive.google.com/file/d/0BwoPbcrMv8mvSE1mWFVIUEhiRTg/view?usp=sharing</a><br></div><div class="gmail_extra"><br><br></div></div>