Using the chmod hack, your traceback will look like this:
==> /var/log/maas/clusterd.log <==
2015-10-15 17:28:43-0400 [-] Unhandled failure dispatching AMP command. This is probably a bug. Please ensure that this error is handled within application code or declared in the signature of the RemoveHostMaps command. [maas-trusty-testbench:pid=639:cmd=RemoveHostMaps:ask=7]
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
self.__bootstrap_inner()
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 191, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py", line 200, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/provisioningserver/rpc/dhcp.py", line 224, in remove_host_maps
omshell.remove(mac_address)
File "/usr/lib/python2.7/dist-packages/provisioningserver/dhcp/omshell.py", line 225, in remove
returncode, output = self._run(stdin)
File "/usr/lib/python2.7/dist-packages/provisioningserver/dhcp/omshell.py", line 133, in _run
proc = Popen(self.command, stdin=PIPE, stdout=PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
exceptions.OSError: [Errno 13] Permission denied
Most likely, while experimenting a real failure, you'll see a different exception, but on the same line.
Using the chmod hack, your traceback will look like this:
==> /var/log/ maas/clusterd. log <== testbench: pid=639: cmd=RemoveHostM aps:ask= 7] python2. 7/threading. py", line 783, in __bootstrap __bootstrap_ inner() python2. 7/threading. py", line 810, in __bootstrap_inner python2. 7/threading. py", line 763, in run __target( *self._ _args, **self.__kwargs) python2. 7/dist- packages/ twisted/ python/ threadpool. py", line 191, in _worker python2. 7/dist- packages/ twisted/ python/ context. py", line 118, in callWithContext text(). callWithContext (ctx, func, *args, **kw) python2. 7/dist- packages/ twisted/ python/ context. py", line 81, in callWithContext python2. 7/dist- packages/ provisioningser ver/utils/ twisted. py", line 200, in wrapper python2. 7/dist- packages/ provisioningser ver/rpc/ dhcp.py" , line 224, in remove_host_maps remove( mac_address) python2. 7/dist- packages/ provisioningser ver/dhcp/ omshell. py", line 225, in remove python2. 7/dist- packages/ provisioningser ver/dhcp/ omshell. py", line 133, in _run python2. 7/subprocess. py", line 710, in __init__ python2. 7/subprocess. py", line 1327, in _execute_child OSError: [Errno 13] Permission denied
2015-10-15 17:28:43-0400 [-] Unhandled failure dispatching AMP command. This is probably a bug. Please ensure that this error is handled within application code or declared in the signature of the RemoveHostMaps command. [maas-trusty-
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.run()
File "/usr/lib/
self.
--- <exception caught here> ---
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
omshell.
File "/usr/lib/
returncode, output = self._run(stdin)
File "/usr/lib/
proc = Popen(self.command, stdin=PIPE, stdout=PIPE)
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
exceptions.
Most likely, while experimenting a real failure, you'll see a different exception, but on the same line.