HewlettPackard / HewlettPackard/morpheus-netbox-plugin
NetBox Sync in Morpheus Stuck When Duplicate Prefixes Exist
- Dominant language
- Groovy
- Stars
- 1
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
When two identical prefixes (subnets) exist in NetBox, the synchronization in Morpheus gets stuck in a perpetual "syncing" state and never completes.
**Logs show the following error:**
```
[pool-25-thread-6] Error During SyncTask Operation
Validation Error(s) occurred during save():
- Field error in object 'com.morpheus.NetworkPoolIp' on field 'ipAddress': rejected value [192.168.1.111];
codes [ipAddress, class com.morpheus.NetworkPoolIp, 192.168.1.111];
default message [must be unique]
grails.validation.ValidationException: Validation Error(s) occurred during save():
- Field error in object 'com.morpheus.NetworkPoolIp' on field 'ipAddress': rejected value [192.168.1.111];
```
**Suggestion:**
Instead of halting the entire sync process when a duplicate IP address is encountered, we propose that such duplicate entries be skipped or logged as a warning. This would allow the remaining subnets and IPs to sync correctly and the process to complete.
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named. Locate the NetBox synchronization entry point and reproduce the duplicate-prefix case that raises the NetworkPoolIp uniqueness validation error; done means duplicate IPs no longer leave synchronization stuck and the remaining subnets and IPs complete processing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100