Netbox plugin: VM's IP not in Netbox
-
As requested by Olivier, I put this in here instead of github:
Hi there,
I am on XO from the sources.
XCP-NG 8.2.1 Servers
min. 1 Ubuntu 20.04 VM with Agent 7.20 installed
Version: xo-server:5.91.0 / xo-web 5.95.0
Netbox-Version: 3.2.2I just set up a new Netbox Instance (plain install on a ubu-vm, no docker this time).
The "token pairing" all went fine, and the sync does not seem to produce any errors, as far as I can see in XO->Settings-Logs (So far so good! ;D )However, looking into Netbox shows me the cluster and VMs with uuid's. VMs have also their resources and NICs with MACs, but the IP address(es) is missing! Under IPAM -> IP Addresses, I don't have a single IP listed.
Sadly I don't have a clue, where to find the log, showing wha's going on during the sync. I am thinking about a missing dependency-object on Netbox side, or about a slight API-change on either side, which now causes the IP part to break. But as said, as I don't find any further details about what happened in the background, these are only theories.
It would be nice if someone could guide me to find the logs (cli), so I could dig for more information and provide this here.
Many thanks in advance!
-
Hey
- Are you sure you XO is fully up to date on latest commit on
master
? (see https://xen-orchestra.com/docs/community.html ) - You can actually see if there's more content during sync in the output of
xo-server
- Are you sure you XO is fully up to date on latest commit on
-
@olivierlambert
hmm do be honest, I am using the docker-image from ezka77/xen-orchestra-ce:latestI guess, even if I pull the latest version, it won't be really the same as if installed manually...
thanks for the tip with the console output - somtimes you miss the easy things... I just checked the output in my container... I probably have to do some cleanup first.. XO is heavily complaining about xo:storage WARN Xapi#_getUnhealthyVdiChainLength
The About-Screen looks different - maybe this indicates to you, what I have "under my feet"?
thanks,
-
@olivierlambert hi there, looks like I found my mistake... I made IP-Ranges instead of prefixes in Netbox in order to prepare the sync.
therefore, IPs which don't fit in any prefix will be dropped in netbox.
So actually, for quick and dirty, the well known 3 internal ranges are fine to cover all internal ips: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16is there any sync of the host itself to netbox (hostname, interfaces, ips, macs => netbox.device) ?
Thanks for your guidance!
-
Indeed, you are using a version I can't really help on, but anyway, answering your question, I don't remember (because I'm using Netbox before I started to use XO sync, so I don't remember which things were added manually or not).
However, @pdonias wrote the plugin (however he's in holidays for the next 3 weeks). But he can answer when he's back (or someone else before)
-
Hi @RaHu! No, at the moment, we don't synchronize hosts' information. I'm not even sure where that information could go as there isn't such a thing as a host object in Netbox, AFAIK.