Skip to content

Commit 93f3cad

Browse files
Revert "Event and alarm management (#17949)" (#20052)
This reverts commit 10f0fe8.
1 parent 66e141b commit 93f3cad

24 files changed

+10
-1866
lines changed

dockers/docker-database/database_config.json.j2

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@
130130
"instance" : {% if include_remote_db %} "remote_redis" {% else %} "redis" {% endif %}
131131
}
132132
{% endif %}
133-
,
134-
"EVENT_DB" : {
135-
"id" : 19,
136-
"separator": "|",
137-
"instance" : "redis"
138-
}
139133
},
140134
"VERSION" : "1.0"
141135
}

dockers/docker-eventd/supervisord.conf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,3 @@ stderr_logfile=syslog
5050
dependent_startup=true
5151
dependent_startup_wait_for=start:exited
5252

53-
[program:eventdb]
54-
command=/usr/bin/eventdb
55-
priority=3
56-
autostart=false
57-
autorestart=false
58-
stdout_logfile=syslog
59-
stderr_logfile=syslog
60-
dependent_startup=true
61-
dependent_startup_wait_for=start:exited
62-

files/build_templates/docker_image_ctl.j2

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,9 @@ function preStartAction()
9191
# Load redis content from /host/warmboot/dump.rdb
9292
docker cp $WARM_DIR/dump.rdb database$DEV:/var/lib/redis/dump.rdb
9393
else
94-
COLD_DIR=/host/coldboot
95-
#In case of cold reboot, load redis content from /host/coldboot/dump.rdb
96-
if [[ -f $COLD_DIR/dump.rdb ]]; then
97-
#Load redis content from /host/coldboot/dump.rdb
98-
docker cp $COLD_DIR/dump.rdb database$DEV:/var/lib/redis/dump.rdb
99-
else
100-
# Create an emtpy file and overwrite any RDB if already there
101-
echo -n > /tmp/dump.rdb
102-
docker cp /tmp/dump.rdb database$DEV:/var/lib/redis/
103-
fi
94+
# Create an emtpy file and overwrite any RDB if already there
95+
echo -n > /tmp/dump.rdb
96+
docker cp /tmp/dump.rdb database$DEV:/var/lib/redis/
10497
fi
10598
fi
10699
{%- elif docker_container_name == "pde" %}

src/sonic-eventd/Makefile

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
RM := rm -rf
22
EVENTD_TARGET := eventd
33
EVENTD_TEST := tests/tests
4-
EVENTDB_TEST := tests/eventdb
54
EVENTD_TOOL := tools/events_tool
65
EVENTD_PUBLISH_TOOL := tools/events_publish_tool.py
76
RSYSLOG-PLUGIN_TARGET := rsyslog_plugin/rsyslog_plugin
87
RSYSLOG-PLUGIN_TEST := rsyslog_plugin_tests/tests
98
EVENTD_MONIT := tools/events_monit_test.py
109
EVENTD_MONIT_CONF := tools/monit_events
11-
EVENTDB_TARGET := eventdb
12-
EVENTDB_DEFAULT_PROFILE := var/evprofile/default.json
13-
EVENTDB_PROF := etc/eventd.json
1410

1511
CP := cp
1612
MKDIR := mkdir
@@ -23,7 +19,7 @@ PWD := $(shell pwd)
2319

2420
ifneq ($(MAKECMDGOALS),clean)
2521
ifneq ($(strip $(C_DEPS)),)
26-
-include $(C_DEPS) $(OBJS) $(EVENTDB_OBJS)
22+
-include $(C_DEPS) $(OBJS)
2723
endif
2824
endif
2925

@@ -35,11 +31,10 @@ endif
3531

3632
all: sonic-eventd eventd-tests eventd-tool rsyslog-plugin rsyslog-plugin-tests
3733

38-
sonic-eventd: $(OBJS) $(EVENTDB_OBJS)
34+
sonic-eventd: $(OBJS)
3935
@echo 'Building target: $@'
4036
@echo 'Invoking: G++ Linker'
4137
$(CC) $(LDFLAGS) -o $(EVENTD_TARGET) $(OBJS) $(LIBS)
42-
$(CC) $(LDFLAGS) -o $(EVENTDB_TARGET) $(EVENTDB_OBJS) $(LIBS)
4338
@echo 'Finished building target: $@'
4439
@echo ' '
4540

@@ -57,14 +52,12 @@ rsyslog-plugin: $(RSYSLOG-PLUGIN_OBJS)
5752
@echo 'Finished building target: $@'
5853
@echo ' '
5954

60-
eventd-tests: $(TEST_OBJS) $(EVENTDB_TEST_OBJS)
55+
eventd-tests: $(TEST_OBJS)
6156
@echo 'Building target: $@'
6257
@echo 'Invoking: G++ Linker'
6358
$(CC) $(LDFLAGS) -o $(EVENTD_TEST) $(TEST_OBJS) $(LIBS) $(TEST_LIBS)
64-
$(CC) $(LDFLAGS) -o $(EVENTDB_TEST) $(EVENTDB_TEST_OBJS) $(LIBS) $(TEST_LIBS)
6559
@echo 'Finished building target: $@'
6660
$(EVENTD_TEST)
67-
$(EVENTDB_TEST)
6861
@echo 'Finished running tests'
6962
@echo ' '
7063

@@ -80,16 +73,12 @@ rsyslog-plugin-tests: $(RSYSLOG-PLUGIN-TEST_OBJS)
8073
install:
8174
$(MKDIR) -p $(DESTDIR)/usr/bin
8275
$(MKDIR) -p $(DESTDIR)/etc/monit/conf.d
83-
$(MKDIR) -p $(DESTDIR)/etc/evprofile
8476
$(CP) $(EVENTD_TARGET) $(DESTDIR)/usr/bin
8577
$(CP) $(EVENTD_TOOL) $(DESTDIR)/usr/bin
8678
$(CP) $(EVENTD_PUBLISH_TOOL) $(DESTDIR)/usr/bin
8779
$(CP) $(RSYSLOG-PLUGIN_TARGET) $(DESTDIR)/usr/bin
8880
$(CP) $(EVENTD_MONIT) $(DESTDIR)/usr/bin
8981
$(CP) $(EVENTD_MONIT_CONF) $(DESTDIR)/etc/monit/conf.d
90-
$(CP) $(EVENTDB_TARGET) $(DESTDIR)/usr/bin
91-
$(CP) $(EVENTDB_PROF) $(DESTDIR)/etc/eventd.json
92-
$(CP) $(EVENTDB_DEFAULT_PROFILE) $(DESTDIR)/etc/evprofile/default.json
9382

9483
deinstall:
9584
$(RM) -rf $(DESTDIR)/usr
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
usr/bin/eventd
2-
usr/bin/eventdb
32
usr/bin/events_tool
43
usr/bin/events_publish_tool.py
5-
etc/evprofile/default.json
6-
etc/eventd.json

src/sonic-eventd/etc/eventd.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)