Bug 1501152

Summary: Binding take up to 400+ seconds when pvc is created before creating pv.
Product: OpenShift Container Platform Reporter: Liang Xia <lxia>
Component: StorageAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: Liang Xia <lxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, aos-storage-staff, eparis, jsafrane
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-28 22:16:57 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 Liang Xia 2017-10-12 07:20:12 UTC
Description of problem:
Create pvc first, then create pv, binding can take up to 400+ seconds.
While compared with creating pv first, binding finished in a second.

This is really bad user experience.


Version-Release number of selected component (if applicable):
openshift v3.7.0-0.143.2
kubernetes v1.7.0+80709908fd
etcd 3.2.1


How reproducible:
Always


Steps to Reproduce:
1. Create a pvc, then create a pv, check binding.
2. Create a pv, then create a pvc, check binding.


Actual results:
Binding take up to 400+ seconds when pvc is created first.
While binding finished in a seconds when pv is create first.


Expected results:
Binding should be done in a reasonable time in either way.

Comment 1 Jan Safranek 2017-10-17 14:58:34 UTC
Seems like nobody ported https://bugzilla.redhat.com/show_bug.cgi?id=1470009 back to 3.7.

Comment 2 Jan Safranek 2017-10-18 10:52:16 UTC
Downstream PR: https://github.com/openshift/origin/pull/16927

Comment 4 Jan Safranek 2017-10-20 07:32:49 UTC
PR against master: https://github.com/openshift/origin/pull/16965

Comment 5 Jan Safranek 2017-10-23 11:13:20 UTC
merged to master

Comment 6 Liang Xia 2017-10-24 07:04:02 UTC
Tested again on below version,
# openshift version
openshift v3.7.0-0.176.0
kubernetes v1.7.6+a08f5eeb62
etcd 3.2.8

binding is much faster now, pvc/pv got bound in 30 seconds, generally 10 seconds or so.

Comment 8 Liang Xia 2017-11-02 01:38:45 UTC
Move bug to verified based on #comment 6.

Comment 11 errata-xmlrpc 2017-11-28 22:16:57 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/RHSA-2017:3188