yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #96336
[Bug 2121530] [NEW] [SR-IOV] Trusted VF port MAC address can be changed from inside the VM
Public bug reported:
With some drivers (vendors), if from inside the VM the port MAC is
change, the VF MAC will be changed accordingly. That is only possible if
the port VF is trusted.
That represents an issue for the SR-IOV agent, that tries to locate the ports using the tuple (PCI, MAC). If the MAC does match the Neutron DB port MAC:
* The agent will print a warning message:
LOG.warning(device pci mismatch: %(device_mac)s - %(pci_slot)s, ...)
* It will also resync the whole cache. That will request to the Neutron API the list of port information. The RPC call will change the ports status to BUILD [1]. Then, if the port will be set at UP by the agent and the status will change to ACTIVE.
That triggers a loop of port status flapping from BUILD to ACTIVE, that
is repeated each SR-IOV agent loop (2 seconds by default).
The goal of this bug is to determine if we can skip this resync and only
write a warning message in the logs in case the (PCI, MAC) tuple doesn't
match.
[1]https://github.com/openstack/neutron/blob/f9067a719084710ee4f46fa31edb6a938e0dbbb0/neutron/plugins/ml2/rpc.py#L130-L137
Jira ticket: https://issues.redhat.com/browse/OSPRH-19321
** Affects: neutron
Importance: Undecided
Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
Status: New
** Changed in: neutron
Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)
** Description changed:
With some drivers (vendors), if from inside the VM the port MAC is
change, the VF MAC will be changed accordingly. That is only possible if
the port VF is trusted.
That represents an issue for the SR-IOV agent, that tries to locate the ports using the tuple (PCI, MAC). If the MAC does match the Neutron DB port MAC:
* The agent will print a warning message:
- LOG.warning(device pci mismatch: %(device_mac)s - %(pci_slot)s, ...)
+ LOG.warning(device pci mismatch: %(device_mac)s - %(pci_slot)s, ...)
* It will also resync the whole cache. That will request to the Neutron API the list of port information. The RPC call will change the ports status to BUILD [1]. Then, if the port will be set at UP by the agent and the status will change to ACTIVE.
That triggers a loop of port status flapping from BUILD to ACTIVE, that
is repeated each SR-IOV agent loop (2 seconds by default).
The goal of this bug is to determine if we can skip this resync and only
write a warning message in the logs in case the (PCI, MAC) tuple doesn't
match.
[1]https://github.com/openstack/neutron/blob/f9067a719084710ee4f46fa31edb6a938e0dbbb0/neutron/plugins/ml2/rpc.py#L130-L137
+
+ Jira ticket: https://issues.redhat.com/browse/OSPRH-19321
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2121530
Title:
[SR-IOV] Trusted VF port MAC address can be changed from inside the VM
Status in neutron:
New
Bug description:
With some drivers (vendors), if from inside the VM the port MAC is
change, the VF MAC will be changed accordingly. That is only possible
if the port VF is trusted.
That represents an issue for the SR-IOV agent, that tries to locate the ports using the tuple (PCI, MAC). If the MAC does match the Neutron DB port MAC:
* The agent will print a warning message:
LOG.warning(device pci mismatch: %(device_mac)s - %(pci_slot)s, ...)
* It will also resync the whole cache. That will request to the Neutron API the list of port information. The RPC call will change the ports status to BUILD [1]. Then, if the port will be set at UP by the agent and the status will change to ACTIVE.
That triggers a loop of port status flapping from BUILD to ACTIVE,
that is repeated each SR-IOV agent loop (2 seconds by default).
The goal of this bug is to determine if we can skip this resync and
only write a warning message in the logs in case the (PCI, MAC) tuple
doesn't match.
[1]https://github.com/openstack/neutron/blob/f9067a719084710ee4f46fa31edb6a938e0dbbb0/neutron/plugins/ml2/rpc.py#L130-L137
Jira ticket: https://issues.redhat.com/browse/OSPRH-19321
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2121530/+subscriptions