<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Chathura,<div>what version of OpenStack were you using ? (in both cases)</div><div>thank you, glad you sorted it out!</div><div><br></div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; font-family: 'Lucida Grande'; border-spacing: 0px; -webkit-text-decorations-in-effect: none; "><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; "><b style="color: rgb(19, 112, 138); ">Razique Mahroua</b></span><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; color: rgb(19, 112, 138); "><b> - </b></span><span class="Apple-style-span" style="font-family: Helvetica; "><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; "><b style="color: rgb(19, 112, 138); ">Nuage & Co</b></span><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="font-weight: normal; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; "><font class="Apple-style-span" color="#13708a"><a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a></font></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; "><font class="Apple-style-span" color="#13708a">Tel : +33 9 72 37 94 15</font></div></span></span></span></span></span><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span><img height="125" width="125" id="4e0517d9-d763-4865-a161-528628ffdccd" apple-width="yes" apple-height="yes" src="cid:0A2450C8-6A0D-42D0-8035-743CAD564432@fabrique.lan"></span>
</div>
<br><div><div>Le 26 mars 2013 à 18:10, Chathura M. Sarathchandra Magurawalage <77.<a href="mailto:chathura@gmail.com">chathura@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello,<div><br></div><div>I get "Failed to connect to server (code: 1006)" error message on the dashboard when I try to view the  VNC panel.</div><div><br></div><div>I get the following error on the in the controller. /var/log/nova/nova-consoleauth.log</div>

<div><br></div><div><div>2013-03-26 16:55:49 16471 ERROR nova.openstack.common.rpc.amqp [-] Exception during message handling</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     if self._validate_token(context, token):</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     token['console_type'])</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     None, instance))</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     return rpc.call(context, self._get_topic(topic), msg, timeout)</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     return _get_impl().call(cfg.CONF, context, topic, msg, timeout)</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     rpc_amqp.get_connection_pool(conf, Connection))</div>

<div>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</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     rv = list(rv)</div>

<div>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__</div><div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp     raise result</div>

<div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp RemoteError: Remote error: AttributeError No such RPC function 'validate_console_port'</div><div>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</div>

<div>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</div><div>", line 148, in dispatch\n    raise AttributeError("No such RPC function \'%s\'" % method)\n', u"AttributeError: No such RPC function 'validate_console_port'\n"].</div>

<div>2013-03-26 16:55:49 16471 TRACE nova.openstack.common.rpc.amqp </div><div>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'</div>

<div>[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(</div><div>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</div>

<div> function \'%s\'" % method)\n', u"AttributeError: No such RPC function 'validate_console_port'\n"]. to caller</div><div>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</div>

<div>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</div><div>.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</div>

<div>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\'</div><div>

])\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</div><div>

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/</div><div>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/</div>

<div>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</div><div>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</div>

<div>or: AttributeError No such RPC function \'validate_console_port\'\n[u\'Traceback (most recent call last):<a href="smb://n/'">\\n\'</a>, u\'  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rp</div><div>

c/amqp.py", line 276, in _process_data\\n    rval = self.proxy.dispatch(ctxt, version, method, **args)<a href="smb://n/'">\\n\'</a>, u\'  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/d</div><div>ispatcher.py", line 148, in dispatch\\n    raise AttributeError("No such RPC function \\\'%s\\\'" % method)<a href="smb://n/'">\\n\'</a>, u"AttributeError: No such RPC function \'validate_console_port\'\\</div>

<div>n"].\n']</div></div><div><br></div><div><br></div><div>I get the following error in the compute node. /var/log/nova/nova-compute.log<br clear="all"><div><div dir="ltr"><div style=""><br></div><div style=""><div>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',</div>

<div> '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</div>

<div>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</div>
<div>
2013-03-26 16:55:49 6693 ERROR nova.openstack.common.rpc.amqp [-] Exception during message handling</div><div>2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):</div><div>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</div>

<div>2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)</div><div>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</div>

<div>2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp     raise AttributeError("No such RPC function '%s'" % method)</div><div>2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp AttributeError: No such RPC function 'validate_console_port'</div>

<div>2013-03-26 16:55:49 6693 TRACE nova.openstack.common.rpc.amqp </div><div>2013-03-26 16:55:49 6693 ERROR nova.openstack.common.rpc.common [-] Returning exception No such RPC function 'validate_console_port' to caller</div>

<div>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</div><div>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.</div>

<div>py", line 148, in dispatch\n    raise AttributeError("No such RPC function \'%s\'" % method)\n', "AttributeError: No such RPC function 'validate_console_port'\n"]</div><div>

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</div><div>72</div><div><br></div><div style="">

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 )</div>

<div style=""><br></div><div style="">Anyway this is for everyone else who is having the same problem.</div><div style=""><br></div><div style="">Best,</div><div style="">Chathura</div></div><div></div></div></div>
</div></div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>