<div dir="ltr"><div><div><div>Hi Li,<br><br></div>On <b>api node</b> please use the config on nova.conf<br><br>vncserver_listen = 0.0.0.0<br>vncserver_proxyclient_address = 0.0.0.0 <br>novncproxy_port=6080<br>novnc_enabled=true<br>
novncproxy_base_url=<a href="http://public_ip_of_controller:6080/vnc_auto.html">http://public_ip_of_controller:6080/vnc_auto.html</a><br><br></div>On <b>compute node</b> update nova.conf as :<br><br>vnc_enabled = True<br>
vncserver_listen = 0.0.0.0<br>vncserver_proxyclient_address = compute_ip_address<br>novncproxy_base_url = <a href="http://public_ip_of_controller:6080/vnc_auto.html">http://public_ip_of_controller:6080/vnc_auto.html</a><br>
<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 1:48 PM, Li, Chen <span dir="ltr"><<a href="mailto:chen.li@intel.com" target="_blank">chen.li@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi list,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m working under CentOS with icehouse.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m trying to enable VNC console for instances.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">While my api node has 2 physical NICs, one with IP 172.16.24.2, another one with IP 192.168.40.121.<u></u><u></u></p>
<p class="MsoNormal">The compute node has only one NIC with IP 192.168.40.127.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I configured nova.conf on <b>api node</b> with:<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">novncproxy_base_url=<a href="http://172.16.24.2:6080/vnc_auto.html" target="_blank">http://172.16.24.2:6080/vnc_auto.html</a><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">vncserver_proxyclient_address=192.168.40.121<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">vnc_enabled=true<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">nova.conf on <b>compute node</b> with:<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">novncproxy_base_url=<a href="http://172.16.24.2:6080/vnc_auto.html" target="_blank">http://172.16.24.2:6080/vnc_auto.html</a><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">vncserver_listen=0.0.0.0<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">vncserver_proxyclient_address=192.168.40.127<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">vnc_enabled=true<u></u><u></u></p>
<p>Also I start services openstack-nova-novncproxy & openstack-nova-cert & openstack-nova-consoleauth on api node too.<u></u><u></u></p>
<p class="MsoNormal">Then I try to run command “<b>nova –debug get-vnc-console my_instances novnc</b>”<u></u><u></u></p>
<p class="MsoNormal">I get error:<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">……<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">INFO (connectionpool:203) Starting new HTTP connection (1): 172.16.24.2<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">DEBUG (connectionpool:295) "POST /v2/2eb6bd3a69ad454a90489dd12b9cdf3b/servers/f5155a67-3584-4a8a-a3a2-dced6b8e735a/action HTTP/1.1" 500 128<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">RESP: [500] {'date': 'Thu, 19 Jun 2014 00:03:39 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-d9a77e15-e8cf-436a-a895-e798d7908e66'}<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in">DEBUG (shell:783) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-d9a77e15-e8cf-436a-a895-e798d7908e66)<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">Traceback (most recent call last):<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 780, in main<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 716, in main<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    args.func(self.cs, args)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/shell.py", line 1870, in do_get_vnc_console<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    data = server.get_vnc_console(args.console_type)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line 69, in get_vnc_console<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    return self.manager.get_vnc_console(self, console_type)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line 642, in get_vnc_console<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    {'type': console_type})[1]<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line 1179, in _action<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    return self.api.client.post(url, body=body)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 312, in post<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    return self._cs_request(url, 'POST', **kwargs)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 286, in _cs_request<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    **kwargs)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 268, in _time_request<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    resp, body = self.request(url, method, **kwargs)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 262, in request<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">    raise exceptions.from_response(resp, body, url, method)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-d9a77e15-e8cf-436a-a895-e798d7908e66)<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-d9a77e15-e8cf-436a-a895-e798d7908e66)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Also error message in api.log:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 ERROR nova.api.openstack [req-5aeda2f2-0785-4c2a-8d87-8851c2e9ffb7 fa970646fa92442fa14b2b759cf381a6 2eb6bd3a69ad454a90489dd12b9cdf3b] Caught error: Timed out waiting for a reply to message
 ID b5eecf56a54b492ca8ed1e6db30f5b96<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack Traceback (most recent call last):<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py", line 125, in __call__<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return req.get_response(self.application)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     application, catch_exc_info=False)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return resp(environ, start_response)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 615, in __call__<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return self.app(env, start_response)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return resp(environ, start_response)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return resp(environ, start_response)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/routes/middleware.py", line 131, in __call__<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     response = self.app(environ, start_response)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return resp(environ, start_response)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 917, in __call__<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     content_type, body, accept)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 983, in _process_stack<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 1070, in dispatch<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return method(req=request, **action_args)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/compute/contrib/consoles.py", line 45, in get_vnc_console<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     console_type)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 201, in wrapped<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return func(self, context, target, *args, **kwargs)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 182, in wrapped<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return function(self, context, instance, *args, **kwargs)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 2640, in get_vnc_console<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     connect_info['internal_access_path'], instance['uuid'])<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/consoleauth/rpcapi.py", line 74, in authorize_console<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     instance_uuid=instance_uuid)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/client.py", line 150, in call<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     wait_for_reply=True, timeout=timeout)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/oslo/messaging/transport.py", line 90, in _send<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     timeout=timeout)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 412, in send<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return self._send(target, ctxt, message, wait_for_reply, timeout)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 403, in _send<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     result = self._waiter.wait(msg_id, timeout)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 267, in wait<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     reply, ending = self._poll_connection(msg_id, timeout)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/oslo/messaging/_drivers/amqpdriver.py", line 217, in _poll_connection<u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     % msg_id)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack MessagingTimeout: Timed out waiting for a reply to message ID b5eecf56a54b492ca8ed1e6db30f5b96<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Anyone know why this happens ???<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal">-chen<u></u><u></u></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div><font color="#cc0000"><b><font face="comic sans ms,sans-serif"> Thanks & Regards   </font></b></font></div>
<div><font color="#cc0000"><b><font face="comic sans ms,sans-serif">Jitendra Kumar Bhaskar</font></b></font><br>Cell:- +91 7306311531<br>      :- +91 9989743042<br>         <br></div>
</div>