Bug 1899820
| Summary: | Running s2i build via buildconfig takes 2-3 hours to complete for openshift 4.4.27 | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Amit Kumar Das <amdas> |
| Component: | Build | Assignee: | Adam Kaplan <adam.kaplan> |
| Status: | CLOSED DUPLICATE | QA Contact: | XiuJuan Wang <xiuwang> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.4 | CC: | adam.kaplan, aos-bugs, sthaha |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-12-14 18:10:15 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
Amit Kumar Das
2020-11-20 05:59:04 UTC
Per customer, their build time was improved after adding the request-resource (memory, CPU, and ephemeral-storage) for the build. The build will take about ~ 1.5 hours. Earlier it was taking 3-4 hours. Enabling ephemeral-storage solved the issue with build error. We had to enable the ephemeral storage technology preview. This feature is disabled by default. Per the documentation, It will be a problem to upgrade since the FeatureGates is enabled. We will need to wait for ARO to have OCP 4.6.1 to test and we may not be able to do that in the current ARO cluster since we enable the ephemeral-storage feature. Any idea if the OCP 4.6.1 fixes[1] will be backport into 4.4x-4.5x ? [1] https://access.redhat.com/solutions/5565271 Bug 1833328 - [build] OpenShift Build Image - COPY Command is Very Slow Bug 1828119 - OpenShift Build Image - COPY Command is Very Slow Bug 1813258 - Copy operation is very slow during a build from dockerfile with buildah-1.9.0-2.el7.x86_64 and buildah-1.11.6-8.el7_8.x86_64 After reviewing the changelogs for buildah, there are a few performance fixes that are available in the 1.14.11 that we can safely add to OCP 4.4.z. This includes the following: 1. blobcache: avoid an unnecessary NewImage() [1] 2. Fix .dockerignore with globs and ! commands [2] Item 1 can be observed in the debug logs sent over, where up to 10 minutes is spent extracting blob layers. There is another important fix in 1.14.11 that was added to OCP 4.5, but wasn't backported to 4.4.z (Make imagebuildah.BuildOptions.Architecture/OS optional). I've filed Bug #1907573 to track this backport, and am going to close this BZ as a duplicate. [1] https://github.com/containers/buildah/releases/tag/v1.14.11 [2] https://github.com/containers/buildah/releases/tag/v1.14.4 [3] https://bugzilla.redhat.com/show_bug.cgi?id=1907573 *** This bug has been marked as a duplicate of bug 1907573 *** |