← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1368769] Re: novncproxy.log reporting exception object has no attribute 'InstanceInfoCache'

 

** Changed in: nova
       Status: Fix Committed => 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/1368769

Title:
  novncproxy.log reporting exception object has no attribute
  'InstanceInfoCache'

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  Occurs occasionaly when attempting to connect to console of an
  instance:

  2014-09-10 15:16:42 23425 INFO nova.console.websocketproxy [req-d2e523d7-f46d-40ab-9c10-4c25598599f3 None None] handler exception: 'module' object has no attribute 'InstanceInfoCache'
  Traceback (most recent call last):

    File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
      incoming.message))

    File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
      return self._do_dispatch(endpoint, method, ctxt, args)

    File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
      result = getattr(endpoint, method)(ctxt, **new_args)

    File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/consoleauth/manager.py", line 128, in check_token
      if self._validate_token(context, token):

    File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/consoleauth/manager.py", line 114, in _validate_token
      instance = objects.Instance.get_by_uuid(context, instance_uuid)

    File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/objects/base.py", line 153, in wrapper
      result = fn(cls, context, *args, **kwargs)

    File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/objects/instance.py", line 312, in get_by_uuid
      expected_attrs)

    File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/objects/instance.py", line 288, in _from_db_object
      instance.info_cache = objects.InstanceInfoCache(context)

  AttributeError: 'module' object has no attribute 'InstanceInfoCache'

  This is referenced here also -
  https://ask.openstack.org/en/question/33966/vnc-in-the-dashbaord-says-
  failed-to-connect-to-server-code-1006-the-set-up-is-by-devstack-on-
  ubuntu-1204-with-kvm/

  which also explains the fix as being to put in the missing import
  statement

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


References