summaryrefslogtreecommitdiffstats
path: root/meta-ibm
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-10-05 16:17:25 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-01-13 02:50:39 +0000
commit0cab252232a2b1f70263a50e250a63b7edde5ffa (patch)
tree82b19aa4451d902655d05e376c6edb188805c8a9 /meta-ibm
parent4f9d75a75a569122f123d862098ad33a0e8aaf27 (diff)
downloadtalos-openbmc-0cab252232a2b1f70263a50e250a63b7edde5ffa.tar.gz
talos-openbmc-0cab252232a2b1f70263a50e250a63b7edde5ffa.zip
wspoon: Remove fan1 on water cooled only
Fan1 is not required on water cooled Witherspoons, therefore it should be removed from inventory and let the corresponding fan applications recreate their associated inventory interfaces/properties for the fan1 object. Previously, fan1 was removed by inventory manager whenever it was restarted regardless of whether the Witherspoon was water or air cooled. This change updates inventory manager to be capable of reading a property that it hosts and using it as a filter on performing an action. In the case of water cooled Witherspoons, the `WaterCooled` property hosted by inventory manager is read as a filter to have inventory manager destroy all the fan1 objects. This will only remove the fan1 inventory objects on water cooled Witherspoons now. Requires: pim: 979eb591652fba30f86ec5b7f5c5f73c06651c70 (From meta-ibm rev: 7f347377c2ce38e03154e712f8490839b5d344ef) Change-Id: I26d6c645bb80e8fee20c3d254d9d4089665e37a6 Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-ibm')
-rw-r--r--meta-ibm/meta-witherspoon/recipes-phosphor/inventory/inventory-cleanup/inventory-cleanup.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/inventory/inventory-cleanup/inventory-cleanup.yaml b/meta-ibm/meta-witherspoon/recipes-phosphor/inventory/inventory-cleanup/inventory-cleanup.yaml
index 01632e6d8..cce8c9dcc 100644
--- a/meta-ibm/meta-witherspoon/recipes-phosphor/inventory/inventory-cleanup/inventory-cleanup.yaml
+++ b/meta-ibm/meta-witherspoon/recipes-phosphor/inventory/inventory-cleanup/inventory-cleanup.yaml
@@ -19,6 +19,17 @@ events:
Remove all fan1 associated objects and have fan presence and
fan monitor create it based on cooling type.
type: startup
+ filters:
+ - name: propertyIs
+ service: xyz.openbmc_project.Inventory.Manager
+ path: /system/chassis
+ interface: xyz.openbmc_project.Inventory.Decorator.CoolingType
+ property: WaterCooled
+ value:
+ value: true
+ type: boolean
+ dbusMember: "sdbusplus::xyz::openbmc_project::Inventory::\
+ Decorator::server::CoolingType"
actions:
- name: destroyObjects
paths:
OpenPOWER on IntegriCloud