← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1807561] Re: nova interface-attach report error:'oslo_messaging.exceptions.MessagingTimeout'

 

The interface attach is a synchronous RPC call from the nova-api service
to the nova-compute service. That times out after 60 seconds by default
if nova-compute does not respond. So, you would have to figure out why
the interface attach operation does not complete within the timeout. Is
nova-compute creating a new neutron port and attaching it to the server?
Is time being spent in neutron? Did something fail and hang the
response?

** Changed in: nova
       Status: New => Invalid

-- 
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/1807561

Title:
  nova interface-attach report
  error:'oslo_messaging.exceptions.MessagingTimeout'

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Hello!

  I encountered an Unexpected  API error when I try nova interface-
  attach to attach a port to an instance.

  The detail messages are as follow:

  DEBUG (session:722) POST call to compute for http://192.168.100.20/compute/v2.1/servers/8e8410d0-6b11-4115-92c2-f67569ed452c/os-interface used request id req-8227a151-8e21-4402-96df-fe4e24d58fd7
  DEBUG (shell:951) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'oslo_messaging.exceptions.MessagingTimeout'> (HTTP 500) (Request-ID: req-8227a151-8e21-4402-96df-fe4e24d58fd7)
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 949, in main
      OpenStackComputeShell().main(argv)
    File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 871, in main
      args.func(self.cs, args)
    File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 4480, in do_interface_attach
      **update_kwargs)
    File "/usr/local/lib/python2.7/dist-packages/novaclient/api_versions.py", line 393, in substitution
      return methods[-1].func(obj, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 593, in interface_attach
      tag)
    File "/usr/local/lib/python2.7/dist-packages/novaclient/api_versions.py", line 393, in substitution
      return methods[-1].func(obj, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 1908, in interface_attach
      body, 'interfaceAttachment')
    File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 361, in _create
      resp, body = self.api.client.post(url, body=body)
    File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 310, in post
      return self.request(url, 'POST', **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 83, in request
      raise exceptions.from_response(resp, body, url, method)
  ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'oslo_messaging.exceptions.MessagingTimeout'> (HTTP 500) (Request-ID: req-8227a151-8e21-4402-96df-fe4e24d58fd7)
  ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'oslo_messaging.exceptions.MessagingTimeout'> (HTTP 500) (Request-ID: req-8227a151-8e21-4402-96df-fe4e24d58fd7)

  
  How to fix this error? I will be appreciate for any suggestions.

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


References