[one-users] [beta] novnc python dependency CentOS

Rogier Mars rogier at fortytwo.nl
Sat Jul 30 14:56:00 PDT 2011


Hi, 

I've installed Beta 3.0 on a test platform to see all the new features. It looks great!

I've enabled the novnc feature by running the install_novnc.sh script. This script finished successfully and the VNC icon showed in the web interface. However it did not work, and showed a "failed to connect" error in the VNC popup. 

After some troubleshooting and running the launch.sh script manually it showed that the default python version on CentOS5 is not supported: 

Traceback (most recent call last):
  File "/usr/share/one/noVNC/utils/wsproxy.py", line 270, in ?
    opts.target_host, sep, opts.target_port = args[1].rpartition(':')
AttributeError: 'str' object has no attribute 'rpartition'
Failed to start WebSockets proxy

The repartition attribute was only included in python 2.5 I think. I installed python26 from EPEL and updated the novnc python scripts to use python26 instead of the default system python. Now the proxy starts and works. 

As is mentioned in this bug http://dev.opennebula.org/issues/757 the VNC proxy currently only works when the VMs are running on the same host as OpenNebula. 

I'm not sure if the documentation includes the python dependency for CentOS5, I might have missed it. 

Best regards, 

Rogier




More information about the Users mailing list