extensions: ext-iscsi is broken

In versions 1.8.0 and 1.8.1 something broke with regards to ext-iscsi. All iSCSI PV’s (that worked in 1.7.7) stopped working. The error I see (from the pod description):

Warning  FailedMount             7s (x10 over 4m17s)  kubelet                  MountVolume.WaitForAttach failed for volume "postgres-data-pv" : executable file not found in $PATH

I checked that the iscsiadm binary actually exists, but is not available for kubelet.

Start privileged container:

$ kubectl run -i --tty --rm --privileged -n kube-system --overrides='{"apiVersion": "v1", "spec": {"hostNetwork": true, "hostPID": true}}' --image ubuntu bash

In the container: run in ext-iscsi’s namespace:

# nsenter -t $(pgrep iscsid) -a iscsiadm --help
iscsiadm -m discoverydb [-hV] [-d debug_level] [-P printlevel] [-t type -p ip:port -I ifaceN ... [-Dl]] | [[-p ip:port -t type] [-o operation] [-n name] [-v value] [-lD]] 
iscsiadm -m discovery [-hV] [-d debug_level] [-P printlevel] [-t type -p ip:port -I ifaceN ... [-l]] | [[-p ip:port] [-l | -D]] [-W]
...

In the container: run in kubelet’s namespace:

# nsenter -t 2272 -a iscsiadm --help
nsenter: failed to execute iscsiadm: No such file or directory

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

I’ll check the diff between the versions and open the issue there. I’ll update this issue if I find out anything else.