Ronelle Landy created DTACLOUD-505: -------------------------------------- Summary: CIMI/Deltacloud: Starting deltacloud server with multiple frontend fails - depends on order of arguments Key: DTACLOUD-505 URL: https://issues.apache.org/jira/browse/DTACLOUD-505 Project: DeltaCloud Issue Type: Bug Components: Server Environment: deltacloud commit version: 75e3db4c37ad7b9b5e2b7580f293ce9d6fd2c7c6 sinatra-rabbit-1.1.5 mock provider multiple frontends Reporter: Ronelle Landy
There is a problem starting Deltacloud server with both the native (deltacloud) and cimi frontends. Interesting enough, the error (stack trace) only happens if a use passes the -f argments with deltacloud before cimi .... Passing ' -f cimi,deltacloud,ec2' works: [root@cloud-qe-7 server]# ./bin/deltacloudd -f cimi,deltacloud,ec2 -i mock Starting Deltacloud API :: mock :: http://localhost:3001/api >> Thin web server (v1.5.0 codename Knife) >> Debugging ON >> Maximum connections set to 1024 >> Listening on localhost:3001, CTRL+C to stop ^C>> Stopping ... Passing -f deltacloud,cimi,ec2 errors: [root@cloud-qe-7 server]# ./bin/deltacloudd -f deltacloud,cimi,ec2 -i mock Starting Deltacloud API :: mock :: http://localhost:3001/api /usr/local/share/gems/gems/sinatra-rabbit-1.1.5/lib/sinatra/rabbit/base_collection.rb:54:in `collection_class': uninitialized constant CIMI::Rabbit (NameError) from /usr/local/share/gems/gems/sinatra-rabbit-1.1.5/lib/sinatra/rabbit/dsl.rb:34:in `collection' from /home/dcloud/workspace/deltacloud/server/lib/cimi/collections/network_configurations.rb:21:in `<class:NetworkConfigurations>' from /home/dcloud/workspace/deltacloud/server/lib/cimi/collections/network_configurations.rb:17:in `<module:Collections>' from /home/dcloud/workspace/deltacloud/server/lib/cimi/collections/network_configurations.rb:16:in `<top (required)>' from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/collection_helper.rb:83:in `block in load_collections_for' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/collection_helper.rb:80:in `each' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/collection_helper.rb:80:in `load_collections_for' from /home/dcloud/workspace/deltacloud/server/lib/cimi/collections.rb:25:in `<module:Collections>' from /home/dcloud/workspace/deltacloud/server/lib/cimi/collections.rb:22:in `<module:CIMI>' from /home/dcloud/workspace/deltacloud/server/lib/cimi/collections.rb:20:in `<top (required)>' from /home/dcloud/workspace/deltacloud/server/lib/cimi/server.rb:24:in `require_relative' from /home/dcloud/workspace/deltacloud/server/lib/cimi/server.rb:24:in `<top (required)>' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud_rack.rb:42:in `require_relative' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud_rack.rb:42:in `require_frontend!' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud_rack.rb:151:in `require!' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud_rack.rb:67:in `block in generate_routes' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud_rack.rb:61:in `each' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud_rack.rb:61:in `inject' from /home/dcloud/workspace/deltacloud/server/lib/deltacloud_rack.rb:61:in `generate_routes' from /home/dcloud/workspace/deltacloud/server/config.ru:38:in `block in <main>' from /usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' from /usr/local/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize' from /home/dcloud/workspace/deltacloud/server/config.ru:1:in `new' from /home/dcloud/workspace/deltacloud/server/config.ru:1:in `<main>' from /usr/local/share/gems/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in `eval' from /usr/local/share/gems/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in `load' from /usr/local/share/gems/gems/thin-1.5.0/lib/thin/controllers/controller.rb:181:in `load_rackup_config' from /usr/local/share/gems/gems/thin-1.5.0/lib/thin/controllers/controller.rb:71:in `start' from /usr/local/share/gems/gems/thin-1.5.0/lib/thin/runner.rb:187:in `run_command' from /usr/local/share/gems/gems/thin-1.5.0/lib/thin/runner.rb:152:in `run!' from ./bin/deltacloudd:250:in `<main>' [root@cloud-qe-7 server]# -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira