Ask Your Question
0

vnc in the dashbaord says "Failed to connect to server (code: 1006)". The set up is by devstack on ubuntu 12.04 with KVM.

asked 2014-07-02 17:31:03 -0600

naveenkothamasu gravatar image

updated 2014-07-02 17:35:13 -0600

I checked the log for n-novnc, it has an AttributeError: 'module' object has no attribute 'InstanceInfoCache'. Though I believe the actual error has something to do with my token validation. Any help?

Also, the following didn't help (In fact, I have every service running in the same node) https://ask.openstack.org/en/question/520/vnc-console-in-dashboard-fails-to-connect-ot-server-code-1006/ (https://ask.openstack.org/en/question...)

edit retag flag offensive close merge delete

Comments

dbaxps gravatar imagedbaxps ( 2014-07-03 05:01:06 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-07-03 04:50:56 -0600

paolozar gravatar image

Hi, I've seen the same issue in my setup based on Ubuntu 14.04 LTS, however this fixed the issue for me:

paolozar:/opt/devstack/nova$ git diff nova/objects/instance.py
diff --git a/nova/objects/instance.py b/nova/objects/instance.py
index 137f0b9..183b92f 100644
--- a/nova/objects/instance.py
+++ b/nova/objects/instance.py
@@ -21,6 +21,7 @@ from nova import notifications
 from nova import objects
 from nova.objects import base
 from nova.objects import fields
+from nova.objects import instance_info_cache
 from nova.openstack.common.gettextutils import _
 from nova.openstack.common import log as logging
 from nova.openstack.common import timeutils
paolozar:/opt/devstack/nova$

After the change, restart nova-consoleauth. Regards, Paolo

edit flag offensive delete link more

Comments

In havana, from nova.objects import instance_info_cache in opt/stack/nova/nova/objects/instance.py is missing. Thanks a ton.

naveenkothamasu gravatar imagenaveenkothamasu ( 2014-07-03 14:07:18 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-07-02 17:31:03 -0600

Seen: 2,825 times

Last updated: Jul 03 '14