port in use can be deleted by neutron, left an orphan interface in vm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Medium
|
Unassigned |
Bug Description
Way to reproduce:
nova boot --flavor m1.tiny --image cirros-
neutron port-delete c702e88f-
result:
left an unmanaged interface in vm, nova info cache and neutron port database de-sync.
$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 202abd0d-
+------
$ nova interface-list test
+------
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------
+------
potential fix:
Forbid to delete a port which is in use
Changed in neutron: | |
assignee: | nobody → Zang MingJie (zealot0630) |
tags: | added: neutron-core |
Changed in neutron: | |
assignee: | Zang MingJie (zealot0630) → Eugene Nikanorov (enikanorov) |
importance: | Undecided → Medium |
I'm not sure how this can be handled by neutron, especially that the described behavior is somewhat expected.
VM's port belong to a tenant, so tenant may need to have control.
Technically it's not quite clear what is 'port is in use'.