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

deis run need pods-create permissions (rbac) #1326

Open
dmcnaught opened this issue Sep 21, 2017 · 2 comments
Open

deis run need pods-create permissions (rbac) #1326

dmcnaught opened this issue Sep 21, 2017 · 2 comments

Comments

@dmcnaught
Copy link

deis run needs pods - create permissions in charts/controller/templates/controller-clusterrole.yaml

Error:

Running 'bundle exec rake db:migrate'...
Error: Unknown Error (503): {"detail":"assessments-service-config-run-f1dc5 (run): Expecting value: line 1 column 1 (char 0)"}```

Logs
```INFO:scheduler:[assessments-service-config]: run assessments-service-config-run-5ouaj, img quay.io/welltok/assessments:f56e975, entrypoint ['/bin/bash', '-c'], cmd "['bundle exec rake db:migrate']"
ERROR:root:Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/app/api/models/app.py", line 749, in run
    **data
  File "/app/scheduler/__init__.py", line 311, in run
    self.pod.create(namespace, name, image, **kwargs)
  File "/app/scheduler/resources/pod.py", line 42, in create
    raise KubeHTTPException(response, 'create Pod in Namespace "{}"', namespace)
  File "/app/scheduler/exceptions.py", line 10, in __init__
    data = response.json()
  File "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 885, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/rest_framework/views.py", line 486, in dispatch
    response = handler(request, *args, **kwargs)
  File "/app/api/views.py", line 241, in run
    rc, output = app.run(self.request.user, request.data['command'])
  File "/app/api/models/app.py", line 755, in run
    raise ServiceUnavailable(err) from e
api.exceptions.ServiceUnavailable: assessments-service-config-run-5ouaj (run): Expecting value: line 1 column 1 (char 0)```
@dmcnaught
Copy link
Author

Creating PR

@Cryptophobia
Copy link
Contributor

This issue was moved to teamhephy/controller#15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants