Page MenuHomePhabricator

Cumin: allow to specify successful exit codes
Closed, ResolvedPublic

Description

Right now Cumin consider successful any command that exits with 0 exit code, any other exit code is considered a failure.
Allow to override this default by specifying a list of successful exit codes for each command.

My intention is to add it to the library for now, and evaluate if it could be useful also for the standard CLI usage.

Event Timeline

Change 352841 had a related patch set uploaded (by Volans; owner: Volans):
[operations/software/cumin@master] Transports: move BaseWorker helper methods to module functions

https://gerrit.wikimedia.org/r/352841

Change 352842 had a related patch set uploaded (by Volans; owner: Volans):
[operations/software/cumin@master] Transports: add Command class

https://gerrit.wikimedia.org/r/352842

Change 352843 had a related patch set uploaded (by Volans; owner: Volans):
[operations/software/cumin@master] Transports: use Command class for commands

https://gerrit.wikimedia.org/r/352843

Change 352844 had a related patch set uploaded (by Volans; owner: Volans):
[operations/software/cumin@master] Transports: allow to specify a timeout per Command

https://gerrit.wikimedia.org/r/352844

Change 352845 had a related patch set uploaded (by Volans; owner: Volans):
[operations/software/cumin@master] Transports: allow to specify exit codes per Command

https://gerrit.wikimedia.org/r/352845

Change 352892 had a related patch set uploaded (by Volans; owner: Volans):
[operations/software/cumin@master] ClusterShell: allow to specify exit codes per Command

https://gerrit.wikimedia.org/r/352892

Change 352841 merged by jenkins-bot:
[operations/software/cumin@master] Transports: move BaseWorker helper methods to module functions

https://gerrit.wikimedia.org/r/352841

Change 352842 merged by jenkins-bot:
[operations/software/cumin@master] Transports: add Command class

https://gerrit.wikimedia.org/r/352842

Change 352843 merged by jenkins-bot:
[operations/software/cumin@master] Transports: use Command class for commands

https://gerrit.wikimedia.org/r/352843

Change 352844 merged by jenkins-bot:
[operations/software/cumin@master] Transports: allow to specify a timeout per Command

https://gerrit.wikimedia.org/r/352844

Change 352845 merged by jenkins-bot:
[operations/software/cumin@master] Transports: allow to specify exit codes per Command

https://gerrit.wikimedia.org/r/352845

Change 352892 merged by jenkins-bot:
[operations/software/cumin@master] ClusterShell: allow to specify exit codes per Command

https://gerrit.wikimedia.org/r/352892

Volans moved this task from In Code Review to Done on the SRE-tools board.
Volans removed a project: Patch-For-Review.