Be able to specify the rescanExisting flag on provisiond-configuration.xml

Description

The rescanExisting flag provides a way to control how Provisiond is going to be executed.

There are currently 3 possible values for that flag:

  • true (the default), Provisiond is going to persist all the changes on the database and execute the scan phase for each node.

  • false, Provisiond is only going to add/remove nodes from the database, and the scan phase won't be executed.

  • dbonly, Provisiond is going to perform all the DB changes, and the scan phase won't be executed. The difference between this and false is that false ignored changed nodes on requisitions, while dbonly will synchronize all the changes on the requisition to the DB.

This parameter can be controller through any of the following ways:

  • The ReST API (either directly or through provision.pl).

  • Through events (by sending a reloadImport event with the proper URL).

  • Through the WebUI

If the requisitions are managed from outside OpenNMS, like PRIS, CMDB or another proprietary source, the user must configure the periodic synchronizations through provisiond-configuration.xml. Unfortunately, this method doesn't provide a way to specify the rescanExisting flag, and true will be assumed (the default).

The current workaround for this is push the requisition from the external source, instead of getting the requisition from OpenNMS at specific intervals.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Alejandro Galue April 2, 2016 at 9:03 AM

Yes

Ronny Trommer April 1, 2016 at 8:24 PM

seems to be fixed, can we delete this branch? https://github.com/OpenNMS/opennms/tree/jira/NMS-7751-foundation

Alejandro Galue June 23, 2015 at 11:41 AM

I just realized that the fix was already added to Horizon 16:

Alejandro Galue June 23, 2015 at 11:39 AM

Merged into foundation on revision 5c2bf0e87fd8edd849bfe27ef64e5bc43d66e579.

Alejandro Galue June 22, 2015 at 2:29 PM

The solution has been committed on branch jira/NMS-7751-foundation. Will be merged to foundation when Bamboo goes green.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created June 22, 2015 at 12:04 PM
Updated June 3, 2024 at 2:26 PM
Resolved June 23, 2015 at 11:39 AM