Fix: User must be root and add additional lib
Summary
After experimentation, liveness must run as root for any CSI interface to properly attach volumes to hosts.
Steps to reproduce
Deploy any CSI implementation (EBS CSI driver or other, all of which require this image) and see that the pods do not correctly deploy.
What is the current bug behavior?
Pods running with the that need to provision volumes will fail to fully come up properly. They will not be able to correctly.
What is the expected correct behavior?
EBS CSI driver should be able to come up and allow for volume attachment.
Relevant logs and/or screenshots
Warning FailedMount 56s (x8 over 2m) kubelet, ip-146-69-210-138.us-gov-east-1.compute.internal MountVolume.MountDevice failed for volume "pvc-0cfb8b0a-71bb-4d4c-a52f-fb7bcd80832c" : rpc error: code = Internal desc = could not format "/dev/nvme2n1" and mount it at "/var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-0cfb8b0a-71bb-4d4c-a52f-fb7bcd80832c/globalmount": failed to get disk format of disk /dev/nvme2n1: executable file not found in $PATH
logging-ek-es-data-0 0/2 Init:0/3 0 16s
logging-ek-es-master-0 0/2 Init:0/3 0 20s
Possible fixes
Run as root user was the only fix we found that allowed it to work.
Defintion of Done
-
Bug has been identified and corrected within the container
Edited by Cassie Souza