meta-ibm: Use fan-monitor for fan errors
Instead of using phosphor-dbus-monitor to create errors and handle power
offs for fan errors, use phosphor-fan-monitor instead, now that it has
the functionality. To do this, add the new rules to the fan monitor
config files, and remove the phosphor-dbus-monitor fan rules files.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ia03186132f04087be76d2fd43412c37698407f60
diff --git a/meta-ibm/recipes-phosphor/dbus/fan-policy.bb b/meta-ibm/recipes-phosphor/dbus/fan-policy.bb
index f835505..59e6347 100644
--- a/meta-ibm/recipes-phosphor/dbus/fan-policy.bb
+++ b/meta-ibm/recipes-phosphor/dbus/fan-policy.bb
@@ -12,6 +12,9 @@
SRC_URI_append_ibm-ac-server = " file://water-cooled.yaml"
SRC_URI += "file://fan-errors.yaml"
+SRC_URI_remove_rainier = "file://air-cooled.yaml"
+SRC_URI_remove_rainier = "file://fan-errors.yaml"
+
do_install_append_ibm-ac-server() {
install -D ${WORKDIR}/air-cooled.yaml ${D}${config_dir}/air-cooled.yaml
install -D ${WORKDIR}/water-cooled.yaml ${D}${config_dir}/water-cooled.yaml
@@ -26,3 +29,6 @@
FILES_${PN} += "${config_dir}/air-cooled.yaml"
FILES_${PN}_append_ibm-ac-server = " ${config_dir}/water-cooled.yaml"
FILES_${PN} += "${config_dir}/fan-errors.yaml"
+
+FILES_${PN}_remove_rainier = "${config_dir}/air-cooled.yaml"
+FILES_${PN}_remove_rainier = "${config_dir}/fan-errors.yaml"
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/everest/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/everest/config.json
index 936b716..93d1bdc 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/everest/config.json
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/everest/config.json
@@ -6,6 +6,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan0_0",
@@ -23,6 +26,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan1_0",
@@ -40,6 +46,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan2_0",
@@ -57,6 +66,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan3_0",
@@ -103,5 +115,27 @@
}
]
}
- ]
+ ],
+ "fault_handling":
+ {
+ "num_nonfunc_rotors_before_error": 1,
+
+ "power_off_config":
+ [
+ {
+ "type": "hard",
+ "cause": "missing_fan_frus",
+ "count": 1,
+ "delay": 25,
+ "state": "at_pgood"
+ },
+ {
+ "type": "epow",
+ "cause": "nonfunc_fan_rotors",
+ "count": 3,
+ "service_mode_delay": 300,
+ "meltdown_delay": 300
+ }
+ ]
+ }
}
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-2u/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-2u/config.json
index 95acaa3..b15003a 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-2u/config.json
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-2u/config.json
@@ -6,6 +6,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan0_0",
@@ -25,6 +28,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan1_0",
@@ -44,6 +50,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan2_0",
@@ -63,6 +72,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan3_0",
@@ -82,6 +94,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan4_0",
@@ -101,6 +116,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan5_0",
@@ -163,5 +181,27 @@
}
]
}
- ]
+ ],
+ "fault_handling":
+ {
+ "num_nonfunc_rotors_before_error": 1,
+
+ "power_off_config":
+ [
+ {
+ "type": "hard",
+ "cause": "missing_fan_frus",
+ "count": 1,
+ "delay": 25,
+ "state": "at_pgood"
+ },
+ {
+ "type": "epow",
+ "cause": "nonfunc_fan_rotors",
+ "count": 3,
+ "service_mode_delay": 300,
+ "meltdown_delay": 300
+ }
+ ]
+ }
}
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-4u/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-4u/config.json
index ce69e20..71a4899 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-4u/config.json
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-4u/config.json
@@ -6,6 +6,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan0_0",
@@ -19,6 +22,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan1_0",
@@ -32,6 +38,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan2_0",
@@ -45,6 +54,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan3_0",
@@ -58,6 +70,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan4_0",
@@ -71,6 +86,9 @@
"allowed_out_of_range_time": 30,
"deviation": 15,
"num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "monitor_start_delay": 30,
+ "fan_missing_error_delay": 20,
+ "nonfunc_rotor_error_delay": 0,
"sensors": [
{
"name": "fan5_0",
@@ -78,5 +96,27 @@
}
]
}
- ]
+ ],
+ "fault_handling":
+ {
+ "num_nonfunc_rotors_before_error": 1,
+
+ "power_off_config":
+ [
+ {
+ "type": "hard",
+ "cause": "missing_fan_frus",
+ "count": 1,
+ "delay": 25,
+ "state": "at_pgood"
+ },
+ {
+ "type": "epow",
+ "cause": "nonfunc_fan_rotors",
+ "count": 2,
+ "service_mode_delay": 300,
+ "meltdown_delay": 300
+ }
+ ]
+ }
}