[ovirt-users] oVIrt4.2 snapshot upload fail

Daniel Erez derez at redhat.com
Wed Apr 25 08:42:46 UTC 2018


On Tue, Apr 24, 2018 at 9:36 AM David David <dd432690 at gmail.com> wrote:

> Hi all.
> oVirt 4.2
> trying to upload disk snapshot
> thereis VM named vm-test, with disk id =
> 078398f5-0679-4eec-97e2-d227c097f453, storage = data00 and cluster =
> testcluster.
> i do snapshot of this VM.
> and subsequently launched these scripts
>
> download_vm_ovf.py
> ==================
> if __name__ == "__main__":
>
>     # Set VM name
>     vm_name = 'vm-test'
> ====================
>
> the ovf file is saved as 1d45f654-2ade-46c9-a747-2cd01ce14df2.ovf
>
> download_disk_snapshots.py
> ==========================
> if __name__ == "__main__":
>
>     # Set relevant disk and stroage domain IDs
>     disk_id = '078398f5-0679-4eec-97e2-d227c097f453'
>     sd_name = 'data00'
> ==========================
>
> the snapshot is saved as a8278905-57c9-4321-ab08-633436c5a63c
>
> upload_disk_snapshots.py:
> =========================
> if __name__ == "__main__":
>
>     # Set storage domain name
>     sd_name = 'data00'
>
>     # Set OVF file path
>     ovf_file_path = '1d45f654-2ade-46c9-a747-2cd01ce14df2.ovf'
>
>     # Disk to upload
>     disk_path = 'a8278905-57c9-4321-ab08-633436c5a63c'
> ==================================
>
> when trying run script upload_disk_snapshots.py, i got error with these
> message:
>
> Traceback (most recent call last):
>   File "snapshot_upload.py", line 279, in <module>
>     images_chain = get_images_chain(disk_path)
>   File "snapshot_upload.py", line 244, in get_images_chain
>     base_volume = [v for v in volumes_info.values() if
> 'full-backing-filename' not in v ][0]
> IndexError: list index out of range
>
> Anyone can help with this?
>

Hi David,

Please make sure that the snapshots are located inside the disk folder.
I.e.
- <disk-Id>
-- <snapshot-1-id>
-- <snapshot-2-id>
-- ...
Also, can you please attach the output of "qemu-img info" on each snapshot.


> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180425/35b1407a/attachment.html>


More information about the Users mailing list