← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1409617] [NEW] Failed to attach interface

 

Public bug reported:

when i try to attach a existing port to an instance using command: nova
interface-attach --port-id <port-id> <instance-id>, i get an error:
Failed to attach interface

Step to reproduce:

stacker@stack:~$ neutron port-create 2cac259a-d9b5-47fe-9263-79ce6fd22dc6
Created a new port:
+-----------------------+--------------------------------------------------------------------------------------+
| Field                 | Value                                                                                |
+-----------------------+--------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                 |
| allowed_address_pairs |                                                                                      |
| binding:host_id       |                                                                                      |
| binding:profile       | {}                                                                                   |
| binding:vif_details   | {}                                                                                   |
| binding:vif_type      | unbound                                                                              |
| binding:vnic_type     | normal                                                                               |
| device_id             |                                                                                      |
| device_owner          |                                                                                      |
| fixed_ips             | {"subnet_id": "991d821c-aeea-44db-b419-4f82fc89353a", "ip_address": "121.12.120.21"} |
| id                    | 620c1351-fbac-4d68-aab3-943feb9acb14                                                 |
| mac_address           | fa:16:3e:4f:83:59                                                                    |
| name                  |                                                                                      |
| network_id            | 2cac259a-d9b5-47fe-9263-79ce6fd22dc6                                                 |
| security_groups       | 06aaa36c-a685-4493-a72d-f8457f00acb3                                                 |
| status                | DOWN                                                                                 |
| tenant_id             | 270850a2c3cd46d794b05e9f28e2c9e2                                                     |
+-----------------------+--------------------------------------------------------------------------------------+
stacker@stack:~$ nova list --all-tenants
+--------------------------------------+------+---------+------------+-------------+--------------------------------------+
| ID                                   | Name | Status  | Task State | Power State | Networks                             |
+--------------------------------------+------+---------+------------+-------------+--------------------------------------+
| af87c1b2-1fd4-4345-a9b6-025694b1cec7 | b    | SHUTOFF | -          | Shutdown    | test=121.12.120.17; private=10.0.0.7 |
| d63f5376-03a6-49ad-b80e-c460c5039593 | c    | SHUTOFF | -          | Shutdown    | private=10.0.0.8                     |
+--------------------------------------+------+---------+------------+-------------+--------------------------------------+
stacker@stack:~$ nova interface-attach --port-id 620c1351-fbac-4d68-aab3-943feb9acb14 d63f5376-03a6-49ad-b80e-c460c5039593
ERROR (ClientException): Failed to attach interface (HTTP 500) (Request-ID: req-3d04c5c6-3700-4ebc-9912-6dbf3f13f728)

Here is part of trace log from nova-api:
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces   File "/opt/stack/nova/nova/compute/manager.py", line 323, in decorated_function
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces     kwargs['instance'], e, sys.exc_info())
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces   File "/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in __exit__
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces     six.reraise(self.type_, self.value, self.tb)
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces   File "/opt/stack/nova/nova/compute/manager.py", line 311, in decorated_function
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces     return function(self, context, *args, **kwargs)
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces   File "/opt/stack/nova/nova/compute/manager.py", line 4828, in attach_interface
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces     instance_uuid=instance.uuid)
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces
2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces InterfaceAttachFailed: Failed to attach network adapter device to d63f5376-03a6-49ad-b80e-c460c5039593

** Affects: nova
     Importance: Undecided
     Assignee: Liyingjun (liyingjun)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Liyingjun (liyingjun)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1409617

Title:
  Failed to attach interface

Status in OpenStack Compute (Nova):
  New

Bug description:
  when i try to attach a existing port to an instance using command:
  nova interface-attach --port-id <port-id> <instance-id>, i get an
  error: Failed to attach interface

  Step to reproduce:

  stacker@stack:~$ neutron port-create 2cac259a-d9b5-47fe-9263-79ce6fd22dc6
  Created a new port:
  +-----------------------+--------------------------------------------------------------------------------------+
  | Field                 | Value                                                                                |
  +-----------------------+--------------------------------------------------------------------------------------+
  | admin_state_up        | True                                                                                 |
  | allowed_address_pairs |                                                                                      |
  | binding:host_id       |                                                                                      |
  | binding:profile       | {}                                                                                   |
  | binding:vif_details   | {}                                                                                   |
  | binding:vif_type      | unbound                                                                              |
  | binding:vnic_type     | normal                                                                               |
  | device_id             |                                                                                      |
  | device_owner          |                                                                                      |
  | fixed_ips             | {"subnet_id": "991d821c-aeea-44db-b419-4f82fc89353a", "ip_address": "121.12.120.21"} |
  | id                    | 620c1351-fbac-4d68-aab3-943feb9acb14                                                 |
  | mac_address           | fa:16:3e:4f:83:59                                                                    |
  | name                  |                                                                                      |
  | network_id            | 2cac259a-d9b5-47fe-9263-79ce6fd22dc6                                                 |
  | security_groups       | 06aaa36c-a685-4493-a72d-f8457f00acb3                                                 |
  | status                | DOWN                                                                                 |
  | tenant_id             | 270850a2c3cd46d794b05e9f28e2c9e2                                                     |
  +-----------------------+--------------------------------------------------------------------------------------+
  stacker@stack:~$ nova list --all-tenants
  +--------------------------------------+------+---------+------------+-------------+--------------------------------------+
  | ID                                   | Name | Status  | Task State | Power State | Networks                             |
  +--------------------------------------+------+---------+------------+-------------+--------------------------------------+
  | af87c1b2-1fd4-4345-a9b6-025694b1cec7 | b    | SHUTOFF | -          | Shutdown    | test=121.12.120.17; private=10.0.0.7 |
  | d63f5376-03a6-49ad-b80e-c460c5039593 | c    | SHUTOFF | -          | Shutdown    | private=10.0.0.8                     |
  +--------------------------------------+------+---------+------------+-------------+--------------------------------------+
  stacker@stack:~$ nova interface-attach --port-id 620c1351-fbac-4d68-aab3-943feb9acb14 d63f5376-03a6-49ad-b80e-c460c5039593
  ERROR (ClientException): Failed to attach interface (HTTP 500) (Request-ID: req-3d04c5c6-3700-4ebc-9912-6dbf3f13f728)

  Here is part of trace log from nova-api:
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces   File "/opt/stack/nova/nova/compute/manager.py", line 323, in decorated_function
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces     kwargs['instance'], e, sys.exc_info())
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces   File "/usr/local/lib/python2.7/dist-packages/oslo/utils/excutils.py", line 82, in __exit__
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces     six.reraise(self.type_, self.value, self.tb)
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces   File "/opt/stack/nova/nova/compute/manager.py", line 311, in decorated_function
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces     return function(self, context, *args, **kwargs)
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces   File "/opt/stack/nova/nova/compute/manager.py", line 4828, in attach_interface
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces     instance_uuid=instance.uuid)
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces
  2015-01-12 15:47:34.943 TRACE nova.api.openstack.compute.contrib.attach_interfaces InterfaceAttachFailed: Failed to attach network adapter device to d63f5376-03a6-49ad-b80e-c460c5039593

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1409617/+subscriptions


Follow ups

References