Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

deis run returns a 503 #897

Closed
bacongobbler opened this issue Jul 20, 2016 · 0 comments · Fixed by #910
Closed

deis run returns a 503 #897

bacongobbler opened this issue Jul 20, 2016 · 0 comments · Fixed by #910
Assignees
Milestone

Comments

@bacongobbler
Copy link
Member

bacongobbler commented Jul 20, 2016

Hitting this error in e2e while testing deis/charts#310:

$ deis run -a test-226883881 env
Running 'env'...
Error: Unknown Error (503): {"detail":"test-226883881-v3-run-2vsyg (run): ('failed to get logs for Pod \"test-226883881-v3-run-2vsyg\" in Namespace \"test-226883881\": 400 Bad Request\\n{\\'reason\\': \\'BadRequest\\', \\'kind\\': \\'Status\\', \\'code\\': 400, \\'message\\': \\'container \"test-226883881-run\" in pod \"test-226883881-v3-run-2vsyg\" is waiting to start: ContainerCreating\\', \\'metadata\\': {}, \\'status\\': \\'Failure\\', \\'apiVersion\\': \\'v1\\'}', 'test-226883881-v3-run-2vsyg', 'test-226883881')"}

My guess is that the controller is attempting to fetch the logs from the container before it has finished running.

Full run of test:

$ deis auth:register http://deis.k8s.local --username=test-96000 --password=asdf1234 --email=test-96000@deis.io
Registered test-96000
Logged in as test-96000
$ deis apps:create test-226883881 --no-remote
Creating Application... done, created test-226883881
If you want to add a git remote for this app later, use `deis git:remote -a test-226883881`
$ deis builds:create --app=test-226883881 deis/example-dockerfile-http
Creating build... done
$ deis config:set -a test-226883881 POWERED_BY=the\ Deis\ team
Creating config... done

=== test-226883881 Config
POWERED_BY      the Deis team
$ deis config:list -a test-226883881
=== test-226883881 Config
POWERED_BY      the Deis team
$ deis run -a test-226883881 env
Running 'env'...
Error: Unknown Error (503): {"detail":"test-226883881-v3-run-2vsyg (run): ('failed to get logs for Pod \"test-226883881-v3-run-2vsyg\" in Namespace \"test-226883881\": 400 Bad Request\\n{\\'reason\\': \\'BadRequest\\', \\'kind\\': \\'Status\\', \\'code\\': 400, \\'message\\': \\'container \"test-226883881-run\" in pod \"test-226883881-v3-run-2vsyg\" is waiting to start: ContainerCreating\\', \\'metadata\\': {}, \\'status\\': \\'Failure\\', \\'apiVersion\\': \\'v1\\'}', 'test-226883881-v3-run-2vsyg', 'test-226883881')"}
$ deis apps:destroy --app=test-226883881 --confirm=test-226883881
Destroying test-226883881...
done in 2s
$ deis auth:cancel --username=test-96000 --password=asdf1234 --yes
Please log in again in order to cancel this account
Logged in as test-96000
Account cancelled


• Failure [568.162 seconds]
deis config
/go/src/github.com/deis/workflow-e2e/tests/config_test.go:282
  with an existing user
  /go/src/github.com/deis/workflow-e2e/tests/config_test.go:235
    who owns an existing app that has already been deployed
    /go/src/github.com/deis/workflow-e2e/tests/config_test.go:233
      that user can set an environment variable containing spaces on that app [It]
      /go/src/github.com/deis/workflow-e2e/vendor/github.com/onsi/ginkgo/ginkgo_dsl.go:354

      No future change is possible.  Bailing out early after 152.922s.
      Got stuck at:
          Running 'env'...

      Waiting for:
          POWERED_BY=the Deis team

      /go/src/github.com/deis/workflow-e2e/tests/config_test.go:115
@helgi helgi added this to the v2.3 milestone Jul 25, 2016
helgi added a commit to helgi/controller that referenced this issue Jul 25, 2016
helgi added a commit to helgi/controller that referenced this issue Jul 25, 2016
@helgi helgi self-assigned this Jul 25, 2016
helgi added a commit to helgi/controller that referenced this issue Jul 25, 2016
helgi added a commit to helgi/controller that referenced this issue Jul 25, 2016
helgi added a commit to helgi/controller that referenced this issue Jul 25, 2016
helgi added a commit to helgi/controller that referenced this issue Jul 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants