-
Notifications
You must be signed in to change notification settings - Fork 292
CA-397599 XSI-1704 #5984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CA-397599 XSI-1704 #5984
Conversation
lindig
commented
Sep 12, 2024
ocaml/idl/datamodel_vm.ml
Outdated
(Ref _vm, "self", "The VM") | ||
; (Map (operations, String), "value", "Blocked operations") | ||
] | ||
~allowed_roles:_R_VM_OP (* was unrestricted when auto-generated? *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These we _R_VM_ADMIN
, owing to the default for the class set at the create_obj
call.
~messages_default_allowed_roles:_R_VM_ADMIN
So that was a little stricter than VM_OP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will change that to VM_ADMIN
.
1c88b9a
to
d95bc12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest combining the two commits into one, since the first commit alone would make unit test fail (?) and hence not bisectable
@Vincent-lau The reason I split out the hash is that this should simplify back porting as this hash will conflict. In practice there are more problems with back porting. |
Currently the setter for field VM.blocked_oeprations is auto generated. Implement this explicitly such that we can update allowed operations which currently is not happening. Allowed operations are used by XenCenter to disable operations; this has led to operations becoming unavaliable because allowed operations where not aligned with blocked operations when blocked operations were updated. Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
d95bc12
to
7d6d88e
Compare