Vlan aware VM - assign FIP to port which configured as "subport" is irrelevant
Bug #1636484 reported by
Alex Stafeyev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Low
|
Unassigned |
Bug Description
osp10
We crated:
External network.
2 internal networks- net1 and net2.
Port from each network - port1 and port2.
Trunk, configured with port1.
Trunk sub-port configured with port2.
Floating ip.
We booted a VM with port1 port and configured on the VM eth0 with eth0.VLAN sub interface, matches port2 configuration.
We assigned FIP to port2 - no connectivity to VM via port 2.
Cause:
Due to 1 GW on the VM via eth0 ( untagged ), all tagged requests that need GW go to the untagged GW- which fails the connectivity.
This behavior is correct.
So there is no meaning to assign fip to neutron port which was configured as trunk subport.
We should block this option.
I feel we can address these corner cases with a bit of a user education. Knowing how to set up a trunk and what subports are used for, no user would try to access/fiddle with them directly if not by accident. Thinking about how to address this in code, we would need some hook that would block certain operations from occurring, though if we are not careful we can create more damage than good :).
We should warn users [1] not to directly handle subports until we can come up with a good solution, if a solution is indeed required for such edge cases.
[1] https:/ /review. openstack. org/#/c/ 361776/