{"action":"created","issue":{"url":"https://api.github.com/repos/autotest/tp-qemu/issues/756","repository_url":"https://api.github.com/repos/autotest/tp-qemu","labels_url":"https://api.github.com/repos/autotest/tp-qemu/issues/756/labels{/name}","comments_url":"https://api.github.com/repos/autotest/tp-qemu/issues/756/comments","events_url":"https://api.github.com/repos/autotest/tp-qemu/issues/756/events","html_url":"https://github.com/autotest/tp-qemu/pull/756","id":178245206,"number":756,"title":"Update test case to make memory hotplug/unplug when VM is paused","user":{"login":"xutian","id":1871732,"avatar_url":"https://avatars.githubusercontent.com/u/1871732?v=3","gravatar_id":"","url":"https://api.github.com/users/xutian","html_url":"https://github.com/xutian","followers_url":"https://api.github.com/users/xutian/followers","following_url":"https://api.github.com/users/xutian/following{/other_user}","gists_url":"https://api.github.com/users/xutian/gists{/gist_id}","starred_url":"https://api.github.com/users/xutian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xutian/subscriptions","organizations_url":"https://api.github.com/users/xutian/orgs","repos_url":"https://api.github.com/users/xutian/repos","events_url":"https://api.github.com/users/xutian/events{/privacy}","received_events_url":"https://api.github.com/users/xutian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-21T04:46:05Z","updated_at":"2016-09-29T04:45:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/autotest/tp-qemu/pulls/756","html_url":"https://github.com/autotest/tp-qemu/pull/756","diff_url":"https://github.com/autotest/tp-qemu/pull/756.diff","patch_url":"https://github.com/autotest/tp-qemu/pull/756.patch"},"body":"cleanup code execute logical and made a small update to ensure VM is paused status when execute test case \"hotplug_memory.during.pause_vm.hotplug.backend_file.2M_hugepage.policy_bind.two\"."},"comment":{"url":"https://api.github.com/repos/autotest/tp-qemu/issues/comments/250369128","html_url":"https://github.com/autotest/tp-qemu/pull/756#issuecomment-250369128","issue_url":"https://api.github.com/repos/autotest/tp-qemu/issues/756","id":250369128,"user":{"login":"xiagao","id":9928220,"avatar_url":"https://avatars.githubusercontent.com/u/9928220?v=3","gravatar_id":"","url":"https://api.github.com/users/xiagao","html_url":"https://github.com/xiagao","followers_url":"https://api.github.com/users/xiagao/followers","following_url":"https://api.github.com/users/xiagao/following{/other_user}","gists_url":"https://api.github.com/users/xiagao/gists{/gist_id}","starred_url":"https://api.github.com/users/xiagao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiagao/subscriptions","organizations_url":"https://api.github.com/users/xiagao/orgs","repos_url":"https://api.github.com/users/xiagao/repos","events_url":"https://api.github.com/users/xiagao/events{/privacy}","received_events_url":"https://api.github.com/users/xiagao/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T04:45:22Z","updated_at":"2016-09-29T04:45:22Z","body":"Run three cases about pause_vm, all pass. But check the debug log, the steps are not in accordance with them in polarion.\r\nResults:\r\n01-smp_1.2048m.repeat1.run_test.Host_RHEL.m7.u3.qcow2.virtio_blk.up.virtio_net.RHEL.7.3.x86_64.io-github-autotest-qemu.hotplug_memory.before.pause_vm.hotplug.backend_ram.policy_default.two Finshed 2016-09-28 04:33:06 2016-09-28 05:16:13 PASS 2587.48379\r\ndebug.log\r\n04:34:33 INFO | Context: Stop the VM\r\n04:34:33 DEBUG| (monitor qmpmonitor1) Sending command 'stop'\r\n04:34:33 DEBUG| Send command: {'execute': 'stop', 'id': 'QHO8Md4N'}\r\n04:34:33 INFO | Context: Stop the VM --> Verify the status of VM is 'paused'\r\n04:34:33 INFO | Context: Stop the VM --> Verify the session has no response\r\n04:35:40 INFO | Update MAC(00:22:19:30:7c:af)<->(10.66.144.69)IP pair into address_cache\r\n04:39:38 INFO | Context: Resume the VM\r\n04:39:38 DEBUG| (monitor qmpmonitor1) Sending command 'cont'\r\n04:39:38 DEBUG| Send command: {'execute': 'cont', 'id': '3QptKqu1'}\r\n04:39:38 INFO | Context: Resume the VM --> Verify the status of VM is 'running'\r\n04:39:38 INFO | Context: Resume the VM --> Re-login the guest\r\n04:39:38 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 600s)\r\n04:40:04 INFO | Context: Run sub test 'pause_vm' before hotplug memory device --> Hotplug memory 'mem-plug' to VM\r\n04:40:04 DEBUG| (monitor qmpmonitor1) Sending command 'object-add'\r\n04:40:04 DEBUG| Send command: {'execute': 'object-add', 'arguments': {'id': 'mem-plug', 'qom-type': 'memory-backend-ram', 'props': {'policy': 'default', 'size': 1073741824}}, 'id': 'ZjbopWGQ'}\r\n04:40:04 INFO | Context: Run sub test 'pause_vm' before hotplug memory device --> Hotplug memory 'mem-plug' to VM --> Get hotpluged memory address\r\n04:40:04 DEBUG| (monitor qmpmonitor1) Sending command 'query-memory-devices'\r\n04:40:04 DEBUG| Send command: {'execute': 'query-memory-devices', 'id': 'N1Q0O88c'}\r\n04:40:04 DEBUG| (monitor qmpmonitor1) Response to 'query-memory-devices' (re-formated)\r\n04:40:04 DEBUG| (monitor qmpmonitor1)        data:\r\n04:40:04 DEBUG| (monitor qmpmonitor1)            slot: 0\r\n04:40:04 DEBUG| (monitor qmpmonitor1)            node: 1\r\n04:40:04 DEBUG| (monitor qmpmonitor1)            addr: 4294967296\r\n04:40:04 DEBUG| (monitor qmpmonitor1)            memdev: /objects/mem-mem1\r\n04:40:04 DEBUG| (monitor qmpmonitor1)            id: dimm-mem1\r\n04:40:04 DEBUG| (monitor qmpmonitor1)            hotpluggable: True\r\n04:40:04 DEBUG| (monitor qmpmonitor1)            hotplugged: False\r\n04:40:04 DEBUG| (monitor qmpmonitor1)            size: 1073741824\r\n04:40:04 DEBUG| (monitor qmpmonitor1)        type: dimm\r\n04:40:04 INFO | Context: Run sub test 'pause_vm' before hotplug memory device --> Hotplug pc-dimm 'dimm-plug' to VM\r\n04:40:04 DEBUG| (monitor qmpmonitor1) Sending command 'device_add'\r\n04:40:04 DEBUG| Send command: {'execute': 'device_add', 'arguments': OrderedDict([('driver', 'pc-dimm'), ('id', 'dimm-plug'), ('memdev', 'mem-plug')]), 'id': 'uUMnHWa4'}\r\n04:40:04 INFO | Context: Run sub test 'pause_vm' before hotplug memory device --> Verify memory info\r\n-----------------------------------------------------------------------------------------\r\n05-smp_1.2048m.repeat1.run_test.Host_RHEL.m7.u3.qcow2.virtio_blk.up.virtio_net.RHEL.7.3.x86_64.io-github-autotest-qemu.hotplug_memory.after.pause_vm.hotplug.backend_ram.policy_default.two Finshed 2016-09-28 22:35:46 2016-09-28 22:44:31 PASS 524.866943\r\ndebug.log\r\n22:35:52 INFO | Context: (run) --> Hotplug memory 'mem-plug' to VM\r\n22:35:52 DEBUG| (monitor qmpmonitor1) Sending command 'object-add'\r\n22:35:52 DEBUG| Send command: {'execute': 'object-add', 'arguments': {'id': 'mem-plug', 'qom-type': 'memory-backend-ram', 'props': {'policy': 'default', 'size': 1073741824}}, 'id': 'dLPQYls0'}\r\n22:35:52 INFO | Context: (run) --> Hotplug memory 'mem-plug' to VM --> Get hotpluged memory address\r\n22:35:52 DEBUG| (monitor qmpmonitor1) Sending command 'query-memory-devices'\r\n22:35:52 DEBUG| Send command: {'execute': 'query-memory-devices', 'id': 'uM0EaeGz'}\r\n22:35:52 DEBUG| (monitor qmpmonitor1) Response to 'query-memory-devices' (re-formated)\r\n22:35:52 DEBUG| (monitor qmpmonitor1)        data:\r\n22:35:52 DEBUG| (monitor qmpmonitor1)            slot: 0\r\n22:35:52 DEBUG| (monitor qmpmonitor1)            node: 1\r\n22:35:52 DEBUG| (monitor qmpmonitor1)            addr: 4294967296\r\n22:35:52 DEBUG| (monitor qmpmonitor1)            memdev: /objects/mem-mem1\r\n22:35:52 DEBUG| (monitor qmpmonitor1)            id: dimm-mem1\r\n22:35:52 DEBUG| (monitor qmpmonitor1)            hotpluggable: True\r\n22:35:52 DEBUG| (monitor qmpmonitor1)            hotplugged: False\r\n22:35:52 DEBUG| (monitor qmpmonitor1)            size: 1073741824\r\n22:35:52 DEBUG| (monitor qmpmonitor1)        type: dimm\r\n22:35:52 INFO | Context: (run) --> Hotplug pc-dimm 'dimm-plug' to VM\r\n22:35:52 DEBUG| (monitor qmpmonitor1) Sending command 'device_add'\r\n22:35:52 DEBUG| Send command: {'execute': 'device_add', 'arguments': OrderedDict([('driver', 'pc-dimm'), ('id', 'dimm-plug'), ('memdev', 'mem-plug')]), 'id': '9XuZ0PeR'}\r\n22:35:52 INFO | Context: (run) --> Verify memory info\r\n22:35:52 WARNI| Unable to read serial console\r\n22:35:52 WARNI| Unable to read serial console\r\n22:35:52 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 240s)\r\n22:36:03 DEBUG| Login timeout expired    (output: '')\r\n22:36:43 DEBUG| Client said 'connection refused'    (output: 'ssh: connect to host 10.66.147.191 port 22: Connection refused\\n')\r\n22:37:02 DEBUG| Sending command: grep 'MemTotal:' /proc/meminfo\r\n22:37:03 INFO | Assigned 3072M memory to 'avocado-vt-vm1'\r\n22:37:03 INFO | Context: Run sub test 'pause_vm' after hotplug memory device\r\n22:37:05 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 600s)\r\n22:37:09 INFO | Context: Stop the VM\r\n22:37:09 DEBUG| (monitor qmpmonitor1) Sending command 'stop'\r\n22:37:09 DEBUG| Send command: {'execute': 'stop', 'id': 't0t9SPYN'}\r\n22:37:09 INFO | Context: Stop the VM --> Verify the status of VM is 'paused'\r\n22:37:09 INFO | Context: Stop the VM --> Verify the session has no response\r\n22:38:48 INFO | Update MAC(6c:3b:e5:1d:95:79)<->(10.66.144.14)IP pair into address_cache\r\n22:42:14 INFO | Context: Resume the VM\r\n22:42:14 DEBUG| (monitor qmpmonitor1) Sending command 'cont'\r\n22:42:14 DEBUG| Send command: {'execute': 'cont', 'id': 'TODlMvd4'}\r\n22:42:14 INFO | Context: Resume the VM --> Verify the status of VM is 'running'\r\n22:42:14 INFO | Context: Resume the VM --> Re-login the guest\r\n22:42:14 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 600s)\r\n22:42:18 INFO | Context: Run sub test 'pause_vm' after hotplug memory device --> rebooting 'avocado-vt-vm1'\r\n----------------------------------------------------------------------------------\r\n10-smp_1.2048m.repeat1.run_test.Host_RHEL.m7.u3.qcow2.virtio_blk.up.virtio_net.RHEL.7.3.x86_64.io-github-autotest-qemu.hotplug_memory.during.pause_vm.hotplug.backend_ram.policy_bind.two Finshed 2016-09-28 23:01:05 2016-09-28 23:12:42 PASS 696.800968\r\ndebug.log\r\n23:02:19 INFO | Context: (run) --> Hotplug memory 'mem-plug' to VM\r\n23:02:19 DEBUG| (monitor qmpmonitor1) Sending command 'object-add'\r\n23:02:19 DEBUG| Send command: {'execute': 'object-add', 'arguments': {'id': 'mem-plug', 'qom-type': 'memory-backend-ram', 'props': {'policy': 'bind', 'host-nodes': [0], 'size': 1073741824}}, 'id': 'TZyTH96D'}\r\n23:02:19 INFO | Context: (run) --> Hotplug memory 'mem-plug' to VM --> Get hotpluged memory address\r\n23:02:19 DEBUG| (monitor qmpmonitor1) Sending command 'query-memory-devices'\r\n23:02:19 DEBUG| Send command: {'execute': 'query-memory-devices', 'id': 'enAtaYGE'}\r\n23:02:19 DEBUG| (monitor qmpmonitor1) Response to 'query-memory-devices' (re-formated)\r\n23:02:19 DEBUG| (monitor qmpmonitor1)        data:\r\n23:02:19 DEBUG| (monitor qmpmonitor1)            slot: 0\r\n23:02:19 DEBUG| (monitor qmpmonitor1)            node: 1\r\n23:02:19 DEBUG| (monitor qmpmonitor1)            addr: 4294967296\r\n23:02:19 DEBUG| (monitor qmpmonitor1)            memdev: /objects/mem-mem1\r\n23:02:19 DEBUG| (monitor qmpmonitor1)            id: dimm-mem1\r\n23:02:19 DEBUG| (monitor qmpmonitor1)            hotpluggable: True\r\n23:02:19 DEBUG| (monitor qmpmonitor1)            hotplugged: False\r\n23:02:19 DEBUG| (monitor qmpmonitor1)            size: 1073741824\r\n23:02:19 DEBUG| (monitor qmpmonitor1)        type: dimm\r\n23:02:19 INFO | Context: (run) --> Hotplug pc-dimm 'dimm-plug' to VM\r\n23:02:19 DEBUG| (monitor qmpmonitor1) Sending command 'device_add'\r\n23:02:19 DEBUG| Send command: {'execute': 'device_add', 'arguments': OrderedDict([('driver', 'pc-dimm'), ('id', 'dimm-plug'), ('memdev', 'mem-plug')]), 'id': '0XunbCIl'}\r\n23:02:19 INFO | Context: (run) --> Verify memory info\r\n23:02:19 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 240s)\r\n23:02:27 DEBUG| Login timeout expired    (output: '\\nLast login: Thu Sep 29 10:53:32 2016 from amd-5400b-4-2.englab.nay.redhat.com\\n')\r\n23:02:31 DEBUG| Sending command: grep 'MemTotal:' /proc/meminfo\r\n23:02:31 INFO | Assigned 3072M memory to 'avocado-vt-vm1'\r\n23:02:36 INFO | Context: Stop the VM\r\n23:02:36 DEBUG| (monitor qmpmonitor1) Sending command 'stop'\r\n23:02:36 DEBUG| Send command: {'execute': 'stop', 'id': 'RntnX6ZN'}\r\n23:02:40 INFO | Context: Stop the VM --> Verify the status of VM is 'paused'\r\n23:02:40 INFO | Context: Stop the VM --> Verify the session has no response\r\n23:07:45 INFO | Context: Resume the VM\r\n23:07:45 DEBUG| (monitor qmpmonitor1) Sending command 'cont'\r\n23:07:45 DEBUG| Send command: {'execute': 'cont', 'id': 'GF9N5aF0'}\r\n23:07:45 INFO | Context: Resume the VM --> Verify the status of VM is 'running'\r\n23:07:45 INFO | Context: Resume the VM --> Re-login the guest\r\n23:07:45 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 600s)\r\n23:07:53 INFO | Context: (run) --> rebooting 'avocado-vt-vm1'\r\n\r\n\r\n"}}
{"actor":{"display_login":"xiagao"}}