[Users] oVirt Python SDK: getting the full filenames of disk images

Dan Yasny dyasny at gmail.com
Fri Dec 6 11:55:04 EST 2013


Probably not, but you can
- get the disk image UUID (that's the name in the filesystem or LV name),
- get the UUID of the storage domain (that will be the top level dir name
or VG name)
- get the DC UUID (this will be the top level dir name and the mount point
for LVM)

Then compose the path out of these. Keep in mind that the disk UUID you get
is the latest leaf in a snapshot tree, and if you need the entire chain of
images, you need to recursively traverse the tree starting at the leaf,
using the PUUID tag to find the parent.

Might be a better way, but I'm not aware of it.

Moreover, if you explain why you need to touch those images manually
instead of letting ovirt handle everything, we might be able to suggest a
better way

--
D


On Wed, Dec 4, 2013 at 2:34 AM, Исаев Виталий Анатольевич
<isaev at fintech.ru>wrote:

>  Dear ovirt-engine users,
>
>
>
> I will be appreciated if someone experienced in oVirt Python SDK could
> advice the method of getting the full filename of the VM’s disk images in
> the RHEV hypervisor’s file system. Can I get filename with a full file
> system path from a ovirtsdk.infrastructure.brokers.VMDisk class instance?
>
>
>
> If Python SDK (what is preffered) can’t provide such an information, may
> be it is still possible with RHEV-M REST API?
>
>
>
> Thank you,
>
> Vitaly Isaev
>
> Software engineer
>
> Information security department
>
> Fintech JSC, Moscow, Russia
>
>
>
> _______________________________________________
> 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/20131206/608502ee/attachment.html>


More information about the Users mailing list