Feature #1370
Add rackup support in cloud servers
Status: | Closed | Start date: | 07/17/2012 | |
---|---|---|---|---|
Priority: | Normal | Due 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
feature #1370: separate novnc server from sunstone server
feature #1370: fix alias method in OpenNebulaVNC
feature #1370: select session storage in configuration
feature #1370: make sunstone server compatible with rackup
feature #1370: move novnc server start script to bin
feature #1370: add status and restart to novnc script
feature #1370: add config.ru and novnc-server to install.sh
feature #1370: start and stop vnc server ins sunstone start script
feature #1370: Use a variable for novnc-server
feature #1370: make novnc-server run in ruby 1.8.7
History
#1 Updated by Ruben S. Montero over 8 years ago
- Status changed from New to Assigned
- Target version set to Release 3.8
#2 Updated by Ruben S. Montero over 8 years ago
- Target version changed from Release 3.8 to Release 4.0
#3 Updated by Hector Sanjuan over 8 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 8 years ago
- Assignee changed from Daniel Molina to Javi Fontan
#5 Updated by Ruben S. Montero over 8 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed