| Summary: | Cannot store commit id in sti and docker build | ||
|---|---|---|---|
| Product: | OKD | Reporter: | wewang <wewang> |
| Component: | Build | Assignee: | Cesar Wong <cewong> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Wenjing Zheng <wzheng> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | aos-bugs, bparees, wewang |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-12 17:13:45 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: | |
|
Description
wewang
2016-01-15 09:42:50 UTC
@Cesar Wong, I remembered I tested us: https://trello.com/c/Q88B6Okq/756-3-store-commit-id-in-build, it works in origin This is a valid bug. It's a regression introduced by https://github.com/openshift/origin/pull/6576 Because we are now restricting updates, the builder service account is not allowed to update the build details because it has to have access to the build by type subresources. Hi, Cesar Wong , PR is merged ,but I tested in origin ,the problem still exist version: openshift v1.1-806-gd95ec08 kubernetes v1.1.0-origin-1107-g4c8e6f4 etcd 2.1.2 # oc get builds NAME TYPE FROM STATUS STARTED DURATION ruby-sample-build-1 Docker Git Running 6 seconds ago 6s @wewang I built a release with the latest master and cannot reproduce this. The commit gets updated as expected. If you can still reproduce this, can you please add an environment of BUILD_LOGLEVEL=8 to the strategy in the bc and include the build log? Also, please include the output of describe build. a. I tested in fedora , add BUILD_LOGLEVEL=8 to the strategy in the bc,found io.openshift.build.commit.id,but when oc get build version: devenv_fedora_3161 openshift v1.1-799-g097d340 kubernetes v1.1.0-origin-1107-g4c8e6f4 etcd 2.1.2 # oc get builds NAME TYPE FROM STATUS STARTED DURATION ruby-sample-build-1 Docker Git Complete 5 minutes ago 5m3s here is log:http://pastebin.test.redhat.com/341585 and bc content :http://pastebin.test.redhat.com/341586 b. I build code locally, also cannot get commit id when oc get build @wewang can you also please include the log from the openshift master? @Cesar Wong, I agree with you , maybe it's not enough time for commit info to be updated, you can move to ON_QA, thx |