Bug 1273948
| Summary: | "--tail" doesn't work for `oc logs` | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Wei Sun <wsun> |
| Component: | oc | Assignee: | Michail Kargakis <mkargaki> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Wei Sun <wsun> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | aos-bugs, dmcphers, mmccomas |
| Target Milestone: | --- | Keywords: | UpcomingRelease |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-23 21:12:51 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
Wei Sun
2015-10-21 14:45:33 UTC
I think I'd like to fix this by including the PodLogOptions on the BuildLogOptions. Be sure to keep `Follow` backwards compatible. Will be fixed post 3.1 Fixed in latest master Verified in the devenv-rhel7_2619 Result: 1.# oc logs bc/rubytest -n wsuntest --tail=3 I1102 02:24:16.093908 1 sti.go:221] Using provided push secret for pushing 172.30.125.194:5000/wsuntest/rubytest:latest image I1102 02:24:16.093934 1 sti.go:225] Pushing 172.30.125.194:5000/wsuntest/rubytest:latest image ... I1102 02:25:16.835121 1 sti.go:241] Successfully pushed 172.30.125.194:5000/wsuntest/rubytest:latest 2.# oc logs bc/rubytest -n wsuntest --tail=5 I1102 02:24:10.638399 1 sti.go:448] It was installed into ./bundle I1102 02:24:10.653591 1 sti.go:448] ---> Cleaning up unused ruby gems ... I1102 02:24:16.093908 1 sti.go:221] Using provided push secret for pushing 172.30.125.194:5000/wsuntest/rubytest:latest image I1102 02:24:16.093934 1 sti.go:225] Pushing 172.30.125.194:5000/wsuntest/rubytest:latest image ... I1102 02:25:16.835121 1 sti.go:241] Successfully pushed 172.30.125.194:5000/wsuntest/rubytest:latest 3.# oc logs bc/rubytest -n wsuntest --tail=-1 Already on 'master' I1102 02:24:06.247261 1 sti.go:448] ---> Installing application source ... I1102 02:24:06.248976 1 sti.go:448] ---> Building your Ruby application from source ... I1102 02:24:06.249129 1 sti.go:448] ---> Running 'bundle install ' ... I1102 02:24:09.095606 1 sti.go:448] Fetching gem metadata from https://rubygems.org/.......... I1102 02:24:09.459085 1 sti.go:448] Resolving dependencies... I1102 02:24:10.637763 1 sti.go:448] Installing rack (1.6.4) I1102 02:24:10.637857 1 sti.go:448] Using bundler (1.3.5) I1102 02:24:10.638319 1 sti.go:448] Your bundle is complete! I1102 02:24:10.638399 1 sti.go:448] It was installed into ./bundle I1102 02:24:10.653591 1 sti.go:448] ---> Cleaning up unused ruby gems ... I1102 02:24:16.093908 1 sti.go:221] Using provided push secret for pushing 172.30.125.194:5000/wsuntest/rubytest:latest image I1102 02:24:16.093934 1 sti.go:225] Pushing 172.30.125.194:5000/wsuntest/rubytest:latest image ... I1102 02:25:16.835121 1 sti.go:241] Successfully pushed 172.30.125.194:5000/wsuntest/rubytest:latest |