Module ImportFrom alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Return NameLoad Return NameLoad decorator_list decorator_list
N/A oslo_log log logging nova.scheduler filters N/A LOG N/A N/A logging getLogger __name__ PciPassthroughFilter N/A N/A filters BaseHostFilter N/A N/A Pci Passthrough Filter based on PCI request

    Filter that schedules instances on a host if the host has devices
    to meet the device requests in the 'extra_specs' for the flavor.

    PCI resource tracker provides updated summary information about the
    PCI devices for each host, like::

        | [{"count": 5, "vendor_id": "8086", "product_id": "1520",
        |   "extra_info":'{}'}],

    and VM requests PCI devices via PCI requests, like::

        | [{"count": 1, "vendor_id": "8086", "product_id": "1520",}].

    The filter checks if the host passes or not based on this information.

     host_passes N/A N/A self host_state spec_obj N/A N/A N/A Return true if the host has the required PCI devices. N/A pci_requests N/A spec_obj pci_requests N/A N/A pci_requests N/A N/A True N/A N/A N/A N/A N/A host_state pci_stats support_requests N/A pci_requests requests N/A N/A N/A N/A LOG debug %(host_state)s doesn't have the required PCI devices (%(requests)s) N/A host_state requests host_state pci_requests N/A False N/A True N/A N/A