SR-IOV agent's heal and optimize flow fails due to a problem in list_vifs (from utils module). The entire stack trace :
networking_powervm.plugins.ibm.agent.powervm.agent_base [req-c897f1b5-f3a0-4f7c-ab08-ad9aac365eec - - - - -] 'VNIC' object has no attribute 'vswitch_id'
networking_powervm.plugins.ibm.agent.powervm.agent_base Traceback (most recent call last):
networking_powervm.plugins.ibm.agent.powervm.agent_base File "/usr/lib/python2.7/dist packages/networking_powervm/plugins/ibm/agent/powervm/agent_base.py", line 415, in rpc_loop
networking_powervm.plugins.ibm.agent.powervm.agent_base self.heal_and_optimize()
networking_powervm.plugins.ibm.agent.powervm.agent_base File "/usr/lib/python2.7/dist-packages/networking_powervm/plugins/ibm/agent/powervm/sriov_agent.py", line 139, in heal_and_optimize
networking_powervm.plugins.ibm.agent.powervm.agent_base lpar_vnic_map = utils.list_vifs(self.adapter, self.vif_wrapper_class)
networking_powervm.plugins.ibm.agent.powervm.agent_base File "/usr/lib/python2.7/dist-packages/networking_powervm/plugins/ibm/agent/powervm/utils.py", line 236, in list_vifs
networking_powervm.plugins.ibm.agent.powervm.agent_base total_vifs[vm_wrap] = _find_vifs(adapter, vif_class, vm_wrap, vs_exclu)
networking_powervm.plugins.ibm.agent.powervm.agent_base File "/usr/lib/python2.7/dist-packages/pypowervm/utils/retry.py", line 237, in __retry
networking_powervm.plugins.ibm.agent.powervm.agent_base resp = func(*args, **kwds)
networking_powervm.plugins.ibm.agent.powervm.agent_base File "/usr/lib/python2.7/dist-packages/networking_powervm/plugins/ibm/agent/powervm/utils.py", line 280, in _find_vifs
networking_powervm.plugins.ibm.agent.powervm.agent_base and not getattr(vif, 'vswitch_id', None) in vs_exclu)]
networking_powervm.plugins.ibm.agent.powervm.agent_base AttributeError: 'VNIC' object has no attribute 'vswitch_id'
networking_powervm.plugins.ibm.agent.powervm.agent_base
vswitch_id is available only on CNA objects and not on VNICs objects.
Fix proposed to branch: master /review. openstack. org/465761
Review: https:/