autodesk-cloud / ochopod

Your friendly orchestration overlay over Mesos, K8S and more !
http://autodesk-cloud.github.io/ochopod/
Apache License 2.0
122 stars 20 forks source link

Trying to invoke tools when none are defined #35

Closed Tremualin closed 8 years ago

Tremualin commented 8 years ago

There's an exception when you try to exec a tool and there are no tools defined in the pod.

ocho cli
welcome to the ocho CLI ! (CTRL-C or exit to get out)
dcos > exec * ' ' --force

dcos > log *portal
<*portal> -> 100% replies (1 pods total) ->
- marathon.portal #98

      response = self.full_dispatch_request()
    File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
      rv = self.handle_user_exception(e)
    File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
      reraise(exc_type, exc_value, tb)
    File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
      rv = self.dispatch_request()
    File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
      return self.view_functions[rule.endpoint](**req.view_args)
    File "/usr/local/lib/python2.7/dist-packages/ochopod/frameworks/marathon.py", line 326, in _exec
      if cmd not in tools:
  TypeError: argument of type 'NoneType' is not iterable
  2015-10-28 17:28:55,796 - DEBUG - http -> shell request "log *portal"
  2015-10-28 17:28:55,972 - DEBUG - http in -> /log
opaugam commented 8 years ago

oh thanks for noticing ! The first ochopod1.0.7 bug !

opaugam commented 8 years ago

pod 1.0.7 updated