Distributed Cloud orchestration audit fails to delete snmp trapdest and community on subclouds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Yuxing |
Bug Description
Brief Description
-----------------
Dcorch audit does not delete snmp trapdest and snmp community configuration from subclouds after they've been deleted on system controller.
Severity
--------
Minor
Steps to Reproduce
------------------
Create trapdest or community on system controller
system snmp-comm-add -c test1
system snmp-trapdest-add -c test1 -i 10.11.2.1
Wait to see that they are reflected on subcloud:
system snmp-comm-list
+------
| SNMP community | View | Access |
+------
| test1 | .1 | ro |
+------
system snmp-trapdest-list
+------
| IP Address | SNMP Community | Port | Type | Transport |
+------
| 192.168.204.2 | dcorchAlarmAggr
| 10.11.2.1 | test1 | 162 | snmpv2c_trap | udp |
+------
Then delete them
system snmp-trapdest-
Deleted ip 10.11.2.1
system snmp-comm-delete test1
Deleted community test1
Wait at least 10 minutes to ensure that dcorch audit runs then check status on subcloud.
Expected Behavior
------------------
trapdest or community should be deleted from subcloud
Actual Behavior
----------------
trapdest or community is not deleted from subcloud
Reproducibility
---------------
Reproducible
System Configuration
-------
Distributed Cloud (vbox)
Branch/Pull Time/Commit
-------
Design build from master on Jan. 22, 2020
(note that Tao reproduced it in her setup as well with more recent build)
Last Pass
---------
unknown
Timestamp/Logs
--------------
Observe these logs in /var/log/
[sysadmin@
Tue Feb 11 22:01:17 UTC 2020
Deleted ip 10.11.2.1
2020-02-11 22:07:33.290 2803619 INFO dcorch.
2020-02-11 22:07:33.296 2803619 INFO dcorch.
2020-02-11 22:07:33.296 2803619 INFO dcorch.
2020-02-11 22:07:33.297 2803619 INFO dcorch.
2020-02-11 22:07:33.301 2803619 INFO dcorch.common.utils [-] Resource not in DB itrapdest/
2020-02-11 22:07:33.302 2803619 INFO dcorch.
Test Activity
-------------
DC designer testing
Workaround
----------
Issue can be avoided if system controller region is specified with the delete command. This causes the resource to be immediately deleted on the subcloud (ie. not by the audit)
system --os-region-name SystemController snmp-trapdest-
Once config is orphaned, seems like you have to re-add it on the system controller then delete it with region name specified.
Changed in starlingx: | |
assignee: | Dariush Eslimi (deslimi) → Yuxing (yuxing) |
Changed in starlingx: | |
status: | Triaged → In Progress |
stx.4.0 / medium priority - workaround exists