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
Call SetupDevice for Block Volume only if Volume is not globally Mounted #112403
Call SetupDevice for Block Volume only if Volume is not globally Mounted #112403
Conversation
Hi @akankshakumari393. Thanks for your PR. I'm waiting for a kubernetes 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. |
/ok-to-test |
Do we have sufficient E2E raw block test coverage? I am wondering if there are other bugs that were hidden that will surface once this is fixed. |
Most of the testsuites seem to have a block pattern. So the coverage is probably on par with file---I don't know if that's enough though. There are tests for a volume being used multiple times on the same node which are actually run, so I think we might be okay?
|
Thanks @mattcary. Coverage looks promising. And we are early enough in the release, hopefully if there are any issues, they can be fixed before the 1.26 release. |
/lgtm /hold Adding hold to give others an opportunity to review. e.g. @jsafrane @xing-yang @jingxu97 @msau42 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akankshakumari393, saad-ali 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:
Approvers can indicate their approval by writing |
/lgtm |
/triage accepted |
@akankshakumari393 Would be nice to add a test to prevent regression for this case (ok to do in a follow up PR). |
@saad-ali Sure will add a test in a follow up PR. |
@@ -1114,7 +1114,7 @@ func (og *operationGenerator) GenerateMapVolumeFunc( | |||
|
|||
} | |||
// Call SetUpDevice if blockVolumeMapper implements CustomBlockVolumeMapper | |||
if customBlockVolumeMapper, ok := blockVolumeMapper.(volume.CustomBlockVolumeMapper); ok { | |||
if customBlockVolumeMapper, ok := blockVolumeMapper.(volume.CustomBlockVolumeMapper); ok && actualStateOfWorld.GetDeviceMountState(volumeToMount.VolumeName) != DeviceGloballyMounted { |
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.
Can you also test the reconstruction scenario (restart kubelet while the volume is already "mounted")?
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.
Also the scenario where two pods share the same volume on the same node.
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.
There is are tests with [Testpattern: Pre-provisioned PV (block volmode)] multiVolume [Slow] should concurrently access the single volume from pods on the same node
that passed in pull-kubernetes-e2e-gce-storage-slow.
/test help |
@jsafrane: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
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. |
/test pull-kubernetes-e2e-gce-storage-disruptive |
Half of block volume disruptive tests succeeded and second half failed. It seems that these tests were not run for quite same time. |
It looks like CSI raw block reconstruction tests passed. The failing raw block tests are related to rbd and iscsi which is potentially an environmental issue |
@akankshakumari393: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/hold cancel |
The change is merged! |
Thanks folks! @akankshakumari393 please link regression test PR when ready here. |
…03-upstream-release-1.24 Automated cherry pick of #112403: Call SetupDevice only if Volume is not globally Mounted
…03-upstream-release-1.25 Automated cherry pick of #112403: Call SetupDevice only if Volume is not globally Mounted
…03-upstream-release-1.23 Automated cherry pick of #112403: Call SetupDevice only if Volume is not globally Mounted
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #112343
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: