Description of problem: (Encountered when working on https://bugzilla.redhat.com/show_bug.cgi?id=1878201) When attempting to pass a list of PCI addresses to 'NovaPCIPassthrough' in a NIC partitioning setup, the derive PCI passthrough whitelist script (/usr/share/openstack-tripleo-heat-templates/deployment/neutron/derive_pci_passthrough_whitelist.py) has an error causing the deployment to fail. Configuration attempted: NovaPCIPassthrough: - vendor_id: "8086" product_id: "1572" address: "0000:86:00.2" trusted: "true" physical_network: "sriov-1" - vendor_id: "8086" product_id: "1572" address: "0000:86:00.3" trusted: "true" physical_network: "sriov-2" - vendor_id: "8086" product_id: "1572" address: "0000:86:00.0" trusted: "true" physical_network: "sriov-part-1" - vendor_id: "8086" product_id: "1572" address: "0000:86:00.1" trusted: "true" physical_network: "sriov-part-2" Exception raised by script: Traceback (most recent call last): File "/var/lib/pci_passthrough_whitelist_scripts/derive_pci_passthrough_whitelist.py", line 313, in <module> user_configs, system_configs) File "/var/lib/pci_passthrough_whitelist_scripts/derive_pci_passthrough_whitelist.py", line 283, in generate_combined_configuration user_config, pf, allocated_pci) File "/var/lib/pci_passthrough_whitelist_scripts/derive_pci_passthrough_whitelist.py", line 169, in get_passthrough_config get_regex_pattern(addr_dict['domain'], 4), TypeError: string indices must be integers Version-Release number of selected component (if applicable): openstack-tripleo-heat-templates-11.3.2-1.20200914170177.el8ost.noarch How reproducible: Always Steps to Reproduce: 1. Deploy overcloud with NovaPCIPassthrough parameter including PCI addresses Actual results: Derive PCI passthrough whitelist script is raising an error causing the deployment to fail. Expected results: Deployment is passing and accurate PCI passthrough whitelist is derived. Additional info:
Hit this bug in a 16.1.3 with a pci straight passthrough deployment. Work around was to comment out pci address (#address) and add 'devname.'
*** Bug 1803502 has been marked as a duplicate of this bug. ***
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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543