-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing prefixes using scan_roas on databae #861
Comments
Yes, when pulling from the database, `scan_roas` only reports current authenticated data.
The `sha256/` directory in the dump output is *everything*, current or not, valid or not.
|
I have this script that would run
And it seems that when the script runs for some time (more than a week), the number of roas
What could be causing the drop of the number of ROAs? Am I using |
I´ve recognized missing prefixes searching the sql with scan_roas. After extracting the information using the rcynic-dump tool it seems, that only roas from the authenticated tree were found by scan_roas in the db. All roas from sha265 tree are missing.
rpki-rp version 1.0.1494995102~xenial
Searching for AS3320 prefixes in db
root@rcynic-03:/tmp# su rpki -c scan_roas | grep 3320
2017-03-31T07:13:10Z 3320 194.127.134.0/24 194.76.30.0/23 194.76.30.0/24 194.76.31.0/24
2017-01-01T00:14:19Z 3320 134.97.3.0/24 134.97.2.0/24 134.97.16.0/24
2017-01-01T01:52:04Z 3320 194.121.46.0/24 194.120.22.0/24 194.120.40.0/24 194.120.249.0/24 194.120.23.0/24 194.121.90.0/24 194.45.148.0/22-24 194.45.48.0/24 194.121.62.0/23-24 193.141.61.0/24 193.141.143.0/24 193.141.23.0/24 194.121.172.0/22-24 194.45.144.0/22-24
2017-01-01T00:38:13Z 3320 195.158.253.0/24 195.158.252.0/24 195.158.252.0/23 195.190.11.0/24 2001:67c:11f8::/48
2017-01-01T00:14:23Z 3320 193.22.4.0/24
Extracting information from db
root@rcynic-03:/tmp# sudo -u rpki /usr/local/sbin/rcynic-dump
root@rcynic-03:/tmp# ll rcynic-data/
total 16
drwxr-xr-x 4 rpki rpki 4096 Jul 12 06:31 ./
drwxrwxrwt 11 root root 4096 Jul 12 06:39 ../
lrwxrwxrwx 1 rpki rpki 34 Jul 12 06:31 authenticated -> authenticated-2017-07-12T05:36:02Z/
drwxr-xr-x 11 rpki rpki 4096 Jul 12 06:29 authenticated-2017-07-12T05:36:02Z/
drwxr-xr-x 258 rpki rpki 4096 Jul 12 06:29 sha256/
Searching for AS3320 prefixes in authenticated tree => matching prefixes from db
root@rcynic-03:/tmp# scan_roas rcynic-data/authenticated | grep 3320
2017-01-01T00:14:23Z 3320 193.22.4.0/24
2017-01-01T01:52:04Z 3320 194.121.46.0/24 194.120.22.0/24 194.120.40.0/24 194.120.249.0/24 194.120.23.0/24 194.121.90.0/24 194.45.148.0/22-24 194.45.48.0/24 194.121.62.0/23-24 193.141.61.0/24 193.141.143.0/24 193.141.23.0/24 194.121.172.0/22-24 194.45.144.0/22-24
2017-01-01T00:38:13Z 3320 195.158.253.0/24 195.158.252.0/24 195.158.252.0/23 195.190.11.0/24 2001:67c:11f8::/48
2017-03-31T07:13:10Z 3320 194.127.134.0/24 194.76.30.0/23 194.76.30.0/24 194.76.31.0/24
2017-01-01T00:14:19Z 3320 134.97.3.0/24 134.97.2.0/24 134.97.16.0/24
Searching for AS3320 prefixes in sha265 tree => matching prefixes + extra prefixes
root@rcynic-03:/tmp# scan_roas rcynic-data/sha256/ | grep 3320
2016-01-01T00:50:52Z 3320 46.183.47.0/24
2016-01-01T01:30:04Z 3320 212.102.160.0/19
2016-01-01T01:47:44Z 3320 195.234.178.0/24 141.6.203.0/24
2017-01-01T00:38:13Z 3320 195.158.253.0/24 195.158.252.0/24 195.158.252.0/23 195.190.11.0/24 2001:67c:11f8::/48
2017-01-01T01:52:04Z 3320 194.121.46.0/24 194.120.22.0/24 194.120.40.0/24 194.120.249.0/24 194.120.23.0/24 194.121.90.0/24 194.45.148.0/22-24 194.45.48.0/24 194.121.62.0/23-24 193.141.61.0/24 193.141.143.0/24 193.141.23.0/24 194.121.172.0/22-24 194.45.144.0/22-24
2016-01-01T01:41:22Z 3320 46.80.0.0/12 91.0.0.0/10 195.145.0.0/16 80.144.0.0/13 79.192.0.0/10 62.153.0.0/16 62.156.0.0/14 62.224.0.0/14 217.224.0.0/11 80.128.0.0/12 212.184.0.0/15 80.157.8.0/21 195.243.0.0/16 87.128.0.0/10 194.25.0.0/16 80.128.0.0/11 217.80.0.0/12 217.0.0.0/13 84.128.0.0/10 80.156.0.0/16 80.152.0.0/14 193.158.0.0/15 93.192.0.0/10 80.157.16.0/20 62.154.0.0/15 80.157.0.0/16 2003::/19 2003::/23 2003:3c0::/28 2003:3e0::/28
2017-01-01T00:14:23Z 3320 193.22.4.0/24
2017-03-31T07:13:10Z 3320 194.127.134.0/24 194.76.30.0/23 194.76.30.0/24 194.76.31.0/24
2016-02-22T21:17:23Z 3320 185.133.12.0/22 2a05:fe80::/29
2017-01-01T00:14:19Z 3320 134.97.3.0/24 134.97.2.0/24 134.97.16.0/24
Searching for AS3320 prefixes in unauthenticated tree => no match
root@rcynic-03:/tmp# scan_roas /var/rcynic/data/unauthenticated/ | grep 3320
The text was updated successfully, but these errors were encountered: