clear_fault in FaultAPIsV2 throw exception when clear non-exist alarm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Lin Shuicheng |
Bug Description
Brief Description
-----------------
I call clear_fault against an alarmID/entity path that there is no alarm raised for but instead of just returning False or None ; it generates an exception.
Severity
--------
Provide the severity of the defect.
Minor
Steps to Reproduce
------------------
Write a script to use clear_fault API in FaultAPIsV2, and call it with an alarmID/entity path that there is no alarm.
Expected Behavior
------------------
API should return None or False. Exception should be raised only if there is operaion failure (e.g. because the API can’t connect to fmmanager).
Actual Behavior
----------------
Exception is raised.
Reproducibility
---------------
<Reproducible/
100%
System Configuration
-------
Standard configuration.
Branch/Pull Time/Commit
-------
Branch and the time when code was pulled or git commit
Timestamp/Logs
--------------
Changed in starlingx: | |
status: | New → Confirmed |
assignee: | nobody → Lin Shuicheng (shuicheng) |
tags: | added: stx.2019.05 stx.fault |
tags: |
added: stx.2.0 removed: stx.2019.05 |
Marking as release gating; related to SB: https:/ /storyboard. openstack. org/#!/ story/2004859 which provides a new API for FM