Description of problem: Running HE CLI commands shows # hosted-engine --vm-start Virtual machine does not exist: {'vmId': '941b0878-461c-429c-aefc-0287d7eca971'} Exception AttributeError: "'NoneType' object has no attribute 'dispatcher'" in <bound method _Server.__del__ of <vdsm.jsonrpcvdscli._Server object at 0x16840d0>> ignored Exception AttributeError: "'NoneType' object has no attribute 'dispatcher'" in <bound method _Server.__del__ of <vdsm.jsonrpcvdscli._Server object at 0xec4e50>> ignored Version-Release number of selected component (if applicable): ovirt-hosted-engine-ha-2.2.0-0.0.master.20170616124434.20170616124430.git18dac95.el7.centos.noarch How reproducible: Always Steps to Reproduce: 1. Deploy hosted-engine 2. Run some CLI command that uses of VDSM API 3. Actual results: Command succeeded, but I can see some error message(see above) Expected results: Command succeed with some nice looking print out Additional info: VDSM log contains some Tracebacks
Looks like by the time we are closing the json rpc client connection some of the fields are already empty. More specifically, the error is thrown from the close method in the betterAsyncore.py class. The 'asyncore' library seems to be None and we are getting the reported error.
https://gerrit.ovirt.org/78166/ wasn't related
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
Still, can see it on ovirt-hosted-engine-ha-2.2.0-0.0.master.20170914130805.20170914130802.git82df275.el7.centos.noarch ovirt-hosted-engine-setup-2.2.0-0.0.master.20170913082146.git120d800.el7.centos.noarch # hosted-engine --vm-start Virtual machine does not exist: {'vmId': 'c2ee6bf8-a02a-4b1b-8435-a1e97f0ebb6f'} Exception AttributeError: AttributeError("'NoneType' object has no attribute 'c_uint64'",) in <bound method _Server.__del__ of <vdsm.jsonrpcvdscli._Server object at 0x293d110>> ignored
Fixed consuming the new json rpc client
Verified on ovirt-hosted-engine-setup-2.2.1-1.el7ev.noarch
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.