dm-drogeriemarkt / foreman_netbox

A Foreman plug-in to synchronise hosts to the Netbox CMDB
GNU General Public License v3.0
18 stars 7 forks source link

Devices not synced after update. #97

Open mscrnt opened 1 year ago

mscrnt commented 1 year ago

I was able to get the plugin installed on Foreman 3.3.

Seems like the initial creation of a host works great. However, It doesn't sync any updates made after creation. Is this by design?

kamils-iRonin commented 1 year ago

Hi @mscrnt, can you check in the settings if Netbox Orchestration is enabled? (I assume it is, as initial sync works). What have you changed in the Foreman host and what change in Netbox you expect? Can you see any info/errors in the logs?

mscrnt commented 1 year ago

Hi @kamils-iRonin. Thanks for the quick reply. I do have 'Netbox Orchestration' enabled.

My Environment: Foreman 3.3 w/Katello 4.5 on Rocky Linux 8.7

Here are the steps I've taken:

  1. Created test host with minimum fields filled out. (Hostname, MAC address, OS)
    • I was able to see the test host on netbox as expected.
  2. After initial sync with netbox, I added a comment and IP address to the host.
    • This did not update netbox as expected.

I just did a bit more testing and it does look like it is syncing, but not all the items I was expecting. I created another interface, this time with an IP address, and it partially synced. Netbox sees the new interface and mac address, but not the IP address.

I've attached the logs from me updating the IP address in the initial interface. Let me know if you need anything else.

I really appreciate the help.

Thanks foremanlogs.txt