Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-4423

Provisiond NodeCategorySettingPolicy. Nodes lose categorization in subsequent Synchronizations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 1.8.9
    • Fix Version/s: 1.9.92
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:

      Description

      Using Provisioning Groups, I wished to auto-add nodes into surveillance categories. While they are added to the correct categories on an initial synchronization, they are subsequently removed from those surveillance categories on any additional manual synchronization.

      Sequence:

      Set NodeCategorySettingPolicys in a Provison Group. Initially 4 polices based on sysoid to add nodes to 4 surveillance categories.
      Manually add a number of nodes to the Provision Group.
      Run Synchronization.
      Results are as expected, nodes get added into 4 surveillance categories.
      Manually add more nodes to Provision Group.
      Run Synchronization.
      Newly added nodes are added to 4 surveillance categories. Previously added nodes are removed from surveillance categories.

      Alternatives tried:
      Removed all nodes.
      Manually added nodes to to the Provision Group.
      Run Synchronization.
      Results are as expected, nodes get added into 4 surveillance categories.
      Run Synchronization again.
      Previously added nodes are removed from surveillance categories.

      Removed all nodes.
      Set NodeCategorySettingPolicys in a Provison Group using foreignSource as a key instead. 4 policies are created.
      Manually add a number of nodes to the Provision Group.
      Run Synchronization.
      Results are as expected, nodes get added into 4 surveillance categories.
      Manually add more nodes to Provision Group.
      Run Synchronization.
      Newly added nodes are added to 4 surveillance categories. Previously added nodes are removed from surveillance categories.

      Removed all nodes.
      Configured only one NodeCategorySettingPolicy in the Provision Group, using foreignSource as a key.
      Manually add a node to the Provision Group.
      Run Synchronization.
      Results are as expected, node gets added to one surveillance category
      Manually add another node to the Provision Group
      Run Synchronization.
      New added node is added to the surveillance category, previous added node is removed from surveillance category.

      I have the capsd service disabled. I also had org.opennms.provisiond.enableDiscovery=true in opennms.properties, and then tried the same test with it set to false, with the same issue reoccurring.

      This would be a problem for manually added nodes when you are using Surveillance Categories for filters on Polling, Data Collection, Notifications etc.

      I can't identify any output from the provisiod.log that differentiates between categorization for nodes that initially get categorized and those previous nodes that are getting un-categorized.

      I've added the provisiond.log in DEBUG mode, last entries are the most recent testing.

      Regards
      Patrick

        Attachments

        1. HughesHT.xml
          3 kB
          Patrick Tuite
        2. HughesHT.xml.oidcategory
          3 kB
          Patrick Tuite
        3. HughesNew.xml
          2 kB
          Patrick Tuite
        4. provisiond.log
          5.96 MB
          Patrick Tuite
        5. provisiond.log.Rescan-3
          445 kB
          Ken Eshelby
        6. provisiond.log.Sync-1
          737 kB
          Ken Eshelby
        7. provisiond.log.Sync-2
          749 kB
          Ken Eshelby
        8. Screenshot-10.png
          97 kB
          Ken Eshelby
        9. Screenshot-11.png
          95 kB
          Ken Eshelby
        10. Screenshot-12.png
          116 kB
          Ken Eshelby
        11. Screenshot-13.png
          99 kB
          Ken Eshelby
        12. Screenshot-14.png
          131 kB
          Ken Eshelby
        13. Screenshot-8.png
          101 kB
          Ken Eshelby
        14. Screenshot-9.png
          99 kB
          Ken Eshelby
        15. Test2.xml
          2 kB
          Ken Eshelby
        16. Test2-import.xml
          0.6 kB
          Ken Eshelby

          Issue Links

            Activity

              People

              • Assignee:
                brozow Matt Brozowski
                Reporter:
                esh Ken Eshelby
              • Votes:
                2 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: