<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi list,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m working under CentOS with icehouse.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to enable VNC console for instances.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
<p class="MsoNormal">The compute node has only one NIC with IP 192.168.40.127.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I configured nova.conf on <b>api node</b> with:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">novncproxy_base_url=http://172.16.24.2:6080/vnc_auto.html<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">vncserver_proxyclient_address=192.168.40.121<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">vnc_enabled=true<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">nova.conf on <b>compute node</b> with:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">novncproxy_base_url=http://172.16.24.2:6080/vnc_auto.html<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">vncserver_listen=0.0.0.0<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">vncserver_proxyclient_address=192.168.40.127<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">vnc_enabled=true<o:p></o:p></p>
<p>Also I start services openstack-nova-novncproxy & openstack-nova-cert & openstack-nova-consoleauth on api node too.<o:p></o:p></p>
<p class="MsoNormal">Then I try to run command “<b>nova –debug get-vnc-console my_instances novnc</b>”<o:p></o:p></p>
<p class="MsoNormal">I get error:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">……<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">INFO (connectionpool:203) Starting new HTTP connection (1): 172.16.24.2<o:p></o:p></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<o:p></o:p></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'}<o:p></o:p></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}}<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></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)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Traceback (most recent call last):<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 780, in main<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 716, in main<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> args.func(self.cs, args)<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> data = server.get_vnc_console(args.console_type)<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> return self.manager.get_vnc_console(self, console_type)<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> {'type': console_type})[1]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line 1179, in _action<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> return self.api.client.post(url, body=body)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 312, in post<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> return self._cs_request(url, 'POST', **kwargs)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 286, in _cs_request<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> **kwargs)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 268, in _time_request<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> resp, body = self.request(url, method, **kwargs)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 262, in request<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> raise exceptions.from_response(resp, body, url, method)<o:p></o:p></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)<o:p></o:p></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)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also error message in api.log:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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<o:p></o:p></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):<o:p></o:p></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__<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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__<o:p></o:p></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)<o:p></o:p></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__<o:p></o:p></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)<o:p></o:p></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__<o:p></o:p></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)<o:p></o:p></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__<o:p></o:p></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)<o:p></o:p></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__<o:p></o:p></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)<o:p></o:p></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__<o:p></o:p></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)<o:p></o:p></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__<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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__<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack content_type, body, accept)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack console_type)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></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'])<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack instance_uuid=instance_uuid)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack timeout=timeout)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></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)<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack % msg_id)<o:p></o:p></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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anyone know why this happens ???<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
<p class="MsoNormal">-chen<o:p></o:p></p>
</div>
</body>
</html>