Commit 03c5fd4b authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #46016 from kokhang/rbd-modprobe

Automatic merge from submit-queue (batch tested with PRs 47084, 46016, 46372) 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
parents 351d4d6d ab77633c
...@@ -264,7 +264,7 @@ func (util *RBDUtil) AttachDisk(b rbdMounter) error { ...@@ -264,7 +264,7 @@ func (util *RBDUtil) AttachDisk(b rbdMounter) error {
// modprobe // modprobe
_, err = b.plugin.execCommand("modprobe", []string{"rbd"}) _, err = b.plugin.execCommand("modprobe", []string{"rbd"})
if err != nil { 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 // fence off other mappers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment