Skip to content

oc deploy should allow the user to view the logs of the latest deployment #3544

Closed

Description

@smarterclayton

oc deploy --logs should show the logs of the current deployment (if available). It maybe should support looking at older logs.

Activity

  1. smarterclayton commented on Jul 1, 2015

    @smarterclayton
    ContributorAuthor

    @fabianofranz @Kargakis or @ironcladlou whichever of you guys have time - need to keep in mind the same sorts of problems we have with oc build-logs

  2. ironcladlou commented on Jul 7, 2015

    @ironcladlou
    Contributor

    @fabianofranz @Kargakis or @ironcladlou whichever of you guys have time - need to keep in mind the same sorts of problems we have with oc build-logs

    @bparees what problems might @smarterclayton be referring to here?

  3. ironcladlou commented on Jul 7, 2015

    @ironcladlou
    Contributor

    Are we talking about problems with LocationStreamer or with build specific stuff?

  4. bparees commented on Jul 7, 2015

    @bparees
    Contributor

    i'm guessing issues about the deployment pod not existing yet, or being removed, eg:
    #2541

    we have various situation in which you can't get the logs yet because the pod isn't running yet, or it went away for some reason.

  5. smarterclayton commented on Jul 8, 2015

    @smarterclayton
    ContributorAuthor

    And the user shouldn't get some crappy error, we have to smooth over that
    pain. Having a rest endpoint specifically for a deployments logs is def
    preferred

    On Jul 7, 2015, at 6:40 PM, Ben Parees [email protected] wrote:

    i'm guessing issues about the deployment pod not existing yet, or being
    removed, eg:
    #2541 #2541

    we have various situation in which you can't get the logs yet because the
    pod isn't running yet, or it went away for some reason.

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

  6. soltysh commented on Jul 8, 2015

    @soltysh
    Contributor

    As a side note, I'd suggest having some consistency introducing oc deploy --logs where we already have oc build-logs or just oc logs. My suggestion would be to have oc deploy-logs or alike, instead.

  7. smarterclayton commented on Jul 8, 2015

    @smarterclayton
    ContributorAuthor

    I'm not sure that build-logs is the right direction in the long term.
    Deploy and build are doing slightly different things, and a deployment
    belongs to the DC in a different way than build belongs to build config. A
    DC has at most one active deployment (barring bugs or other). That is
    not how builds are handled.

    On Jul 8, 2015, at 9:50 AM, Maciej Szulik [email protected] wrote:

    As a side note, I'd suggest having some consistency introducing oc deploy
    --logs where we already have oc build-logs or just oc logs. My suggestion
    would be to have oc deploy-logs or alike, instead.

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

  8. soltysh commented on Jul 8, 2015

    @soltysh
    Contributor

    Makes sense, still for users it's easier to grasps/remember commands if they are similar. I'm not suggesting we should change stick to one or the other, I was rather suggesting to have them similar. It does provide better user experience, imho.

  9. smarterclayton commented on Jul 8, 2015

    @smarterclayton
    ContributorAuthor

    It does, unless it forces us to create multiple similar commands that have
    different use patterns. It's probably better in the long run to have a
    single logs command, as long as it fits within the framework we need. But
    a user will come into these commands in different circumstances and with
    different levels of experience - there is also value in exposing function
    in different contexts.

    On Jul 8, 2015, at 5:03 PM, Maciej Szulik [email protected] wrote:

    Makes sense, still for users it's easier to grasps/remember commands if
    they are similar. I'm not suggesting we should change stick to one or the
    other, I was rather suggesting to have them similar. It does provide better
    user experience, imho.

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

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