Feature #1370

Add rackup support in cloud servers

Added by Daniel Molina over 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:07/17/2012
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:-
Target version:Release 4.0
Resolution:fixed Pull request:

Description

Using Passenger to start the OpenNebula services requires some changes:

config.ru

$ cp ~/backup-$VERSION/usr/lib/one/sunstone/config.ru          /usr/lib/one/sunstone/config.ru          
$ cp ~/backup-$VERSION/usr/lib/one/ruby/cloud/econe/config.ru  /usr/lib/one/ruby/cloud/econe/config.ru  
$ cp ~/backup-$VERSION/usr/lib/one/ruby/cloud/occi/config.ru   /usr/lib/one/ruby/cloud/occi/config.ru   

cat /usr/lib/one/sunstone/config.ru
$: << '.'
require 'sunstone-server'

run Sinatra::Application

Public folder

$ cd /usr/lib/one/ruby/cloud/occi
$ rm -r public  templates  views
$ mv ui/* .

$ cd /usr/lib/one/ruby/cloud/econe/
$ mkdir public

$ diff /home/dsa/one/src/cloud/occi/lib/occi-server.rb /usr/lib/one/ruby/cloud/occi/occi-server.rb 
92,93c92,93
< set :public, Proc.new { File.join(root, "ui/public") }
< set :views, settings.root + '/ui/views'
---
> set :public, Proc.new { File.join(root, "/public") }
> set :views, settings.root + '/views'
388c388
<         return File.read(File.dirname(__FILE__)+'/ui/templates/login.html')
---
>         return File.read(File.dirname(__FILE__)+'/templates/login.html')

Passenger: http://www.modrails.com/

Associated revisions

Revision 1052b4b1
Added by Javi Fontan over 6 years ago

feature #1370: separate novnc server from sunstone server

Revision 55b3d1a9
Added by Javi Fontan over 6 years ago

feature #1370: fix alias method in OpenNebulaVNC

Revision a4a6f566
Added by Javi Fontan over 6 years ago

feature #1370: select session storage in configuration

Revision 7d73610e
Added by Javi Fontan over 6 years ago

feature #1370: make sunstone server compatible with rackup

Revision f4a51bd0
Added by Javi Fontan over 6 years ago

feature #1370: move novnc server start script to bin

Revision 2a8ee786
Added by Javi Fontan over 6 years ago

feature #1370: add status and restart to novnc script

Revision 4a1114ad
Added by Javi Fontan over 6 years ago

feature #1370: add config.ru and novnc-server to install.sh

Revision 9d543d9a
Added by Javi Fontan over 6 years ago

feature #1370: start and stop vnc server ins sunstone start script

Revision 193a6e8a
Added by Ruben S. Montero over 6 years ago

feature #1370: Use a variable for novnc-server

Revision 154e871a
Added by Javi Fontan over 6 years ago

feature #1370: make novnc-server run in ruby 1.8.7

History

#1 Updated by Ruben S. Montero about 7 years ago

  • Status changed from New to Assigned
  • Target version set to Release 3.8

#2 Updated by Ruben S. Montero about 7 years ago

  • Target version changed from Release 3.8 to Release 4.0

#3 Updated by Hector Sanjuan almost 7 years ago

In case no one realized so far, It might be that if passenger spins several instances of the sunstone/selfservice there will be several websockify proxies spinned up along and failing because of the address alreading being binded to the first one. So implementation of this issue should look at that too.

#4 Updated by Ruben S. Montero over 6 years ago

  • Assignee changed from Daniel Molina to Javi Fontan

#5 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Also available in: Atom PDF