Neutron port got deleted when attach interface failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Zhenyu Zheng | ||
Newton |
Won't Fix
|
Medium
|
Unassigned | ||
Ocata |
Fix Committed
|
Medium
|
Elod Illes |
Bug Description
When attach an pre created Neutron port to Nova instances and got failed, the port will be deleted in Neutron:
How to reproduce:
Step 1: create a new Neutron Port:
root@SZX1000191
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| created_at | 2016-11-
| description | |
| device_id | |
| device_owner | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "6cf2ed09-
| | {"subnet_id": "6b3902ca-
| id | fd240a85-
| mac_address | fa:16:3e:cc:fb:9e |
| name | |
| network_id | e1775804-
| port_security_
| project_id | 405a8b8100ae47f
| revision_number | 6 |
| security_groups | 9ea518bb-
| status | DOWN |
| tenant_id | 405a8b8100ae47f
| updated_at | 2016-11-
+------
root@SZX1000191
+------
| id | name | mac_address | fixed_ips |
+------
| 453879db-
| | | | {"subnet_id": "5ff9100a-
| 4cd1ad8e-
| | | | {"subnet_id": "5ff9100a-
| 74a0b31a-
| | | | {"subnet_id": "6b3902ca-
| 8fc6af24-
| eaf6a086-
| | | | {"subnet_id": "5ff9100a-
| ebce0f96-
| fd240a85-
| | | | {"subnet_id": "6b3902ca-
+------
Step 2: Attach it to the Nova instance, and error is raised by intension
root@SZX1000191
ERROR (ClientException): Failed to attach network adapter device to e1213eee-
Step 3: Check the neutron ports again, the port is gone.
root@SZX1000191
+------
| id | name | mac_address | fixed_ips |
+------
| 453879db-
| | | | {"subnet_id": "5ff9100a-
| 4cd1ad8e-
| | | | {"subnet_id": "5ff9100a-
| 74a0b31a-
| | | | {"subnet_id": "6b3902ca-
| 8fc6af24-
| eaf6a086-
| | | | {"subnet_id": "5ff9100a-
| ebce0f96-
+------
This is due to when we do clean up here:
http://
we treat this port as nova-created port as it has not been included in the preexisting ports.
Changed in nova: | |
assignee: | nobody → Zhenyu Zheng (zhengzhenyu) |
summary: |
- Neutron port got deleted when attach port failed + Neutron port got deleted when attach interface failed |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Zhenyu Zheng (zhengzhenyu) → huangtianhua (huangtianhua) |
Changed in nova: | |
assignee: | huangtianhua (huangtianhua) → Zhenyu Zheng (zhengzhenyu) |
Changed in nova: | |
assignee: | Zhenyu Zheng (zhengzhenyu) → Eric Fried (efried) |
Changed in nova: | |
assignee: | Eric Fried (efried) → Zhenyu Zheng (zhengzhenyu) |
Changed in nova: | |
importance: | High → Medium |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Zhenyu Zheng (zhengzhenyu) |
Fix proposed to branch: master /review. openstack. org/403568
Review: https:/