As a result of an audit (see parent task) I've noticed some discrepancies between the data in Netbox and the one on the hosts (synced via PuppetDB) for some support services:
gitlab
On gitlab1001 we have allocated 208.80.154.14/32 as a proper VIP, but that one is allocated as /26 on Netbox (the default is to use the parent prefix's netmask) and is not marked as VIP, as it should following [1]. The automation in those cases doesn't attach the IP to the interface on the server because being a VIP it could migrate to another host. See https://netbox.wikimedia.org/ipam/ip-addresses/8255/ and https://netbox.wikimedia.org/ipam/ip-addresses/8257/
Same on gitlab2001 for https://netbox.wikimedia.org/ipam/ip-addresses/8829/ and https://netbox.wikimedia.org/ipam/ip-addresses/8830/
if the above is correct, the solution is to:
- alter the above IP Addresses netmask in Netbox to /32
- set their role to VIP
- detatch the interface from the respective hosts
list1001
Has the same IP allocated twice on the host with two different netmasks:
inet 208.80.154.31/26 brd 208.80.154.63 scope global ens5 valid_lft forever preferred_lft forever inet 208.80.154.31/32 scope global ens5 valid_lft forever preferred_lft forever
As this is not a VIP I'm not sure why it's allocated twice and with the /32 netmask, I guess the host need a fix to have it just once with the /26 netmask.