trunk: can not delete bound trunk for agent which allow create trunk on bound port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Le, Huifeng |
Bug Description
High level description:
For agent such as linux bridge which allows creating trunk on bound port, it is not allowed to delete the trunk if not unbound the port (parent-port) first. It will break the use scenario which expect to keep the port's (trunk's parent port) communication while delete the trunk.
The issue can be reproduced on the latest devstack.
Environments:
Version: latest devstack
Steps to reproduce:
1. create network/
openstack network create net0
openstack subnet create --network net0 --subnet-range 10.0.4.0/24 subnet0
openstack port create --network net0 trunk1_port
parent_
openstack port create --network net1 --mac-address "$parent_
result: success
2. create VM (bound trunk parent port first)
openstack server create --flavor ds512M --image vlan-capable-image --nic port-id=
result: success
3. create trunk: openstack network trunk create --parent-port trunk1_port --subport port=trunk1_
result: success
4. delete trunk:
openstack network trunk delete trunk1
Expected output: success
Actual output: fail with message "Trunk trunk1 is currently in use"
Changed in neutron: | |
assignee: | nobody → Le, Huifeng (hle2) |
Changed in neutron: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/605589
Review: https:/