|
|
3604df |
From 53a8ae976e7886dcfeea151b8a3a045863b7f018 Mon Sep 17 00:00:00 2001
|
|
|
3604df |
From: Atin Mukherjee <amukherj@redhat.com>
|
|
|
3604df |
Date: Tue, 30 Aug 2016 18:05:11 +0530
|
|
|
3604df |
Subject: [PATCH 52/86] eventsapi: declare all the identified events at one go
|
|
|
3604df |
|
|
|
3604df |
This patch ensures we don't get into merge conflicts
|
|
|
3604df |
everytime a single eventing patch is merged which
|
|
|
3604df |
changes eventskeygen.py. I've collected all the identified
|
|
|
3604df |
events from the patches posted in gerrit for reviews and
|
|
|
3604df |
consolidated at one place.
|
|
|
3604df |
|
|
|
3604df |
>Reviewed-on: http://review.gluster.org/15351
|
|
|
3604df |
>Tested-by: Prasanna Kumar Kalever <pkalever@redhat.com>
|
|
|
3604df |
>Reviewed-by: Avra Sengupta <asengupt@redhat.com>
|
|
|
3604df |
>Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
3604df |
>Reviewed-by: Aravinda VK <avishwan@redhat.com>
|
|
|
3604df |
>Reviewed-by: Saravanakumar Arumugam <sarumuga@redhat.com>
|
|
|
3604df |
>CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
3604df |
>NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
3604df |
|
|
|
3604df |
Change-Id: I5a5983d5c8db7c4a223fa02b4f99ec41c6fa9c35
|
|
|
3604df |
BUG: 1351589
|
|
|
3604df |
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
3604df |
Reviewed-on: https://code.engineering.redhat.com/gerrit/84800
|
|
|
3604df |
---
|
|
|
3604df |
events/eventskeygen.py | 94 ++++++++++++++++++++++++++++++++++++++---------
|
|
|
3604df |
1 files changed, 76 insertions(+), 18 deletions(-)
|
|
|
3604df |
|
|
|
3604df |
diff --git a/events/eventskeygen.py b/events/eventskeygen.py
|
|
|
3604df |
index a118a4c..2869e45 100644
|
|
|
3604df |
--- a/events/eventskeygen.py
|
|
|
3604df |
+++ b/events/eventskeygen.py
|
|
|
3604df |
@@ -21,16 +21,20 @@ gen_header_type = sys.argv[1]
|
|
|
3604df |
|
|
|
3604df |
# When adding new keys add it to the END
|
|
|
3604df |
keys = (
|
|
|
3604df |
+ # user driven events
|
|
|
3604df |
+ #peer and volume managment events
|
|
|
3604df |
"EVENT_PEER_ATTACH",
|
|
|
3604df |
"EVENT_PEER_DETACH",
|
|
|
3604df |
-
|
|
|
3604df |
"EVENT_VOLUME_CREATE",
|
|
|
3604df |
"EVENT_VOLUME_START",
|
|
|
3604df |
"EVENT_VOLUME_STOP",
|
|
|
3604df |
"EVENT_VOLUME_DELETE",
|
|
|
3604df |
"EVENT_VOLUME_SET",
|
|
|
3604df |
"EVENT_VOLUME_RESET",
|
|
|
3604df |
+ "EVENT_BRICK_RESET",
|
|
|
3604df |
+ "EVENT_BRICK_REPLACE",
|
|
|
3604df |
|
|
|
3604df |
+ #geo-rep events
|
|
|
3604df |
"EVENT_GEOREP_CREATE",
|
|
|
3604df |
"EVENT_GEOREP_START",
|
|
|
3604df |
"EVENT_GEOREP_STOP",
|
|
|
3604df |
@@ -40,19 +44,61 @@ keys = (
|
|
|
3604df |
"EVENT_GEOREP_CONFIG_SET",
|
|
|
3604df |
"EVENT_GEOREP_CONFIG_RESET",
|
|
|
3604df |
|
|
|
3604df |
+ #bitrot events
|
|
|
3604df |
"EVENT_BITROT_ENABLE",
|
|
|
3604df |
"EVENT_BITROT_DISABLE",
|
|
|
3604df |
"EVENT_BITROT_SCRUB_THROTTLE",
|
|
|
3604df |
"EVENT_BITROT_SCRUB_FREQ",
|
|
|
3604df |
"EVENT_BITROT_SCRUB_OPTION",
|
|
|
3604df |
- "EVENT_BITROT_BAD_FILE",
|
|
|
3604df |
|
|
|
3604df |
+ #quota events
|
|
|
3604df |
+ "EVENT_QUOTA_ENABLE",
|
|
|
3604df |
+ "EVENT_QUOTA_DISABLE",
|
|
|
3604df |
+ "EVENT_QUOTA_SET_USAGE_LIMIT",
|
|
|
3604df |
+ "EVENT_QUOTA_SET_OBJECTS_LIMIT",
|
|
|
3604df |
+ "EVENT_QUOTA_REMOVE_USAGE_LIMIT",
|
|
|
3604df |
+ "EVENT_QUOTA_REMOVE_OBJECTS_LIMIT",
|
|
|
3604df |
+ "EVENT_QUOTA_ALERT_TIME",
|
|
|
3604df |
+ "EVENT_QUOTA_SOFT_TIMEOUT",
|
|
|
3604df |
+ "EVENT_QUOTA_HARD_TIMEOUT",
|
|
|
3604df |
+ "EVENT_QUOTA_DEFAULT_SOFT_LIMIT",
|
|
|
3604df |
+
|
|
|
3604df |
+ #snapshot events
|
|
|
3604df |
+ "EVENT_SNAPSHOT_CREATED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_CREATE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_ACTIVATED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_ACTIVATE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_DEACTIVATED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_DEACTIVATE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SOFT_LIMIT_REACHED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_HARD_LIMIT_REACHED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_RESTORED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_RESTORE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_DELETED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_DELETE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_CLONED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_CLONE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_CONFIG_UPDATED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_CONFIG_UPDATE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_INITIALISED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_INIT_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_ENABLED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_ENABLE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_DISABLED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_DISABLE_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_SCHEDULE_ADDED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_SCHEDULE_ADD_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_SCHEDULE_EDITED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_SCHEDULE_EDIT_FAILED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_SCHEDULE_DELETED",
|
|
|
3604df |
+ "EVENT_SNAPSHOT_SCHEDULER_SCHEDULE_DELETE_FAILED",
|
|
|
3604df |
+
|
|
|
3604df |
+ #async events
|
|
|
3604df |
+ #glusterd events
|
|
|
3604df |
"EVENT_SVC_MANAGER_FAILED",
|
|
|
3604df |
"EVENT_SVC_RECONFIGURE_FAILED",
|
|
|
3604df |
"EVENT_SVC_CONNECTED",
|
|
|
3604df |
"EVENT_SVC_DISCONNECTED",
|
|
|
3604df |
-
|
|
|
3604df |
-
|
|
|
3604df |
"EVENT_PEER_STORE_FAILURE",
|
|
|
3604df |
"EVENT_PEER_RPC_CREATE_FAILED",
|
|
|
3604df |
"EVENT_PEER_REJECT",
|
|
|
3604df |
@@ -60,16 +106,13 @@ keys = (
|
|
|
3604df |
"EVENT_PEER_DISCONNECT",
|
|
|
3604df |
"EVENT_PEER_NOT_FOUND",
|
|
|
3604df |
"EVENT_UNKNOWN_PEER",
|
|
|
3604df |
-
|
|
|
3604df |
"EVENT_BRICK_START_FAILED",
|
|
|
3604df |
"EVENT_BRICK_STOP_FAILED",
|
|
|
3604df |
"EVENT_BRICK_DISCONNECTED",
|
|
|
3604df |
"EVENT_BRICK_CONNECTED",
|
|
|
3604df |
"EVENT_BRICKS_START_FAILED",
|
|
|
3604df |
"EVENT_BRICKPATH_RESOLVE_FAILED",
|
|
|
3604df |
-
|
|
|
3604df |
"EVENT_NOTIFY_UNKNOWN_OP",
|
|
|
3604df |
-
|
|
|
3604df |
"EVENT_QUORUM_LOST",
|
|
|
3604df |
"EVENT_QUORUM_REGAINED",
|
|
|
3604df |
"EVENT_REBALANCE_START_FAILED",
|
|
|
3604df |
@@ -79,18 +122,33 @@ keys = (
|
|
|
3604df |
"EVENT_IMPORT_BRICK_FAILED",
|
|
|
3604df |
"EVENT_COMPARE_FRIEND_VOLUME_FAILED",
|
|
|
3604df |
"EVENT_NFS_GANESHA_EXPORT_FAILED",
|
|
|
3604df |
-
|
|
|
3604df |
- "EVENT_QUOTA_ENABLE",
|
|
|
3604df |
- "EVENT_QUOTA_DISABLE",
|
|
|
3604df |
- "EVENT_QUOTA_SET_USAGE_LIMIT",
|
|
|
3604df |
- "EVENT_QUOTA_SET_OBJECTS_LIMIT",
|
|
|
3604df |
- "EVENT_QUOTA_REMOVE_USAGE_LIMIT",
|
|
|
3604df |
- "EVENT_QUOTA_REMOVE_OBJECTS_LIMIT",
|
|
|
3604df |
- "EVENT_QUOTA_ALERT_TIME",
|
|
|
3604df |
- "EVENT_QUOTA_SOFT_TIMEOUT",
|
|
|
3604df |
- "EVENT_QUOTA_HARD_TIMEOUT",
|
|
|
3604df |
- "EVENT_QUOTA_DEFAULT_SOFT_LIMIT",
|
|
|
3604df |
+ #ec events
|
|
|
3604df |
+ "EVENT_EC_DATA_BRICKS_NOT_UP",
|
|
|
3604df |
+ "EVENT_EC_DATA_BRICKS_UP",
|
|
|
3604df |
+ #georep async events
|
|
|
3604df |
+ "EVENT_GEOREP_FAULTY",
|
|
|
3604df |
+ #quota async events
|
|
|
3604df |
"EVENT_QUOTA_CROSSED_SOFT_LIMIT",
|
|
|
3604df |
+
|
|
|
3604df |
+ #bitrot async events
|
|
|
3604df |
+ "EVENT_BITROT_BAD_FILE",
|
|
|
3604df |
+ #protocol-server events
|
|
|
3604df |
+ "EVENT_CLIENT_CONNECT",
|
|
|
3604df |
+ "EVENT_CLIENT_AUTH_REJECT",
|
|
|
3604df |
+ "EVENT_CLIENT_DISCONNECT",
|
|
|
3604df |
+ #posix events
|
|
|
3604df |
+ "EVENT_POSIX_SAME_GFID",
|
|
|
3604df |
+ "EVENT_POSIX_ALREADY_PART_OF_VOLUME",
|
|
|
3604df |
+ "EVENT_POSIX_INVALID_BRICK",
|
|
|
3604df |
+ "EVENT_POSIX_BRICK_VERIFICATION_FAILED",
|
|
|
3604df |
+ "EVENT_POSIX_ACL_NOTSUP",
|
|
|
3604df |
+ "EVENT_POSIX_HEALTH_CHECK_FAILED",
|
|
|
3604df |
+ #afr events
|
|
|
3604df |
+ "EVENT_AFR_QUORUM_MET",
|
|
|
3604df |
+ "EVENT_AFR_QUORUM_FAIL",
|
|
|
3604df |
+ "EVENT_AFR_SUBVOL_UP",
|
|
|
3604df |
+ "EVENT_AFR_SUBVOLS_DOWN",
|
|
|
3604df |
+ "EVENT_AFR_SPLIT_BRAIN",
|
|
|
3604df |
)
|
|
|
3604df |
|
|
|
3604df |
LAST_EVENT = "EVENT_LAST"
|
|
|
3604df |
--
|
|
|
3604df |
1.7.1
|
|
|
3604df |
|