Bug 1532981
| Summary: | Resize pv is failed for aws ebs volume | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Chao Yang <chaoyang> |
| Component: | Storage | Assignee: | Hemant Kumar <hekumar> |
| Status: | CLOSED ERRATA | QA Contact: | Chao Yang <chaoyang> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.9.0 | CC: | aos-bugs, aos-storage-staff, bchilds |
| Target Milestone: | --- | ||
| Target Release: | 3.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-03-28 14:18:26 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
Chao Yang
2018-01-10 07:20:19 UTC
The root cause of this problem is - when a new pod gets scheduled to same node where old pod was running and it happens quickly enough, then the device is never unmounted from the node. The only thing that does get unmounted and removed is bind mount. The global device path still remains on the node. But resize operation tries to run fsck prior to resize (because many environments force us to run fsck regardless) and fsck can't be run if device is mounted.. I am pushing a simple fix that will perform online resize if device is mounted, without performing fsck. That should fix this problem. A workaround that will work to solve this problem is - scale the deployment to 0 and then scale back up the deployment. Opened a PR to fix this in upstream - https://github.com/kubernetes/kubernetes/pull/58794 It is passed on oc v3.9.0-0.47.0 kubernetes v1.9.1+a0ce1bc657 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://ip-172-18-12-213.ec2.internal:8443 openshift v3.9.0-0.47.0 kubernetes v1.9.1+a0ce1bc657 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:0489 |