| [ |
| { |
| // Hold fans at the given target when a number of fans are missing. |
| "name": "fan(s) missing", |
| "groups": [ |
| { |
| "name": "fan inventory", |
| "interface": "xyz.openbmc_project.Inventory.Item", |
| "property": { "name": "Present" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "count_state_before_target", |
| "count": 1, |
| "state": false, |
| "target": 10000 |
| } |
| ] |
| }, |
| { |
| // Hold fans at the given target when a number of rotors are nonfunctional. |
| "name": "fan rotor(s) faulted", |
| "groups": [ |
| { |
| "name": "fan0 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "fan1 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "fan2 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "fan3 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "fan4 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "fan5 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "count_state_before_target", |
| "count": 1, |
| "state": false, |
| "target": 10000 |
| } |
| ] |
| }, |
| { |
| // Hold fans at the given target when any critical service |
| // is not running for 5 seconds. |
| "name": "service(s) missing", |
| "groups": [ |
| { |
| "name": "fan inventory", |
| "interface": "xyz.openbmc_project.Inventory.Item", |
| "property": { "name": "Present" } |
| }, |
| { |
| "name": "occ objects", |
| "interface": "org.open_power.OCC.Status", |
| "property": { "name": "OccActive" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "name_has_owner" |
| }, |
| { |
| "class": "signal", |
| "signal": "name_owner_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "call_actions_based_on_timer", |
| "timer": { |
| "interval": 5000000, |
| "type": "oneshot" |
| }, |
| "actions": [ |
| { |
| "name": "set_target_on_missing_owner", |
| "groups": [ |
| { |
| "name": "fan inventory", |
| "interface": "xyz.openbmc_project.Inventory.Item", |
| "property": { "name": "Present" } |
| }, |
| { |
| "name": "occ objects", |
| "interface": "org.open_power.OCC.Status", |
| "property": { "name": "OccActive" } |
| } |
| ], |
| "target": 10000 |
| } |
| ] |
| } |
| ] |
| } |
| ] |