Skip to content

Build logs should not include timestamps #1647

Closed

Description

@smarterclayton
$ osc build-logs ruby-sample-build-4
2015-04-08T18:46:23.663573652Z E0408 18:46:23.662384       1 cfg.go:50] /root/.dockercfg: stat /root/.dockercfg: no such file or directory
2015-04-08T18:46:23.673295305Z I0408 18:46:23.673228       1 sti.go:111] Building 172.30.17.189:5000/default/origin-ruby-sample
2015-04-08T18:46:23.939941363Z Cloning into '/tmp/sti290541991/upload/src'...
2015-04-08T18:47:01.485715788Z I0408 18:47:01.485307       1 sti.go:231] Successfully built 172.30.17.189:5000/default/origin-ruby-sample
2015-04-08T18:47:02.690560758Z E0408 18:47:02.690396       1 cfg.go:50] /root/.dockercfg: stat /root/.dockercfg: no such file or directory
2015-04-08T18:47:02.690560758Z I0408 18:47:02.690420       1 dockerutil.go:22] Pushing 172.30.17.189:5000/default/origin-ruby-sample ...
2015-04-08T18:47:23.347668131Z F0408 18:47:23.346955       1 builder.go:62] Build error: API error (500):  v1 ping attempt failed with error: Get http://172.30.17.189:5000/v1/_ping: dial tcp 172.30.17.189:5000: i/o timeout

Getting timestamps from two sources. It's probably due to the glog prefix, which probably means our STI code needs to stop using glog.

Activity

  1. smarterclayton commented on May 8, 2015

    @smarterclayton
    ContributorAuthor

    I want us to be doing something like this cockroachdb/cockroach#963

    The big one is being able to disable the prefix, everything else is nice to have.

  2. mfojtik commented on Jun 4, 2015

    @mfojtik
    Contributor

    @smarterclayton +1 for cockroach

    are they accepting patches? (mean if we want to add something in future, we will not be locked as we are now with glog)

  3. 24 remaining items

  4. bparees commented on Oct 29, 2015

    @bparees
    Contributor

    @Kargakis no one is arguing that. but the duplicate timestamps that this was originally opened for were due to something else which appears to be resolved.

    that k8s is going to start prepending its own timestamps to pod logs is a new challenge to be addressed.

  5. smarterclayton commented on Oct 29, 2015

    @smarterclayton
    ContributorAuthor

    It won't prepend by default. It's merely optional. If it is prepending by
    default, that is a bug.

    On Thu, Oct 29, 2015 at 6:31 PM, Ben Parees [email protected]
    wrote:

    @Kargakis https://github.com/kargakis no one is arguing that. but the
    duplicate timestamps that this was originally opened for were due to
    something else which appears to be resolved.

    that k8s is going to start prepending its own timestamps to pod logs is a
    new challenge to be addressed.

    —
    Reply to this email directly or view it on GitHub
    #1647 (comment).

  6. bparees commented on Oct 29, 2015

    @bparees
    Contributor

    It won't prepend by default. It's merely optional. If it is prepending by
    default, that is a bug.

    right, all the more reason I was trying to say it's a new problem (or going to be a new problem when it lands and people use it).

  7. jhadvig commented on Feb 15, 2016

    @jhadvig
    Member

    @bparees I guess this one is solved

  8. 0xmichalis commented on Feb 15, 2016

    @0xmichalis
    Contributor

    @jhadvig there is still #5788

  9. smarterclayton commented on Mar 28, 2016

    @smarterclayton
    ContributorAuthor

    Can we fix builds to cleanup output? Still using glog time prefixes.

  10. bparees commented on Mar 28, 2016

    @bparees
    Contributor

    does glog give us a way to not print timestamps when logging? if not, are you requesting we convert all the origin-sti-builder and origin-docker-builder logging statements to printlns?

  11. bparees commented on Mar 28, 2016

    @bparees
    Contributor

    (which is basically impossible since i'm sure there are is at least some shared library code that runs in both standalone and pod contexts)

  12. bparees commented on Mar 28, 2016

    @bparees
    Contributor

    btw this is what we currently do in s2i to allow us to avoid glog when printing the output of the assemble container:
    https://github.com/openshift/source-to-image/blob/master/pkg/build/strategies/sti/sti.go#L545-L568

  13. self-assigned this
    on Mar 28, 2016
  14. smarterclayton commented on Mar 28, 2016

    @smarterclayton
    ContributorAuthor

    Ok, so we never actually fixed this. The original solution still stands
    (wrapping glog vs not).

    On Mon, Mar 28, 2016 at 10:17 AM, Ben Parees [email protected]
    wrote:

    btw this is what we currently do in s2i to allow us to avoid glog when
    printing the output of the assemble container:

    https://github.com/openshift/source-to-image/blob/master/pkg/build/strategies/sti/sti.go#L545-L568

    —
    You are receiving this because you modified the open/close state.
    Reply to this email directly or view it on GitHub
    #1647 (comment)

  15. bparees commented on Jun 10, 2016

    @bparees
    Contributor

    @smarterclayton this was fixed by your glog fakery, right?

  16. smarterclayton commented on Jun 10, 2016

    @smarterclayton
    ContributorAuthor

    yeah

    On Fri, Jun 10, 2016 at 12:46 AM, Ben Parees [email protected]
    wrote:

    @smarterclayton https://github.com/smarterclayton this was fixed by
    your glog fakery, right?

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #1647 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe/ABG_p_-9YPeCZ2ieOxs6tfzqBBwYIem9ks5qKOwjgaJpZM4D8qrK
    .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions