Skip to content
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

CNV-36065: Disk modal with persistent reservation #1630

Conversation

upalatucci
Copy link
Member

📝 Description

Add the 'Share disk between VMs' and 'Persistent Reservation' flags under 'Advanced settings' in the disk modal

design: https://docs.google.com/document/d/1_fbw2BUZFRmArjhdKc32lTEqU9MRHsj2KYBxbR6ZL_0

If the disk is LUN, enable the persistent reservation flag but disable the 'Share disk' flag .

Share disk for LUN does not make sense as LUN already is a shared disk

Make sure the FEATURE_HCO_PERSISTENT_RESERVATION cluster flag is enabled, otherwise is not possible to create a disk like that.

🎥 Demo

Screenshot from 2023-12-05 14-45-18
Screenshot from 2023-12-05 14-45-04

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Dec 5, 2023

@upalatucci: This pull request references CNV-36065 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.15.0" version, but no target version was set.

In response to this:

📝 Description

Add the 'Share disk between VMs' and 'Persistent Reservation' flags under 'Advanced settings' in the disk modal

design: https://docs.google.com/document/d/1_fbw2BUZFRmArjhdKc32lTEqU9MRHsj2KYBxbR6ZL_0

If the disk is LUN, enable the persistent reservation flag but disable the 'Share disk' flag .

Share disk for LUN does not make sense as LUN already is a shared disk

Make sure the FEATURE_HCO_PERSISTENT_RESERVATION cluster flag is enabled, otherwise is not possible to create a disk like that.

🎥 Demo

Screenshot from 2023-12-05 14-45-18
Screenshot from 2023-12-05 14-45-04

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Dec 5, 2023
@upalatucci upalatucci changed the title CNV-36065: Disk modal with persistent reservation [WIP] CNV-36065: Disk modal with persistent reservation Dec 5, 2023
@upalatucci upalatucci force-pushed the disk-modal-with-persistent-reservation branch from b27af6c to b263175 Compare December 5, 2023 14:23
@upalatucci upalatucci force-pushed the disk-modal-with-persistent-reservation branch from b263175 to 3acfa17 Compare December 5, 2023 17:09
@upalatucci upalatucci changed the title [WIP] CNV-36065: Disk modal with persistent reservation CNV-36065: Disk modal with persistent reservation Dec 5, 2023
@metalice
Copy link
Member

metalice commented Dec 5, 2023

the pr lgtm but , i see u are adding the new init values to state and adding actions, but maybe I'm missing something, but I don't see any addition to create disk function to use those new fields? again, maybe logic of current create disk function is ok and can handle it, but I just want to make sure :)

@upalatucci upalatucci force-pushed the disk-modal-with-persistent-reservation branch from 3acfa17 to 65b9c15 Compare December 6, 2023 09:50
@upalatucci
Copy link
Member Author

Now i pushed the logic to actually add the options to the disk

}

if (diskState.sharable) {
disk.shareable = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be added to line 101?
sharable: diskState.shareable ? It should be null/true... null will work np as k8s will drop it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay fixed

@upalatucci upalatucci force-pushed the disk-modal-with-persistent-reservation branch from 65b9c15 to 7277003 Compare December 6, 2023 10:08
@metalice
Copy link
Member

metalice commented Dec 6, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Dec 6, 2023
Copy link
Contributor

openshift-ci bot commented Dec 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: metalice, upalatucci

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [metalice,upalatucci]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 30372d2 into kubevirt-ui:main Dec 6, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix jira/valid-reference lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants