Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P28600
(An Untitled Masterwork)
Active
Public
Actions
Authored by
cmooney
on May 26 2022, 3:47 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F35179594: raw-paste-data.txt
May 26 2022, 3:47 PM
2022-05-26 15:47:43 (UTC+0)
Subscribers
None
### DNS Cookbook says nothing to commit:
cmooney@cumin1001:~$ sudo cookbook sre.dns.netbox "Trial run to see if duplicate entry exists."
START - Cookbook sre.dns.netbox
Generating the DNS records from Netbox data. It will take a couple of minutes.
----- OUTPUT of 'cd /tmp && runus...e entry exists."' -----
2022-05-26 15:42:26,152 [INFO] Gathering devices, interfaces, addresses and prefixes from Netbox
2022-05-26 15:44:35,230 [INFO] Gathered 2656 devices from Netbox
2022-05-26 15:44:35,230 [INFO] Generating DNS records
2022-05-26 15:44:47,166 [INFO] Generated 15892 direct and reverse records (7946 each) in 30 direct zones and 239 reverse zones
2022-05-26 15:44:47,166 [INFO] Cloning /srv/netbox-exports/dns.git/ to /tmp/dns-c25pcHBldHM-j6q_64dn ...
2022-05-26 15:44:47,347 [INFO] Generating zonefile snippets to directory /tmp/dns-c25pcHBldHM-j6q_64dn
2022-05-26 15:44:48,389 [INFO] Nothing to commit!
2022-05-26 15:44:48,708 [INFO] Temporary directory /tmp/dns-c25pcHBldHM-j6q_64dn removed.
METADATA: {"no_changes": true}
================
PASS |███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100% (1/1) [02:23<00:00, 143.46s/hosts]
FAIL | | 0% (0/1) [02:23<?, ?hosts/s]
100.0% (1/1) success ratio (>= 100.0% threshold) for command: 'cd /tmp && runus...e entry exists."'.
100.0% (1/1) success ratio (>= 100.0% threshold) of nodes successfully executed all commands.
No changes to deploy.
END (PASS) - Cookbook sre.dns.netbox (exit_code=0)
cmooney@cumin1001:~$
cmooney@cumin1001:~$
### But entries don't match Netbox:
cmooney@cumin1001:~$ dig +short -x 10.64.20.2 @10.3.0.1
ae2-1118.cr1-eqiad.wikimedia.org.
cmooney@cumin1001:~$ dig +short A irb-1118.cloudsw1-c8-eqiad.eqiad.wmnet @10.3.0.1
cmooney@cumin1001:~$
https://netbox.wikimedia.org/ipam/prefixes/581/ip-addresses/
Event Timeline
cmooney
created this paste.
May 26 2022, 3:47 PM
2022-05-26 15:47:43 (UTC+0)
Log In to Comment