New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first layer creation fails #541

Closed
paulczar opened this Issue Feb 18, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@paulczar
Contributor

paulczar commented Feb 18, 2014

➜  deis git:(master) ✗ deis providers:discover
No EC2 credentials discovered.
Discovered Rackspace credentials: XXXXXX
Import Rackspace credentials? (y/n) : y
Uploading Rackspace credentials... done
No DigitalOcean credentials discovered.
No Vagrant Deis Controller discovered.
➜  deis git:(master) ✗ deis formations:create demo --domain=XXXXXX
Creating formation... done, created demo

See `deis help layers:create` to begin building your formation
➜  deis git:(master) ✗ deis layers:create demo nodes rackspace-dfw --proxy=y --runtime=y
Creating nodes layer... 500 INTERNAL SERVER ERROR
<h1>Server Error (500)</h1>
➜  deis git:(master) ✗ deis layers:create demo nodes rackspace-dfw --proxy=y --runtime=y
➜  deis git:(master) ✗ deis layers:destroy demo
Usage: deis layers:destroy <formation> <id>
➜  deis git:(master) ✗ deis layers:destroy demo nodes
Destroying nodes layer... done in 2s
➜  deis git:(master) ✗ deis layers:create demo nodes rackspace-dfw --proxy=y --runtime=y
Creating nodes layer... done in 3s
@paulczar

This comment has been minimized.

Show comment
Hide comment
@paulczar

paulczar Feb 18, 2014

Contributor
2014-02-18 15:15:12 [121] [DEBUG] POST /api/auth/register
2014-02-18 15:15:13 [122] [DEBUG] GET /api/auth/login/
2014-02-18 15:15:13 [117] [DEBUG] POST /api/auth/login/
2014-02-18 15:15:44 [114] [DEBUG] PATCH /api/providers/rackspace
2014-02-18 15:16:05 [114] [DEBUG] POST /api/formations
2014-02-18 15:18:01 [114] [DEBUG] POST /api/formations/demo/layers
ERROR Internal Server Error: /api/formations/demo/layers
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/rest_framework/viewsets.py", line 78, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py", line 399, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py", line 396, in dispatch
    response = handler(request, *args, **kwargs)
  File "/app/deis/api/views.py", line 317, in create
    return super(FormationLayerViewSet, self).create(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/rest_framework/mixins.py", line 55, in create
    self.post_save(self.object, created=True)
  File "/app/deis/api/views.py", line 321, in post_save
    layer.build()
  File "/app/deis/api/models.py", line 294, in build
    return tasks.build_layer.delay(self).wait()
  File "/usr/local/lib/python2.7/dist-packages/celery/result.py", line 152, in get
    interval=interval)
  File "/usr/local/lib/python2.7/dist-packages/celery/backends/base.py", line 186, in wait_for
    raise result
Conflict
2014-02-18 15:18:16 [117] [DEBUG] DELETE /api/formations/demo/layers/nodes
2014-02-18 15:18:23 [121] [DEBUG] POST /api/formations/demo/layers
Contributor

paulczar commented Feb 18, 2014

2014-02-18 15:15:12 [121] [DEBUG] POST /api/auth/register
2014-02-18 15:15:13 [122] [DEBUG] GET /api/auth/login/
2014-02-18 15:15:13 [117] [DEBUG] POST /api/auth/login/
2014-02-18 15:15:44 [114] [DEBUG] PATCH /api/providers/rackspace
2014-02-18 15:16:05 [114] [DEBUG] POST /api/formations
2014-02-18 15:18:01 [114] [DEBUG] POST /api/formations/demo/layers
ERROR Internal Server Error: /api/formations/demo/layers
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/rest_framework/viewsets.py", line 78, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py", line 399, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py", line 396, in dispatch
    response = handler(request, *args, **kwargs)
  File "/app/deis/api/views.py", line 317, in create
    return super(FormationLayerViewSet, self).create(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/rest_framework/mixins.py", line 55, in create
    self.post_save(self.object, created=True)
  File "/app/deis/api/views.py", line 321, in post_save
    layer.build()
  File "/app/deis/api/models.py", line 294, in build
    return tasks.build_layer.delay(self).wait()
  File "/usr/local/lib/python2.7/dist-packages/celery/result.py", line 152, in get
    interval=interval)
  File "/usr/local/lib/python2.7/dist-packages/celery/backends/base.py", line 186, in wait_for
    raise result
Conflict
2014-02-18 15:18:16 [117] [DEBUG] DELETE /api/formations/demo/layers/nodes
2014-02-18 15:18:23 [121] [DEBUG] POST /api/formations/demo/layers

@mboersma mboersma added the bug label Feb 19, 2014

@mboersma mboersma added this to the 0.5.1 milestone Feb 19, 2014

@mboersma mboersma self-assigned this Feb 19, 2014

@mboersma

This comment has been minimized.

Show comment
Hide comment
@mboersma

mboersma Feb 19, 2014

Member

This is evidently a problem I created with ATOMIC_REQUESTS=True. I'll have a fix soon.

Member

mboersma commented Feb 19, 2014

This is evidently a problem I created with ATOMIC_REQUESTS=True. I'll have a fix soon.

@mboersma mboersma closed this in 6c902a6 Feb 19, 2014

tombh added a commit to tombh/deis that referenced this issue Feb 21, 2014

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