[fan]fix error message "set_status_led not implemented" when remove & insert fan module#5
Conversation
… insert fan module error log: admin@sonic:~$ show logging | grep fan 2093 Jun 3 05:32:14.838190 sonic WARNING pmon#thermalctld: Failed to set status LED for fan FAN-2, set_status_led not implemented 2093 Jun 3 05:32:14.886358 sonic WARNING pmon#thermalctld: Insufficient number of working fans warning: 1 fan is not working 2093 Jun 3 05:33:14.834687 sonic WARNING pmon#thermalctld: Failed to set status LED for fan FAN-2, set_status_led not implemented 2093 Jun 3 05:33:14.859477 sonic NOTICE pmon#thermalctld: Insufficient number of working fans warning cleared: all fans are back to fixed log: admin@sonic:~$ show logging | grep fan 2093 Jun 3 02:14:14.504012 sonic INFO kernel: [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 2093 Jun 3 02:25:17.814472 sonic WARNING pmon#thermalctld: Insufficient number of working fans warning: 1 fan is not working 2093 Jun 3 02:26:17.802666 sonic NOTICE pmon#thermalctld: Insufficient number of working fans warning cleared: all fans are back to normal
otiswistron
left a comment
There was a problem hiding this comment.
update original error log :
root@sonic:/home/admin# show logging | grep fan
2025-07-29T01:01:11.858498+00:00 sonic kernel: [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
2025-07-29T01:01:11.858498+00:00 sonic kernel: [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
Jul 29 01:04:22.994587 sonic ERR snmp#snmp-subagent [ax_interface] ERROR: MIBUpdater.start() caught an unexpected exception during update_data()#012Traceback (most recent call last):sonic-net#12 File "/usr/local/lib/python3.9/dist-packages/ax_interface/mib.py", line 43, in start#012 self.update_data()sonic-net#12 File "/usr/local/lib/python3.9/dist-packages/sonic_ax_impl/mibs/ietf/rfc2737.py", line 326, in update_data#012 updater.update_data(i, self.statedb[i])sonic-net#12 File "/usr/local/lib/python3.9/dist-packages/sonic_ax_impl/mibs/ietf/rfc2737.py", line 666, in update_data#012 self._update_per_namespace_data(self.pub_sub_dict[db_index])sonic-net#12 File "/usr/local/lib/python3.9/dist-packages/sonic_ax_impl/mibs/ietf/rfc2737.py", line 689, in _update_per_namespace_data#012 self._update_entity_cache(name)sonic-net#12 File "/usr/local/lib/python3.9/dist-packages/sonic_ax_impl/mibs/ietf/rfc2737.py", line 957, in _update_entity_cache#012 fan_position = int(fan_position)#012ValueError: invalid literal for int() with base 10: ''
Jul 29 01:04:23.698153 sonic WARNING pmon#thermalctld: Failed to set status LED for fan FAN-1, set_status_led not implemented
Jul 29 01:04:23.704373 sonic WARNING pmon#thermalctld: Failed to set status LED for fan FAN-2, set_status_led not implemented
error log:
admin@sonic:~$ show logging | grep fan
2093 Jun 3 05:32:14.838190 sonic WARNING pmon#thermalctld: Failed to set status LED for fan FAN-2, set_status_led not implemented 2093 Jun 3 05:32:14.886358 sonic WARNING pmon#thermalctld: Insufficient number of working fans warning: 1 fan is not working 2093 Jun 3 05:33:14.834687 sonic WARNING pmon#thermalctld: Failed to set status LED for fan FAN-2, set_status_led not implemented 2093 Jun 3 05:33:14.859477 sonic NOTICE pmon#thermalctld: Insufficient number of working fans warning cleared: all fans are back to
fixed log:
admin@sonic:~$ show logging | grep fan
2093 Jun 3 02:14:14.504012 sonic INFO kernel: [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
2093 Jun 3 02:25:17.814472 sonic WARNING pmon#thermalctld: Insufficient number of working fans warning: 1 fan is not working
2093 Jun 3 02:26:17.802666 sonic NOTICE pmon#thermalctld: Insufficient number of working fans warning cleared: all fans are back to normal