vif_port_id of ironic port is not updating after neutron port-delete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Won't Fix
|
Undecided
|
Unassigned | ||
neutron |
Won't Fix
|
Medium
|
Andrey Shestakov |
Bug Description
Steps to reproduce:
1. Get list of attached ports of instance:
nova interface-list 42dd8b8b-
+------
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------
| ACTIVE | 512e6c8e-
+------
2. Show ironic port. it has vif_port_id in extra with id of neutron port:
ironic port-show 735fcaf5-
+------
| Property | Value |
+------
| address | 52:54:00:85:19:89 |
| created_at | 2016-07-
| extra | {u'vif_port_id': u'512e6c8e-
| local_link_
| node_uuid | 679fa8a9-
| pxe_enabled | |
| updated_at | 2016-07-
| uuid | 735fcaf5-
+------
3. Delete neutron port:
neutron port-delete 512e6c8e-
Deleted port: 512e6c8e-
4. It is done from interface list:
nova interface-list 42dd8b8b-
+------
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------
+------
5. ironic port still has vif_port_id with neutron's port id:
ironic port-show 735fcaf5-
+------
| Property | Value |
+------
| address | 52:54:00:85:19:89 |
| created_at | 2016-07-
| extra | {u'vif_port_id': u'512e6c8e-
| local_link_
| node_uuid | 679fa8a9-
| pxe_enabled | |
| updated_at | 2016-07-
| uuid | 735fcaf5-
+------
This can confuse when user wants to get list of unused ports of ironic node.
vif_port_id should be removed after neutron port-delete.
Changed in neutron: | |
status: | Incomplete → In Progress |
assignee: | nobody → Andrey Shestakov (ashestakov) |
tags: | added: usability |
tags: | added: baremetal |
tags: | removed: usability |
Changed in neutron: | |
importance: | Undecided → Medium |
Changed in neutron: | |
status: | In Progress → Won't Fix |
If you call 'neutron port-show 512e6c8e- 3829-4bbd- 8731-c03e5d7f76 39' after you deleted the port via neutron, is it still available? Seems more like an ironic issue to me, if neutron doesn't report the port back.