Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1713008

Summary: Live-migrating a paused VM (without shared storage) results in: "error while loading state for instance 0x0 of device '0000:00:05.0/virtio-balloon'"
Product: Red Hat Enterprise Linux 7 Reporter: Archit Modi <amodi>
Component: qemu-kvm-rhevAssignee: Kevin Wolf <kwolf>
Status: CLOSED NOTABUG QA Contact: aihua liang <aliang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: coli, dasmith, eglynn, jhakimra, jinzhao, juzhang, kchamart, knoel, kwolf, lyarwood, mbooth, rbryant, sbauza, sgordon, virt-maint, vromanso
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1713009 1717175 (view as bug list) Environment:
Last Closed: 2019-06-12 15:11:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1713009, 1717175    
Attachments:
Description Flags
tempest-run.log
none
Source QEMU (command-line) log
none
Destination QEMU (command-line) log none

Description Archit Modi 2019-05-22 16:53:25 UTC
Created attachment 1572098 [details]
tempest-run.log

Description of problem: Deploy RHOS 14 with mentioned topology and run the following tempest test:
tempest.api.compute.admin.test_live_migration.LiveMigrationTest.test_live_block_migration_paused


Version-Release number of selected component (if applicable):
core_puddle: 2019-05-15.1

Topology: 1 Controller, 2 Compute, 3 Ceph

Steps to Reproduce:
1. Deploy RHOS 14 with mentioned topology
2. Run tempest test:
tempest.api.compute.admin.test_live_migration.LiveMigrationTest.test_live_block_migration_paused

Actual results:
Response - Headers: {'status': '200', u'content-length': '1691', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-06ff23fb-f74b-4ad0-b88a-565302d10e19', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:14 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-06ff23fb-f74b-4ad0-b88a-565302d10e19'}
        Body: {"server": {"OS-EXT-STS:task_state": null, "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-EXT-SRV-ATTR:instance_name": "instance-00000016", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "PAUSED", "updated": "2019-05-22T09:19:13Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-EXT-SRV-ATTR:host": "compute-1.localdomain", "OS-SRV-USG:terminated_at": null, "key_name": null, "OS-EXT-SRV-ATTR:hypervisor_hostname": "compute-1.localdomain", "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:14,864 469238 INFO     [tempest.api.compute.admin.test_live_migration] Live migrate back to source compute-0.localdomain
2019-05-22 05:19:20,374 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 202 POST http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f/action 5.510s
2019-05-22 05:19:20,375 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"os-migrateLive": {"disk_over_commit": false, "block_migration": false, "host": "compute-0.localdomain"}}
    Response - Headers: {'status': '202', u'content-length': '0', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f/action', u'x-compute-request-id': 'req-d53e900d-16eb-45c7-ae93-57dd5dd81139', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:14 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-d53e900d-16eb-45c7-ae93-57dd5dd81139'}
        Body: 
2019-05-22 05:19:21,031 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.655s
2019-05-22 05:19:21,031 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-69cbb142-9f96-4568-ac9c-e6816deee537', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:20 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-69cbb142-9f96-4568-ac9c-e6816deee537'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:15Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:22,362 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.320s
2019-05-22 05:19:22,363 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-c9e25042-9b84-4ddf-b7fd-702f8ade1475', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:22 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-c9e25042-9b84-4ddf-b7fd-702f8ade1475'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:15Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:23,859 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.487s
2019-05-22 05:19:23,860 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-f432dae7-9a39-4d73-9793-de599fae4f56', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:23 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-f432dae7-9a39-4d73-9793-de599fae4f56'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:15Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:25,613 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.743s
2019-05-22 05:19:25,613 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-2816d9ba-8164-49f8-9bd8-dfdb99f7e793', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:24 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-2816d9ba-8164-49f8-9bd8-dfdb99f7e793'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:15Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:27,021 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.398s
2019-05-22 05:19:27,021 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-b08518e4-ba0f-4e70-a7b6-6b471140acdb', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:26 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-b08518e4-ba0f-4e70-a7b6-6b471140acdb'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:26Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:28,494 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.463s
2019-05-22 05:19:28,495 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-bdc67261-806a-4599-b96c-4e7b681942d2', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:28 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-bdc67261-806a-4599-b96c-4e7b681942d2'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:26Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:29,965 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.460s
2019-05-22 05:19:29,966 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-94435664-4c39-4c02-a087-d163578113aa', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:29 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-94435664-4c39-4c02-a087-d163578113aa'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:26Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:31,915 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.939s
2019-05-22 05:19:31,916 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-027a54e0-026f-422c-94d4-74e2af518391', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:30 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-027a54e0-026f-422c-94d4-74e2af518391'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:26Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:33,565 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.640s
2019-05-22 05:19:33,566 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1549', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-c521cf4d-fbe5-4c97-8e9d-df54f1bb73e9', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:32 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-c521cf4d-fbe5-4c97-8e9d-df54f1bb73e9'}
        Body: {"server": {"OS-EXT-STS:task_state": "migrating", "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "paused", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 3, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "MIGRATING", "updated": "2019-05-22T09:19:26Z", "hostId": "ba6037e255568dae0d1032f97b5a0148f0f8f8c5923780dd62e7e834", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:34,925 469238 INFO     [tempest.lib.common.rest_client] Request (LiveMigrationTest:test_live_block_migration_paused): 200 GET http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f 0.342s
2019-05-22 05:19:34,926 469238 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', u'content-length': '1522', 'content-location': 'http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f', u'x-compute-request-id': 'req-a5eabee0-fba4-444a-9a24-349436ade795', u'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version,Accept-Encoding', u'server': 'Apache', u'openstack-api-version': 'compute 2.1', u'connection': 'close', u'x-openstack-nova-api-version': '2.1', u'date': 'Wed, 22 May 2019 09:19:34 GMT', u'content-type': 'application/json', u'x-openstack-request-id': 'req-a5eabee0-fba4-444a-9a24-349436ade795'}
        Body: {"server": {"OS-EXT-STS:task_state": null, "addresses": {"tempest-LiveMigrationTest-848502904-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:93:df:8b", "version": 4, "addr": "10.100.0.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.0.0.104:8774/v2.1/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "self"}, {"href": "http://10.0.0.104:8774/servers/099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "rel": "bookmark"}], "image": {"id": "898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "links": [{"href": "http://10.0.0.104:8774/images/898431fb-7e30-49cc-97d9-25c5d7c4fe6f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "error", "OS-SRV-USG:launched_at": "2019-05-22T09:18:52.000000", "flavor": {"id": "2141d048-a7db-4230-8c3b-a68551ac2cca", "links": [{"href": "http://10.0.0.104:8774/flavors/2141d048-a7db-4230-8c3b-a68551ac2cca", "rel": "bookmark"}]}, "id": "099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f", "security_groups": [{"name": "default"}], "user_id": "c6c28eddd60d4ff38a83d52a2b34fecf", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "OS-EXT-STS:power_state": 0, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "ERROR", "updated": "2019-05-22T09:19:34Z", "hostId": "9c716cb3080e86b2bb14390316f6f0e7614102c98c41a37e52b968dd", "OS-SRV-USG:terminated_at": null, "key_name": null, "name": "tempest-LiveMigrationTest-server-818390104", "created": "2019-05-22T09:18:36Z", "tenant_id": "62a1524e90ce4a999f8f960f26967621", "os-extended-volumes:volumes_attached": [], "metadata": {}}}
2019-05-22 05:19:34,937 469238 INFO     [tempest.common.waiters] State transition "MIGRATING/migrating" ==> "ERROR/None" after 13 second wait
}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tempest/api/compute/admin/test_live_migration.py", line 134, in test_live_block_migration_paused
    self._test_live_migration(state='PAUSED')
  File "/usr/lib/python2.7/site-packages/tempest/api/compute/admin/test_live_migration.py", line 124, in _test_live_migration
    self._live_migrate(server_id, source_host, state, volume_backed)
  File "/usr/lib/python2.7/site-packages/tempest/api/compute/admin/test_live_migration.py", line 81, in _live_migrate
    waiters.wait_for_server_status(self.servers_client, server_id, state)
  File "/usr/lib/python2.7/site-packages/tempest/common/waiters.py", line 78, in wait_for_server_status
    raise exceptions.BuildErrorException(server_id=server_id)
tempest.exceptions.BuildErrorException: Server 099b8a1e-5e34-4ac9-8d0d-73f8e5ae845f failed to build and is in ERROR status

Expected results:
Test passed

Additional info:

Comment 8 Kashyap Chamarthy 2019-05-27 08:13:18 UTC
I think a rough reproducer at libvirt/QEMU-level should be:

(1) Use versions (on both source and destination hosts): 

     - qemu-kvm-rhev-2.12.0-18.el7_6.5.x86_64
     - libvirt-4.5.0-10.el7_6.9.x86_64 

(2) Create a VM with its disk located *not* on a shared storage.

(3) Pause the VM.

(4) Live-migrate the VM (including its storage) to another host, e.g.

      $> virsh migrate --verbose \
          --copy-storage-inc \
          --p2p \
          --live \
          vm1 qemu+ssh://root@dest/system

Comment 12 Ademar Reis 2019-05-30 21:46:12 UTC
(In reply to Kashyap Chamarthy from comment #8)
> I think a rough reproducer at libvirt/QEMU-level should be:
> 
> (1) Use versions (on both source and destination hosts): 
> 
>      - qemu-kvm-rhev-2.12.0-18.el7_6.5.x86_64
>      - libvirt-4.5.0-10.el7_6.9.x86_64 
> 
> (2) Create a VM with its disk located *not* on a shared storage.
> 
> (3) Pause the VM.
> 
> (4) Live-migrate the VM (including its storage) to another host, e.g.
> 
>       $> virsh migrate --verbose \
>           --copy-storage-inc \
>           --p2p \
>           --live \
>           vm1 qemu+ssh://root@dest/system

When you say "should be": could you or someone reproduce this yet?

Comment 13 Kashyap Chamarthy 2019-05-31 12:01:25 UTC
(In reply to Ademar Reis from comment #12)
> (In reply to Kashyap Chamarthy from comment #8)
> > I think a rough reproducer at libvirt/QEMU-level should be:
> > 
> > (1) Use versions (on both source and destination hosts): 
> > 
> >      - qemu-kvm-rhev-2.12.0-18.el7_6.5.x86_64
> >      - libvirt-4.5.0-10.el7_6.9.x86_64 
> > 
> > (2) Create a VM with its disk located *not* on a shared storage.
> > 
> > (3) Pause the VM.
> > 
> > (4) Live-migrate the VM (including its storage) to another host, e.g.
> > 
> >       $> virsh migrate --verbose \
> >           --copy-storage-inc \
> >           --p2p \
> >           --live \
> >           vm1 qemu+ssh://root@dest/system
> 
> When you say "should be": could you or someone reproduce this yet?

I said "should be" because I deduced the reproducer based on the OpenStack CI test.  So no, I haven't run the reproducer myself, I'm afraid.  I would expect the bug reporter to provide that information.

Comment 16 Kashyap Chamarthy 2019-06-05 09:26:34 UTC
Created attachment 1577485 [details]
Source QEMU (command-line) log

Comment 17 Kashyap Chamarthy 2019-06-05 09:27:18 UTC
Created attachment 1577486 [details]
Destination QEMU (command-line) log

Comment 18 aihua liang 2019-06-12 07:53:48 UTC
Can't reproduce it on qemu layer with qemu-kvm-rhev-2.12.0-18.el7_6.5.x86_64.

Test steps:
 1.Start dst guest with qemu cmds:
    /usr/libexec/qemu-kvm \
    -name 'avocado-vt-vm1' \
    -machine pc  \
    -nodefaults \
    -device VGA,bus=pci.0,addr=0x2  \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/var/tmp/monitor-qmpmonitor1-20190602-215744-4gqhxTV6,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control  \
    -chardev socket,id=qmp_id_catch_monitor,path=/var/tmp/monitor-catch_monitor-20190602-215744-4gqhxTV6,server,nowait \
    -mon chardev=qmp_id_catch_monitor,mode=control \
    -device pvpanic,ioport=0x505,id=idKnSrhI  \
    -chardev socket,id=serial_id_serial0,path=/var/tmp/serial-serial0-20190602-215744-4gqhxTV6,server,nowait \
    -device isa-serial,chardev=serial_id_serial0  \
    -chardev socket,id=seabioslog_id_20190602-215744-4gqhxTV6,path=/var/tmp/seabios-20190602-215744-4gqhxTV6,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20190602-215744-4gqhxTV6,iobase=0x402 \
    -device nec-usb-xhci,id=usb1,bus=pci.0,addr=0x3 \
    -drive id=drive_image1,if=none,snapshot=on,aio=threads,cache=none,format=qcow2,file=/home/mirror.qcow2 \
    -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=0x4 \
    -device virtio-net-pci,mac=9a:fb:fc:fd:fe:ff,id=idrI84Jx,vectors=4,netdev=idZnFQVB,bus=pci.0,addr=0x5  \
    -netdev tap,id=idZnFQVB,vhost=on \
    -m 4096  \
    -smp 4,maxcpus=4,cores=2,threads=1,sockets=2  \
    -cpu 'Penryn',+kvm_pv_unhalt \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1  \
    -vnc :0  \
    -rtc base=utc,clock=host,driftfix=slew  \
    -boot menu=off,strict=off,order=cdn,once=c \
    -enable-kvm \
    -monitor stdio \
    -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \
    -msg timestamp=on \
    -sandbox on,obsolete=deny,elevateprivileges=deny,resourcecontrol=deny \
    -incoming tcp:0:5000 \

2.In dst, start NBD server and expose mirror.qcow2
  {"execute":"nbd-server-start","arguments":{"addr":{"type":"inet","data":{"host":"10.73.224.214","port":"3333"}}}}
{"return": {}}
{ "execute": "nbd-server-add", "arguments": { "device": "drive_image1","writable": true } }
{"return": {}}

3.In src, start guest with qemu cmds:
   /usr/libexec/qemu-kvm \
    -name 'avocado-vt-vm1' \
    -machine pc  \
    -nodefaults \
    -device VGA,bus=pci.0,addr=0x2  \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/var/tmp/monitor-qmpmonitor1-20190602-215744-4gqhxTV6,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control  \
    -chardev socket,id=qmp_id_catch_monitor,path=/var/tmp/monitor-catch_monitor-20190602-215744-4gqhxTV6,server,nowait \
    -mon chardev=qmp_id_catch_monitor,mode=control \
    -device pvpanic,ioport=0x505,id=idKnSrhI  \
    -chardev socket,id=serial_id_serial0,path=/var/tmp/serial-serial0-20190602-215744-4gqhxTV6,server,nowait \
    -device isa-serial,chardev=serial_id_serial0  \
    -chardev socket,id=seabioslog_id_20190602-215744-4gqhxTV6,path=/var/tmp/seabios-20190602-215744-4gqhxTV6,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20190602-215744-4gqhxTV6,iobase=0x402 \
    -device nec-usb-xhci,id=usb1,bus=pci.0,addr=0x3 \
    -drive id=drive_image1,if=none,snapshot=on,aio=threads,cache=none,format=qcow2,file=/home/kvm_autotest_root/images/rhel77-64-virtio.qcow2 \
    -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=0x4 \
    -device virtio-net-pci,mac=9a:fb:fc:fd:fe:ff,id=idrI84Jx,vectors=4,netdev=idZnFQVB,bus=pci.0,addr=0x5  \
    -netdev tap,id=idZnFQVB,vhost=on \
    -m 4096  \
    -smp 4,maxcpus=4,cores=2,threads=1,sockets=2  \
    -cpu 'Penryn',+kvm_pv_unhalt \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1  \
    -vnc :0  \
    -rtc base=utc,clock=host,driftfix=slew  \
    -boot menu=off,strict=off,order=cdn,once=c \
    -enable-kvm \
    -monitor stdio \
    -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \
    -msg timestamp=on \
    -sandbox on,obsolete=deny,elevateprivileges=deny,resourcecontrol=deny \

4.In src, stop VM, then do block mirror from src to dst.
  {"execute":"stop"}
  {"timestamp": {"seconds": 1560325907, "microseconds": 122752}, "event": "STOP"}
{"return": {}}

  { "execute": "drive-mirror", "arguments": { "device": "drive_image1","target": "nbd://10.73.224.214:3333/drive_image1", "sync": "full","format": "raw", "mode": "existing" } }
  {"timestamp": {"seconds": 1560324748, "microseconds": 62964}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "drive_image1"}}
{"timestamp": {"seconds": 1560324748, "microseconds": 63199}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "drive_image1"}}
{"return": {}}
{"timestamp": {"seconds": 1560324847, "microseconds": 563385}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "drive_image1"}}
{"timestamp": {"seconds": 1560324847, "microseconds": 563491}, "event": "BLOCK_JOB_READY", "data": {"device": "drive_image1", "len": 21474836480, "offset": 21474836480, "speed": 0, "type": "mirror"}}

5.Set migration capability in both src and dst
  src:{"execute":"migrate-set-capabilities","arguments":{"capabilities":[{"capability":"pause-before-switchover","state":true}]}}
  dst:{"execute":"migrate-set-capabilities","arguments":{"capabilities":[{"capability":"pause-before-switchover","state":true}]}}

6.Migrate from src to dst
  { "execute": "migrate", "arguments": { "uri": "tcp:10.73.224.214:5000"}}

7.Wait some minutes, then query migrate status
  {"execute":"query-migrate"}
  {"return": {"expected-downtime": 300, "status": "pre-switchover", "setup-time": 158, "total-time": 30423, "ram": {"total": 4312604672, "postcopy-requests": 0, "dirty-sync-count": 2, "page-size": 4096, "remaining": 0, "mbps": 268.64496, "transferred": 783461669, "duplicate": 863875, "dirty-pages-rate": 45064, "skipped": 0, "normal-bytes": 774172672, "normal": 189007}}}
{"execute":"block-job-cancel","arguments":{"device":"drive_image1"}}

8.Cancel block jobs
  {"execute":"block-job-cancel","arguments":{"device":"drive_image1"}}
  {"return": {}}
{"timestamp": {"seconds": 1560325069, "microseconds": 269156}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "drive_image1"}}
{"timestamp": {"seconds": 1560325069, "microseconds": 269211}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "drive_image1"}}
{"timestamp": {"seconds": 1560325069, "microseconds": 271907}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "drive_image1", "len": 21474836480, "offset": 21474836480, "speed": 0, "type": "mirror"}}
{"timestamp": {"seconds": 1560325069, "microseconds": 271960}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "drive_image1"}}
{"timestamp": {"seconds": 1560325069, "microseconds": 272000}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "drive_image1"}}

9.Migrate continue
  {"execute":"migrate-continue","arguments":{"state":"pre-switchover"}}

10.Check vm status in src
  (qemu)info status
  VM status: paused (postmigrate)

11.Check vm status in dst
  (qemu)info status
   VM status: paused

12.Continue vm in dst
   (qemu) cont   

Actual Result:
 Storage vm migration with balloon device can be executed successfully.

Comment 19 Archit Modi 2019-06-12 14:30:18 UTC
Thanks Aihua, yes I'm unable to reproduce this manually but frequently see libvirt/qemu crashing with CI, you can close this bug with this being more CI related

Comment 20 Kashyap Chamarthy 2019-06-12 15:11:48 UTC
(In reply to aihua liang from comment #18)
> Can't reproduce it on qemu layer with qemu-kvm-rhev-2.12.0-18.el7_6.5.x86_64.

Thanks for the thorough QEMU-level reproducer, Aihua.

I'm going to close the bug based on your data.

[...]

Comment 21 Archit Modi 2019-06-21 14:19:29 UTC
*** Bug 1717175 has been marked as a duplicate of this bug. ***