[one-users] sunstone problems in opennebula 4.0.0
Rolandas Naujikas
rolandas.naujikas at mif.vu.lt
Fri May 10 03:35:27 PDT 2013
On 2013-05-10 12:36, Daniel Molina wrote:
>
>
>
> On 10 May 2013 11:23, Rolandas Naujikas <rolandas.naujikas at mif.vu.lt
> <mailto:rolandas.naujikas at mif.vu.lt>> wrote:
>
> On 2013-05-10 12:18, Daniel Molina wrote:
>
>
>
>
> On 10 May 2013 08:34, Rolandas Naujikas
> <rolandas.naujikas at mif.vu.lt <mailto:rolandas.naujikas at mif.vu.lt>
> <mailto:rolandas.naujikas at mif.__vu.lt
> <mailto:rolandas.naujikas at mif.vu.lt>>> wrote:
>
> 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>
> <mailto:rolandas.naujikas at mif.__vu.lt
> <mailto:rolandas.naujikas at mif.vu.lt>>
> <mailto:rolandas.naujikas at mif.
> <mailto:rolandas.naujikas at mif.>____vu.lt <http://vu.lt>
>
> <mailto: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,
>
>
> Thank you for the patch, I have included it in the ticket:
> http://dev.opennebula.org/__issues/2013
> <http://dev.opennebula.org/issues/2013>
>
>
> 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) ?
>
>
> What kind of animations do you mean?
>
>
> For e.g. username -> Settings - a window is going from up to down.
> Also for VNC console or to create any object.
> It's my preference, I want instant rendering and I don't like if
> something slows me down.
>
>
> You can modify the default value for reveal animation parameter, which
> is the modal handler
>
> diff --git
> a/src/sunstone/public/vendor/4.0/foundation/jquery.foundation.reveal.js
> b/src/sunstone/public/vendor/4.0/foundation/jquery.foundation
> index 4972931..ae63a52 100644
> --- a/src/sunstone/public/vendor/4.0/foundation/jquery.foundation.reveal.js
> +++ b/src/sunstone/public/vendor/4.0/foundation/jquery.foundation.reveal.js
> @@ -54,7 +54,7 @@
> * @type {String}
> * @default fadeAndPop
> */
> - animation: 'fadeAndPop',
> + animation: 'none',
> /**
> * Speed at which the reveal should show. How fast animtions
> are.
> *
>
> or include the option:
> dialog.reveal({animation : 'none'})
> each time the reveal method is called
>
> Hope this helps
It worked. Change required restart sunstone-server.
http://dev.opennebula.org/issues/2018
Regards, Rolandas
> Regards, Rolandas Naujikas
>
>
> Cheers
>
>
> --
> Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in
> Berlin,
>
> 24-26 September, 2013
> --
> Daniel Molina
> Project Engineer
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org <http://www.OpenNebula.org>
> <http://www.OpenNebula.org> | dmolina at opennebula.org
> <mailto:dmolina at opennebula.org>
> <mailto:dmolina at opennebula.org
> <mailto:dmolina at opennebula.org>__> | @OpenNebula
>
>
>
>
>
> --
> Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin,
> 24-26 September, 2013
> --
> Daniel Molina
> Project Engineer
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org <http://www.OpenNebula.org> | dmolina at opennebula.org
> <mailto:dmolina at opennebula.org> | @OpenNebula
More information about the Users
mailing list