Skip to content

Commit 7fdaf4f

Browse files
authored
CA-394851: Update allowed operations on the cloned VBD (xapi-project#6159)
Default empty `allowed_operations` on a cloned VBD means that XenCenter does not display the DVD option in the console tab for VMs cloned from templates, for example. Follow the practice in `xapi_vbd`, and `update_allowed_operations` immediately after `Db.VBD.create`. --- I've tested this fix and XC displays the ISO selection on the cloned VM now, and allowed operations on the cloned VBDs are correct as well.
2 parents 84e7394 + d3c9a50 commit 7fdaf4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ocaml/xapi/xapi_vbd_helpers.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,4 +443,5 @@ let copy ~__context ?vdi ~vm vbd =
443443
~qos_algorithm_type:all.API.vBD_qos_algorithm_type
444444
~qos_algorithm_params:all.API.vBD_qos_algorithm_params
445445
~qos_supported_algorithms:[] ~runtime_properties:[] ~metrics ;
446+
update_allowed_operations ~__context ~self:new_vbd ;
446447
new_vbd

0 commit comments

Comments
 (0)