mirror of https://github.com/k3s-io/k3s
00269a6c60
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 |
||
---|---|---|
.. | ||
admission | ||
api | ||
apimachinery | ||
apis | ||
apiserver | ||
auth | ||
capabilities | ||
client | ||
cloudprovider | ||
controller | ||
conversion | ||
credentialprovider | ||
dns | ||
fieldpath | ||
fields | ||
generated | ||
genericapiserver | ||
healthz | ||
httplog | ||
hyperkube | ||
kubectl | ||
kubelet | ||
kubemark | ||
labels | ||
master | ||
metrics | ||
probe | ||
proxy | ||
quota | ||
registry | ||
routes | ||
runtime | ||
security | ||
securitycontext | ||
selection | ||
serviceaccount | ||
ssh | ||
storage | ||
types | ||
util | ||
version | ||
volume | ||
watch | ||
OWNERS |