Hide Forgot
Description of problem: I am getting an error when spice password is set in domain: error: Failed to start domain WinXP error: internal error unable to execute QEMU command '__com.redhat_set_password': Invalid JSON syntax - which means that It's no possible to start Domain. I believe This is fixed in repo already (based on discussion with Michal (mprivozn), anyway creating a bug for tracking that and making sure It will be retested and included in test cases. Version-Release number of selected component (if applicable): libvirt-0.9.4-0rc2.el6 How reproducible: Always Steps to Reproduce: 1. Start a Domain using virsh with spice password set (attribute passwd in graphics element) Actual results: error: internal error unable to execute QEMU command '__com.redhat_set_password': Invalid JSON syntax Expected results: Started Domain Additional info:
Please provide the /var/log/libvirt/libvirtd.log file for the host, so that we can see the JSON data sent to QEMU
libvirtd.log 13:50:45.887: 31759: debug : virJSONValueToString:1102 : result={"error":{"class":"JSONParsing","desc":"Invalid JSON syntax","data":{}}} 13:50:45.887: 31759: debug : qemuMonitorJSONCheckError:306 : unable to execute QEMU command {"execute":"__com.redhat_set_password","arguments":{"protocol":"spice","password":"12345","connected":null,"expiration":195},"id":"libvirt-5"}: {"error":{"class":"JSONParsing","desc":"Invalid JSON syntax","data":{}}} 13:50:45.887: 31759: error : qemuMonitorJSONCheckError:317 : internal error unable to execute QEMU command '__com.redhat_set_password': Invalid JSON syntax 13:50:45.887: 31759: debug : qemuProcessStop:3082 : Shutting down VM 'WinXP' pid=31897 migrated=0
This shows the flaw: > {"execute":"__com.redhat_set_password","arguments" {"protocol":"spice","password":"12345","connected":null,"expiration":195},"id":"libvirt-5"}: the 'connected' attribute is 'null' which is not a valid string. THis is introduced by the custom patch libvirt-Support-password-expiry-and-connected-in-the-QEMU-driver.patch which was not rebased correctly for libvirt 0.9.4
Known issue; see bug 707212 comment 14
*** This bug has been marked as a duplicate of bug 707212 ***
Created attachment 516503 [details] Fix null parameter
(In reply to comment #4) > Known issue; see bug 707212 comment 14 Good, In that case this build should not pass QE consumption and should be mentioned in Acceptance testing results. Libvirt QE, please make sure for next time. As well as it's regression between libvirt-0.9.4-0rc1.2 and libvirt-0.9.4-0rc2. This bug report was to make sure It will really get in next realese. Thanks.