Unable to detach interface

Bug #1405964 reported by Eugene Frolov
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Medium
MOS Nova
5.0.x
Fix Committed
Medium
MOS Nova
5.1.x
Fix Released
Medium
MOS Nova
6.0.x
Fix Released
Medium
MOS Nova

Bug Description

version.yaml

VERSION:
  mirantis: "no"
  production: "docker"
  release: "5.0.1"
  api: "1.0"
  astute_sha: "6db5f5031b74e67b92fcac1f7998eaa296d68025"
  fuellib_sha: "fb2fc2a14f9d7da75fc029648dcd9e60de476f68"
  ostf_sha: "2969c1ad443b632e815bb1f01149c3800cd7aa3a"
  nailgun_sha: "e94e84374234a192875e03629ff3bb6c229a826f"
  fuelmain_sha: "fd58828f404e4298ed338e8f44c6a326cebd31de"

root@node-1:~# nova interface-list 84ea9602-d32b-4474-b7fc-778bd1e78c02
+------------+--------------------------------------+--------------------------------------+-----------------+-------------------+
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------------+--------------------------------------+--------------------------------------+-----------------+-------------------+
| ACTIVE | 9c24fd72-b768-427c-9448-8375423880ba | f8091864-b1d5-4d0d-9f35-36070c57b7d2 | 192.168.111.119 | fa:16:3e:0f:4c:ef |
| ACTIVE | b6e31ed4-c910-4d95-b132-3c7ef872f66c | 7d8a16fd-130b-47f9-a985-d69e3a4e6620 | 192.168.0.1 | fa:16:3e:92:2d:08 |
| ACTIVE | bb6104f6-9451-4261-81e5-01b0a0ad0db2 | 82b2d5b8-6b33-4592-8cc9-3325c7b9396e | 192.168.0.3 | fa:16:3e:24:7d:51 |
+------------+--------------------------------------+--------------------------------------+-----------------+-------------------+

LC_ALL=C neutron port-show bb6104f6-9451-4261-81e5-01b0a0ad0db2
+-----------------------+------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+------------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | node-5 |
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true} |
| binding:vif_type | ovs |
| device_id | 84ea9602-d32b-4474-b7fc-778bd1e78c02 |
| device_owner | compute:None |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "c44361d5-a8a4-4c91-9388-ed1f48c535ca", "ip_address": "192.168.0.3"} |
| id | bb6104f6-9451-4261-81e5-01b0a0ad0db2 |
| mac_address | fa:16:3e:24:7d:51 |
| name | |
| network_id | 82b2d5b8-6b33-4592-8cc9-3325c7b9396e |
| security_groups | 168ca32c-456d-42cd-b7a8-5fb457cd6125 |
| status | ACTIVE |
| tenant_id | 3d0e067fc60a45b2af980681895501c6 |
+-----------------------+------------------------------------------------------------------------------------+

# nova interface-detach bb6104f6-9451-4261-81e5-01b0a0ad0db2 84ea9602-d32b-4474-b7fc-778bd1e78c02

compute log:
<182>Dec 26 18:32:07 node-5 nova-nova.compute.resource_tracker INFO: Compute_service record updated for node-5:node-5
<179>Dec 26 18:32:15 node-5 nova-oslo.messaging.rpc.dispatcher ERROR: Exception during message handling: Port bb6104f6-9451-4261-81e5-01b0a0ad0db2 is not attached
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
    incoming.message))
  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)
  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
    result = getattr(endpoint, method)(ctxt, **new_args)
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 393, in decorated_function
    return function(self, context, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4360, in detach_interface
    "attached") % port_id)
PortNotFound: Port bb6104f6-9451-4261-81e5-01b0a0ad0db2 is not attached

root@node-1:~# nova interface-list 84ea9602-d32b-4474-b7fc-778bd1e78c02
+------------+--------------------------------------+--------------------------------------+-----------------+-------------------+
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------------+--------------------------------------+--------------------------------------+-----------------+-------------------+
| ACTIVE | 9c24fd72-b768-427c-9448-8375423880ba | f8091864-b1d5-4d0d-9f35-36070c57b7d2 | 192.168.111.119 | fa:16:3e:0f:4c:ef |
| ACTIVE | b6e31ed4-c910-4d95-b132-3c7ef872f66c | 7d8a16fd-130b-47f9-a985-d69e3a4e6620 | 192.168.0.1 | fa:16:3e:92:2d:08 |
| ACTIVE | bb6104f6-9451-4261-81e5-01b0a0ad0db2 | 82b2d5b8-6b33-4592-8cc9-3325c7b9396e | 192.168.0.3 | fa:16:3e:24:7d:51 |
+------------+--------------------------------------+--------------------------------------+-----------------+-------------------+

Revision history for this message
Nastya Urlapova (aurlapova) wrote :

Thank you for your issue, could you collect diagnostic snapshot and iso provide iso version.

Changed in fuel:
status: New → Incomplete
description: updated
Eugene Frolov (efrolov)
description: updated
Changed in fuel:
milestone: none → 5.0.3
status: Incomplete → New
importance: Undecided → High
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :
tags: added: nova
affects: fuel → mos
Changed in mos:
milestone: 6.0.1 → none
no longer affects: fuel/5.1.x
no longer affects: fuel/6.1.x
no longer affects: fuel/6.0.x
no longer affects: fuel/5.0.x
no longer affects: mos/6.1.x
no longer affects: mos/7.0.x
Revision history for this message
Alexander Gubanov (ogubanov) wrote :

I verified it on mos 5.1.1 and 6.0 - fixed
Proof: http://pastebin.com/q4GQ6fzh

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.