pci passthrough: incorrect device allocation

Bug #1288809 reported by Baodong (Robert) Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Baodong (Robert) Li

Bug Description

The PCI filter for scheduling runs on the basis of pci stats pools available in a compute node. If the PCI requests match one or more pools, the number of devices will be subtracted from the total number of devices available in those pools.

On the compute node, PCI device allocation is performed based on the list of free devices that are available on the node. The PCI requests are used to match against the device itself, rather than the pci stats pools.

The unsymmetrical handling of scheduling versus allocating could cause incorrect pci stats, and thus incorrect scheduling, and nova instances failed to boot.

Tags: compute
Changed in nova:
assignee: nobody → Baodong (Robert) Li (baoli)
Tracy Jones (tjones-i)
tags: added: compute
melanie witt (melwitt)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/81954

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Baodong (Robert) Li (baoli) wrote :

I'd like to bring this to the core developer's attention for approval. Thanks.

Changed in nova:
milestone: none → juno-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/81954
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=fa2f139e22ed1317f4afe01faaf7ee3943444715
Submitter: Jenkins
Branch: master

commit fa2f139e22ed1317f4afe01faaf7ee3943444715
Author: Robert Li <email address hidden>
Date: Fri Jul 11 14:26:28 2014 -0400

    makes sure correct PCI device allocation

    With this patch, on the compute node, a stats pool will be associated with a
    list of devices that belongs to the pool. This makes sure that PCI devices are
    allocated out of the same stats pools that are used by the nova scheduler to
    satisfy the PCI requests. And therefore, stats pools on the compute nodes will
    be kept in sync with their counterparts in the nova scheduler.

    Change-Id: I2d97c6354215e2ac5ff659e3203c33771abe1c09
    Closes-bug: #1288809

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.