yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #44550
[Bug 1525076] Re: delete vm, port mac is not be reset
you can workaround the issue by setting the macs of all the VF to 00:00:00:00:00:01 before you start to use them, then libvirt will clean the VF.
The problem is with some driver that don't except 00:00:00:00:00:00
** Changed in: neutron
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1525076
Title:
delete vm, port mac is not be reset
Status in neutron:
Invalid
Bug description:
1 Create a vm with sriov port which use a fix mac
2 Delete vm.
3 Use "ip link show" to see the sriov port's vf mac. we found it not change.
We think that if we delete vm which use a fix mac ,the port's mac
should be clear.
def unplug_hw_veb(self, instance, vif):
if vif['vnic_type'] == network_model.VNIC_TYPE_MACVTAP:
# The ip utility doesn't accept the MAC 00:00:00:00:00:00.
# Therefore, keep the MAC unchanged. Later operations on
# the same VF will not be affected by the existing MAC.
linux_net.set_vf_interface_vlan(vif['profile']['pci_slot'],
mac_addr=vif['address'])
mac_addr=vif['address'] should be a random one.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1525076/+subscriptions
References