mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 14:53:44 +00:00
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
This commit is contained in:
parent
dddc6b863e
commit
ab77633c95
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user