Repository navigation
Feature/source openstack - #633
Conversation
Document the setup and configuration for VMware source integration with NetBox, including user roles, object synchronization, and filtering options.
This test file implements various tests for OpenStack discovery against fake SDK resources and real NetBox models, including authentication, resource handling, and filtering.
Added OpenStack source configuration with various settings.
Added OpenStack as a new source type with installation details.
Updated documentation to reflect OpenStack source configuration and usage, replacing VMware references with OpenStack-specific details.
Added support for OpenStack dependencies in the Dockerfile.
|
Thanks for the rebase, CI is green again. With #615 in, servers with the same name in two availability zones now keep their own disks, so that point is done.
The new paragraphs in |
|
I'll re-check that pulled branch to see where those changes were missed to validate. My tests take several hours to run due to the volume of machines I'm working with so I'm hoping it is fairly obvious. Each time I have to rebase adds several hours to that process in order to unmerge and remerge from my consolidated version. |
SDK configuration: Prevents OS_* variables and clouds.yaml from overriding source settings. VM interfaces: Matches existing ports by MAC, preserving the surviving port’s IP when another is detached and updating the name when a port is replaced. Stale IPs: Checks the complete server snapshot, ownership and IP uniqueness before allowing reassignment. This part depends on the shared-source hook
Added tests for detaching ports and handling stale IPs.
Add method to check if stale IP can be reassigned.
Refactor service_object method to simplify matching logic and remove legacy handling. Remove patched version from other fix
|
that was annoying because when I replaced the files I had to back out the separated fix again as well. |
…e stale IP guards Also drops the local copy of object_synced_by_other_source, dumps service_details as the dict it is and sends the netbox-sync version.
A new server that got the address of a deleted one was matched to the deleted server's VM by its primary IP and renamed, so the stale IP repair never ran. A VM found that way is skipped now if it stores another server UUID. The kept interface also gets its name as description again.
|
Thanks, this closes the three points from the review. Before merging I ran it against a DevStack all-in-one (stable/2026.2) syncing into NetBox 4.7.5. The run covered:
Reruns wrote nothing, apart from setting the new primary IP one run after a port swap. That run found two more things, fixed in the commits I pushed on top:
The other commits:
Merged as a squash. Disk sizes stay in decimal MB as documented. |
Re-base on development.