[one-users] bug NameError - uninitialized constant SunstoneServer::ClusterPoolJSON:

Jorge Mario Manuel Ortega ortegajorge at gmail.com
Tue Oct 16 06:18:05 PDT 2012


hy , i think i bumped into a bug in the sunstone gui .
it manifests itself when you try to update any cluster or datastore view in
the gui.
i created a few via cli and they seem to work fine but sunstone view crash.

im having this issue in latest git master branch build. i installed it from
source
tested in i386 and amd64 in ubuntu 12.04 ,fully updated , server versions.


NameError - uninitialized constant SunstoneServer::DatastorePoolJSON:
>  /usr/lib/one/sunstone/models/SunstoneServer.rb:62:in `get_pool'
>  /usr/lib/one/sunstone/sunstone-server.rb:344:in `GET /:pool'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1151:in `call'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1151:in `compile!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:724:in `instance_eval'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:724:in `route_eval'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:708:in `route!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:758:in `process_route'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:755:in `catch'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:755:in `process_route'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:707:in `route!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:706:in `each'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:706:in `route!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:843:in `dispatch!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:644:in `call!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `instance_eval'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `invoke'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `catch'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `invoke'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:644:in `call!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:629:in `call'
>  /usr/lib/ruby/vendor_ruby/rack/commonlogger.rb:20:in `call'
>  /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:195:in `context'
>  /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:190:in `call'
>  /usr/lib/ruby/vendor_ruby/rack/head.rb:9:in `call'
>  /usr/lib/ruby/vendor_ruby/sinatra/showexceptions.rb:21:in `call'
>  /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:24:in `call'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1272:in `call'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1303:in `synchronize'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1272:in `call'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:80:in `pre_process'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:78:in `catch'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:78:in `pre_process'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:53:in `process'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:38:in `receive_data'
>  /usr/lib/ruby/vendor_ruby/eventmachine.rb:257:in `run_machine'
>  /usr/lib/ruby/vendor_ruby/eventmachine.rb:257:in `run'
>  /usr/lib/ruby/vendor_ruby/thin/backends/base.rb:61:in `start'
>  /usr/lib/ruby/vendor_ruby/thin/server.rb:159:in `start'
>  /usr/lib/ruby/vendor_ruby/rack/handler/thin.rb:13:in `run'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1234:in `run!'
>  /usr/lib/one/sunstone/sunstone-server.rb:397
> NameError - uninitialized constant SunstoneServer::ClusterPoolJSON:
>  /usr/lib/one/sunstone/models/SunstoneServer.rb:54:in `get_pool'
>  /usr/lib/one/sunstone/sunstone-server.rb:344:in `GET /:pool'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1151:in `call'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1151:in `compile!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:724:in `instance_eval'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:724:in `route_eval'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:708:in `route!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:758:in `process_route'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:755:in `catch'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:755:in `process_route'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:707:in `route!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:706:in `each'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:706:in `route!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:843:in `dispatch!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:644:in `call!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `instance_eval'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `invoke'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `catch'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `invoke'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:644:in `call!'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:629:in `call'
>  /usr/lib/ruby/vendor_ruby/rack/commonlogger.rb:20:in `call'
>  /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:195:in `context'
>  /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:190:in `call'
>  /usr/lib/ruby/vendor_ruby/rack/head.rb:9:in `call'
>  /usr/lib/ruby/vendor_ruby/sinatra/showexceptions.rb:21:in `call'
>  /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:24:in `call'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1272:in `call'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1303:in `synchronize'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1272:in `call'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:80:in `pre_process'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:78:in `catch'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:78:in `pre_process'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:53:in `process'
>  /usr/lib/ruby/vendor_ruby/thin/connection.rb:38:in `receive_data'
>  /usr/lib/ruby/vendor_ruby/eventmachine.rb:257:in `run_machine'
>  /usr/lib/ruby/vendor_ruby/eventmachine.rb:257:in `run'
>  /usr/lib/ruby/vendor_ruby/thin/backends/base.rb:61:in `start'
>  /usr/lib/ruby/vendor_ruby/thin/server.rb:159:in `start'
>  /usr/lib/ruby/vendor_ruby/rack/handler/thin.rb:13:in `run'
>  /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1234:in `run!'
>  /usr/lib/one/sunstone/sunstone-server.rb:397
>

any idea?

Live long , and Prosper .-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121016/7ad0ae5e/attachment.htm>


More information about the Users mailing list