Bug 1867143

Summary: NFS CSI driver is not idempotent
Product: OpenShift Container Platform Reporter: Jan Safranek <jsafrane>
Component: StorageAssignee: Mike Fedosin <mfedosin>
Status: CLOSED DUPLICATE QA Contact: Qin Ping <piqin>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-10 13:59:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Safranek 2020-08-07 13:34:05 UTC
Description of problem:

NodeUnpublish call on already unmounted directory failed with NotFound

E0807 13:21:57.324110       1 utils.go:50] GRPC error: rpc error: code = NotFound desc = Volume not mounted

The call should be idempotent, therefore return success if the volume was already unmounted.

Version-Release number of selected component (if applicable):
The version in today's 4.5 OLM catalog

How reproducible:
Always

Steps to Reproduce:
1. Run a pod with a Manila NFS volume
2. ssh to a node and unmount the volume
3. Delete the pod

Actual results:
The pod is Terminating forever

Expected results:
The pod is deleted

Additional info:
Please check also other CSI calls too, esp. NodePublish on already mounted volume - it must be idempotent too.

This is related to https://bugzilla.redhat.com/show_bug.cgi?id=1862523. Not the root cause though.

Comment 2 Mike Fedosin 2020-09-10 13:59:04 UTC
This bug is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1867152 and was fixed by https://github.com/openshift/csi-driver-nfs/pull/31
Thanks a lot Jan!

*** This bug has been marked as a duplicate of bug 1867152 ***