yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #02805
[Bug 1168574] Re: virtual_power_driver _mac_address is not set
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => havana-1
--
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/1168574
Title:
virtual_power_driver _mac_address is not set
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
After patch https://review.openstack.org/#/c/26078/ the baremetal
virtual_power_driver has a problem, because it is still trying to read
node['prov_mac_address'] which is no longer getting set.
nova/virt/baremetal/virtual_power_driver.py:
79 def __init__(self, **kwargs):
...
92 node = kwargs.pop('node', {})
95 self._mac_address = node.get('prov_mac_address', "")
96 self._mac_address = self._mac_address.replace(':', '')
Here is the error in n-cpu log:
File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/virt/baremetal/driver.py", line 361, in get_info
pm = get_power_manager(node=node, instance=instance)
File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/virt/baremetal/driver.py", line 111, in get_power_manager
return cls(**kwargs)
File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/virt/baremetal/virtual_power_driver.py", line 96, in __init__
self._mac_address = self._mac_address.replace(':', '')
AttributeError: 'NoneType' object has no attribute 'replace'
Patch https://review.openstack.org/#/c/25881/ appears to address this.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1168574/+subscriptions