kubernetes/pkg/volume/iscsi
Kubernetes Submit Queue 462db17df0
Merge pull request #57475 from stmcginnis/iscsi_node_startup
Automatic merge from submit-queue (batch tested with PRs 57399, 57751, 57475). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

iscsi: set node.startup to manual

If the default iSCSI node.startup is set to automatic, if there is a node failure,
any pods on that node will get rescheduled to another node. If the failed node is
later brought back up it will then try to log back in to any iSCSI sessions it had
prior to the failure, which may no longer exist or may be now in-use by the other
nodes.

It appears most platforms keep the open-iscsi default of node.startup-automatic.
But in case this system-wide setting has been changed, and just to be explicit, this
sets node.startup values for kubernetes controlled volumes to manual.

Fixes #21305

```release-note
iSCSI sessions managed by kubernetes will now explicitly set startup.mode to 'manual' to
prevent automatic login after node failure recovery. This is the default open-iscsi mode, so
this change will only impact users who have changed their startup.mode to be 'automatic'
in /etc/iscsi/iscsid.conf.
```
2018-01-02 10:57:57 -08:00
..
attacher.go use core client with explicit version 2017-11-25 08:14:10 +08:00
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
disk_manager.go Refactoring and improvements for iSCSI and FC 2017-09-18 21:33:11 -04:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
iscsi.go use core client with explicit version 2017-11-25 08:14:10 +08:00
iscsi_test.go use SecretObject to reference iSCSI CHAP secret 2017-11-18 20:02:44 +00:00
iscsi_util.go Fixed space/tab indentation 2017-12-20 23:48:15 -06:00
iscsi_util_test.go Support iscsi volume attach and detach 2017-08-26 17:23:47 -04:00
OWNERS Update volume OWNERS to reflect active sig-storage reviewers 2017-10-26 13:26:33 -07:00