Skip to content

Commit

Permalink
CA-394851: Update allowed operations on the cloned VBD (#6159)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
last-genius authored Dec 6, 2024
2 parents 84e7394 + d3c9a50 commit 7fdaf4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ocaml/xapi/xapi_vbd_helpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,5 @@ let copy ~__context ?vdi ~vm vbd =
~qos_algorithm_type:all.API.vBD_qos_algorithm_type
~qos_algorithm_params:all.API.vBD_qos_algorithm_params
~qos_supported_algorithms:[] ~runtime_properties:[] ~metrics ;
update_allowed_operations ~__context ~self:new_vbd ;
new_vbd

0 comments on commit 7fdaf4f

Please sign in to comment.