[nailgun-agent][dpdk] invalid PID is reported for some NICs

Bug #1655733 reported by Vladimir Eremin on 2017-01-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Medium
Vladimir Eremin
Mitaka
Medium
Vladimir Eremin
Newton
Medium
Vladimir Eremin
Ocata
Medium
Vladimir Eremin

Bug Description

For virtio, /sys/class/net/*/device/{vendor,device} reports subsystem pci_id (1af4:0001), but should report main pci_id (1af4:1000). Should be gathered from /sys/bus/pci/device/${bus_info}

 Ethernet controller [0200]: Red Hat, Inc Virtio network device [1af4:1000]
 Subsystem: Red Hat, Inc Device [1af4:0001]
 Physical Slot: 3
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Interrupt: pin A routed to IRQ 11
 Region 0: I/O ports at c040 [size=32]
 Region 1: Memory at febd5000 (32-bit, non-prefetchable) [size=4K]
 Expansion ROM at feb00000 [disabled] [size=256K]
 Capabilities: [40] MSI-X: Enable+ Count=3 Masked-
  Vector table: BAR=1 offset=00000000
  PBA: BAR=1 offset=00000800
 Kernel driver in use: virtio-pci

Changed in fuel:
importance: Undecided → Medium
status: New → Confirmed
summary: - [nailgun-agent][dpdk] invalid device_id is reported for nic for multiid
- device
+ [nailgun-agent][dpdk] invalid PID is reported for some NICs
Changed in fuel:
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/419087
Committed: https://git.openstack.org/cgit/openstack/fuel-nailgun-agent/commit/?id=0a306b1dc7021ec41b2947e6efa53be7c4075a9c
Submitter: Jenkins
Branch: master

commit 0a306b1dc7021ec41b2947e6efa53be7c4075a9c
Author: Vladimir Eremin <email address hidden>
Date: Wed Jan 11 21:56:06 2017 +0300

    Read device PCIID instead of subsystem one

    For some devices like Virtio network device [1af4:1000], there is
    invalid PCIID in /sys/class/net.

    Change-Id: I3bc514c2d57e3a7669c418e49830491041cb8f52
    Closes-Bug: #1655733

Changed in fuel:
status: In Progress → Fix Committed

Reviewed: https://review.openstack.org/419567
Committed: https://git.openstack.org/cgit/openstack/fuel-nailgun-agent/commit/?id=c14c0b208bc6766352afe720c9c5efe3f67a6ba9
Submitter: Jenkins
Branch: stable/mitaka

commit c14c0b208bc6766352afe720c9c5efe3f67a6ba9
Author: Vladimir Eremin <email address hidden>
Date: Wed Jan 11 21:56:06 2017 +0300

    Read device PCIID instead of subsystem one

    For some devices like Virtio network device [1af4:1000], there is
    invalid PCIID in /sys/class/net.

    Change-Id: I3bc514c2d57e3a7669c418e49830491041cb8f52
    Closes-Bug: #1655733
    (cherry picked from commit 0a306b1dc7021ec41b2947e6efa53be7c4075a9c)

Reviewed: https://review.openstack.org/419568
Committed: https://git.openstack.org/cgit/openstack/fuel-nailgun-agent/commit/?id=5e119e08c3c4d885f0ad8c91919b7818fe15b783
Submitter: Jenkins
Branch: stable/newton

commit 5e119e08c3c4d885f0ad8c91919b7818fe15b783
Author: Vladimir Eremin <email address hidden>
Date: Wed Jan 11 21:56:06 2017 +0300

    Read device PCIID instead of subsystem one

    For some devices like Virtio network device [1af4:1000], there is
    invalid PCIID in /sys/class/net.

    Change-Id: I3bc514c2d57e3a7669c418e49830491041cb8f52
    Closes-Bug: #1655733
    (cherry picked from commit 0a306b1dc7021ec41b2947e6efa53be7c4075a9c)

tags: added: hard-to-verify
tags: added: on-verification
tags: removed: on-verification
Sergey Novikov (snovikov) wrote :

Verified on snapshot #822 (RC2)

This issue was fixed in the openstack/fuel-nailgun-agent 11.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers