Skip to content

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

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

lindig
Copy link
Contributor

@lindig lindig commented Sep 12, 2024

    CA-397599 XSI-1704 implement setter for blocked ops manually
    
    Currently the setter for field VM.blocked_operations 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
    unavailable because allowed operations where not aligned with blocked
    operations when blocked operations were updated.

@lindig lindig requested a review from robhoes September 12, 2024 14:01
(Ref _vm, "self", "The VM")
; (Map (operations, String), "value", "Blocked operations")
]
~allowed_roles:_R_VM_OP (* was unrestricted when auto-generated? *)
Copy link
Member

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.

Copy link
Contributor Author

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.

@lindig lindig force-pushed the private/christianlin/CA-397599 branch from 1c88b9a to d95bc12 Compare September 13, 2024 13:32
Copy link
Contributor

@Vincent-lau Vincent-lau left a 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

@lindig
Copy link
Contributor Author

lindig commented Sep 16, 2024

@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.

Christian Lindig added 2 commits September 16, 2024 10:17
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>
@lindig lindig force-pushed the private/christianlin/CA-397599 branch from d95bc12 to 7d6d88e Compare September 16, 2024 09:17
@lindig lindig merged commit cd1a2dc into xapi-project:master Sep 16, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants