Skip to content

ext-iscsi is broken #490

@sbogomolov

Description

@sbogomolov

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions