[ovirt-users] hosted-engine deploy error terminal state

Yedidyah Bar David didi at redhat.com
Wed Aug 17 06:14:19 UTC 2016


On Tue, Aug 16, 2016 at 5:34 PM, Maxence Sartiaux <contact at makz.me> wrote:
> Hello,
>
> I try to deploy a hosted-engine (4.0.2) on my cluster from a existing
> engine,

Please provide more details about what you are trying to do.

It seems like you already have an engine. Can't tell if it's a hosted
engine or not. Is it?

It seems like the host you are trying to deploy is/was already managed
by your engine. Is it?

Generally speaking, we do not allow "converting" an engine to a hosted
engine nor doing 'hosted-engine --deploy' on a host already managed by
the/an engine. For the former, please check [1]. For the latter, you
should first remove the host from the engine. [1] is very old, and some
details are different today, but the principles remain. I recommend
trying this first on an isolated test env before doing on production.

BTW, the above does not explain your failure. Your specific failure is:

2016-08-16 15:22:10 INFO otopi.plugins.gr_he_setup.engine.add_host
engineapi.get_engine_api:51 Connecting to the Engine
2016-08-16 15:22:10 DEBUG otopi.plugins.gr_he_setup.engine.add_host
add_host._closeup:513 Getting the list of available clusters via
engine's APIs
2016-08-16 15:37:10 DEBUG otopi.context context._executeMethod:142
method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 132,
in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-setup/engine/add_host.py",
line 554, in _closeup
    net_info = CachingNetInfo(vds_info.capabilities(conn))
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/vds_info.py",
line 31, in capabilities
    result = conn.getVdsCapabilities()
  File "/usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py", line
153, in _callMethod
    raise JsonRpcNoResponseError(method)
JsonRpcNoResponseError: [-32605] No response for JSON-RPC
Host.getCapabilities request.

To me it seems like 'hosted-engine --deploy' managed to connect to the
engine (not sure which, existing or one created in new hosted-engine vm)
but fails to get the list of clusters, probably because the engine fails
to connect to one or more hosts. Can't see that in the attached engine.log
btw - either it's from the wrong machine, or wrong time/timezone, something
like that.

[1] http://www.ovirt.org/develop/developer-guide/engine/migrate-to-hosted-engine/

Best,

>
> Everything works fine until i start the last step, my engine is up,
> cluster state ok, hosts state up ect ...
>
> When it come to the last step "Continue setup - oVirt-Engine
> installation is ready and ovirt-engine service is up"
>
> It get stuck on "Connecting to the Engine" and finally crash with
>
> [ ERROR ] Failed to execute stage 'Closing up': [-32605] No response
> for JSON-RPC Host.getCapabilities request.
> [ INFO  ] Stage: Clean up
> [ ERROR ] Failed to execute stage 'Clean up': [-32605] No response for
> JSON-RPC Host.stopMonitoringDomain request.
> [ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-
> setup/answers/answers-20160816155211.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-20160816144914-xykpcl.log
> Exception in thread Client hypervisor1:54321:
> Traceback (most recent call last):
>   File "/usr/lib64/python2.7/threading.py", line 811, in
> __bootstrap_inner
>     self.run()
>   File "/usr/lib64/python2.7/threading.py", line 764, in run
>     self.__target(*self.__args, **self.__kwargs)
>   File "/usr/lib/python2.7/site-packages/yajsonrpc/betterAsyncore.py",
> line 216, in process_requests
>     count=1,
>   File "/usr/lib64/python2.7/asyncore.py", line 220, in loop
>     poll_fun(timeout, map)
>   File "/usr/lib64/python2.7/asyncore.py", line 201, in poll2
>     readwrite(obj, flags)
> TypeError: 'NoneType' object is not callable
>
> hosted-engine-deploy and engine log are in attachements
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



-- 
Didi



More information about the Users mailing list