Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise CommandError when shell command fails
In the effort to make Buffet resilient to hosts going down, it was first identified that we swallow all failures in external shell commands. This becomes problematic if we want to bubble up the failure to the Master to properly handle. The solution was to add a `CommandError` exception that would wrap the result of a shell command in the event a non-zero exit status was returned. Related Story: http://www.pivotaltracker.com/story/show/40166629 ("Buffet should gracefully continue when a node is down") Change-Id: I22f433d352c524637860f5a4c8a19285fa9cae67 Reviewed-on: https://gerrit.causes.com/16102 Reviewed-by: Lann Martin <lann@causes.com> Reviewed-by: Aiden Scandella <aiden@causes.com> Tested-by: Shane da Silva <shane@causes.com>
- Loading branch information