Create 900.023 and 900.024 USM alarms

These new alarms are the USM version of the legacy patching and
upgrading alarms below:

900.001 (Patch in progress) 900.005 (Upgrade in progress):
USM Counterpart 900.023 (Software release deploy in progress)

900.003 (Obsolete patch in system):
USM Counterpart 900.024 (Unavailable release is present)

These new alarms will replace the legacy alarms on the patch-alarm
package and display similar behavior.

Relates-to: https://review.opendev.org/c/starlingx/update/+/931123

Test Plan:
PASS: build-pkgs & build-image
PASS: Alarms properly raised when combined with new patch-alarm

Story: 2010676
Task: 51150

Change-Id: I9222bbe482bf84fe5dc5d79c31e476cfc078c6c9
Signed-off-by: mmachado <mmachado@windriver.com>
This commit is contained in:
mmachado 2024-10-09 11:40:46 -03:00
parent 448bb06c3b
commit 5b7df8de5a
2 changed files with 34 additions and 0 deletions

View File

@ -324,6 +324,8 @@ FM_ALARM_ID_SYSTEM_CONFIG_UPDATE_ABORTED = ALARM_GROUP_SW_MGMT + ".011"
FM_ALARM_ID_USM_DEPLOY_HOST_SUCCESS_RR = ALARM_GROUP_SW_MGMT + ".020" FM_ALARM_ID_USM_DEPLOY_HOST_SUCCESS_RR = ALARM_GROUP_SW_MGMT + ".020"
FM_ALARM_ID_USM_DEPLOY_HOST_FAILURE = ALARM_GROUP_SW_MGMT + ".021" FM_ALARM_ID_USM_DEPLOY_HOST_FAILURE = ALARM_GROUP_SW_MGMT + ".021"
FM_ALARM_ID_USM_CLEANUP_DEPLOYMENT_DATA = ALARM_GROUP_SW_MGMT + ".022" FM_ALARM_ID_USM_CLEANUP_DEPLOYMENT_DATA = ALARM_GROUP_SW_MGMT + ".022"
FM_ALARM_ID_USM_RELEASE_DEPLOY_IN_PROGRESS = ALARM_GROUP_SW_MGMT + ".023"
FM_ALARM_ID_USM_RELEASE_OBS_IN_SYSTEM = ALARM_GROUP_SW_MGMT + ".024"
# Security log id # Security log id
FM_LOG_ID_INVALID_PASSWORD = ALARM_GROUP_SECURITY + ".001" FM_LOG_ID_INVALID_PASSWORD = ALARM_GROUP_SECURITY + ".001"

View File

@ -3728,6 +3728,38 @@
Degrade_Affecting_Severity: none Degrade_Affecting_Severity: none
Context: starlingx Context: starlingx
900.023:
Type: Alarm
Description: Software release deploy operation in progress.
Entity_Instance_ID: host=controller
Severity: minor
Proposed_Repair_Action: Complete release deploy.
Maintenance_Action:
Inhibit_Alarms:
Alarm_Type: environmental
Probable_Cause: unspecified-reason
Service_Affecting: False
Suppression: False
Management_Affecting_Severity: warning
Degrade_Affecting_Severity: none
Context: starlingx
900.024:
Type: Alarm
Description: A release with state 'unavailable' is present.
Entity_Instance_ID: host=controller
Severity: warning
Proposed_Repair_Action: Delete obsolete releases using "software delete <release>".
Maintenance_Action:
Inhibit_Alarms:
Alarm_Type: environmental
Probable_Cause: unspecified-reason
Service_Affecting: False
Suppression: False
Management_Affecting_Severity: warning
Degrade_Affecting_Severity: none
Context: starlingx
900.101: 900.101:
Type: Alarm Type: Alarm
Description: Software patch auto-apply in progress Description: Software patch auto-apply in progress