Bug 1493772

Summary: update-pciids has incorrect URL for downloading an updated pci.ids file
Product: Red Hat Enterprise Linux 7 Reporter: Jeff Kirsher <jeffrey.t.kirsher>
Component: pciutilsAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Rachel Sibley <rasibley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.4CC: carolyn.wyborny, jeffrey.t.kirsher, mhlavink, prarit, richardx.johnson
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pciutils-3.5.1-3.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 17:44:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Kirsher 2017-09-20 22:07:19 UTC
Description of problem:
update-pciids script uses the URL http://pciids.sourceforge.net/pci.ids, which is no longer valid.  The pci.ids maintainer has removed the file from the sourceforge site and is using this URL http://pci-ids.ucw.cz/v2.2/pci.ids in the latest pciutils scripts.

Version-Release number of selected component (if applicable):
3.5.1

How reproducible:
consistently everytime

Steps to Reproduce:
1. run `update-pciids` as root
2.
3.

Actual results:
The command will timeout trying to find pci.ids file on sourceforge

Expected results:
The pci.ids is downloaded and updates the local pci.ids file

Additional info:

Comment 2 Michal Hlavinka 2017-09-22 10:39:48 UTC
Not reproducible for me. Are you sure?

$ wget -q http://pciids.sourceforge.net/pci.ids -O pci.sf.ids
$ wget -q http://pci-ids.ucw.cz/v2.2/pci.ids -O pci.ucw.ids
$ sha1sum pci.sf.ids pci.ucw.ids 
cc8c0a0929a913aa39a5ac7c2f128e5dc244702d  pci.sf.ids
cc8c0a0929a913aa39a5ac7c2f128e5dc244702d  pci.ucw.ids

They both exist and have the same content

Comment 3 Prarit Bhargava 2017-10-02 12:15:08 UTC
Jeff was talking about this in the weekly Intel meeting.  I'll reach out to him for additional details.  IIUC, Intel has been concerned with the sourceforge location for sometime and wants it changed to the new location listed above.

P.

Comment 4 Prarit Bhargava 2017-10-02 13:58:08 UTC
From Jeff (in email):

My concern was that the pci.ids maintainer has updated the update-pciids script in pciutils git repo to use http://pci-ids.ucw.cz website, and he has it listed in the TODO document in the git repo to remove the sourceforge.net site.  Even on the pci.ids.sourceforge.net site, he has it stating that the "official" site has moved and provides a link to the http://pci-ids.ucw.cz site.

When using the update-pciids utility that gets bundled with RHEL and Fedora, I had issues using the script to update the local pci.ids file, but once I edited the update-pciids script to the http://pci-ids.ucw.cz url, it worked just fine.

P.

Comment 7 Rachel Sibley 2017-12-01 18:22:21 UTC
ALL TESTS PASSED

Verified as passed, pci.ids url has been updated to http://pci-ids.ucw.cz for update-pciids script.

~]# rpm -q pciutils
pciutils-3.5.1-3.el7.ppc64

~]# update-pciids
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  233k  100  233k    0     0  51339      0  0:00:04  0:00:04 --:--:-- 57722
Done.

~]# grep http /usr/sbin/update-pciids
SRC="http://pci-ids.ucw.cz/v2.2/pci.ids"

Comment 10 errata-xmlrpc 2018-04-10 17:44:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0950