Public bug reported:
With the below pci whitelist in nova.conf , getting the below ERROr pci_passthrough_whitelist = {"address":{"domain": ".*","bus": "04", "slot": "00","function": "[1-2]"},"physical_network":"physnet1"} pci_passthrough_whitelist ={"address":{"domain": ".*","bus": "04", "slot": "00","function": "[3-4]"},"physical_network":"physnet2"} 2016-05-20 02:37:30.100 ERROR nova.compute.manager [req-67cc2371-7005-4485-bbb0-b19d5075fd09 None None] Error updating resources for node stack. 2016-05-20 02:37:30.100 TRACE nova.compute.manager Traceback (most recent call last): 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/manager.py", line 6275, in update_available_resource_for_node 2016-05-20 02:37:30.100 TRACE nova.compute.manager rt.update_available_resource(context) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 478, in update_available_resource 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._update_available_resource(context, resources) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner 2016-05-20 02:37:30.100 TRACE nova.compute.manager return f(*args, **kwargs) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 499, in _update_available_resource 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._init_compute_node(context, resources) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 377, in _init_compute_node 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._setup_pci_tracker(context, resources) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 396, in _setup_pci_tracker 2016-05-20 02:37:30.100 TRACE nova.compute.manager self.pci_tracker = pci_manager.PciDevTracker(context, node_id=n_id) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/manager.py", line 58, in __init__ 2016-05-20 02:37:30.100 TRACE nova.compute.manager self.dev_filter = whitelist.Whitelist(CONF.pci_passthrough_whitelist) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/whitelist.py", line 78, in __init__ 2016-05-20 02:37:30.100 TRACE nova.compute.manager self.specs = self._parse_white_list_from_config(whitelist_spec) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/whitelist.py", line 59, in _parse_white_list_from_config 2016-05-20 02:37:30.100 TRACE nova.compute.manager spec = devspec.PciDeviceSpec(ds) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/devspec.py", line 134, in __init__ 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._init_dev_details() 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/devspec.py", line 159, in _init_dev_details 2016-05-20 02:37:30.100 TRACE nova.compute.manager self.address = PciAddress(self.address, pf) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/devspec.py", line 67, in __init__ 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._init_address_fields(pci_addr) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/devspec.py", line 80, in _init_address_fields 2016-05-20 02:37:30.100 TRACE nova.compute.manager dbs, sep, func = pci_addr.partition('.') 2016-05-20 02:37:30.100 TRACE nova.compute.manager AttributeError: 'dict' object has no attribute 'partition' ** Affects: nova Importance: Undecided Status: Invalid ** Tags: pci sriov ** Project changed: python-novaclient => nova ** Tags added: pci sriov ** Changed in: nova Status: New => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1583915 Title: SRIOV : AttributeError: 'dict' object has no attribute 'partition' Status in OpenStack Compute (nova): Invalid Bug description: With the below pci whitelist in nova.conf , getting the below ERROr pci_passthrough_whitelist = {"address":{"domain": ".*","bus": "04", "slot": "00","function": "[1-2]"},"physical_network":"physnet1"} pci_passthrough_whitelist ={"address":{"domain": ".*","bus": "04", "slot": "00","function": "[3-4]"},"physical_network":"physnet2"} 2016-05-20 02:37:30.100 ERROR nova.compute.manager [req-67cc2371-7005-4485-bbb0-b19d5075fd09 None None] Error updating resources for node stack. 2016-05-20 02:37:30.100 TRACE nova.compute.manager Traceback (most recent call last): 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/manager.py", line 6275, in update_available_resource_for_node 2016-05-20 02:37:30.100 TRACE nova.compute.manager rt.update_available_resource(context) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 478, in update_available_resource 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._update_available_resource(context, resources) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner 2016-05-20 02:37:30.100 TRACE nova.compute.manager return f(*args, **kwargs) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 499, in _update_available_resource 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._init_compute_node(context, resources) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 377, in _init_compute_node 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._setup_pci_tracker(context, resources) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 396, in _setup_pci_tracker 2016-05-20 02:37:30.100 TRACE nova.compute.manager self.pci_tracker = pci_manager.PciDevTracker(context, node_id=n_id) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/manager.py", line 58, in __init__ 2016-05-20 02:37:30.100 TRACE nova.compute.manager self.dev_filter = whitelist.Whitelist(CONF.pci_passthrough_whitelist) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/whitelist.py", line 78, in __init__ 2016-05-20 02:37:30.100 TRACE nova.compute.manager self.specs = self._parse_white_list_from_config(whitelist_spec) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/whitelist.py", line 59, in _parse_white_list_from_config 2016-05-20 02:37:30.100 TRACE nova.compute.manager spec = devspec.PciDeviceSpec(ds) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/devspec.py", line 134, in __init__ 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._init_dev_details() 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/devspec.py", line 159, in _init_dev_details 2016-05-20 02:37:30.100 TRACE nova.compute.manager self.address = PciAddress(self.address, pf) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/devspec.py", line 67, in __init__ 2016-05-20 02:37:30.100 TRACE nova.compute.manager self._init_address_fields(pci_addr) 2016-05-20 02:37:30.100 TRACE nova.compute.manager File "/opt/stack/nova/nova/pci/devspec.py", line 80, in _init_address_fields 2016-05-20 02:37:30.100 TRACE nova.compute.manager dbs, sep, func = pci_addr.partition('.') 2016-05-20 02:37:30.100 TRACE nova.compute.manager AttributeError: 'dict' object has no attribute 'partition' To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1583915/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp