[Bugs] [Bug 1400845] New: JSON output for all Events CLI commands
bugzilla at redhat.com
bugzilla at redhat.com
Fri Dec 2 08:23:18 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1400845
Bug ID: 1400845
Summary: JSON output for all Events CLI commands
Product: GlusterFS
Version: 3.9
Component: eventsapi
Assignee: bugs at gluster.org
Reporter: avishwan at redhat.com
Depends On: 1357753
Blocks: 1395603
+++ This bug was initially created as a clone of Bug #1357753 +++
Description of problem:
To consume the APIs programatically, provide JSON or XML output for
gluster-eventsapi commands.
Example,
gluster-eventsapi start --json
gluster-eventsapi status --json
--- Additional comment from Worker Ant on 2016-11-17 06:10:02 EST ---
REVIEW: http://review.gluster.org/15867 (eventsapi: JSON output and different
error codes) posted (#1) for review on master by Aravinda VK
(avishwan at redhat.com)
--- Additional comment from Worker Ant on 2016-11-29 06:58:05 EST ---
REVIEW: http://review.gluster.org/15867 (eventsapi: JSON output and different
error codes) posted (#2) for review on master by Aravinda VK
(avishwan at redhat.com)
--- Additional comment from Worker Ant on 2016-12-02 03:20:42 EST ---
COMMIT: http://review.gluster.org/15867 committed in master by Aravinda VK
(avishwan at redhat.com)
------
commit da71bdcf82a8dc71a1170ad3f190702fa49d2838
Author: Aravinda VK <avishwan at redhat.com>
Date: Thu Nov 17 15:42:24 2016 +0530
eventsapi: JSON output and different error codes
JSON outputs are added to all commands, use `--json` to
get JSON output.
Following error codes are added to differenciate between errors.
Any other Unknown errors will have return code 1
ERROR_SAME_CONFIG = 2
ERROR_ALL_NODES_STATUS_NOT_OK = 3
ERROR_PARTIAL_SUCCESS = 4
ERROR_WEBHOOK_ALREADY_EXISTS = 5
ERROR_WEBHOOK_NOT_EXISTS = 6
ERROR_INVALID_CONFIG = 7
ERROR_WEBHOOK_SYNC_FAILED = 8
ERROR_CONFIG_SYNC_FAILED = 9
Also hidden `node-` commands in the help message.
BUG: 1357753
Change-Id: I962b5435c8a448b4573059da0eae42f3f93cc97e
Signed-off-by: Aravinda VK <avishwan at redhat.com>
Reviewed-on: http://review.gluster.org/15867
Smoke: Gluster Build System <jenkins at build.gluster.org>
Reviewed-by: Prashanth Pai <ppai at redhat.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1357753
[Bug 1357753] JSON output for all Events CLI commands
https://bugzilla.redhat.com/show_bug.cgi?id=1395603
[Bug 1395603] [RFE] JSON output for all Events CLI commands
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Bugs
mailing list