History log of /openbmc/bmcweb/features/redfish/include/event_service_manager.hpp (Results 151 – 163 of 163)
Revision Date Author Comments
# b792cc56 14-Jun-2020 AppaRao Puli <apparao.puli@linux.intel.com>

EventService: Add inotify on dir for event log

Redfish event log file (/var/log/redfish) may or may not
exist while starting bmcweb. Also when event logs are cleared
this file will be removed and rs

EventService: Add inotify on dir for event log

Redfish event log file (/var/log/redfish) may or may not
exist while starting bmcweb. Also when event logs are cleared
this file will be removed and rsync service will create
it again.
To handle above cases, Added inotify on /var/log/ directory.
This directory watch will handle create/delete of log file
and add/remove watch on event log file.

Tested:
- Removed event log file, re-started the bmcweb and
did Ac cycle. Works fine.
- Started bmcweb with existing event log file.
- Verified the functionality by doing removal(clear event log)
and creation of redfish event log file during run time.

Change-Id: I6a6c48cf4a410ed6f11d73dae8484d4c21d01e37
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


# 7f4eb588 13-Jun-2020 AppaRao Puli <apparao.puli@linux.intel.com>

Revert "Revert "EventService: Add event log support with inotify""

This reverts commit 29d2a95ba12f8b5abed040df7fd59790d6ba2517.
Enable EventService back by fixing issue with
not having '/var/log/re

Revert "Revert "EventService: Add event log support with inotify""

This reverts commit 29d2a95ba12f8b5abed040df7fd59790d6ba2517.
Enable EventService back by fixing issue with
not having '/var/log/redfish' file.

Fix is at: https://gerrit.openbmc-project.xyz/#/c/openbmc/bmcweb/+/33639/

Tested:
- Along with above mentioned change, removed
'/var/log/redfish' file and restarted bmcweb. It works.

Change-Id: Ia908bbdf5b9a643afee212a526074f62372208dc
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


# 1214b7e7 04-Jun-2020 Gunnar Mills <gmills@us.ibm.com>

clang-format: update to latest from docs repo

This is from openbmc/docs/style/cpp/.clang-format

Other OpenBMC repos are doing the same.

Tested: Built and validator passed.
Change-Id: Ief26c755c9ce

clang-format: update to latest from docs repo

This is from openbmc/docs/style/cpp/.clang-format

Other OpenBMC repos are doing the same.

Tested: Built and validator passed.
Change-Id: Ief26c755c9ce012823e16a506342b0547a53517a
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# 29d2a95b 10-Jun-2020 James Feist <james.feist@linux.intel.com>

Revert "EventService: Add event log support with inotify"

This reverts commit e9a14131650d30389eaf9dc38a3c32f1cb552f52.

Reason for revert: if /var/log/redfish does not exist this
causes bmcweb to c

Revert "EventService: Add event log support with inotify"

This reverts commit e9a14131650d30389eaf9dc38a3c32f1cb552f52.

Reason for revert: if /var/log/redfish does not exist this
causes bmcweb to crash on start

Fixes #126

Change-Id: If6ba4717a32d4cd72aa92a9bc9c696d5813b5cac
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...


# fb4fd5d4 04-Jun-2020 Zhenfei Tai <ztai@google.com>

bmcweb: Replace deprecated boost::asio::io_service

bmcweb will not build when boost library is version 1.71.0.
Also fix code format.

In CMakeLists.txt
271 if ("${Boost_VERSION}" STREQUAL "107100")

bmcweb: Replace deprecated boost::asio::io_service

bmcweb will not build when boost library is version 1.71.0.
Also fix code format.

In CMakeLists.txt
271 if ("${Boost_VERSION}" STREQUAL "107100")
272 add_definitions (-DBOOST_ASIO_NO_DEPRECATED)
273 endif ()

Signed-off-by: Zhenfei Tai <ztai@google.com>
Change-Id: I4ebbf3cfcfd767ea016b4efd19704d25b845f86c

show more ...


# 1bf712bc 13-May-2020 Ayushi Smriti <smriti.ayushi@linux.intel.com>

EventService:persistent config & subscription info

This commit is to persist EventService configuration and subscription
information across the bmcweb service restart or bmc reboot by
reading/writin

EventService:persistent config & subscription info

This commit is to persist EventService configuration and subscription
information across the bmcweb service restart or bmc reboot by
reading/writing config store data to the json file
(location: /var/lib/bmcweb/eventservice_config.json) and loads this
while initializing bmcweb EventService.

URI's:
/redfish/v1/EventService
/redfish/v1/EventService/Subscriptions
/redfish/v1/EventService/Subscriptions/<id>

Tested:
- Validated initialization and reading of config and subscription info
from persist store.
- Validated updation and writing of config and subscription info to the
persist store:
- Added new subscription using POST and validated using GET.
- Validated delete subscription.
- Validated subscription list is persistent after multiple bmc reboots
- Verified by GET req on subscription collection and getting
specific subscription id's.
- Ran redfish validator successfully
- Created some subscriptions
- Rebooted BMC
- Previous subscriptions were intact
- Ran validator and verified.

Change-Id: I9f044887b0c5b7559be58a6564b04585dc384be2
Signed-off-by: Ayushi Smriti <smriti.ayushi@linux.intel.com>
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


# 7d1cc387 15-May-2020 AppaRao Puli <apparao.puli@linux.intel.com>

EventService: Add enable/disable support

Add EventService enable/disable support.
When EventService is enabled
- Check for no of event log subscribers and then
only process events async sending.

EventService: Add enable/disable support

Add EventService enable/disable support.
When EventService is enabled
- Check for no of event log subscribers and then
only process events async sending.
- Check for no of metric report subscribers
and register for metric report signal.
When EventService is disabled
- Discard the inotify event for redfish logs.
- Unregister the metric report signal.

Tested:
- Modified ServieEnabled, DeliveryRetryAttempts,
DeliveryRetryInterval values using patch and
it reflects on subsequent gets.
- Above mentioned functionality tested with Service
enabled & disabled modifications.
- Ran redfish validator successfully.

Change-Id: Id049860a89d3040d859ac8907e7bad5b4209b73d
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


# ab41ea10 15-May-2020 AppaRao Puli <apparao.puli@linux.intel.com>

Conditional build issue fix

When BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES is set to
"ON", bmcweb build is failing. This flag is set to ON
for some OEM and causing build failures. Corrected the
placeme

Conditional build issue fix

When BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES is set to
"ON", bmcweb build is failing. This flag is set to ON
for some OEM and causing build failures. Corrected the
placement of #endif.

Tested:
Set the BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES compile
flag to "ON" and build is successful.

Change-Id: I88b3b40d0a22600c0f592219f8b7b976e7e6c5f5
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


# 156d6b00 24-Apr-2020 AppaRao Puli <apparao.puli@linux.intel.com>

EventService: Add MetricReport support

Add Telemetry metric report support to EventService.
- Adding MetricReport support to schema implemenation.
- Dynamically register and unregister the metric

EventService: Add MetricReport support

Add Telemetry metric report support to EventService.
- Adding MetricReport support to schema implemenation.
- Dynamically register and unregister the metric report
signal.
- Reads Telemtry data using D-Bus calls.
- Filter the metric reports depending on user configured
MetricReportDefinition.
- Format the Telemetry readings as per MetricReport schema.
- Send the formatted data to the client.

Tested:
- HTTP client successfully received asynchronous metric
reports data.
- valdiated the register and unregister by adding and
deleting subscriptions.
- Ran Redfish validator successfully.

Change-Id: I7b59ac3ecad169a7959a800730dbc2fe85baf068
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


# e9a14131 09-Apr-2020 AppaRao Puli <apparao.puli@linux.intel.com>

EventService: Add event log support with inotify

Add event logs support
- Event log monitor by adding inotify on redfish log file.
- Read event logs from "/var/log/redfish" file.
- Filter the eve

EventService: Add event log support with inotify

Add event logs support
- Event log monitor by adding inotify on redfish log file.
- Read event logs from "/var/log/redfish" file.
- Filter the event logs using configured settings.
- Format the event log data as per Events schema.
- Send event log information to subcribed client.

Tested:
- Added new event log subscription with filters
and verified the event logs on event listener.
- Ran redfish validater successfully.
- Disabled BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES
and build successful.

Event on listener looks as below:
{
"@odata.type":"#Event.v1_4_0.Event",
"Events":[
{
"Context":"CustomText",
"EventId":"94787",
"EventTimestamp":"1970-01-02T02:19:47+00:00",
"EventType":"Event",
"Message":"Memory ThermTrip asserted: .",
"MessageArgs":[
""
],
"MessageId":"OpenBMC.0.1.MemoryThermTrip",
"Severity":"Critical"
}
],
"Id":"3",
"Name":"Event Log"
}

Change-Id: Ie87322ff59f9f7caa26fb18d2e3b8d7af77ec540
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


# 0b4bdd93 14-Apr-2020 AppaRao Puli <apparao.puli@linux.intel.com>

EventService: SubmitTestEvent initial support

This commit adds SubmitTestEvent initial support to
send out test events to subscribers.

URI:
/redfish/v1/EventService/Actions/EventService.SubmitTestE

EventService: SubmitTestEvent initial support

This commit adds SubmitTestEvent initial support to
send out test events to subscribers.

URI:
/redfish/v1/EventService/Actions/EventService.SubmitTestEvent

Tested:
- Client subscribed to event listener via destination uri.
After sending POST request on SubmitTestEvent uri, could see
generated test event.
- Successfully ran the redfish validator.
Counter({'metadataNamespaces': 1739, 'pass': 26,
'skipOptional': 22, 'serviceNamespaces': 3, 'passGet': 3,
'passAction': 1})
Validation has succeeded.

Change-Id: I16e02c1977e99af39317070567196767ac7c7400
Signed-off-by: Ayushi Smriti <smriti.ayushi@linux.intel.com>

show more ...


# 2a5689a7 29-Apr-2020 AppaRao Puli <apparao.puli@linux.intel.com>

EventService: Queuing the request data and retry

Add support to queue the request event data.
Maintaining the proper state of connection and
retry for appropriate action depending on state.
If max r

EventService: Queuing the request data and retry

Add support to queue the request event data.
Maintaining the proper state of connection and
retry for appropriate action depending on state.
If max retries are reached then suspend the retries.
Need to add async timeout between retries and take
action as configured 'DeliveryRetryPolicy' by user.

Tested:
- Using Telemetry reports, streamed data to validate
the queue by stopping listener.
- Verified the retry logic.
- Verfiied the appropriate action depending failed
state of connection.

Change-Id: Idd562cd512897625bf7b0d9a376207db5cb8642f
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


# b52664e2 09-Apr-2020 AppaRao Puli <apparao.puli@linux.intel.com>

EventService: Manager and subscriptions support

Add EventService Manager which will manage all the
EventService configuration and subscriptions. This
includes API for add or update or delete subscri

EventService: Manager and subscriptions support

Add EventService Manager which will manage all the
EventService configuration and subscriptions. This
includes API for add or update or delete subscriptions
along with other supported API support. Also includes
http connection open and send event code using
"push style eventing".
Added BMCWEB_INSECURE_HTTP_PUSH_STYLE_EVENTING
build flag to enable/disable http push style eventing
which is not a secure channel.

Tested:
- Tested along with other patches such as http
client and Event log support, SubmitTestEvent
and its works.
- Ran Redfish validation successfully.

Change-Id: Ie4687e4cbfabd525b7a8ad4e615510f034edc6e9
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>

show more ...


1234567