Bug 875452 - vdsm [Storage Live Migration]: dumpStorageTable.py shows vm's disk moved although engine rolled back after target domain was blocked during migration of disk.
Summary: vdsm [Storage Live Migration]: dumpStorageTable.py shows vm's disk moved alt...
Keywords:
Status: CLOSED DUPLICATE of bug 882718
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 3.2.0
Assignee: Ayal Baron
QA Contact: Dafna Ron
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-11 10:57 UTC by Dafna Ron
Modified: 2016-02-10 20:10 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-26 06:42:18 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (1.07 MB, application/x-gzip)
2012-11-11 10:57 UTC, Dafna Ron
no flags Details

Description Dafna Ron 2012-11-11 10:57:24 UTC
Created attachment 642734 [details]
logs

Description of problem:

during live storage migration I blocked the target storage domain. 
once engine reported the action failed I restored the connection to the target domain. 
it appears that once the connection is restored we continue with the move image and dumpStorageTable.py will report the target domain as the domain the image is on. 

Version-Release number of selected component (if applicable):

si24
vdsm-4.9.6-41.0.el6_3.x86_64

How reproducible:

100%

*tested with iscsi storage*

Steps to Reproduce:
1. run vm -> move image
2. after the snapshot is created block connectivity to the target domain using ipatbels
3. run python /usr/share/vdsm/dumpStorageTable.py
4. once the ui reports that the move image failed - restore connectivity to the target domain. 
5. python /usr/share/vdsm/dumpStorageTable.py

Actual results:

after the storage is reconnected we seem to continue with the move and pythondumpStorageTable.py will show the target domain as the image's domain

Expected results:

1. we should not continue with the move if possibel
2. if failure happens in the copy we should delete the new image nad revert back to the old one.

Additional info: full logs attached

vm is CHECK

[root@gold-vdsd ~]# python /usr/share/vdsm/dumpStorageTable.py
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
|                 Vms                  |               Domains                |                Images                |               Volumes                |               Template               |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
| f17519c2-6abd-4c88-b4a7-b86e02a1e558 | 2d52459b-ccd1-4a99-bff3-1264ca77a2c4 | a8eb3963-520a-435d-aba4-80a0dd2d9983 | 39f89a6a-7fbb-43c0-a5ea-19b271f51829 | Template                             |
| XP_iSCSI                             | Regular                              |                                      |                                      |                                      |
|                                      | Dafna-si24-extended-01               |                                      |                                      |                                      |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
| 4dd3914f-70da-4200-9031-e79dd447c1ce | 940726d2-b911-49ae-aed5-cda5791bb4b6 | aab71a1c-42cb-4137-b2ae-1e576458f2eb | e886fb6e-f91f-46ae-a488-0f24e47f5731 | Template                             |
| NFS-RHEL6_iSCSI                      | Regular                              |                                      |                                      |                                      |
|                                      | Dafna-Big-RC-02                      |                                      |                                      |                                      |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
| 4602d06c-35ee-4128-bc09-d53558637408 | af5bb9ad-ebe7-4ade-8d0d-a6882d11af44 | 07b7c43b-0d39-47ae-8680-23568354ed5c | c6238d2b-82e1-4d28-b80d-6c9297f6b1b1 | Template                             |
| fdfd                                 | Master                               |                                      |                                      |                                      |
|                                      | Dafna-Big-RC-01                      |                                      |                                      |                                      |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
| 0fab93bb-ce79-41d5-8fe8-f25db7272b65 | af5bb9ad-ebe7-4ade-8d0d-a6882d11af44 | b3ddb8c4-07eb-4467-98a1-461ec9dfeb73 | 7e333885-90b5-468d-a098-4f3db7fa2d93 | Template independent                 |
| CHECK                                | Master                               |                                      | 428cc3f9-c4be-445d-916a-c5900d1c7b4d |                                      |
|                                      | Dafna-Big-RC-01                      |                                      |                                      |                                      |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
[root@gold-vdsd ~]# !less
less /var/log/vdsm/vdsm.log
[root@gold-vdsd ~]# python /usr/share/vdsm/dumpStorageTable.py
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
|                 Vms                  |               Domains                |                Images                |               Volumes                |               Template               |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
| f17519c2-6abd-4c88-b4a7-b86e02a1e558 | 2d52459b-ccd1-4a99-bff3-1264ca77a2c4 | a8eb3963-520a-435d-aba4-80a0dd2d9983 | 39f89a6a-7fbb-43c0-a5ea-19b271f51829 | Template                             |
| XP_iSCSI                             | Regular                              |                                      |                                      |                                      |
|                                      | Dafna-si24-extended-01               |                                      |                                      |                                      |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
| 4dd3914f-70da-4200-9031-e79dd447c1ce | 940726d2-b911-49ae-aed5-cda5791bb4b6 | aab71a1c-42cb-4137-b2ae-1e576458f2eb | e886fb6e-f91f-46ae-a488-0f24e47f5731 | Template                             |
| NFS-RHEL6_iSCSI                      | Regular                              |                                      |                                      |                                      |
|                                      | Dafna-Big-RC-02                      |                                      |                                      |                                      |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
| 4602d06c-35ee-4128-bc09-d53558637408 | af5bb9ad-ebe7-4ade-8d0d-a6882d11af44 | 07b7c43b-0d39-47ae-8680-23568354ed5c | c6238d2b-82e1-4d28-b80d-6c9297f6b1b1 | Template                             |
| fdfd                                 | Master                               |                                      |                                      |                                      |
|                                      | Dafna-Big-RC-01                      |                                      |                                      |                                      |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
| 0fab93bb-ce79-41d5-8fe8-f25db7272b65 | 3178f2fd-c327-439c-87e3-6a05f1c457bb | b3ddb8c4-07eb-4467-98a1-461ec9dfeb73 | 7e333885-90b5-468d-a098-4f3db7fa2d93 | Template independent                 |
| CHECK                                | Regular                              |                                      |                                      |                                      |
|                                      | wolf_data                            |                                      |                                      |                                      |
|                                      |                                      |                                      |                                      |                                      |
+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+
[root@gold-vdsd ~]# vdsClient -s 0 getStorageDomainInfo 3178f2fd-c327-439c-87e3-6a05f1c457bb
	uuid = 3178f2fd-c327-439c-87e3-6a05f1c457bb
	vguuid = MN79JF-ZCeI-EKuL-3TvA-XtM4-XEko-wk7EIh
	lver = -1
	state = OK
	version = 3
	role = Regular
	pool = ['28425e84-d608-4a44-a60d-a6cd3bcd9ce5']
	spm_id = -1
	type = ISCSI
	class = Data
	master_ver = 0
	name = wolf_data



I ran the vm's xml after the move failed and we are still directed to the old link. however, the  image serial (b3ddb8c4-07eb-4467-98a1-461ec9dfeb73) exists in both domains

 </disk>
                <disk device="disk" snapshot="no" type="block">
                        <address  bus="0"  controller="0"  target="0"  type="drive" unit="0"/>
                        <source dev="/rhev/data-center/28425e84-d608-4a44-a60d-a6cd3bcd9ce5/af5bb9ad-ebe7-4ade-8d0d-a6882d11af44/images/b3ddb8c4-07eb-4467-98a1-461ec9dfeb73/428cc3f9-c4be-445d-916a-c5900d1c7b4d"/>
                        <target bus="ide" dev="hda"/>
                        <serial>b3ddb8c4-07eb-4467-98a1-461ec9dfeb73</serial>
                        <boot order="1"/>
                        <driver cache="none" error_policy="stop" io="native" name="qemu" type="qcow2"/>
                </disk>
        </devices>


[root@gold-vdsd images]# ls -l  /rhev/data-center/28425e84-d608-4a44-a60d-a6cd3bcd9ce5/3178f2fd-c327-439c-87e3-6a05f1c457bb/images/ |grep b3ddb8c4-07eb-4467-98a1-461ec9dfeb73
drwxr-xr-x. 2 vdsm kvm 4096 Nov 11 11:42 b3ddb8c4-07eb-4467-98a1-461ec9dfeb73
[root@gold-vdsd images]# ls -l  /rhev/data-center/28425e84-d608-4a44-a60d-a6cd3bcd9ce5/af5bb9ad-ebe7-4ade-8d0d-a6882d11af44/images/ |grep b3ddb8c4-07eb-4467-98a1-461ec9dfeb73
drwxr-xr-x. 2 vdsm kvm 4096 Nov 11 11:42 b3ddb8c4-07eb-4467-98a1-461ec9dfeb73

Comment 1 Ayal Baron 2012-11-11 11:24:26 UTC
this info is taken from the ovf on the master domain which is dumped as a blob by engine so doubtful that this is a vdsm issue.  moving to engine.

Comment 3 Ayal Baron 2012-12-26 06:42:18 UTC
Correctness of ovf is being addressed by bug 882718

*** This bug has been marked as a duplicate of bug 882718 ***


Note You need to log in before you can comment on or make changes to this bug.