Bug 1357791
| Summary: | "oc replace" of buildConfig reset "lastVersion" to 0 | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Alexander Koksharov <akokshar> |
| Component: | Build | Assignee: | Ben Parees <bparees> |
| Status: | CLOSED ERRATA | QA Contact: | Wang Haoran <haowang> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.2.0 | CC: | aos-bugs, cewong, erich, tdawson, xiuwang |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
Updates to a build config via the replace mechanism would reset the build sequence count to zero if no value was specified in the update.
Consequence:
Builds would fail to start if the reset sequence number caused collisions with existing builds that used those the sequence number previously.
Fix:
Do not reset the sequence number during updates to the buildconfig.
Result:
Buildconfigs can be updated and the existing sequence number is preserved, so new builds do not collide with previously used sequence numbers.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-27 09:40:56 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
Alexander Koksharov
2016-07-19 07:49:23 UTC
This should be fixed with a separate status resource for build configs. Reassigning to you Ben since you may have fixed it already. This was fixed here: https://github.com/openshift/origin/pull/9568 and it's not something i think we'd backport, so the fix will be in 3.3. oc v3.3.0.6 kubernetes v1.3.0+57fb9ac When replace bc lastVersion to an older version than existing builds, the cli will prompt successfully. But lastVersion will not be changed.And could trigger new builds with available build numbers. Move this bug as verified. 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-2016:1933 |