Add command to Karaf shell to manually trigger Metadata Adapter

Description

Add a command to Karaf shell to manually trigger the Metadata Adapter to run against a specific node. Default is as existing poller/collect commands, display results in shell only.

Additional Options:

  • Option to write data to DB

    • additional flag to force overwrite

Stretch Goals:

  • Option to run against all nodes

    • w/ force overwrite option

  • Option to run against regex matched nodes

    • w/ force overwrite option

This should be similar to the existing Karaf poller and collect commands.

Acceptance / Success Criteria

Karaf Command triggers Metadata Adapter manually and outputs results to console. Command supports option to commit results to DB as well as force overwrite if data already exists.

Stretch Goals:

Command supports ability to run over all nodes, or regex matched nodes. Both with the ability to force overwrite data in DB.

Lucidchart Diagrams

Activity

Show:

Christian Pape December 21, 2023 at 6:56 AM

Merged.

Christian Pape December 20, 2023 at 1:58 PM

Sean Torres October 6, 2022 at 3:01 PM

This particular use case is for troubleshooting issues vs the normal method. So in troubleshooting this issue in the past it turned out to be a snmp timeout based on the global TTL value. Lots of time was spent on the wrong area until we stumbled upon the right area. Having this command is more for validation and elimination of issues when troubleshooting. Much like the existing poll and collect command that help troubleshooting in those areas.

David Hustace October 6, 2022 at 2:53 PM

I feel like we're continually getting further away from an event-driven architecture. Is that the direction that we're heading?

Sean Torres July 13, 2022 at 11:41 PM

@Jeff Gehlbach - This is primarily for the HW Discovery Metadata Adapter, being able to manually run it, much like the "collect" karaf command.

 

Fixed

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Docs Needed

Yes

FRC Grooming Date

Components

Sprint

Affects versions

Priority

PagerDuty

Created January 19, 2022 at 7:40 AM
Updated January 9, 2024 at 4:57 PM
Resolved December 21, 2023 at 6:56 AM

Flag notifications