← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1682195] Re: Unexpected API Error

 

This isn't a duplicate of bug 1678493 because that bug is about showing
console output for a server and it times out. This bug is about
launching an instance and it blows up because it's trying to rpc cast to
the nova-network service, which is probably not running. nova-network
will only start in a cells v1 configuration since ocata, and you
shouldn't be using it.

** This bug is no longer a duplicate of bug 1678493
   oslo_messaging.exceptions.MessagingTimeout

** 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/1682195

Title:
  Unexpected API Error

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  When trying to launch instance, I get this error message : 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-700f5d8c-5d88-4458-a918-3c31d3819fe3)

  I checked the log file and I found :

   2017-04-12 19:52:46.922 2889 INFO os_vif [req-700f5d8c-5d88-4458-a918-3c31d3819fe3 1fdf459e4f694fde85818b178e1e9199 da7d418c8b414fc3b236800183794125 - default default] Loaded VIF plugin class '<class 'vif_plug_linux_bridge.linux_bridge.LinuxBridgePlugin'>' with name 'linux_bridge'
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions [req-700f5d8c-5d88-4458-a918-3c31d3819fe3 1fdf459e4f694fde85818b178e1e9199 da7d418c8b414fc3b236800183794125 - default default] Unexpected exception in API method
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 338, in wrapped
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 631, in create
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     **create_kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 154, in inner
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1528, in create
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1128, in _create_instance
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     reservation_id, max_count)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 824, in _validate_and_build_base_options
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     requested_networks, max_count)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 439, in _check_requested_networks
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     max_count)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 391, in validate_networks
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     requested_networks)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/rpcapi.py", line 214, in validate_networks
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     return self.client.call(ctxt, 'validate_networks', networks=networks)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 428, in call
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     return self.prepare().call(ctxt, method, **kwargs)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 169, in call
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     retry=self.retry)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 97, in _send
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     timeout=timeout, retry=retry)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 464, in send
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     retry=retry)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 453, in _send
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     result = self._waiter.wait(msg_id, timeout)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 336, in wait
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     message = self.waiters.get(msg_id, timeout=timeout)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 238, in get
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions     'to message ID %s' % msg_id)
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions MessagingTimeout: Timed out waiting for a reply to message ID ee329ba90cf4421698ca3666f0f381e7
  2017-04-12 19:53:47.360 2889 ERROR nova.api.openstack.extensions 
  2017-04-12 19:53:47.364 2889 INFO nova.api.openstack.wsgi [req-700f5d8c-5d88-4458-a918-3c31d3819fe3 1fdf459e4f694fde85818b178e1e9199 da7d418c8b414fc3b236800183794125 - default default] HTTP exception thrown: 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'>
  2017-04-12 19:53:47.366 2889 INFO nova.osapi_compute.wsgi.server [req-700f5d8c-5d88-4458-a918-3c31d3819fe3 1fdf459e4f694fde85818b178e1e9199 da7d418c8b414fc3b236800183794125 - default default] 127.0.0.1 "POST /v2.1/da7d418c8b414fc3b236800183794125/servers HTTP/1.1" status: 500 len: 583 time: 61.0842800

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


References