summaryrefslogtreecommitdiffstats
path: root/elog_entry.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Add the BMC code version to error logsMatt Spinler2018-05-011-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Add the xyz.openbmc_project.Software.Version interface to the elog entries. This allows a user to know what BMC code level was running when the error was created. The level is persisted along with the other elog fields. If this code is flashed on a system that was running older code, and there were existing error logs, the version property will be left empty in the restored log entries. Older code is still able to restore logs created by this code as the version property is at the end of the serialized data and so is just ignored by Cereal. Resolves openbmc/openbmc#3133 Tested: Check that new error logs have the code level, and that restarting phosphor-log-manager preserves that property on the existing logs. Various incantations of running the older code with logs created by this code, and running this code with logs created by older code. Change-Id: I682aa3bf97c8352ce6dda05dfdf55d33173de891 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Handle more than 100 error logsNagaraju Goruganti2017-10-241-0/+7
| | | | | | | | | | | Added new Cap for info(and below) severity errors, if cap size reaches, next commited error of severity:info(and below) will replace the first entry of severity:info(and below). Resolves openbmc/openbmc#2381 Change-Id: I2e56c28a934bf3139e57b36d252bd5ad3e1dd90f Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Add implementation for delete all error log entries in one shotNagaraju Goruganti2017-09-131-3/+6
| | | | | | | Resolves openbmc/openbmc#1561. Change-Id: Iac5aaee1bdf9b87ccce9bf8801468ac5a8f9be6c Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Persist changes to 'Resolved' propertyDeepak Kodihalli2017-06-261-9/+3
| | | | | | | | When an error is marked resolved, serialize and persist the changed 'Resolved' property. Change-Id: I922af84cbb826e1e43a0f0c99740868222ccb1fe Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Persist error d-bus objectsDeepak Kodihalli2017-06-261-0/+20
| | | | | | | | | | | | Use Cereal to implement serialization and de-serialization of properties of error d-bus objects. Serialize and persist error d-bus objects as they are put on the bus. De-serialize and restore them (if persistent ones exist) when phosphor-log-manager starts up. Change-Id: I1f5df1abbe74bfdb86e3e82a78ff7115e90e2112 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* entry: store parent referenceDeepak Kodihalli2017-04-111-2/+10
| | | | | | | | Have the entry object store a reference to the error manager, passed via the entry ctor. Change-Id: I2c4a8c4c95929ab7005620f44ac17e9654d8e906 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* entry: implement xyz.openbmc_project.Object.DeleteDeepak Kodihalli2017-04-111-0/+6
| | | | | | | | | Implement xyz.openbmc_project.Object.Delete to delete an entry object. Resolves openbmc/openbmc#1327. Change-Id: I265c26fb9434d0d4cb066fbfa85729782318bd8f Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Entry: implement setting 'Resolved' propertyDeepak Kodihalli2017-03-311-0/+15
| | | | | | | | | | When an error is marked resolved, delete error associations, if any. When an error is marked un-resolved, re-create error associations, if there were any. Change-Id: I49acd2b6f01810e3b19e3fddbc716eb539fc20c0 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Entry: store associationsDeepak Kodihalli2017-03-311-0/+5
| | | | | | | | Store a copy of the entry object's associations, in case we need to recreate them, for example when marking an error as unresolved. Change-Id: I50001365211325505ed3a72b19a46b1438cc9731 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Entry: default 'Resolved' propertyDeepak Kodihalli2017-03-291-0/+1
| | | | | | | Set the 'Resolved' property of an error as 'false' by default. Change-Id: I0618e1f6ca2f74ce3d06aef9572becfcd78d9b60 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Entry ctor: accept associationsDeepak Kodihalli2017-03-151-1/+6
| | | | | | | | | Pass a list of associations to the Entry ctor. This enables to create associations between the error object and other objects, if such associations exist. Change-Id: I88a517efc0ead0a62b2e6558822d94b8fc1c6070 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Entry: implement org.openbmc.Associations APIDeepak Kodihalli2017-03-151-13/+8
| | | | | | | | Have the Entry object implement the org.openbmc.Associations DBus API in order to add inventory callouts to errors. Change-Id: I9c645c90e3de4601cdbb020b591f5da24c733613 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Populate Timestamp when error entry is committedAdriana Kobylak2017-02-151-1/+7
| | | | | | | | | Populate the Entry Timestamp property which is described as the time when the error log entry is committed in milliseconds since 1970. Change-Id: Id47fb974cf8220975eef0cc226581d0603a798a9 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Entry: Populate propertiesAdriana Kobylak2017-02-141-2/+21
| | | | | | | | Create an Entry dbus object when Commit is called and fill in its properties with the journal data. Change-Id: I155cacbdfdccfa8b1f594503d858710fa71f2026 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Entry: Setup constructorAdriana Kobylak2017-01-301-6/+6
| | | | | | | | | Persist the log manager dbus bus and create a vector of Entry instances to store the Entry dbus objects as they get created. Change-Id: I4add43c4ce6795b6ec6c041e41cd7455d34b3b6b Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* logging: Create Entry dbus interfaceAdriana Kobylak2017-01-301-0/+46
Implement the generated code to create an error/event entry dbus object. Change-Id: I881636fe3e8de680d9a15fff1fe933d5e22eed06 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
OpenPOWER on IntegriCloud