← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1371798] Re: TypeError: compute_node_get_all_by_host() takes exactly 2 arguments (3 given)

 

Ignore me, this was from the change itself.

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

Title:
  TypeError: compute_node_get_all_by_host() takes exactly 2 arguments (3
  given)

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  Saw a check job fail because of this:

  http://logs.openstack.org/07/119807/4/check/check-tempest-dsvm-
  neutron-full/0f94eb8/logs/screen-n-cpu.txt.gz#_2014-09-18_08_44_46_864

  Logstash query:

  message:"TypeError: compute_node_get_all_by_host() takes exactly 2
  arguments (3 given)" AND tags:"screen-n-cpu.txt"

  6 hits in the last 7 days, check jobs, all failures

  http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiVHlwZUVycm9yOiBjb21wdXRlX25vZGVfZ2V0X2FsbF9ieV9ob3N0KCkgdGFrZXMgZXhhY3RseSAyIGFyZ3VtZW50cyAoMyBnaXZlbilcIiBBTkQgdGFnczpcInNjcmVlbi1uLWNwdS50eHRcIiIsImZpZWxkcyI6WyJidWlsZF9zaG9ydF91dWlkIl0sIm9mZnNldCI6MCwidGltZWZyYW1lIjoiNjA0ODAwIiwiZ3JhcGhtb2RlIjoiY291bnQiLCJ0aW1lIjp7InVzZXJfaW50ZXJ2YWwiOjB9LCJzdGFtcCI6MTQxMTE2MTMyMTAwMX0=

  Trace:

  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/openstack/common/threadgroup.py", line 125, in wait
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     x.wait()
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/openstack/common/threadgroup.py", line 47, in wait
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 173, in wait
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 293, in switch
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 212, in main
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/openstack/common/service.py", line 490, in run_service
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     service.start()
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/service.py", line 181, in start
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     self.manager.pre_start_hook()
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/compute/manager.py", line 1152, in pre_start_hook
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     self.update_available_resource(nova.context.get_admin_context())
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/compute/manager.py", line 5920, in update_available_resource
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     compute_nodes_in_db = self._get_compute_nodes_in_db(context)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/compute/manager.py", line 5931, in _get_compute_nodes_in_db
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     use_slave=use_slave)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/objects/base.py", line 153, in wrapper
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     args, kwargs)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/conductor/rpcapi.py", line 341, in object_class_action
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     objver=objver, args=args, kwargs=kwargs)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line 152, in call
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     retry=self.retry)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 90, in _send
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     timeout=timeout, retry=retry)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 408, in send
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     retry=retry)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 399, in _send
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     raise result
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup TypeError: compute_node_get_all_by_host() takes exactly 2 arguments (3 given)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup 
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/conductor/manager.py", line 400, in _object_dispatch
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     return getattr(target, method)(context, *args, **kwargs)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup 
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/objects/base.py", line 155, in wrapper
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     result = fn(cls, context, *args, **kwargs)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup 
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup   File "/opt/stack/new/nova/nova/objects/compute_node.py", line 185, in get_all_by_host
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup     db_computes = db.compute_node_get_all_by_host(context, host, use_slave)
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup 
  2014-09-18 08:44:46.864 31775 TRACE nova.openstack.common.threadgroup TypeError: compute_node_get_all_by_host() takes exactly 2 arguments (3 given)

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


References