[Openstack] [Nova] get-vnc-console command do not work

Jitendra Bhaskar jeetuindian at gmail.com
Thu Jun 19 08:41:30 UTC 2014


Hi Li,

On *api node* please use the config on nova.conf

vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 0.0.0.0
novncproxy_port=6080
novnc_enabled=true
novncproxy_base_url=http://public_ip_of_controller:6080/vnc_auto.html

On *compute node* update nova.conf as :

vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = compute_ip_address
novncproxy_base_url = http://public_ip_of_controller:6080/vnc_auto.html




On Thu, Jun 19, 2014 at 1:48 PM, Li, Chen <chen.li at intel.com> wrote:

>  Hi list,
>
>
>
> I’m working under CentOS with icehouse.
>
>
>
> I’m trying to enable VNC console for instances.
>
>
>
> While my api node has 2 physical NICs, one with IP 172.16.24.2, another
> one with IP 192.168.40.121.
>
> The compute node has only one NIC with IP 192.168.40.127.
>
>
>
> I configured nova.conf on *api node* with:
>
> novncproxy_base_url=http://172.16.24.2:6080/vnc_auto.html
>
> vncserver_proxyclient_address=192.168.40.121
>
> vnc_enabled=true
>
>
>
> nova.conf on *compute node* with:
>
> novncproxy_base_url=http://172.16.24.2:6080/vnc_auto.html
>
> vncserver_listen=0.0.0.0
>
> vncserver_proxyclient_address=192.168.40.127
>
> vnc_enabled=true
>
> Also I start services openstack-nova-novncproxy & openstack-nova-cert &
> openstack-nova-consoleauth on api node too.
>
> Then I try to run command “*nova –debug get-vnc-console my_instances
> novnc*”
>
> I get error:
>
> ……
>
> INFO (connectionpool:203) Starting new HTTP connection (1): 172.16.24.2
>
> DEBUG (connectionpool:295) "POST
> /v2/2eb6bd3a69ad454a90489dd12b9cdf3b/servers/f5155a67-3584-4a8a-a3a2-dced6b8e735a/action
> HTTP/1.1" 500 128
>
> 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'}
>
> RESP BODY: {"computeFault": {"message": "The server has either erred or is
> incapable of performing the requested operation.", "code": 500}}
>
>
>
> 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)
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 780,
> in main
>
>     OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
>
>   File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 716,
> in main
>
>     args.func(self.cs, args)
>
>   File "/usr/lib/python2.6/site-packages/novaclient/v1_1/shell.py", line
> 1870, in do_get_vnc_console
>
>     data = server.get_vnc_console(args.console_type)
>
>   File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line
> 69, in get_vnc_console
>
>     return self.manager.get_vnc_console(self, console_type)
>
>   File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line
> 642, in get_vnc_console
>
>     {'type': console_type})[1]
>
>   File "/usr/lib/python2.6/site-packages/novaclient/v1_1/servers.py", line
> 1179, in _action
>
>     return self.api.client.post(url, body=body)
>
>   File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 312,
> in post
>
>     return self._cs_request(url, 'POST', **kwargs)
>
>   File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 286,
> in _cs_request
>
>     **kwargs)
>
>   File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 268,
> in _time_request
>
>     resp, body = self.request(url, method, **kwargs)
>
>   File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 262,
> in request
>
>     raise exceptions.from_response(resp, body, url, method)
>
> ClientException: The server has either erred or is incapable of performing
> the requested operation. (HTTP 500) (Request-ID:
> req-d9a77e15-e8cf-436a-a895-e798d7908e66)
>
> ERROR: The server has either erred or is incapable of performing the
> requested operation. (HTTP 500) (Request-ID:
> req-d9a77e15-e8cf-436a-a895-e798d7908e66)
>
>
>
>
>
> Also error message in api.log:
>
>
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack Traceback (most
> recent call last):
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> req.get_response(self.application)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     application,
> catch_exc_info=False)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     app_iter =
> application(self.environ, start_response)
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> resp(environ, start_response)
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> self.app(env, start_response)
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> resp(environ, start_response)
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> resp(environ, start_response)
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     response =
> self.app(environ, start_response)
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> resp(environ, start_response)
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     resp =
> self.call_func(req, *args, **self.kwargs)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> self.func(req, *args, **kwargs)
>
> 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__
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     content_type,
> body, accept)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     action_result =
> self.dispatch(meth, request, action_args)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> method(req=request, **action_args)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     console_type)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> func(self, context, target, *args, **kwargs)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> function(self, context, instance, *args, **kwargs)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack
> connect_info['internal_access_path'], instance['uuid'])
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack
> instance_uuid=instance_uuid)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack
> wait_for_reply=True, timeout=timeout)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     timeout=timeout)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     return
> self._send(target, ctxt, message, wait_for_reply, timeout)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     result =
> self._waiter.wait(msg_id, timeout)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     reply, ending =
> self._poll_connection(msg_id, timeout)
>
> 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
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack     % msg_id)
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack MessagingTimeout:
> Timed out waiting for a reply to message ID b5eecf56a54b492ca8ed1e6db30f5b96
>
> 2014-06-19 08:03:19.776 3171 TRACE nova.api.openstack
>
>
>
>
>
>
>
> Anyone know why this happens ???
>
>
>
> Thanks.
>
> -chen
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>


-- 
* Thanks & Regards   *
*Jitendra Kumar Bhaskar*
Cell:- +91 7306311531
      :- +91 9989743042
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140619/29667349/attachment.html>


More information about the Openstack mailing list