Skip to content

Commit 39b166a

Browse files
authored
CA-417390: No RRD metric for vGPU migration with local storage (#6680)
The "vgpu_map" can be empty for an intra-pool migration. This was missed previously because XenCenter indeed prepares non-empty "vgpu_map" for intra-pool migration with shared storage. But it prepares empty "vgpu_map" for intra-pool migration with local storage.
2 parents cad8578 + 0e4ce01 commit 39b166a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/message_forwarding.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,7 @@ functor
26242624
assert_can_migrate ~__context ~vm ~dest ~live ~vdi_map
26252625
~vif_map ~vgpu_map ~options
26262626
) ;
2627-
if vgpu_map <> [] then
2627+
if Db.VM.get_VGPUs ~__context ~self:vm <> [] then
26282628
Xapi_stats.incr_pool_vgpu_migration_count () ;
26292629
forward_migrate_send ()
26302630
)

0 commit comments

Comments
 (0)