Neutron allows creation of trunks for VIF_TYPE_HW_VEB ports
Bug #1974183 reported by
Michal Dulko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Rodolfo Alonso |
Bug Description
There's no trunk driver supporting VIF_TYPE_HW_VEB ports [1,2,3], yet Neutron allows trunks to be created for them. I think it should rejected on validation.
[1] https:/
[2] https:/
[3] https:/
description: | updated |
description: | updated |
Changed in neutron: | |
status: | New → Confirmed |
tags: | added: api trunk |
Changed in neutron: | |
importance: | Undecided → Medium |
tags: | added: low-hanging-fruit |
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
tags: | added: ovn tru |
tags: | removed: tru |
To post a comment you must log in.
Hello:
This problem is happening in the OVN driver, in the Trunk service OVN driver (both networking-ovn [1] for Train deployments or Neutron [2] for newer).
When a trunk is created, regardless of the port binding (that means, even if the parent port is not bound to ML2/OVN), the Trunk OVS driver updates the status to ACTIVE. This is obviously something wrong that must be fixed but doesn't affect to any other service (**if** this service is not reading the trunk status).
Another topic, that is related to this bug is what is happening when a parent port is linked to a trunk and this parent port is then bound to a driver (SR-IOV in this specific case NOTE1) that doesn't have Trunk driver. In this case, the Trunk won't be created and the status of the Trunk must not be updated.
Regards.
NOTE1: the parent port is vnic-type direct and it is bound to a SR-IOV network. This is not defined in the bug description but I have access to the reporter environment.
[1]https:/ /github. com/openstack/ networking- ovn/blob/ 2704f99a2c97f00 8aedc9c3b8ed4eb c17c8245cc/ networking_ ovn/ml2/ trunk_driver. py#L140 /github. com/openstack/ neutron/ blob/9ca5c1cc04 26f629148e1e406 57660671e948ce3 /neutron/ services/ trunk/drivers/ ovn/trunk_ driver. py#L141
[2]https:/