opennode/opennode-management — Issue #143: security gets in the way when deleting/undeploying a compute
Author: mmikulicic
Created: 2012-03-01 16:02:52+00:00
State: open
Labels: bug

```

marko@oms:/computes/by-name/on6test/vms# last_error
Error executing 'rm 40344c56-88ab-4db2-b415-fb46cd4d02ff/': (, ForbiddenAttribute('interfaces', ), )
error type
Traceback (most recent call last):
File "/home/marko/Projects/opennode/opennode-management/opennode/oms/endpoint/ssh/protocol.py", line 121, in spawn_command
yield deferred
File "/home/marko/.buildout-eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1037, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/home/marko/.buildout-eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/home/marko/Projects/opennode/opennode-management/opennode/oms/endpoint/ssh/cmd/base.py", line 24, in __call__
yield self.execute(parsed)
File "/home/marko/.buildout-eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/threadpool.py", line 207, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/home/marko/.buildout-eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/marko/.buildout-eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/home/marko/Projects/opennode/opennode-management/opennode/oms/zodb/db.py", line 136, in
lambda: run_in_tx(fun, *args, **kwargs))
File "/home/marko/Projects/opennode/opennode-management/opennode/oms/zodb/db.py", line 123, in run_in_tx
result = fun(*args, **kwargs)
File "/home/marko/Projects/opennode/opennode-management/opennode/oms/endpoint/ssh/cmd/commands.py", line 332, in execute
raise e
ForbiddenAttribute: ('interfaces', )
```