From 29030d2b42cae3a5ca4e000ec3306f4c0a67a6c0 Mon Sep 17 00:00:00 2001 From: Yecheng Fu Date: Tue, 4 Jul 2017 06:35:31 +0000 Subject: [PATCH] "rbd: image xxx is locked by other nodes" is misleading --- pkg/volume/rbd/rbd_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/rbd/rbd_util.go b/pkg/volume/rbd/rbd_util.go index 3ad1236175..f34c62cae5 100644 --- a/pkg/volume/rbd/rbd_util.go +++ b/pkg/volume/rbd/rbd_util.go @@ -269,7 +269,7 @@ func (util *RBDUtil) AttachDisk(b rbdMounter) error { // fence off other mappers if err = util.fencing(b); err != nil { - return fmt.Errorf("rbd: image %s is locked by other nodes", b.Image) + return fmt.Errorf("rbd: failed to lock image %s (maybe locked by other nodes), error %v", b.Image, err) } // rbd lock remove needs ceph and image config // but kubelet doesn't get them from apiserver during teardown