f5-declarative-onboarding
f5-declarative-onboarding copied to clipboard
Standard SNMP community stops completing cluster config
Environment
- Declarative Onboarding Version: 1.25.0
- BIG-IP Version: 15.1.4
Summary
After succesfully creating the cluster configuration, the cluster tries to synchronize and delete the snmp community that is not found in the declarative onboarding procedure (standard public community). When this deletion fails, the configuration is rolled back.
When using cloud init to remove the snmp community beforehand everything works.
It seems that the standard SNMP community that is configured cannot be deleted by DO. perhaps this is because the command structure is diferent? To remove this object, rather than deleting it you need to modify/patch it. the cli command is:
tmsh modify sys snmp communities delete { comm-public }
rather than:
tmsh delete sys snmp communities comm-public
Steps To Reproduce
Steps to reproduce the behavior:
-
Submit the following declaration: any declaration with a cluster build.
-
Observe the following error response:
Mon, 22 Nov 2021 15:07:24 GMT - info: [f5-declarative-onboarding: restWorker.js] Sync complete.
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: restWorker.js] list localhost /tm/cm/device
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: dscHandler.js] Checking Traffic-Groups
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: dscHandler.js] Checking MAC_Masquerades
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: dscHandler.js] Checking MirrorIp
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: analyticsHandler.js] Processing analytics declaration.
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: gslbHandler.js] Processing GSLB declaration.
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: gslbHandler.js] Checking Monitors
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: gslbHandler.js] Checking Data Centers
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: gslbHandler.js] Checking Servers
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: gslbHandler.js] Checking Prober Pools
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: deleteHandler.js] Processing deletes.
Mon, 22 Nov 2021 15:07:24 GMT - fine: [f5-declarative-onboarding: restWorker.js] delete localhost /tm/sys/snmp/communities/~Common~comm-public null
Mon, 22 Nov 2021 15:07:24 GMT - finest: [f5-declarative-onboarding: restWorker.js] tryUntil: got error {"code":404}
Mon, 22 Nov 2021 15:07:24 GMT - finest: [f5-declarative-onboarding: restWorker.js] typeof err object
Mon, 22 Nov 2021 15:07:24 GMT - finer: [f5-declarative-onboarding: restWorker.js] tryUntil error: 01020036:3: The requested Config Instance (/Common/snmpd /Common/comm-public community) was not found. tries left: 0
Mon, 22 Nov 2021 15:07:24 GMT - finest: [f5-declarative-onboarding: restWorker.js] tryUntil: retryOrReject: numRemaining: 0 , code: 404 , message: 01020036:3: The requested Config Instance (/Common/snmpd /Common/comm-public community) was not found.
Mon, 22 Nov 2021 15:07:24 GMT - finer: [f5-declarative-onboarding: restWorker.js] Max tries reached.
Mon, 22 Nov 2021 15:07:24 GMT - severe: [f5-declarative-onboarding: deleteHandler.js] Error processing deletes: tryUntil: max tries reached: 01020036:3: The requested Config Instance (/Common/snmpd /Common/comm-public community) was not found.
Mon, 22 Nov 2021 15:07:24 GMT - severe: [f5-declarative-onboarding: declarationHandler.js] Error processing declaration: tryUntil: max tries reached: 01020036:3: The requested Config Instance (/Common/snmpd /Common/comm-public community) was not found.
Mon, 22 Nov 2021 15:07:24 GMT - severe: [f5-declarative-onboarding: restWorker.js] Error onboarding: tryUntil: max tries reached: 01020036:3: The requested Config Instance (/Common/snmpd /Common/comm-public community) was not found.
Mon, 22 Nov 2021 15:07:24 GMT - info: [f5-declarative-onboarding: restWorker.js] Rolling back configuration
Expected Behavior
DO to be able to delete the non used standard SNMP community without rolling back the configuration.
Actual Behavior
You need to manually delete the snmp community before running DO to make the cluster configuration work.
Thank you for your feedback. I have added this to our internal product backlog as AUTOTOOL-2879.
Any update on this backlog item?
We're also experiencing this as well. Currently working around this in the same way, runing the tmsh command to remove the group before the apply.