kubernetes/pkg/volume
Kubernetes Submit Queue 00269a6c60 Merge pull request #35434 from rootfs/deviceopen
Automatic merge from submit-queue

refactor DeviceOpened() so it won't return error if device doesn't exist

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:
DeviceOpened() is called after device is unmounted but before detached. Some volumes such as rbd don't support 3rd party detach, they have to be detached during unmount. Once detached, the device path vanishes. This causes false alarm when DeviceOpened() is called.

The fix is to ignore error IsNotExist 

**Which issue this PR fixes** _(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)_: fixes #

**Special notes for your reviewer**:
@kubernetes/sig-storage 

**Release note**:

<!--  Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access) 
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
-->

``` release-note
```

Signed-off-by: Huamin Chen hchen@redhat.com
2016-11-04 07:40:03 -07:00
..
aws_ebs Add sync state loop in master's volume reconciler 2016-10-28 09:24:53 -07:00
azure_dd Merge pull request #30091 from rootfs/azure-storage 2016-11-01 17:27:14 -07:00
azure_file autogenerated 2016-10-21 17:32:32 -07:00
cephfs autogenerated 2016-10-21 17:32:32 -07:00
cinder Don't rely on device name provided by Cinder 2016-11-02 18:48:11 +01:00
configmap autogenerated 2016-10-21 17:32:32 -07:00
downwardapi autogenerated 2016-10-21 17:32:32 -07:00
empty_dir Update bazel configurations 2016-10-26 10:39:51 -04:00
fc autogenerated 2016-10-21 17:32:32 -07:00
flexvolume autogenerated 2016-10-21 17:32:32 -07:00
flocker autogenerated 2016-10-21 17:32:32 -07:00
gce_pd Add sync state loop in master's volume reconciler 2016-10-28 09:24:53 -07:00
git_repo autogenerated 2016-10-21 17:32:32 -07:00
glusterfs Merge pull request #35285 from humblec/glusterfs-stale-volumes 2016-10-31 04:06:43 -07:00
host_path autogenerated 2016-10-21 17:32:32 -07:00
iscsi autogenerated 2016-10-21 17:32:32 -07:00
nfs autogenerated 2016-10-21 17:32:32 -07:00
quobyte Require PV provisioner secrets to match type 2016-10-27 02:45:05 -04:00
rbd Require PV provisioner secrets to match type 2016-10-27 02:45:05 -04:00
secret autogenerated 2016-10-21 17:32:32 -07:00
testing Add sync state loop in master's volume reconciler 2016-10-28 09:24:53 -07:00
util Merge pull request #35434 from rootfs/deviceopen 2016-11-04 07:40:03 -07:00
vsphere_volume Add sync state loop in master's volume reconciler 2016-10-28 09:24:53 -07:00
BUILD autogenerated 2016-10-21 17:32:32 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
metrics_cached.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_du.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_du_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_errors.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_nil.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_nil_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_statfs.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
OWNERS Update pkg/volume/OWNERS to include Jan Safranek 2016-10-20 12:21:06 -05:00
plugins.go Pass whole PVC to provisioner plugin 2016-10-12 12:22:01 +02:00
plugins_test.go Print/log pointers of structs with %#v instead of %+v 2016-08-01 22:27:56 +02:00
util.go Rename PetSet API to StatefulSet 2016-10-27 17:25:10 -07:00
util_test.go Send recycle events from pod to pv. 2016-09-08 12:57:57 +02:00
volume.go Add sync state loop in master's volume reconciler 2016-10-28 09:24:53 -07:00
volume_linux.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
volume_unsupported.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00