XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Netbox plugin: VM's IP not in Netbox

    Scheduled Pinned Locked Moved Xen Orchestra
    6 Posts 3 Posters 1.0k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      RaHu
      last edited by

      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.2

      I 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!

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hey 🙂

        1. Are you sure you XO is fully up to date on latest commit on master? (see https://xen-orchestra.com/docs/community.html )
        2. You can actually see if there's more content during sync in the output of xo-server 🙂
        R 2 Replies Last reply Reply Quote 0
        • R Offline
          RaHu @olivierlambert
          last edited by

          @olivierlambert
          hmm do be honest, I am using the docker-image from ezka77/xen-orchestra-ce:latest

          I 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"?

          336a27cf-bb0b-448c-976b-86ab210813d6-image.png

          thanks,

          1 Reply Last reply Reply Quote 0
          • R Offline
            RaHu @olivierlambert
            last edited by

            @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/16

            is there any sync of the host itself to netbox (hostname, interfaces, ips, macs => netbox.device) ?

            Thanks for your guidance!

            pdoniasP 1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              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)

              1 Reply Last reply Reply Quote 0
              • pdoniasP Offline
                pdonias Vates 🪐 XO Team @RaHu
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post