Fix non-relevant error messages in fm-manager.log

Bug #2027622 reported by Fabrizio Perez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Fabrizio Perez

Bug Description

Brief Description
-----------------
fm-manager.log has a log "non-relevant" error message. This prevent analysis for this file.

In fm-manager.log there are a lot of message like,
2023-03-02T14:50:40.376 fmMsgServer.cpp(508): Deleted alarm failed: (100.105) (fs_name=image-conversion) (FM_ERR_ENTITY_NOT_FOUND)
2023-03-02T14:50:40.376 fmMsgServer.cpp(511): Response to delete fault: 10

WRCP never has a image-conversion partition, so this error message is irrelevant and should not be out to the log.

Severity
--------
minor. System usable

Steps to Reproduce
------------------
tail -f /var/log/fm-manager.log

Expected Behavior
------------------
Log file just showing relevant errors

Actual Behavior
----------------
Log file is filled with these messages, doing
hard the debug task

Reproducibility
---------------
100% reproducible

System Configuration
--------------------
Not SX

Branch/Pull Time/Commit
-----------------------
Master

Timestamp/Logs
--------------

Test Activity
-------------
Build

Workaround
----------

Changed in starlingx:
status: New → In Progress
assignee: nobody → Fabrizio Perez (fperezwindriver)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fault (master)

Change abandoned by "Fabrizio Perez <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/fault/+/888328
Reason: Moved to https://review.opendev.org/c/starlingx/config/+/890168

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/890168
Committed: https://opendev.org/starlingx/config/commit/6abe5f305264137e6fdfe36475db74dec094334c
Submitter: "Zuul (22348)"
Branch: master

commit 6abe5f305264137e6fdfe36475db74dec094334c
Author: fperez <email address hidden>
Date: Mon Jul 31 20:39:25 2023 -0300

    Fix non-relevant error messages in fm-manager.log

    This commit aims to remove unnecessary messages in fm
    logs.
    With this change, the periodic task will avoid calling
    clear_fault unnecessary every time.
    This commit also removes call to clear_fault when
    image-conversion is not configured.

    Test plan:
    PASS: Build and install sysinv pkg.
          Verify that the delete errors messages are not
          present anymore.
    PASS: Check sysinv logs to verify expected behavior.

    Closes-bug: 2027622

    Signed-off-by: fperez <email address hidden>
    Change-Id: I3103bb3ea4c7cc588f4b352bbf6e0e557fda2a05

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.9.0 stx.fault
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.