Enhancement for REST API requisitions import

Description

When inserting new nodes with provisiond it is useful to import with rescanExisting=false flag in order to prevent existing nodes to get scanned. It would be good to have same kind of behavior when changing nodelabel, ip and also when deleting nodes. So I would like to have enhancement that import could be run for example with flag rescanUnchanged=false. This would mean that only new, changed (atleast primary ip or name change) and deleted nodes would be scanned. This way it could be achieved that only changes will go through and this would lower the time to run import.

Environment

RHEL 6 64-BIT

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Jari Lallukka December 19, 2013 at 1:12 AM

Ok. So as a workaround waiting for this to come at some point we could:

1) Delete node first and after that add again with new name or ip which would then mean two rescanExisting=false imports.
2) Wait for scheduled full import that would make the changes.

Any comments on above choices?

This enhancement probably can still be open when there is some work to be done in Provisiond not to forget that this would be good feature for running sort of partial import?

Benjamin Reed December 18, 2013 at 3:15 PM

Unfortunately the architecture of Provisiond currently makes this a lot more work than it seems like it should be.

We've had a planned rearchitecture of some of Provisiond's data-passing to facilitate changes like this since the introduction of 1.10, but I can't give any kind of timeline when we will have a chance to do it.

Jeff Gehlbach December 17, 2013 at 9:58 AM

This issue corresponds to commercial support ticket https://mynms.opennms.com/Ticket/Display.html?id=2665

Will raise in scrum today.

Jari Lallukka December 17, 2013 at 1:18 AM

I did some testing and it seems that add and delete of node/nodes can be achieved with this /requisitions/{name}/import?rescanExisting=false. So changed nodes (for example name and ip change) are those that would be good to include with import without need of scanning existing ones.

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created December 16, 2013 at 3:59 AM
Updated September 21, 2021 at 9:16 PM