[one-users] sunstone problems in opennebula 4.0.0

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Thu May 9 23:34:51 PDT 2013


On 2013-05-09 18:09, Daniel Molina wrote:
> Hi Rolandas,
>
>
> On 9 May 2013 13:50, Rolandas Naujikas <rolandas.naujikas at mif.vu.lt
> <mailto:rolandas.naujikas at mif.vu.lt>> wrote:
>
>     Hi,
>
>     I found that sunstone VNC console (noVNC) doesn't use secure
>     websockets even if it is configured and an user is configured to use
>     it. With vnc_proxy_support_wss=always it refuses to show, with
>     vnc_proxy_support_wss=yes it uses only unsecured connection.
>
>
> Could you try if this change fixes the problem?
>
> diff --git a/src/sunstone/sunstone-server.rb
> b/src/sunstone/sunstone-server.rb
> index 4934908..0bb8826 100755
> --- a/src/sunstone/sunstone-server.rb
> +++ b/src/sunstone/sunstone-server.rb
> @@ -290,7 +290,7 @@ get '/config' do
>       uconf = {
>           :user_config => {
>               :lang => session[:lang],
> -            :wss  => session[:wss],
> +            :wss  => session[:vnc_wss],
>           },
>           :system_config => {
>               :marketplace_url => $conf[:marketplace_url],

I just checked, but it didn't work. The following patches solved this 
problem:

-- sunstone/sunstone-server.rb.orig    2013-05-08 18:52:39.000000000 +0300
+++ sunstone/sunstone-server.rb 2013-05-10 09:28:30.000000000 +0300
@@ -290,7 +290,7 @@ get '/config' do
      uconf = {
          :user_config => {
              :lang => session[:lang],
-            :wss  => session[:wss],
+            :vnc_wss  => session[:vnc_wss],
          },
          :system_config => {
              :marketplace_url => $conf[:marketplace_url],

--- sunstone/public/js/plugins/vms-tab.js.orig  2013-05-08 
18:52:39.000000000 +0300
+++ sunstone/public/js/plugins/vms-tab.js       2013-05-10 
09:28:41.000000000 +0300
@@ -2887,7 +2887,7 @@ function setupVNC(){

  function vncCallback(request,response){
      rfb = new RFB({'target':       $D('VNC_canvas'),
-                   'encrypt':      $('#config_table 
#wss_checkbox').is(':checked'),
+                   'encrypt':      config['user_config']['vnc_wss'] == 
"yes",
                     'true_color':   true,
                     'local_cursor': true,
                     'shared':       true,

Regards, Rolandas Naujikas

P.S. Do exists some way to disable all animations in sunstone pages ? 
They slows down GUI on remote connections (remote desktop or X11) ?

> I have opened two tickets for the these bugs. Thank you for your great
> feedback
>
>
>     Also there are drawing problems in user configuration window
>     (username -> Settings). If an user have some long values (for e.g.
>     ssh keys) in custom attributes there is not enough space to display
>     right buttons and no horizontal scrollbar appears. Also the user
>     custom attributes overlaps with quotas data.
>
>
> http://dev.opennebula.org/issues/2011
>
>
>     Default value for logo: ../images/opennebula-sunstone-__v4.0.png in
>     sunstone-views.yaml doesn't honor reverse proxies. If I correct it
>     to logo: images/opennebula-sunstone-v4.__0.png it looks correctly.
>
>
> http://dev.opennebula.org/issues/2012
>
> Cheers
>
> --
> Daniel Molina




More information about the Users mailing list