vif_port_id of ironic port is not updated after neutron port-delete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Medium
|
Unassigned |
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 gone 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-
+------
Expected result
===============
ironic port should not have vif_port_id in extra field.
Actual result
=============
ironic port has vif_port_id with id of deleted neutron port.
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.
Corresponding bug filed on neutron side https:/
Changed in nova: | |
assignee: | nobody → Andrey Shestakov (ashestakov) |
Changed in nova: | |
status: | New → In Progress |
summary: |
- vif_port_id of ironic port is not updating after neutron port-delete + vif_port_id of ironic port is not updated after neutron port-delete |
description: | updated |
tags: | added: ironic |
Changed in nova: | |
importance: | Undecided → Medium |
Change abandoned by Sean Dague (<email address hidden>) on branch: master /review. openstack. org/347410
Review: https:/
Reason: This review is > 6 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.