collection:collect command fails with ClassCastException

Description

Since the refactoring done as part of , invoking the SnmpCollector via the collection:collect command in the Karaf shell fails with a ClassCastException.

We need to address this so that the command works again.

Also, this same error message previously appeared when the collector was invoked without specifying a node id. We could also take advantage of this opportunity to fail with a clearer exception.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Jesse White April 3, 2018 at 12:28 PM

Jesse White March 27, 2018 at 8:03 PM

While that was the original intent, there were some code changes made in the scope of - see the links to the PRs in the issue for details.

Markus von Rüden March 26, 2018 at 11:47 AM

I am confused by the relation to as the issue is supposed to be an "investigation or evaluation issue". Can you elaborate ?

Jesse White February 21, 2018 at 2:04 PM

Work to address this was initially performed in the jira/HZN-1202-fix-agent branch, but as discussed in https://github.com/OpenNMS/opennms/pull/1831/files I'd like to take a different approach that doesn't involve implementing the CollectionAgentFactory in the command itself.

Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created February 21, 2018 at 1:59 PM
Updated April 4, 2018 at 1:52 PM
Resolved April 4, 2018 at 1:52 PM