-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
check IsNotExist error when validating mountpoint #9957
Conversation
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain to ixdy. |
@@ -101,7 +101,7 @@ func (util *RBDUtil) AttachDisk(rbd rbd) error { | |||
// mount it | |||
globalPDPath := rbd.manager.MakeGlobalPDName(rbd) | |||
mountpoint, err := rbd.mounter.IsMountPoint(globalPDPath) | |||
if err != nil { | |||
if err != nil && !os.IsNotExist(err) { |
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 add a note saying that the mountpoint not existing is a contingency.
Do you want this method to continue running if there's already a mountpoint for this volume?
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.
yes, if directory is not there, that indicates it is the first time to create then mountpoint. the method should continue to run. the mountpoint is later created.
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.
K, then I would add a comment there to that effect.
Signed-off-by: Huamin Chen <hchen@redhat.com>
v1.0 triage needed: Marked the associated issue #9952 as v1.0-candidate |
@k8s-bot ok to test |
GCE e2e build/test passed for commit 0280dac. |
check IsNotExist error when validating mountpoint
This fixes #9952