-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix hotplug volume have a io error when use iscsi protocol csi plugin #6728
Fix hotplug volume have a io error when use iscsi protocol csi plugin #6728
Conversation
@watermelon-brother: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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. |
Hi @watermelon-brother. Thanks for your PR. I'm waiting for a kubevirt member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@watermelon-brother: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
fyi @awels |
d6c1550
to
c7d80dc
Compare
Now, virt-controller can delete old attachment pod when the new attachmentpod is running. Signed-off-by: wujixin <599230270@qq.com>
c7d80dc
to
2cac845
Compare
/retest |
2 similar comments
/retest |
/retest |
The tide stage of pipeline is not pass,How to solve it? @awels |
@watermelon-brother you need approval and a lgtm from reviewers to get this merged. @awels do we want this solution? Should we try it with another CSI plugin that do not accept multiple pods accessing a RWO volume? |
// Create new attachment pod that holds all the ready volumes | ||
if err := c.createAttachmentPod(vmi, virtLauncherPod, readyHotplugVolumes); err != nil { | ||
return err | ||
switch len(currentPod) { |
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.
Any reason you used a switch instead of if len(currentPod) == 0 { ... } else { ... }
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
The solution I think is fine, it is just I am curious about the switch instead of an if else since there are only 2 options. |
I've been testing this change with OpenEBS/Mayastor backed hot plugged volumes, and this PR introduces and undesired side effect. I've been testing with both block and file backed volumes, and executed the following steps:
Looking at the virt-launcher logs for this VM, I'm seeing:
I however have been experiencing the same problems as seen in #6564 with OpenEBS/Mayastor which relies on NVMe over fabric rather than iSCSI. Working though the issue, we have identified that the 2nd and 3rd hot plug pods are missing the As a quick hack, I have forced subsequent hot plug pods to maintain the
This now means the hot plug path is UNPUBLISHED, but is not UNSTAGED from the underlying compute node, meaning IO can still flow. It also does not show the same behaviour as I have described at the start of this, where the guest VM sees both devices detached and then a single device reattached. These are the Virtual launcher logs with my patch:
I will write this up in a new issue tomorrow, but at the moment, I feel this PR is not safe to merge. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. /close |
@kubevirt-bot: Closed this PR. In response to this:
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. |
What this PR does / why we need it:
Now, virt-controller can delete old attachment pod when the new attachmentpod is running.So,It can't cause the volume iscsi connection break when delete the old attachment pod.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #6564
Special notes for your reviewer:
Release note:
None