{"action":"created","issue":{"url":"https://api.github.com/repos/autotest/tp-libvirt/issues/647","labels_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/647/comments","events_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/647/events","html_url":"https://github.com/autotest/tp-libvirt/pull/647","id":106916789,"number":647,"title":"virsh_qemu_agent_command: fix invalid id for guest-sync","user":{"login":"PandaWei","id":5038445,"avatar_url":"https://avatars.githubusercontent.com/u/5038445?v=3","gravatar_id":"","url":"https://api.github.com/users/PandaWei","html_url":"https://github.com/PandaWei","followers_url":"https://api.github.com/users/PandaWei/followers","following_url":"https://api.github.com/users/PandaWei/following{/other_user}","gists_url":"https://api.github.com/users/PandaWei/gists{/gist_id}","starred_url":"https://api.github.com/users/PandaWei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PandaWei/subscriptions","organizations_url":"https://api.github.com/users/PandaWei/orgs","repos_url":"https://api.github.com/users/PandaWei/repos","events_url":"https://api.github.com/users/PandaWei/events{/privacy}","received_events_url":"https://api.github.com/users/PandaWei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-17T05:49:10Z","updated_at":"2015-09-17T05:49:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/647","html_url":"https://github.com/autotest/tp-libvirt/pull/647","diff_url":"https://github.com/autotest/tp-libvirt/pull/647.diff","patch_url":"https://github.com/autotest/tp-libvirt/pull/647.patch"},"body":"There're some limitation for valid value on 64 bits machine,\r\nMax is 2^63-1 and Min is -2^63,\r\nBoth MAX+1 and MIN+1 are invalid, and lead to following errors,\r\n\r\n'/usr/bin/virsh qemu-agent-command g3 --cmd \\\r\n'{\"execute\":\"guest-sync\", \"arguments\":{\"id\": 9223372036854775808 }}''\r\ninternal error: unable to execute QEMU agent\r\ncommand 'guest-sync': Invalid parameter type for 'id',\r\nexpected: integer\r\n\r\nso we should regard them as negative cases."},"comment":{"url":"https://api.github.com/repos/autotest/tp-libvirt/issues/comments/140976023","html_url":"https://github.com/autotest/tp-libvirt/pull/647#issuecomment-140976023","issue_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/647","id":140976023,"user":{"login":"PandaWei","id":5038445,"avatar_url":"https://avatars.githubusercontent.com/u/5038445?v=3","gravatar_id":"","url":"https://api.github.com/users/PandaWei","html_url":"https://github.com/PandaWei","followers_url":"https://api.github.com/users/PandaWei/followers","following_url":"https://api.github.com/users/PandaWei/following{/other_user}","gists_url":"https://api.github.com/users/PandaWei/gists{/gist_id}","starred_url":"https://api.github.com/users/PandaWei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PandaWei/subscriptions","organizations_url":"https://api.github.com/users/PandaWei/orgs","repos_url":"https://api.github.com/users/PandaWei/repos","events_url":"https://api.github.com/users/PandaWei/events{/privacy}","received_events_url":"https://api.github.com/users/PandaWei/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T05:49:54Z","updated_at":"2015-09-17T05:49:54Z","body":"TESTS: 2\r\n(1/2) type_specific.io-github-autotest-libvirt.virsh.qemu_agent_command.error_test.invalid_options.guest_sync_invalid.sync.max_plus_one_id: PASS (26.68 s)\r\n(2/2) type_specific.io-github-autotest-libvirt.virsh.qemu_agent_command.error_test.invalid_options.guest_sync_invalid.sync.min_minus_one_id: PASS (26.68 s)\r\nTOTAL TIME: 53.56 s\r\nTESTS PASSED: 2\r\nTESTS FAILED: 0\r\nSUCCESS RATE: 100.00 %\r\n"}}