• Kubernetes Submit Queue's avatar
    Merge pull request #48457 from cofyc/rbd_error · 494ffa46
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 48425, 41680, 48457, 48619, 48635)
    
    "rbd: image xxx is locked by other nodes" is misleading
    
    **What this PR does / why we need it**:
    
    For RWO PV, RBD plugin tries to fence it first, but there are many situations which may cause lock to fail, e.g.
    
    - userSecret is incorrect
    - monitor addresses are incorrect or node cannot access ceph cluster temporarily
    - image is locked by other nodes
    - maybe more...
    
    So, original "image xxx is locked by other nodes" is incorrect in some cases and misleading in diagnosis.
    
    This PR change the error to be correct and not misleading first. We may add detail error descriptions later.
    
    **Special notes for your reviewer**:
    
    New FailedMount event example if RBD plugin cannot lock image:
    
    ```
    ...		FailedMount		MountVolume.SetUp failed for volume "pvc-ee37a9c8-608e-11e7-b3a7-000c291fbe71" : rbd: failed to lock image kubernetes-dynamic-pvc-ee3b9911-608e-11e7-97b6-000c291fbe71 (maybe locked by other nodes), error exit status 22
    ```
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    494ffa46
Name
Last commit
Last update
.github Loading commit data...
Godeps Loading commit data...
api Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
docs Loading commit data...
examples Loading commit data...
federation Loading commit data...
hack Loading commit data...
logo Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
staging Loading commit data...
test Loading commit data...
third_party Loading commit data...
translations Loading commit data...
vendor Loading commit data...
.bazelrc Loading commit data...
.gazelcfg.json Loading commit data...
.generated_files Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
BUILD.bazel Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
Makefile.generated_files Loading commit data...
OWNERS Loading commit data...
OWNERS_ALIASES Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
WORKSPACE Loading commit data...
code-of-conduct.md Loading commit data...
labels.yaml Loading commit data...