Details
Description
When running the sparkpi action against the spark charm I get a lot of log output on the action result info.
I would like to just see the output of the calculation of Pi and if that was successful.
Example:
http://paste.ubuntu.com/23859116/
Code ref = https://github.com/apache/bigtop/tree/master/bigtop-packages/src/charm/spark/layer-spark
Issue Links
- relates to
-
BIGTOP-2747
new charm revs for bigtop-1.2
-
- Resolved
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
The real result that the user wants to see is in your pastebin:
"Pi is roughly 3.142128"
This is currently buried alongside yarn stuffs in the "raw" action output. When the action succeeds, this extra yarn stuff is unnecessary. If the action failed, however, you'd probably want to see it.
I think the best option is to override the "output" key in the action results dict. We create a "results: output: status: completed" entry which is totally superfluous given that "status: completed" is already present in the default action output. Perhaps we can alter the "results: output" key to house the "Pi is roughly xyz" so you would have some way to see the wanted output without having to scan the "raw" bits.