Skip to content
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

get-oui and get-iab cron job doesn't fetch updates #6642

Closed
nrauso opened this issue Mar 2, 2022 · 4 comments
Closed

get-oui and get-iab cron job doesn't fetch updates #6642

nrauso opened this issue Mar 2, 2022 · 4 comments
Labels
bug A defect of the software verified All test cases were verified successfully

Comments

@nrauso
Copy link

nrauso commented Mar 2, 2022

With a cron job run every month, NethServer tries to fetch OUI and IAB updates.
This cron job is added by nethserver-diagtools package.

On many systems the updates fetch fails:

~]# /usr/sbin/get-oui -u http://standards-oui.ieee.org/oui/oui.txt
Could not get OUI data from http://standards-oui.ieee.org/oui/oui.txt
~]# /usr/sbin/get-iab -u http://standards-oui.ieee.org/iab/iab.txt
Could not get IAB data from http://standards-oui.ieee.org/iab/iab.txt

and it happens because now the URLs are redirected on https:

~]# curl -I -L http://standards-oui.ieee.org/oui/oui.txt
HTTP/1.1 302 Found
Date: Wed, 02 Mar 2022 11:02:59 GMT
Location: https://standards-oui.ieee.org/oui/oui.txt
Server: BigIP
Content-Length: 0
X-Cache: MISS from fw1.nethesis.it
X-Cache-Lookup: MISS from fw1.nethesis.it:3128
Via: 1.1 fw1.nethesis.it (squid/3.5.20)
Connection: keep-alive

On NethServer the necessary module to correctly manage the https URLs through perl scripts is missing.
To workaround the issue you need to install the missing module:

yum install perl-LWP-Protocol-https

After that, the updates fetch works flawlessly:

~]# /usr/sbin/get-oui -v -u http://standards-oui.ieee.org/oui/oui.txt
Renaming ieee-oui.txt to ieee-oui.txt.bak
Fetching OUI data from http://standards-oui.ieee.org/oui/oui.txt
Fetched 5067385 bytes
Opening output file ieee-oui.txt
31552 OUI entries written to file ieee-oui.txt

~]# /usr/sbin/get-iab -v -u http://standards-oui.ieee.org/iab/iab.txt
Renaming ieee-iab.txt to ieee-iab.txt.bak
Fetching IAB data from http://standards-oui.ieee.org/iab/iab.txt
Fetched 2453481 bytes
Opening output file ieee-iab.txt
4575 IAB entries written to file ieee-iab.txt

It could be a good idea to add perl-LWP-Protocol-https as a dependency of nethserver-diagtools.

@nrauso nrauso added the bug A defect of the software label Mar 2, 2022
gsanchietti added a commit to NethServer/nethserver-diagtools that referenced this issue Mar 2, 2022
Servers of standards-oui.ieee.org now redirect traffic
from HTTP to HTTPS.

NethServer/dev#6642
@nethbot
Copy link
Member

nethbot commented Mar 2, 2022

in 7.9.2009/testing:

@gsanchietti
Copy link
Member

gsanchietti commented Mar 2, 2022

Test case
Check the issue is not reproducible

@gsanchietti gsanchietti added the testing Packages are available from testing repositories label Mar 2, 2022
@nrauso nrauso self-assigned this Mar 2, 2022
@nrauso
Copy link
Author

nrauso commented Mar 2, 2022

test case verified

@nrauso nrauso added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Mar 2, 2022
@nrauso nrauso removed their assignment Mar 2, 2022
@nethbot
Copy link
Member

nethbot commented Mar 2, 2022

in 7.9.2009/updates:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect of the software verified All test cases were verified successfully
Projects
None yet
Development

No branches or pull requests

3 participants