In the latest devstack (pulled on 7/3/14), you cannot access an instance's noVNC console on the horizon dashboard after you launched the instance. If you look at the logs, you will find:
INFO nova.console.websocketproxy [req-0851007a-adbb-4aff-b712-0108702efa58 None None] handler exception: 'module' object has no attribute 'InstanceInfoCache'#012Traceback (most recent call last):
File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
incoming.message))
File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
return self._do_dispatch(endpoint, method, ctxt, args)
File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
result = getattr(endpoint, method)(ctxt, **new_args)
File "/opt/stack/nova/nova/consoleauth/manager.py", line 128, in check_token
if self._validate_token(context, token):
File "/opt/stack/nova/nova/consoleauth/manager.py", line 114, in _validate_token
instance = objects.Instance.get_by_uuid(context, instance_uuid)
File "/opt/stack/nova/nova/objects/base.py", line 153, in wrapper
result = fn(cls, context, *args, **kwargs)
File "/opt/stack/nova/nova/objects/instance.py", line 312, in get_by_uuid
return cls._from_db_object(context, cls(), db_inst,
File "/opt/stack/nova/nova/objects/instance.py", line 288, in _from_db_object
# passed to us by a backlevel service, things will break
AttributeError: 'module' object has no attribute 'InstanceInfoCache'
In the latest devstack (pulled on 7/3/14), you cannot access an instance's noVNC console on the horizon dashboard after you launched the instance. If you look at the logs, you will find:
INFO nova.console. websocketproxy [req-0851007a- adbb-4aff- b712-0108702efa 58 None None] handler exception: 'module' object has no attribute 'InstanceInfoCa che'#012Traceba ck (most recent call last):
File "/opt/stack/ oslo.messaging/ oslo/messaging/ rpc/dispatcher. py", line 134, in _dispatch_and_reply message) )
incoming.
File "/opt/stack/ oslo.messaging/ oslo/messaging/ rpc/dispatcher. py", line 177, in _dispatch dispatch( endpoint, method, ctxt, args)
return self._do_
File "/opt/stack/ oslo.messaging/ oslo/messaging/ rpc/dispatcher. py", line 123, in _do_dispatch
result = getattr(endpoint, method)(ctxt, **new_args)
File "/opt/stack/ nova/nova/ consoleauth/ manager. py", line 128, in check_token token(context, token):
if self._validate_
File "/opt/stack/ nova/nova/ consoleauth/ manager. py", line 114, in _validate_token Instance. get_by_ uuid(context, instance_uuid)
instance = objects.
File "/opt/stack/ nova/nova/ objects/ base.py" , line 153, in wrapper
result = fn(cls, context, *args, **kwargs)
File "/opt/stack/ nova/nova/ objects/ instance. py", line 312, in get_by_uuid db_object( context, cls(), db_inst,
return cls._from_
File "/opt/stack/ nova/nova/ objects/ instance. py", line 288, in _from_db_object
# passed to us by a backlevel service, things will break
AttributeError: 'module' object has no attribute 'InstanceInfoCache'
This was noted in the following forum post: 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/
The problem is in line 228: InstanceInfoCac he(context)
instance.info_cache = objects.
It should be corrected to: info_cache. InstanceInfoCac he(context)
from nova.objects import instance_info_cache
...
instance.info_cache = instance_