[Openstack] Problem with adding interface to instance

Ɓukasz Chrustek lukasz at chrustek.net
Fri Nov 18 18:09:48 UTC 2016


Hello,

I have following problem:

root at nova1:~# nova interface-attach --net-id 4c046e0c-e44d-4ad4-9e81-a976751cf107 133d8a17-5659-49e5-9a11-98f5c2e39a50
ERROR (ClientException): Failed to attach interface (HTTP 500) (Request-ID: req-07e035c3-28ad-45e5-9e0b-0429612843fb)

and in log on compute node:

2016-11-18 19:08:00.376 26577 ERROR glanceclient.common.http [req-ecfa4af9-caf0-453d-bead-014e7c3deacd ] Request returned failure status 404.
2016-11-18 19:08:00.377 26577 WARNING nova.compute.utils [req-ecfa4af9-caf0-453d-bead-014e7c3deacd None] [instance: 133d8a17-5659-49e5-9a11-98f5c2e39a50] Can't access image : Image  could not be found.
2016-11-18 19:08:01.674 26577 ERROR nova.virt.libvirt.driver [req-ecfa4af9-caf0-453d-bead-014e7c3deacd None] [instance: 133d8a17-5659-49e5-9a11-98f5c2e39a50] attaching network adapter failed.
2016-11-18 19:08:02.303 26577 INFO nova.scheduler.client.report [req-ecfa4af9-caf0-453d-bead-014e7c3deacd None] Compute_service record updated for ('cp9', 'cp9.cloud.eco.atman.pl')
2016-11-18 19:08:02.320 26577 ERROR oslo.messaging.rpc.dispatcher [req-ecfa4af9-caf0-453d-bead-014e7c3deacd ] Exception during message handling: Failed to attach network adapter device to 133d8a17-5659-49e5-9a11-98f5c2e39a50
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 445, in decorated_function
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in wrapped
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     payload)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 71, in wrapped
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, **kw)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 325, in decorated_function
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     LOG.warning(msg, e, instance_uuid=instance_uuid)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 297, in decorated_function
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 353, in decorated_function
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 341, in decorated_function
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4893, in attach_interface
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     self.driver.attach_interface(instance, image_meta, network_info[0])
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1642, in attach_interface
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher     instance_uuid=instance['uuid'])
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher InterfaceAttachFailed: Failed to attach network adapter device to 133d8a17-5659-49e5-9a11-98f5c2e39a50
2016-11-18 19:08:02.320 26577 TRACE oslo.messaging.rpc.dispatcher 
2016-11-18 19:08:02.323 26577 ERROR oslo.messaging._drivers.common [req-ecfa4af9-caf0-453d-bead-014e7c3deacd ] Returning exception Failed to attach network adapter device to 133d8a17-5659-49e5-9a11-98f5c2e39a50 to caller
2016-11-18 19:08:02.323 26577 ERROR oslo.messaging._drivers.common [req-ecfa4af9-caf0-453d-bead-014e7c3deacd ] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n    incoming.message))\n', '  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n', '  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt, **new_args)\n', '  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 445, in decorated_function\n    return function(self, context, *args, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in wrapped\n    payload)\n', '  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 82, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 71, in wrapped\n    return f(self, context, *args, **kw)\n', '  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 325, in decorated_function\n    LOG.warning(msg, e, instance_uuid=instance_uuid)\n', '  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 82, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 297, in decorated_function\n    return function(self, context, *args, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 353, in decorated_function\n    kwargs[\'instance\'], e, sys.exc_info())\n', '  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 82, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 341, in decorated_function\n    return function(self, context, *args, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4893, in attach_interface\n    self.driver.attach_interface(instance, image_meta, network_info[0])\n', '  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1642, in attach_interface\n    instance_uuid=instance[\'uuid\'])\n', 'InterfaceAttachFailed: Failed to attach network adapter device to 133d8a17-5659-49e5-9a11-98f5c2e39a50\n']

Can  You  advice, what to do to add this port do instance ? It is very
important  instance,  and  all  I  can  is  see  how it is starting on
console, without Ethernet controllers inside.

Please give some advice.

Regards
Luk





More information about the Openstack mailing list