In 4.5, NFS driver pod used 'clientaddr=<pod ip>' as a mount option. When such pod restarts, it gets a different IP address and volumes mounted by the old pod are basically broken - all operations (stat, umount) will just hang forever. Therefore: 1. Do not use IsLikelyNotMountPoint - it runs stat() on the volume, which could hang forever. Read /etc/mounts instead. 2. Use "umount -f" to forcefully remove NFS mount. Carry at least for whole OCP 4.6, where we need to support move from 4.5. |
||
|---|---|---|
| .. | ||
| controllerserver.go | ||
| indentityserver.go | ||
| nfs.go | ||
| nodeserver.go | ||
| server.go | ||
| utils.go | ||