[Openstack] Dashboard VNC Console failed to connect to server

Michaël Van de Borne michael.vandeborne at cetic.be
Fri Mar 30 16:02:26 UTC 2012


I'm getting forward here.

I installed nova-consoleauth
apt-get install nova-consoleauth

and I get these settings in nova.conf:

--vnc_enabled=true
--vncproxy_url=http://172.22.22.1:6080
--vnc_console_proxy_url=http://172.22.22.1:6080
--vncserver_listen=10.18.9.1
--novncproxy_base_url=http://172.22.22.1:6080/vnc_auto.html
--xvpvncproxy_base_url=http://172.22.22.1:6081/console
--xvpvncproxy_host=172.22.22.1
--xvpvncproxy_port=6081

172.22.22.1 being the 'public' NIC, and 10.18.9.1 being the private one 
(for VM deployements)


Now, the command
nova get-vnc-console servername xvpvnc
gives me the url.

The error in the dashboard has changed. It now says it cannot establish 
connection to 172.22.22.1:6080 (which is the noVNC port whereas I'm 
using xvpvnc). So I guess I need to tell the dashboard to try on 6081. 
Which setting is that?


Michaël Van de Borne
R&D Engineer, SOA team, CETIC
Phone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgli
www.cetic.be, rue des Frères Wright, 29/3, B-6041 Charleroi


Le 30/03/12 16:36, Michaël Van de Borne a écrit :
> I've got the same problem.
>
> When I try to connect to the instance using VNC through the dashboard, 
> I've got this error. I then went in /var/log/nova/nova-xvpvncproxy.log 
> and it contains nothing related to any attempt to get connected to any 
> instance. It seems this nova-xvpvncproxy process doesn't notice anything.
>
>
> When I try to connect using VNC through virt-manager, it works.
>
>
> Le 30/03/12 15:50, Guilherme Birk a écrit :
>> Thanks for the reply.
>>
>> I've added the flags that you mentioned on my nova.conf file. I'm 
>> using a all in one installation, the flags are configured this way.
>> --vncserver_listen=127.0.0.1
>> --vncserver_proxyclient_address=127.0.0.1
>> --novncproxy_base_url=http://192.168.100.142:6080/vnc_auto.html
>>
>> The public IP of the machine with the OpenStack installation is 
>> 192.168.100.142.
>> I've tried to access via browser the address 
>> http://192.168.100.142:6080/vnc_auto.html from another machine, but I 
>> got nothing.
>>
>> I can ping and ssh my instances from the OpenStack machine but can't 
>> use VNC tab at dashboard page from another machine. The details and 
>> other pages from dashboard are fine.
>> Should I associate a public address for my instances? I'm using just 
>> the private address at them (10.0.0.2, 10.0.0.3, ...).
>>
>> I've restarted all the services and created new instances after 
>> changing the nova.conf, but nothing has changed.
>>
>> The error is a 404 not found. (*Error: *Unable to get VNC console for 
>> instance "7376e17b-e329-4b8b-b5fc-076e8a80c058".)
>> The log from dashboards page looks like this:
>>     - Page Not Found (404)
>>     - Requested method: GET
>>     - Requested URL: 
>> *http://192.168.100.142/nova/instances_and_volumes/instances/7376e17b-e329-4b8b-b5fc-076e8a80c058/None*
>>
>> This is the nova-api.log relative to the VNC atempt: 
>> http://pastebin.com/wSuyctrg
>>
>> Thanks for your time.
>> Guilherme Birk.
>>
>> ------------------------------------------------------------------------
>> Date: Thu, 29 Mar 2012 13:06:37 -0700
>> Subject: Re: [Openstack] Dashboard VNC Console failed to connect to 
>> server
>> From: sleepsonthefloor at gmail.com
>> To: guibirk at hotmail.com
>> CC: openstack at lists.launchpad.net
>>
>> How are you generating this link: 
>> http://192.168.100.142/nova/instances_and_volumes/instances/5307a5c5-249b-4eda-b6e4-5b17d349e8ee/None ? 
>>
>>
>> It looks like if horizon is behaving nicely the link would look like 
>> http://192.168.100.142/nova/instances_and_volumes/instances/5307a5c5-249b-4eda-b6e4-5b17d349e8ee/vnc 
>> <http://192.168.100.142/nova/instances_and_volumes/instances/5307a5c5-249b-4eda-b6e4-5b17d349e8ee/None>
>>
>> Also, could you pastie your nova-api.log somewhere?
>>
>> A
>>
>> On Thu, Mar 29, 2012 at 11:52 AM, Guilherme Birk <guibirk at hotmail.com 
>> <mailto:guibirk at hotmail.com>> wrote:
>>
>>     I'm having problems with it too. I'm trying to connect on my
>>     instances in the VNC tab at the dashboard, but I'm getting a 404
>>     not found in the URL
>>     http://192.168.100.142/nova/instances_and_volumes/instances/5307a5c5-249b-4eda-b6e4-5b17d349e8ee/None
>>
>>     Here is my nova-api.log. Looks like nova is having problems with
>>     the POST at
>>     http://localhost:8774/v1.1/db742491018d467690ba7d3a7bb383a5/servers/5307a5c5-249b-4eda-b6e4-5b17d349e8ee/action.
>>
>>     Any suggestions ?
>>     ------------------------------------------------------------------------
>>     From: lucianthomaz at hotmail.com <mailto:lucianthomaz at hotmail.com>
>>     To: openstack at lists.launchpad.net
>>     <mailto:openstack at lists.launchpad.net>
>>     Date: Thu, 29 Mar 2012 18:07:59 +0000
>>     Subject: [Openstack] Dashboard VNC Console failed to connect to
>>     server
>>
>>
>>     Hey guys,
>>
>>     I'm using Dashboard with a nova-compute installed in another
>>     machine, but when I try access VNC Console I get the error
>>     "failed to connect to server".
>>
>>     Here is the log -> http://pastebin.com/5DZMfiNE
>>
>>     Anyone already saw this trouble?
>>
>>
>>     *Lucian Thomaz *
>>
>>
>>     _______________________________________________ Mailing list:
>>     https://launchpad.net/~openstack
>>     <https://launchpad.net/%7Eopenstack> Post to :
>>     openstack at lists.launchpad.net
>>     <mailto:openstack at lists.launchpad.net> Unsubscribe :
>>     https://launchpad.net/~openstack
>>     <https://launchpad.net/%7Eopenstack> More help :
>>     https://help.launchpad.net/ListHelp
>>
>>     _______________________________________________
>>     Mailing list: https://launchpad.net/~openstack
>>     <https://launchpad.net/%7Eopenstack>
>>     Post to     : openstack at lists.launchpad.net
>>     <mailto:openstack at lists.launchpad.net>
>>     Unsubscribe : https://launchpad.net/~openstack
>>     <https://launchpad.net/%7Eopenstack>
>>     More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>>
>> _______________________________________________
>> Mailing list:https://launchpad.net/~openstack
>> Post to     :openstack at lists.launchpad.net
>> Unsubscribe :https://launchpad.net/~openstack
>> More help   :https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120330/c356c2ab/attachment.html>


More information about the Openstack mailing list