Skip to content

Re-enable oc run --attach verifications once the docker logs api fix is vendored #11240

Open

Description

@dcbw
Running test/end-to-end/core.sh:331: executing 'cat '/tmp/openshift/test-end-to-end-docker//logs/cli-with-token.log'' expecting success and text 'In project test'...
SUCCESS after 0.016s: test/end-to-end/core.sh:331: executing 'cat '/tmp/openshift/test-end-to-end-docker//logs/cli-with-token.log'' expecting success and text 'In project test'
Standard output from the command:
Waiting for pod test/cli-with-token to be running, status is Pending, pod ready: false
Waiting for pod test/cli-with-token to be running, status is Pending, pod ready: false
I1005 22:44:47.756240       1 merged_client_builder.go:122] Using in-cluster configuration
I1005 22:44:47.789231       1 merged_client_builder.go:122] Using in-cluster configuration
I1005 22:44:47.792214       1 merged_client_builder.go:122] Using in-cluster configuration
I1005 22:44:47.792372       1 merged_client_builder.go:145] Using in-cluster namespace
In project test on server https://172.30.0.1:443
pod/cli-with-token runs openshift/origin:6cd347a
2 warnings identified, use 'openshift cli status -v' to see details.

There was no error output from the command.
Running test/end-to-end/core.sh:332: executing 'oc delete pod cli-with-token' expecting success...
SUCCESS after 0.289s: test/end-to-end/core.sh:332: executing 'oc delete pod cli-with-token' expecting success
Standard output from the command:
pod "cli-with-token" deleted

There was no error output from the command.
Running test/end-to-end/core.sh:334: executing 'cat '/tmp/openshift/test-end-to-end-docker//logs/cli-with-token2.log'' expecting success and text 'system:serviceaccount:test:default'...
FAILURE after 0.015s: test/end-to-end/core.sh:334: executing 'cat '/tmp/openshift/test-end-to-end-docker//logs/cli-with-token2.log'' expecting success and text 'system:serviceaccount:test:default': the output content test failed
Standard output from the command:
Waiting for pod test/cli-with-token-2 to be running, status is Pending, pod ready: false
Waiting for pod test/cli-with-token-2 to be running, status is Pending, pod ready: false
If you don't see a command prompt, try pressing enter.
Waiting for pod test/cli-with-token-2 to terminate, status is Running

There was no error output from the command.
[ERROR] PID 30321: hack/lib/cmd.sh:229: `return "${return_code}"` exited with status 1.
[INFO]      Stack Trace: 
[INFO]        1: hack/lib/cmd.sh:229: `return "${return_code}"`
[INFO]        2: test/end-to-end/core.sh:334: os::cmd::expect_success_and_text
[INFO]   Exiting with code 1.
[ERROR] PID 29510: hack/test-end-to-end-docker.sh:94: `${OS_ROOT}/test/end-to-end/core.sh` exited with status 1.
[INFO]      Stack Trace: 
[INFO]        1: hack/test-end-to-end-docker.sh:94: `${OS_ROOT}/test/end-to-end/core.sh`
[INFO]   Exiting with code 1.
[INFO] Stacked plot for log subset "iops" written to /tmp/openshift/test-end-to-end-docker//logs/iops.pdf
[INFO] Stacked plot for log subset "paging" written to /tmp/openshift/test-end-to-end-docker//logs/paging.pdf
[INFO] Stacked plot for log subset "cpu" written to /tmp/openshift/test-end-to-end-docker//logs/cpu.pdf
[INFO] Stacked plot for log subset "queue" written to /tmp/openshift/test-end-to-end-docker//logs/queue.pdf
[INFO] Stacked plot for log subset "memory" written to /tmp/openshift/test-end-to-end-docker//logs/memory.pdf

[FAIL] !!!!! Test Failed !!!!

Activity

  1. added
    kind/test-flake
    on Oct 6, 2016
  2. marun commented on Oct 6, 2016

    @marun
    Contributor

    I'm assuming this is the same failure manifesting slightly differently.

    [INFO] Running a CLI command in a container using the service account
    Running test/end-to-end/core.sh:328: executing 'oc policy add-role-to-user view -z default' expecting success...
    SUCCESS after 0.247s: test/end-to-end/core.sh:328: executing 'oc policy add-role-to-user view -z default' expecting success
    There was no output from the command.
    There was no error output from the command.
    Running test/end-to-end/core.sh:330: executing 'cat '/tmp/openshift/test-end-to-end-docker//logs/cli-with-token.log'' expecting success and text 'Using in-cluster configuration'...
    FAILURE after 0.013s: test/end-to-end/core.sh:330: executing 'cat '/tmp/openshift/test-end-to-end-docker//logs/cli-with-token.log'' expecting success and text 'Using in-cluster configuration': the output content test failed
    Standard output from the command:
    Waiting for pod test/cli-with-token to be running, status is Pending, pod ready: false
    Waiting for pod test/cli-with-token to be running, status is Pending, pod ready: false
    If you don't see a command prompt, try pressing enter.
    Waiting for pod test/cli-with-token to terminate, status is Running
    
    There was no error output from the command.
    
  3. assigned and unassigned on Oct 6, 2016
  4. bparees commented on Oct 6, 2016

    @bparees
    Contributor

    @mfojtik not sure this is the PM team either, but it's not devex...something is running an image w/ oc run and then expecting to see some output in the container logs:

    echo "[INFO] Running a CLI command in a container using the service account"
    os::cmd::expect_success 'oc policy add-role-to-user view -z default'
    oc run cli-with-token --attach --image="openshift/origin:${TAG}" --restart=Never -- cli status --loglevel=4 > "${LOG_DIR}/cli-with-token.log" 2>&1
    os::cmd::expect_success_and_text "cat '${LOG_DIR}/cli-with-token.log'" 'Using in-cluster configuration'
    os::cmd::expect_success_and_text "cat '${LOG_DIR}/cli-with-token.log'" 'In project test'
    
  5. liggitt commented on Oct 7, 2016

    @liggitt
    Contributor

    is this the same problem as #9309? @ncdc, you mentioned that was a known issue... is it tracked upstream?

  6. ncdc commented on Oct 7, 2016

    @ncdc
    Contributor

    @liggitt upstream is flaking a ton lately on kubectl exec not returning the expected output. So far I've seen it with GCE (GCI image) and GKE. I obviously can't debug on GKE, but I did spin up a GCE/GCI cluster and ran kubectl exec in an endless loop for close to 2 hours and it never flaked on me. I have no idea what's going on :-(

  7. bparees commented on Oct 19, 2016

    @bparees
    Contributor

    we need a stable merge queue to get 3.4 out on time and this flake is coming up a lot.

  8. ncdc commented on Oct 19, 2016

    @ncdc
    Contributor

    @bparees I'll take another look. I didn't realize this was happening so often

  9. 0xmichalis commented on Oct 19, 2016

    @0xmichalis
    Contributor

    @mfojtik had opened #11312 but it misses the --loglevel flag from the last oc run call. I opened #11444 which includes that fix.

  10. 0xmichalis commented on Oct 19, 2016

    @0xmichalis
    Contributor

    So it seems this is not a timeout issue but related to log streaming not returning all expected logs. @ncdc is there an upstream issue about it?

  11. 19 remaining items

  12. removed this from the 1.4.0 milestone on Nov 7, 2016
  13. assigned and unassigned on May 22, 2017
  14. soltysh commented on Jun 2, 2017

    @soltysh
    Contributor

    This is tracked as part of #12558 and fix (although still not fully functional) is in #13669. I'm closing that in favor of #12558.

  15. soltysh commented on Jun 20, 2017

    @soltysh
    Contributor

    Interesting, the output I have from the command vs the output I got from docker logs is different:

    If you don't see a command prompt, try pressing enter.
    I0619 16:14:25.397369       1 merged_client_builder.go:123] Using in-cluster configuration
    I0619 16:14:25.400517       1 merged_client_builder.go:123] Using in-cluster configuration
    I0619 16:14:25.440694       1 cached_discovery.go:134] failed to write cache to /root/.kube/172.30.0.1_443/servergroups.json due to mkdir /root/.kube: permission denied
    I0619 16:14:25.441363       1 merged_client_builder.go:123] Using in-cluster configuration
    

    vs

    I0619 16:14:25.397369       1 merged_client_builder.go:123] Using in-cluster configuration
    I0619 16:14:25.400517       1 merged_client_builder.go:123] Using in-cluster configuration
    I0619 16:14:25.440694       1 cached_discovery.go:134] failed to write cache to /root/.kube/172.30.0.1_443/servergroups.json due to mkdir /root/.kube: permission denied
    I0619 16:14:25.441363       1 merged_client_builder.go:123] Using in-cluster configuration
    system:serviceaccount:test:default
    

    We're checking the former, but the latter contains the value we're looking for.

  16. openshift-bot commented on Feb 12, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  17. added
    lifecycle/stale
    on Feb 12, 2018
  18. soltysh commented on Feb 12, 2018

    @soltysh
    Contributor

    /remove-lifecycle stale
    /lifecycle frozen

  19. added
    lifecycle/frozen
    and removed
    lifecycle/stale
    on Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component/restapilifecycle/frozenpriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions