
I want to share an interesting talk on the new StorageDomain dump API. When: Thursday, July 9⋅16:00 – 16:45 (Israel time) Where: https://redhat.bluejeans.com/212781836 Who: Amit Bawer StorageDomain dump API is a faster way to query oVirt storage domain contents, optimized for bulk operations such as collecting sos reports or importing storage domains during disaster recovery. In recent tests we found that it is 295 times faster compared with vdsm-tool dump-volume-chains: https://bugzilla.redhat.com/show_bug.cgi?id=1557147#c26 What can you do with this API? Query volumes metadata by disk id: # vdsm-client StorageDomain dump sd_id=56ecc03c-4bb5-4792-8971-3c51ea924d2e | jq '.volumes | .[] | select(.image=="d7ead22a-0fbf-475c-a62f-6f7bc8473acb")' { "apparentsize": 6442450944, "capacity": 6442450944, "ctime": 1593128884, "description": "{\"DiskAlias\":\"fedora-32.raw\",\"DiskDescription\":\"Uploaded disk\"}", "disktype": "DATA", "format": "RAW", "generation": 0, "image": "d7ead22a-0fbf-475c-a62f-6f7bc8473acb", "legality": "LEGAL", "parent": "00000000-0000-0000-0000-000000000000", "status": "OK", "truesize": 6442455040, "type": "PREALLOCATED", "voltype": "LEAF" } Find all templates: # vdsm-client StorageDomain dump sd_id=56ecc03c-4bb5-4792-8971-3c51ea924d2e | jq '.volumes | .[] | select(.voltype=="SHARED")' { "apparentsize": 6442450944, "capacity": 6442450944, "ctime": 1593116563, "description": "{\"DiskAlias\":\"fedora-32.raw\",\"DiskDescription\":\"Uploaded disk\"}", "disktype": "DATA", "format": "RAW", "generation": 0, "image": "9b62b5fa-920e-4d0c-baf6-40406106e48e", "legality": "LEGAL", "parent": "00000000-0000-0000-0000-000000000000", "status": "OK", "truesize": 6442516480, "type": "PREALLOCATED", "voltype": "SHARED" } Please join the talk if you want to learn more. Cheers, Nir

Thanks to all who joined, Recording link https://redhat.bluejeans.com/playback/guid/MjEyNzgxODM2OjQzMzI0Ny1kODllYTU5O... Slides are attached. On Wed, Jul 8, 2020 at 11:08 PM Nir Soffer <nsoffer@redhat.com> wrote:
I want to share an interesting talk on the new StorageDomain dump API.
When: Thursday, July 9⋅16:00 – 16:45 (Israel time)
Where: https://redhat.bluejeans.com/212781836
Who: Amit Bawer
StorageDomain dump API is a faster way to query oVirt storage domain contents, optimized for bulk operations such as collecting sos reports or importing storage domains during disaster recovery.
In recent tests we found that it is 295 times faster compared with vdsm-tool dump-volume-chains: https://bugzilla.redhat.com/show_bug.cgi?id=1557147#c26
What can you do with this API?
Query volumes metadata by disk id:
# vdsm-client StorageDomain dump sd_id=56ecc03c-4bb5-4792-8971-3c51ea924d2e | jq '.volumes | .[] | select(.image=="d7ead22a-0fbf-475c-a62f-6f7bc8473acb")' { "apparentsize": 6442450944, "capacity": 6442450944, "ctime": 1593128884, "description": "{\"DiskAlias\":\"fedora-32.raw\",\"DiskDescription\":\"Uploaded disk\"}", "disktype": "DATA", "format": "RAW", "generation": 0, "image": "d7ead22a-0fbf-475c-a62f-6f7bc8473acb", "legality": "LEGAL", "parent": "00000000-0000-0000-0000-000000000000", "status": "OK", "truesize": 6442455040, "type": "PREALLOCATED", "voltype": "LEAF" }
Find all templates:
# vdsm-client StorageDomain dump sd_id=56ecc03c-4bb5-4792-8971-3c51ea924d2e | jq '.volumes | .[] | select(.voltype=="SHARED")' { "apparentsize": 6442450944, "capacity": 6442450944, "ctime": 1593116563, "description": "{\"DiskAlias\":\"fedora-32.raw\",\"DiskDescription\":\"Uploaded disk\"}", "disktype": "DATA", "format": "RAW", "generation": 0, "image": "9b62b5fa-920e-4d0c-baf6-40406106e48e", "legality": "LEGAL", "parent": "00000000-0000-0000-0000-000000000000", "status": "OK", "truesize": 6442516480, "type": "PREALLOCATED", "voltype": "SHARED" }
Please join the talk if you want to learn more.
Cheers, Nir

On Thu, Jul 9, 2020 at 7:07 PM Amit Bawer <abawer@redhat.com> wrote:
Thanks to all who joined,
Recording link
https://redhat.bluejeans.com/playback/guid/MjEyNzgxODM2OjQzMzI0Ny1kODllYTU5O...
publink: https://bluejeans.com/s/SaMK_/
Slides are attached.
On Wed, Jul 8, 2020 at 11:08 PM Nir Soffer <nsoffer@redhat.com> wrote:
I want to share an interesting talk on the new StorageDomain dump API.
When: Thursday, July 9⋅16:00 – 16:45 (Israel time)
Where: https://redhat.bluejeans.com/212781836
Who: Amit Bawer
StorageDomain dump API is a faster way to query oVirt storage domain contents, optimized for bulk operations such as collecting sos reports or importing storage domains during disaster recovery.
In recent tests we found that it is 295 times faster compared with vdsm-tool dump-volume-chains: https://bugzilla.redhat.com/show_bug.cgi?id=1557147#c26
What can you do with this API?
Query volumes metadata by disk id:
# vdsm-client StorageDomain dump sd_id=56ecc03c-4bb5-4792-8971-3c51ea924d2e | jq '.volumes | .[] | select(.image=="d7ead22a-0fbf-475c-a62f-6f7bc8473acb")' { "apparentsize": 6442450944, "capacity": 6442450944, "ctime": 1593128884, "description": "{\"DiskAlias\":\"fedora-32.raw\",\"DiskDescription\":\"Uploaded disk\"}", "disktype": "DATA", "format": "RAW", "generation": 0, "image": "d7ead22a-0fbf-475c-a62f-6f7bc8473acb", "legality": "LEGAL", "parent": "00000000-0000-0000-0000-000000000000", "status": "OK", "truesize": 6442455040, "type": "PREALLOCATED", "voltype": "LEAF" }
Find all templates:
# vdsm-client StorageDomain dump sd_id=56ecc03c-4bb5-4792-8971-3c51ea924d2e | jq '.volumes | .[] | select(.voltype=="SHARED")' { "apparentsize": 6442450944, "capacity": 6442450944, "ctime": 1593116563, "description": "{\"DiskAlias\":\"fedora-32.raw\",\"DiskDescription\":\"Uploaded disk\"}", "disktype": "DATA", "format": "RAW", "generation": 0, "image": "9b62b5fa-920e-4d0c-baf6-40406106e48e", "legality": "LEGAL", "parent": "00000000-0000-0000-0000-000000000000", "status": "OK", "truesize": 6442516480, "type": "PREALLOCATED", "voltype": "SHARED" }
Please join the talk if you want to learn more.
Cheers, Nir
participants (2)
-
Amit Bawer
-
Nir Soffer