Comment 4 for bug 1184589

Revision history for this message
Tycho Andersen (tycho-s) wrote :

I've been doing this:

CloudFive:/usr/lib/python2.7/dist-packages/provisioningserver/power$ diff -U5 poweraction.py.old poweraction.py
--- poweraction.py.old 2014-02-26 17:33:18.318719677 +0200
+++ poweraction.py 2014-02-26 17:26:50.478738789 +0200
@@ -116,11 +116,14 @@
         # to the individual scripts.
         try:
             output = subprocess.check_output(
                 commands, shell=True, stderr=subprocess.STDOUT, close_fds=True)
         except subprocess.CalledProcessError as e:
- raise PowerActionFail(self, e)
+ paf = PowerActionFail(self, e)
+ with open('/tmp/paf', 'w') as out:
+ out.write(str(paf))
+ raise paf
         # This output is only examined in tests, execute just ignores it
         return output

     def execute(self, **kwargs):
         """Execute the template.

followed by a:

 sudo service maas-cluster-celery restart

which will at least let you see the script and its output.