Bug 1707707
Summary: | Ovirt: Can't upload Disk Snapshots with size >1G to iSCSI storage using Java/Python SDK | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | francisco.garcia | ||||||||||||||||||||||
Component: | BLL.Storage | Assignee: | Daniel Erez <derez> | ||||||||||||||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Evelina Shames <eshames> | ||||||||||||||||||||||
Severity: | high | Docs Contact: | |||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||
Version: | 4.4.0 | CC: | bugs, eshenitz, juan.hernandez, lleistne, michal.skrivanek, sleviim, tnisan | ||||||||||||||||||||||
Target Milestone: | ovirt-4.4.1 | Flags: | pm-rhel:
ovirt-4.4+
|
||||||||||||||||||||||
Target Release: | 4.4.1.1 | ||||||||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||
Whiteboard: | |||||||||||||||||||||||||
Fixed In Version: | ovirt-engine-4.4.1.1 | Doc Type: | If docs needed, set a value | ||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||
Last Closed: | 2020-07-08 08:27:46 UTC | Type: | Bug | ||||||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||||||
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||
Embargoed: | |||||||||||||||||||||||||
Attachments: |
|
Description
francisco.garcia
2019-05-08 07:19:33 UTC
Created attachment 1565498 [details]
qemu-imgs-NFS.txt
qemu-img info to disks Snapshot in NFS restore
Created attachment 1565499 [details]
qemu-imgs-iSCSI.txt
qemu-img info to disks Snapshot in iSCSI restore
This bug has been discussed in the Ovirt-lists: https://lists.ovirt.org/archives/list/devel@ovirt.org/thread/OZWADBWM2RWJ2DXKPEM2PIQNR2OBIVBJ/ Also, I wrote other bug with the same problem, but with python scripts of Ovirt's repository: https://bugzilla.redhat.com/show_bug.cgi?id=1707372 Finally, it seems that it is indeed a bug. I am available to provide any additional information that may be needed. Created attachment 1571246 [details]
Logs Ovirt
I attach ovirt-engine log, vdsm log and image-io log
Summing up the conclusions from bug https://bugzilla.redhat.com/1707372: Using the Python SDK: ovirt-engine-4.3.9.4 In the snapshot creation log[1], the size is properly updated (imageSizeInBytes='3221225472'), so the upload_disk_snapshots.py script was modified for updating the snapshot size[2]. The script used was also uploaded. Need to reproduce and check whether the size of the disk snapshots is indeed updated correctly in the DB. [1] 2020-05-04 16:04:24,169+02 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CreateVolumeVDSCommand] (default task-15) [746965a4-4f32-4481-ba81-b20a8d23d8f4] START, CreateVolumeVDSCommand( CreateVolumeVDSCommandParameters:{storagePoolId='7971ebcc-78b1-11ea-b17d-0800271130bc', ignoreFailoverLimit='false', storageDomainId='ecf8e071-59f4-4ff8-acfa-8fabee62e8d8', imageGroupId='5a214325-d8eb-4066-bef3-521484ba49db', imageSizeInBytes='3221225472', volumeFormat='COW', newImageId='5a214325-d8eb-4066-bef3-521484ba49db', imageType='Sparse', newImageDescription='', imageInitialSizeInBytes='0', imageId='4ca9464f-0aaf-471b-a1a4-d29de319a661', sourceImageGroupId='5a214325-d8eb-4066-bef3-521484ba49db'}), log id: 71815b92 [2] # Add the new snapshot: snapshot = snapshots_service.add( types.Snapshot( description=description, disk_attachments=[ types.DiskAttachment( disk=types.Disk( id=disk_id, image_id=image_id # sizes for every snapshot should work here ) ) ] ), ) Created attachment 1686965 [details]
Used python script for upload
Created attachment 1686966 [details]
Log for the python script used
Created attachment 1686967 [details]
engine log
Created attachment 1686968 [details]
deamon log
Created attachment 1686969 [details]
proxy log
Created attachment 1686970 [details]
cdsm log
done, right? A patch was merged: https://gerrit.ovirt.org/#/c/108991/ After working with Daniel, verified with the following flow: 1. Create 2 images in 'disks/<VM's disk_id>' directory: qemu-img create -f raw a8af296c-6444-40ae-8bb5-8ce3fc5015fe 2G qemu-img info a8af296c-6444-40ae-8bb5-8ce3fc5015fe qemu-img create -f raw a3fe93c4-3fc0-476b-87db-8f165a347154.raw 2G dd if=/dev/urandom of=a3fe93c4-3fc0-476b-87db-8f165a347154.raw bs=1M count=2000 qemu-img convert -O qcow2 a3fe93c4-3fc0-476b-87db-8f165a347154.raw a3fe93c4-3fc0-476b-87db-8f165a347154 qemu-img rebase -f qcow2 -b a8af296c-6444-40ae-8bb5-8ce3fc5015fe -F raw a3fe93c4-3fc0-476b-87db-8f165a347154 -u qemu-img info a3fe93c4-3fc0-476b-87db-8f165a347154 2. Create VM with disk and download it's ovf using python sdk: python download_vm_ovf.py 3. Upload the images from (1) using python sdk: python upload_disk_snapshots.py Verified on ovirt-engine-4.4.1.1-0.5.el8ev.noarch Hello Evelina, That is very good news! I will try to test it this week. :) Thanks for the effort, both you and Daniel, Nir, Shani & comp. =D Regards, Fran This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020. Since the problem described in this bug report should be resolved in oVirt 4.4.1 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |