Bug 1376022 - RFE iscsi multipath
Summary: RFE iscsi multipath
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Bradley Childs
QA Contact: Liang Xia
URL:
Whiteboard:
Depends On:
Blocks: 1459922 1459925
TreeView+ depends on / blocked
 
Reported: 2016-09-14 13:04 UTC by Marcel Wysocki
Modified: 2020-08-13 08:36 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1459922 1459925 (view as bug list)
Environment:
Last Closed: 2017-08-10 05:15:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Marcel Wysocki 2016-09-14 13:04:59 UTC
Description of problem:
Currently it is only possible to specify a single targetPortal.
It should be possible to specify multiple targetPortals to make use of iscsi multipath, which is the de-facto standard in environments that use iscsi.
There are workarounds to get it working but those are hacky and unclean

Ideally the PV definiton would look something like this:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: iscsi-pv
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  iscsi:
    - targetPortal: 10.16.154.81
      iqn: iqn.2014-12.example.server:storage.target00
      lun: 0
      fsType: 'ext4'
      readOnly: false
    - targetPortal: 10.16.154.82
      iqn: iqn.2014-12.example.server:storage.target00
      lun: 0

Comment 1 hchen 2016-09-29 14:18:02 UTC
iscsi multipath support is done in 
https://github.com/kubernetes/kubernetes/pull/21304

Comment 2 Troy Dawson 2016-10-18 16:31:50 UTC
This has been in all of the 3.3 releases.  Marking it closed.

Comment 3 Fabian Deutsch 2016-11-24 20:18:23 UTC
I'm reopening this bug, because kubernetes is missing multi target support, which is essential for iSCSI multipath.

The PR mentioned in comment 1 is only adding support for /dev/mapper devices - which does not imply that kubernetes is now able to perform the necessary operations to bring up multiple paths.

Comment 5 Humble Chirammal 2017-02-16 11:05:42 UTC
Multipath support is added to ISCSI plugin via https://github.com/kubernetes/kubernetes/pull/39928, it should be available from kube version 1.6

Comment 6 Liang Xia 2017-02-17 09:32:48 UTC
Tested on k8s v1.6.0-alpha.2.263+9d9632ad88cf43, pod with following content can be successfully created and running with iscsi storage.

apiVersion: v1
kind: Pod
metadata:
  name: iscsipd
spec:
  containers:
  - name: iscsipd-rw
    image: aosqe/hello-openshift
    volumeMounts:
    - mountPath: "/mnt/iscsipd"
      name: iscsipd-rw
  volumes:
  - name: iscsipd-rw
    iscsi:
      targetPortal: 10.66.144.237:3260
      portals: ['10.66.147.159:3260', '10.66.144.237:3260']
      iqn: iqn.2016-04.test.com:storage.target00
      lun: 0
      fsType: ext4
      readOnly: true

Move bug to modified since the code has been merged into kubernetes, but we still need to verify it in OCP.

Comment 7 Troy Dawson 2017-04-12 13:00:31 UTC
This has been merged into ocp and is in OCP v3.6.28 or newer.

Comment 10 Fabian Deutsch 2017-05-11 18:50:14 UTC
Is any specific bug needed to get this covered in the docs as well?

Comment 19 Liang Xia 2017-07-06 05:16:28 UTC
Verified multiple targetPortals support in OCP v3.6.135 works fine.

#comment 17 is a different situation as this bug, it's another RFE, so better use another bug to track.

Comment 20 Kenjiro Nakayama 2017-07-06 05:49:09 UTC
> #comment 17 is a different situation as this bug, it's another RFE, so better use another bug to track.

Yeah, but actually this RFE has been reported with expecting below config (iqn could be specified in each targetPortal.) I think that users could expect it with this RFE.
But I know that it is too late, so we have to open another RFE.

~~~
apiVersion: v1
kind: PersistentVolume
metadata:
  name: iscsi-pv
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  iscsi:
    - targetPortal: 10.16.154.81
      iqn: iqn.2014-12.example.server:storage.target00
      lun: 0
      fsType: 'ext4'
      readOnly: false
    - targetPortal: 10.16.154.82
      iqn: iqn.2014-12.example.server:storage.target00
      lun: 0
~~~

Comment 23 errata-xmlrpc 2017-08-10 05:15:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1716


Note You need to log in before you can comment on or make changes to this bug.