e881852b | 04-Nov-2019 |
James Feist <james.feist@linux.intel.com> |
Add drive logging
This adds logging for drive failures and inventory changes.
Tested:
{ "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry", "@odata.id": "/
Add drive logging
This adds logging for drive failures and inventory changes.
Tested:
{ "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry", "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1565674864_1", "@odata.type": "#LogEntry.v1_4_0.LogEntry", "Created": "2019-08-13T05:41:04+00:00", "EntryType": "Event", "Id": "1565674864_1", "Message": "Drive 2 with serial number N/A was installed.", "MessageArgs": [ "Drive", "2", "N/A" ], "MessageId": "OpenBMC.0.1.InventoryAdded", "Name": "System Event Log Entry", "Severity": "OK" }, { "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry", "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1565674987", "@odata.type": "#LogEntry.v1_4_0.LogEntry", "Created": "2019-08-13T05:43:07+00:00", "EntryType": "Event", "Id": "1565674987", "Message": "Drive Error Occurred: Drive 1.", "MessageArgs": [ "Drive 1" ], "MessageId": "OpenBMC.0.1.DriveError", "Name": "System Event Log Entry", "Severity": "Warning" }
Change-Id: Ia23e6f48b753cbeb36c3176c39a28f687ad7061c Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
42b49c17 | 29-Oct-2019 |
James Feist <james.feist@linux.intel.com> |
Update status in Redfish
Create associations when failed to change the status to Warning.
Tested:
{ "@odata.context": "/redfish/v1/$metadata#Drive.Drive", "@odata.id": "/redfish/v1/Systems
Update status in Redfish
Create associations when failed to change the status to Warning.
Tested:
{ "@odata.context": "/redfish/v1/$metadata#Drive.Drive", "@odata.id": "/redfish/v1/Systems/system/Storage/1/Drive/Drive_1", "@odata.type": "#Drive.v1_7_0.Drive", "Status": { "Health": "Warning", "HealthRollup": "Warning", "State": "Enabled" } }
Change-Id: I3e5f87dc1253e8f24396a924e79d5474b0e5754a Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
9f6565db | 09-Oct-2019 |
James Feist <james.feist@linux.intel.com> |
Handle power state changes
We need to check if power is on as the hsbp goes away during power off. This copies the power logic from dbus-sensors and uses it to avoid scanning when power is off.
Tes
Handle power state changes
We need to check if power is on as the hsbp goes away during power off. This copies the power logic from dbus-sensors and uses it to avoid scanning when power is off.
Tested: Warnings go away
Change-Id: Ie949e7a98eb70592318710f3eecdfe766f71f110 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
09dd2314 | 09-Oct-2019 |
James Feist <james.feist@linux.intel.com> |
Add LED hooks to hsbp manager
This adds the led group interface so that they can be activiated by NVMe daemon.
Tested: Set using dbus, went and saw drive flashing
Change-Id: I2e1aa3f9338609370d975
Add LED hooks to hsbp manager
This adds the led group interface so that they can be activiated by NVMe daemon.
Tested: Set using dbus, went and saw drive flashing
Change-Id: I2e1aa3f9338609370d9758a7c4874428dac5d4ea Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
0b236ab8 | 02-Oct-2019 |
James Feist <james.feist@linux.intel.com> |
Create associations for drives with inventory
This creates associations so that redfish can know which drives map to which configuration items.
Tested:
root@intel-obmc:~# busctl introspect xyz.ope
Create associations for drives with inventory
This creates associations so that redfish can know which drives map to which configuration items.
Tested:
root@intel-obmc:~# busctl introspect xyz.openbmc_project.HsbpManager /xyz/openbmc_project/inventory/item/drive/Drive_2 --no-pager NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.Association.Definitions interface - - - .Associations property a(sss) 1 "inventory" "drive" "/xyz/openbmc_p... emits-change xyz.openbmc_project.Inventory.Item interface - - - .Present property b true emits-change .PrettyName property s "Drive 2" emits-change xyz.openbmc_project.State.Decorator.OperationalStatus interface - - - .Functional property b true emits-change xyz.openbmc_project.State.Drive interface - - - .Rebuilding property b false emits-change
Also show up in mapper
Change-Id: Ia050316ac55faa89aad86567c93f9a74594e9180 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|