When a power template fails, the content of the event from the node event log is not readable (it contains the whole template)

Bug #1357071 reported by Raphaël Badin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Julian Edwards

Bug Description

The event log content is generated from /usr/lib/python2.7/subprocess.py:
"""
return "Command '%s' returned non-zero exit status %d" % (self.cmd, self.returncode)
"""
The result is that the entire template is present in the error message, and thus in the event log (see an example here: http://pastebin.ubuntu.com/8048166/).

Tags: robustness

Related branches

Revision history for this message
Raphaël Badin (rvb) wrote :

For a much better handle on what ends up in the node event log when a power-related action fails, we should move away from using shell templates and use Python instead. Note that this work has started: https://code.launchpad.net/~blake-rouse/maas/python-powerdriver/+merge/228843.

summary: When a power template fails, the content of the event from the node
- event log is not very readable (it contains the whole template)
+ event log is not readable (it contains the whole template)
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Yep conversion to python for the power drivers should fix this issue. Currently working on it.

Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Triaged
Changed in maas:
assignee: Blake Rouse (blake-rouse) → Julian Edwards (julian-edwards)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: none → 1.7.0
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.