Brief Description
-----------------
After a subcloud was unmanaged and deleted, a dc-cert out-of-sync alarm (280.002) continued to be reported. The expected behavior is not see any alarms related to deleted subclouds as this creates a confusion for an operator
Expected Behavior
------------------
Alarms related to the deleted subcloud are removed
Actual Behavior
----------------
A dc-cert out-of-sync alarm is still present
Reproducibility
---------------
Intermittent
System Configuration
--------------------
Distributed Cloud
Branch/Pull Time/Commit
-----------------------
stx.5.0, but the same issue also exists in the main branch
Last Pass
---------
Unknown
Timestamp/Logs
--------------
cert-mon.log.* shows the following errors related to the subcloud even after a deletion:
Line 35098: 2021-10-02T00:03:02.000 controller-0 cert-mon: info 187857 INFO sysinv.cert_mon.watcher [-] action ADDED (subcloud1-adminep-ca-certificate)
Line 35101: 2021-10-02T00:03:02.000 controller-0 cert-mon: info 187857 INFO sysinv.cert_mon.watcher [-] subcloud subcloud1 action ADDED (subcloud1-adminep-ca-certificate)
Line 35101: 2021-10-02T00:03:02.000 controller-0 cert-mon: info 187857 INFO sysinv.cert_mon.watcher [-] subcloud subcloud1 action ADDED (subcloud1-adminep-ca-certificate)
Line 35104: 2021-10-02T00:03:03.000 controller-0 cert-mon: err 187857 ERROR sysinv.cert_mon.watcher [-] 13 Reattempt failed Cannot find sysinv endpoint for subcloud1. action ADDED (subcloud1-adminep-ca-certificate)
Line 35104: 2021-10-02T00:03:03.000 controller-0 cert-mon: err 187857 ERROR sysinv.cert_mon.watcher [-] 13 Reattempt failed Cannot find sysinv endpoint for subcloud1. action ADDED (subcloud1-adminep-ca-certificate)
Line 35106: created at 2021-09-29 22:44:57 last operation Update last update at 2021-09-29 22:47:55: Exception: Cannot find sysinv endpoint for subcloud1
Line 35107: 2021-10-02T00:03:03.000 controller-0 cert-mon: err 187857 ERROR sysinv.cert_mon.watcher [-] Cannot find sysinv endpoint for subcloud1: Exception: Cannot find sysinv endpoint for subcloud1
Line 35107: 2021-10-02T00:03:03.000 controller-0 cert-mon: err 187857 ERROR sysinv.cert_mon.watcher [-] Cannot find sysinv endpoint for subcloud1: Exception: Cannot find sysinv endpoint for subcloud1
Line 35119: 2021-10-02 00:03:03.292 187857 ERROR sysinv.cert_mon.watcher Exception: Cannot find sysinv endpoint for subcloud1
Line 35122: 2021-10-02T00:03:03.000 controller-0 cert-mon: info 187857 INFO sysinv.cert_mon.watcher [-] Attempt to update intermediate CA cert for subcloud1 has failed
Brief Description
-----------------
After a subcloud was unmanaged and deleted, a dc-cert out-of-sync alarm (280.002) continued to be reported. The expected behavior is not see any alarms related to deleted subclouds as this creates a confusion for an operator
Severity
--------
Minor
Steps to Reproduce
------------------
- dcmanager subcloud unmanage
- dcmanager subcloud delete
- Check alarms
Expected Behavior
------------------
Alarms related to the deleted subcloud are removed
Actual Behavior
----------------
A dc-cert out-of-sync alarm is still present
Reproducibility
---------------
Intermittent
System Configuration ------- ------
-------
Distributed Cloud
Branch/Pull Time/Commit ------- ------- --
-------
stx.5.0, but the same issue also exists in the main branch
Last Pass
---------
Unknown
Timestamp/Logs 02T00:03: 02.000 controller-0 cert-mon: info 187857 INFO sysinv. cert_mon. watcher [-] action ADDED (subcloud1- adminep- ca-certificate) 02T00:03: 02.000 controller-0 cert-mon: info 187857 INFO sysinv. cert_mon. watcher [-] subcloud subcloud1 action ADDED (subcloud1- adminep- ca-certificate) 02T00:03: 02.000 controller-0 cert-mon: info 187857 INFO sysinv. cert_mon. watcher [-] subcloud subcloud1 action ADDED (subcloud1- adminep- ca-certificate) 02T00:03: 03.000 controller-0 cert-mon: err 187857 ERROR sysinv. cert_mon. watcher [-] 13 Reattempt failed Cannot find sysinv endpoint for subcloud1. action ADDED (subcloud1- adminep- ca-certificate) 02T00:03: 03.000 controller-0 cert-mon: err 187857 ERROR sysinv. cert_mon. watcher [-] 13 Reattempt failed Cannot find sysinv endpoint for subcloud1. action ADDED (subcloud1- adminep- ca-certificate) 02T00:03: 03.000 controller-0 cert-mon: err 187857 ERROR sysinv. cert_mon. watcher [-] Cannot find sysinv endpoint for subcloud1: Exception: Cannot find sysinv endpoint for subcloud1 02T00:03: 03.000 controller-0 cert-mon: err 187857 ERROR sysinv. cert_mon. watcher [-] Cannot find sysinv endpoint for subcloud1: Exception: Cannot find sysinv endpoint for subcloud1 cert_mon. watcher Exception: Cannot find sysinv endpoint for subcloud1 02T00:03: 03.000 controller-0 cert-mon: info 187857 INFO sysinv. cert_mon. watcher [-] Attempt to update intermediate CA cert for subcloud1 has failed
--------------
cert-mon.log.* shows the following errors related to the subcloud even after a deletion:
Line 35098: 2021-10-
Line 35101: 2021-10-
Line 35101: 2021-10-
Line 35104: 2021-10-
Line 35104: 2021-10-
Line 35106: created at 2021-09-29 22:44:57 last operation Update last update at 2021-09-29 22:47:55: Exception: Cannot find sysinv endpoint for subcloud1
Line 35107: 2021-10-
Line 35107: 2021-10-
Line 35119: 2021-10-02 00:03:03.292 187857 ERROR sysinv.
Line 35122: 2021-10-
Test Activity
-------------
Testing
Workaround
----------
Manually delete the alarm