| Summary: | Skynet client exit values are not consistent | ||
|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | Joshua Wulf <jwulf> |
| Component: | CSProcessor | Assignee: | Lee Newson <lnewson> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.x | CC: | jwulf, lcarlon |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 0.16.3 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-20 07:53:09 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 766413 | ||
|
Description
Joshua Wulf
2011-12-12 01:28:00 UTC
Fixed in 0.16.3. This was caused by only giving exit values other then 0 when the client failed. This was because from a client perspective if it sends and receives data then it's request was a success. However this doesn't allow you to adequately use the exit values for scripting. So I've updated the client and server to send back a failure status if the server doesn't complete successfully. Below is a list of available exit values: EXIT_SUCCESS = 0; EXIT_FAILURE = 255; (Generic failure. Server failures are included in this) EXIT_NO_SERVER = 1; (Can't find the server) EXIT_UNAUTHORISED = 2; (The request to the server is unauthorised) EXIT_INTERNAL_SERVER_ERROR = 3; (An Internal Server Error occurred on the server) EXIT_CONFIG_ERROR = 4; (There was an error reading from the Configuration file) EXIT_ARGUMENT_ERROR = 5; (There is an argument error in the command used) EXIT_FILE_NOT_FOUND = 6; (Unable to find a file for push or validate commands) EXIT_INVALID = 8; (A Topic or Content Spec is invalid) EXIT_SERVER_ERROR = 9; (HTTP 400 & 405 status code errors) Note: The below status exists in versions below 0.16.3. After 0.16.3 it has been changed to the generic EXIT_SUCCESS status. EXIT_VALID = 7; (A topic is valid when the "validate -t" command is used.) |