From ab77633c95dc620d100d1266d9510dfddafe9a8e Mon Sep 17 00:00:00 2001 From: Steve Leon Date: Wed, 17 May 2017 22:46:21 -0700 Subject: [PATCH] Warn, instead of failing, if 'modprobe rbd' fails Modprobe is a kernel operation that should only be done once to load the RBD module. The admin could've done this on the Kubernetes nodes. The RBD plugin can still try to load the module but it shouldnt fail the workflow if it doesnt succeed. Partially addresses #45190 --- 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 5921432785d..a78ccd3ac97 100644 --- a/pkg/volume/rbd/rbd_util.go +++ b/pkg/volume/rbd/rbd_util.go @@ -264,7 +264,7 @@ func (util *RBDUtil) AttachDisk(b rbdMounter) error { // modprobe _, err = b.plugin.execCommand("modprobe", []string{"rbd"}) if err != nil { - return fmt.Errorf("rbd: failed to modprobe rbd error:%v", err) + glog.Warningf("rbd: failed to load rbd kernel module:%v", err) } // fence off other mappers