openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #22243
novnc not working (No such RPC function validate_console_port ) - fix
Hello,
I get "Failed to connect to server (code: 1006)" error message on the
dashboard when I try to view the VNC panel.
I get the following error on the in the
controller. /var/log/nova/nova-consoleauth.log
2013-03-26 16:55:49 16471 ERROR nova.openstack.common.rpc.amqp [-]
Exception during message handling
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp Traceback
(most recent call last):
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line
276, in _process_data
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp rval =
self.proxy.dispatch(ctxt, version, method, **args)
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py",
line 145, in dispatch
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp return
getattr(proxyobj, method)(ctxt, **kwargs)
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/consoleauth/manager.py", line 107,
in check_token
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp if
self._validate_token(context, token):
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/consoleauth/manager.py", line 99, in
_validate_token
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp
token['console_type'])
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/compute/rpcapi.py", line 267, in
validate_console_port
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp None,
instance))
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/proxy.py", line
80, in call
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp return
rpc.call(context, self._get_topic(topic), msg, timeout)
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py",
line 108, in call
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp return
_get_impl().call(cfg.CONF, context, topic, msg, timeout)
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/impl_kombu.py",
line 718, in call
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp
rpc_amqp.get_connection_pool(conf, Connection))
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line
369, in call
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp rv =
list(rv)
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line
337, in __iter__
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp raise
result
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp RemoteError:
Remote error: AttributeError No such RPC function 'validate_console_port'
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp [u'Traceback
(most recent call last):\n', u' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.p
y", line 276, in _process_data\n rval = self.proxy.dispatch(ctxt,
version, method, **args)\n', u' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py
", line 148, in dispatch\n raise AttributeError("No such RPC function
\'%s\'" % method)\n', u"AttributeError: No such RPC function
'validate_console_port'\n"].
2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp
2013-03-26 16:55:49 16471 ERROR nova.openstack.common.rpc.common [-]
Returning exception Remote error: AttributeError No such RPC function
'validate_console_port'
[u'Traceback (most recent call last):\n', u' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line
276, in _process_data\n rval = self.proxy.dispatch(
ctxt, version, method, **args)\n', u' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py",
line 148, in dispatch\n raise AttributeError("No such RPC
function \'%s\'" % method)\n', u"AttributeError: No such RPC function
'validate_console_port'\n"]. to caller
2013-03-26 16:55:49 16471 ERROR nova.openstack.common.rpc.common [-]
['Traceback (most recent call last):\n', ' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/am
qp.py", line 276, in _process_data\n rval = self.proxy.dispatch(ctxt,
version, method, **args)\n', ' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher
.py", line 145, in dispatch\n return getattr(proxyobj, method)(ctxt,
**kwargs)\n', ' File
"/usr/lib/python2.7/dist-packages/nova/consoleauth/manager.py", line 107,
in check_tok
en\n if self._validate_token(context, token):\n', ' File
"/usr/lib/python2.7/dist-packages/nova/consoleauth/manager.py", line 99, in
_validate_token\n token[\'console_type\'
])\n', ' File "/usr/lib/python2.7/dist-packages/nova/compute/rpcapi.py",
line 267, in validate_console_port\n None, instance))\n', ' File
"/usr/lib/python2.7/dist-packages/nov
a/openstack/common/rpc/proxy.py", line 80, in call\n return
rpc.call(context, self._get_topic(topic), msg, timeout)\n', ' File
"/usr/lib/python2.7/dist-packages/nova/openstack/
common/rpc/__init__.py", line 108, in call\n return
_get_impl().call(cfg.CONF, context, topic, msg, timeout)\n', ' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/
rpc/impl_kombu.py", line 718, in call\n
rpc_amqp.get_connection_pool(conf, Connection))\n', ' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line
36
9, in call\n rv = list(rv)\n', ' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line
337, in __iter__\n raise result\n', 'RemoteError: Remote err
or: AttributeError No such RPC function
\'validate_console_port\'\n[u\'Traceback (most recent call last):\\n\', u\'
File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rp
c/amqp.py", line 276, in _process_data\\n rval =
self.proxy.dispatch(ctxt, version, method, **args)\\n\', u\' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/d
ispatcher.py", line 148, in dispatch\\n raise AttributeError("No such
RPC function \\\'%s\\\'" % method)\\n\', u"AttributeError: No such RPC
function \'validate_console_port\'\\
n"].\n']
I get the following error in the compute
node. /var/log/nova/nova-compute.log
2013-03-26 16:55:49 6693 DEBUG nova.openstack.common.rpc.amqp [-] unpacked
context: {'project_name': None, 'user_id': None, 'roles': [], 'timestamp':
u'2013-03-26T16:55:49.333458',
'auth_token': '<SANITIZED>', 'remote_address': None, 'quota_class': None,
'is_admin': True, 'service_catalog': None, 'request_id':
u'req-de888b2e-8c5b-45f1-95d4-5369f6d64b00', 'in
stance_lock_checked': False, 'project_id': None, 'user_name': None,
'read_deleted': u'no'} _safe_log
/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/common.py:195
2013-03-26 16:55:49 6693 ERROR nova.openstack.common.rpc.amqp [-] Exception
during message handling
2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp Traceback
(most recent call last):
2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line
276, in _process_data
2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp rval =
self.proxy.dispatch(ctxt, version, method, **args)
2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py",
line 148, in dispatch
2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp raise
AttributeError("No such RPC function '%s'" % method)
2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp
AttributeError: No such RPC function 'validate_console_port'
2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp
2013-03-26 16:55:49 6693 ERROR nova.openstack.common.rpc.common [-]
Returning exception No such RPC function 'validate_console_port' to caller
2013-03-26 16:55:49 6693 ERROR nova.openstack.common.rpc.common [-]
['Traceback (most recent call last):\n', ' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amq
p.py", line 276, in _process_data\n rval = self.proxy.dispatch(ctxt,
version, method, **args)\n', ' File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.
py", line 148, in dispatch\n raise AttributeError("No such RPC function
\'%s\'" % method)\n', "AttributeError: No such RPC function
'validate_console_port'\n"]
2013-03-26 16:56:25 6693 DEBUG nova.manager [-] Running periodic task
ComputeManager._publish_service_capabilities periodic_tasks
/usr/lib/python2.7/dist-packages/nova/manager.py:1
72
After few minutes trying to figure out what went wrong. I updated openstack
on the compute node to the latest software update. Then the problem got
fixed. I think I had this problem in the first place because I only updated
the controller, so there was an API backward incompatibility with the old
and the new update of nova? ( "as validate_console_port" function could not
be found otherwise )
Anyway this is for everyone else who is having the same problem.
Best,
Chathura
Follow ups