← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1525076] [NEW] delete vm, port mac is not be reset

 

Public bug reported:

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.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
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:
  New

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


Follow ups