Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1578310

Summary: CSI: It should be possible to run multiple external attachers for the same driver
Product: OpenShift Container Platform Reporter: Jan Safranek <jsafrane>
Component: StorageAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: Qin Ping <piqin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.10.0CC: aos-bugs, aos-storage-staff, xtian
Target Milestone: ---   
Target Release: 3.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: csi-attacher-0.2.0-3.git27299be.el7.src.rpm, Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 19:15:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Safranek 2018-05-15 09:10:02 UTC
Description of problem:

Only one external attacher must be running for a CSI driver. Two or more of them will conflict with each other and all of them will try to attach one volume to a node.

There should be some sort of leader election so only one attacher attaches a volume. 

Version-Release number of selected component (if applicable):
csi-attacher-0.2.0-2.git27299be.el7

Comment 1 Jan Safranek 2018-05-15 09:10:51 UTC
Upstream PR: https://github.com/kubernetes-csi/external-attacher/pull/48

Comment 2 Jan Safranek 2018-05-15 09:53:45 UTC
I've built csi-attacher-0.2.0-3.git27299be.el7.src.rpm, it should propagate to Docker images and puddles in a few days.

Comment 3 Jan Safranek 2018-05-15 09:56:44 UTC
To be clear, it's possible to use external attacher in a StatefulSet as today, I'll update docs to use Deployments once there are images with the new attacher.

Comment 4 Jan Safranek 2018-05-16 12:07:54 UTC
I noticed csi-attacher-container-v3.10.0-0.47.0.0 image with csi-attacher-0.2.0-3.git27299be.el7.x86_64.rpm was built yesterday and it's availabe in out registry, so you can test it. I updated https://github.com/openshift/openshift-docs/pull/8783 and removed the StatefulSet to simplify the deployment.

Comment 7 Qin Ping 2018-06-06 02:57:32 UTC
Verified in openshift:
oc v3.10.0-0.60.0
openshift v3.10.0-0.60.0
kubernetes v1.10.0+b81c8f8

csi-attacher-0.2.0-3.git27299be.el7.x86_64
csi-provisioner-0.2.0-2.el7.x86_64
csi-driver-registrar-0.2.0-1.el7.x86_64

# uname -a
Linux qe-piqin-master-etcd-nfs-1 3.10.0-862.3.2.el7.x86_64 #1 SMP Tue May 15
18:22:15 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.5 (Maipo)

Comment 9 errata-xmlrpc 2018-07-30 19:15:30 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/RHBA-2018:1816