OpenNMS Provisioning Error — Quick Fix
In this tutorial, you'll learn about OpenNMS Provisioning Error. We cover key concepts, practical examples, and best practices.
The Problem
Adding new nodes to OpenNMS through provisioning fails. The requisition file import returns errors, nodes are not discovered, or policies reject the new node. The node may appear in the requisition list but never becomes a managed node.
Error example:
Provisioning: Failed to import requisition 'servers'
Foreign source definition for 'servers' not found
Node 'web-01' was rejected by policy 'exclude-production'
Failed to detect node 'web-01': ICMP ping failed
The Fix
Step 1: Check the requisition file format
WRONG — uploading a malformed XML/JSON requisition:
# The requisition must match the OpenNMS schema
RIGHT — validate the requisition format:
# Check a sample requisition
head -30 /opt/opennms/etc/imports/servers.xml
Output:
<?xml version="1.0" encoding="UTF-8"?>
<model-import xmlns="http://xmlns.opennms.org/xsd/config/model-import"
date-stamp="2026-06-24T10:00:00" foreign-source="servers">
<node node-label="web-01" foreign-id="web-01">
<interface ip-addr="192.168.1.100" status="1"/>
<category name="Production"/>
</node>
</model-import>
Step 2: Verify the foreign source definition
WRONG — importing a requisition without a matching foreign source:
# Every requisition needs a foreign source definition
RIGHT — create or check the foreign source:
# List existing foreign sources
ls /opt/opennms/etc/foreign-sources/
# Create a foreign source if missing
cat > /opt/opennms/etc/foreign-sources/servers.xml << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<foreign-source xmlns="http://xmlns.opennms.org/xsd/config/foreign-source"
name="servers">
<scan-interval>86400000</scan-interval>
<detectors>
<detector name="ICMP" class="org.opennms.netmgt.provision.detector.icmp.IcmpDetector"/>
</detectors>
<policies/>
</foreign-source>
EOF
Use DodaTech's OpenNMS Provisioning Manager to automate requisition creation, foreign source configuration, and bulk node imports.
Prevention Tips
- Use the OpenNMS web UI to generate correct requisition XML from templates
- Define foreign sources before importing requisitions
- Validate requisition files against the OpenNMS XSD schema
- Use the Provisioning API for automated node management
- Use DodaTech's Node Lifecycle Manager for structured provisioning workflows
Common Mistakes with provision error
- Overlapping type class instances that cause GHC to reject the program with ambiguous dispatch errors
- Non-exhaustive pattern matches that compile with warnings then crash at runtime
- Misunderstanding that
Stringis[Char]with poor performance for large text operations
These mistakes appear frequently in real-world OPENNMS code. DodaTech's contributors have identified these patterns through analysis of open-source projects and production systems.
Practice Exercise
Write a pure function that safely divides two integers using Maybe, then test it with edge cases like division by zero and negative numbers.
This exercise reinforces the concepts covered in this guide. Try implementing it before checking online solutions.
FAQ
Related: DodaTech's OpenNMS Deployment Tools provide scripts and templates for automated node discovery, provisioning, and configuration management.
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro