Hi, As the service is setup as nodeport, the traps must be sent to <K8SnodeIP>:30470 (10.43.x.x is IP assigned within the cluster by K8S).
However if you sending within cluster (from any other pods) – you could use xdcae-snmptrap-collector:30470 or dcae-snmptrap-collector:6162 and check. The log/tracking of SNMPtrap collector is documented in rtd under following link - https://docs.onap.org/en/latest/submodules/dcaegen2.git/docs/sections/services/snmptrap/logging.html. Regards, Vijay From: [email protected] <[email protected]> On Behalf Of Sangeeta Bellara Sent: Wednesday, February 19, 2020 7:41 AM To: [email protected] Subject: [onap-discuss] SNMP Trap collector on kubernetes pod not receiving traps #dcaegen2 #dcaegen2 Hi all, SNMP Trap Collector is installed in a Kube pod, and is showing as a service : xdcae-snmptrap-collector NodePort 10.43.125.134 <none> 6162:30470/UDP 32d When I send a trap to 10.43.125.134:30470 , there is no log in the snmptrapd_arriving_traps.log. Also tried sending to 10.43.125.134:6162, as well as pod IP with 6162 with no success. Conntrack –L shows the packet as UNREPLIED. Appreciate any input on this, thanks! Pod description below. Regards Sangeeta Bellara Name: dep-dcae-snmptrap-collector-6d65c55cfb-fml7f Namespace: onap Priority: 0 PriorityClassName: <none> Node: onap-onap-tm5g-dev-01-k8s-01/10.0.0.14 Start Time: Fri, 17 Jan 2020 14:43:56 +0000 Labels: app=dcae-snmptrap-collector cfydeployment=snmptrap cfynode=snmptrap cfynodeinstance=snmptrap_xmah29 k8sdeployment=dep-dcae-snmptrap-collector pod-template-hash=6d65c55cfb Annotations: cni.projectcalico.org/podIP: 10.42.7.18/32 Status: Running IP: 10.42.7.18 Controlled By: ReplicaSet/dep-dcae-snmptrap-collector-6d65c55cfb Containers: dcae-snmptrap-collector: Container ID: docker://68747d80735dc2a313abc050d98428ee30cb412729f2c38a81f9a9850e87e261 Image: nexus.sdp.telekom.de:10001/onap/org.onap.dcaegen2.collectors.snmptrap:1.4.0 Image ID: docker-pullable://nexus.sdp.telekom.de:10001/onap/org.onap.dcaegen2.collectors.snmptrap@sha256:dc2fb3ee0be3c474dad8ceb3cb25c468ae06bcadb2738dddc23be96545afe18d Port: 6162/UDP Host Port: 0/UDP State: Running Started: Fri, 17 Jan 2020 14:44:39 +0000 Ready: True Restart Count: 0 Environment: CONSUL_HOST: consul-server.onap CONFIG_BINDING_SERVICE: config-binding-service POD_IP: (v1:status.podIP) Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-mnps5 (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: default-token-mnps5: Type: Secret (a volume populated by a Secret) SecretName: default-token-mnps5 Optional: false QoS Class: BestEffort Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s Events: <none> -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20079): https://lists.onap.org/g/onap-discuss/message/20079 Mute This Topic: https://lists.onap.org/mt/71406025/21656 Mute #dcaegen2: https://lists.onap.org/mk?hashtag=dcaegen2&subid=2740164 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
