[Openstack-operators] Help with novnc proxy
Jeremy Hanmer
jeremy at dreamhost.com
Wed Sep 18 17:18:55 UTC 2013
Do you happen to have multiple nova-consoleauth services running? If
you do, you need to set up a shared memcache server for them to use
(by setting memcached_servers=<IP> in nova.conf.
On Wed, Sep 18, 2013 at 9:02 AM, Abel Lopez <alopgeek at gmail.com> wrote:
> So, I've been playing around with novnc, to no avail. I'm wondering if I'm
> running with old versions of python or python modules. I upgraded
> websockify, because I noticed that I had many defunct processes, and I found
> https://bugs.launchpad.net/nova/+bug/1048703
>
> Still, just gets me to 'Server Disconnected (code: 1006)"
>
>
> On Fri, Sep 13, 2013 at 6:49 PM, Juan José Pavlik Salles
> <jjpavlik at gmail.com> wrote:
>>
>> No problem Jonathan. Abel, could you try this:
>>
>> nova get-vnc-console instance-id novnc
>>
>> Does it work?
>>
>>
>> 2013/9/13 Abel Lopez <alopgeek at gmail.com>
>>>
>>> Thanks both for the tips. I've tried both of your suggestions, and I
>>> continue to get the 1006 error.
>>> I do notice a brief mention in the VNC status bar about a handshake, I
>>> wonder if SSL is required.
>>>
>>> On Sep 13, 2013, at 1:11 PM, Jonathan Proulx <jon at jonproulx.com> wrote:
>>>
>>> Hi Abel,
>>>
>>> You may be missing "vnc_enabled=True" on compute nodes.
>>>
>>>
>>> Here's what I have usng same packages as you have:
>>>
>>> Controller:
>>>
>>> # grep vnc /etc/nova/nova.conf
>>> novncproxy_port=6080
>>> novncproxy_host=0.0.0.0
>>>
>>> Compute Node:
>>> # grep vnc /etc/nova/nova.conf
>>> vnc_enabled=True
>>> vncserver_proxyclient_address=${node_ip}
>>> novncproxy_base_url=http://${controller_ip}:6080/vnc_auto.html
>>> vncserver_listen=0.0.0.0
>>>
>>> I believe Setting 'vncserver_listen=0.0.0.0' is required on the compute
>>> hosts if you want migration to work, though I also think your configured IPs
>>> should work in the non-migratory case.
>>>
>>> -Jon
>>>
>>> (PS apologies to Juan for accidentally sending this to him personally...)
>>>
>>>
>>> On Fri, Sep 13, 2013 at 3:37 PM, Abel Lopez <alopgeek at gmail.com> wrote:
>>>>
>>>> Hello ops,
>>>> I'm following the docs for setting novnc_proxy, and starting to get
>>>> frustrated with the constant "Server disconnected (code: 1006)" message.
>>>>
>>>> I've setup nova.conf on my controller as:
>>>> novncproxy_base_url=http://${public_ip}:6080/vnc_auto.html
>>>> novncproxy_host=${public_ip}
>>>> novncproxy_port=6080
>>>>
>>>> my compute nodes have
>>>>
>>>> novncproxy_base_url=http://${public_ip_of_the_controller}:6080/vnc_auto.html
>>>> vncserver_listen=${internal ip of this compute node}
>>>> vncserver_proxyclient_address=${internal ip of this compute node}
>>>>
>>>> If I tail the nova-consoleauth.log while attempting to get a console, I
>>>> see the correct internal IP for the compute node, and port for the VM.
>>>> doing tcpdump on that port on the compute node shows nothing.
>>>>
>>>> if I telnet to the internal IP and vnc port, I get
>>>> Escape character is '^]'.
>>>> RFB 003.008
>>>> ^]close
>>>>
>>>> and finally I see packets on the tcpdump.
>>>>
>>>> This is using ubuntu 12.04/grizzly
>>>>
>>>> nova-novncproxy 1:2013.1.2-0ubuntu1~cloud0
>>>> novnc 2012.2~20120906+dfsg-0ubuntu4~cloud0
>>>> python-novnc 2012.2~20120906+dfsg-0ubuntu4~cloud0
>>>>
>>>> Any help or tips would be most appreciated.
>>>> _______________________________________________
>>>> OpenStack-operators mailing list
>>>> OpenStack-operators at lists.openstack.org
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> OpenStack-operators mailing list
>>> OpenStack-operators at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>>
>>
>>
>>
>> --
>> Pavlik Salles Juan José
>
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
More information about the OpenStack-operators
mailing list