Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
Deltacloud git commit: 61122c833d9b1e779f53c8a6b8fda30272c79276
Mock driver
Description
GET resource_metadata .... kills all rmd tests ...
>> curl -X GET --user 'un:pw' "localhost:3001/cimi/resource_metadata"
{"code":500,"message":"uninitialized constant CIMI::Service::SystemNetworkPort","error":"NameError"}Stack trace from server:
ERROR – 500: [NameError] uninitialized constant CIMI::Service::SystemNetworkPort
/home/dcloud/workspace/deltacloud/server/lib/cimi/service.rb:21:in `const_get'
/home/dcloud/workspace/deltacloud/server/lib/cimi/service.rb:21:in `block in root_entities'
/home/dcloud/workspace/deltacloud/server/lib/cimi/service.rb:20:in `map'
/home/dcloud/workspace/deltacloud/server/lib/cimi/service.rb:20:in `root_entities'
/home/dcloud/workspace/deltacloud/server/lib/cimi/service/resource_metadata.rb:20:in `find'
/home/dcloud/workspace/deltacloud/server/lib/cimi/service/base.rb:123:in `list'
/home/dcloud/workspace/deltacloud/server/lib/cimi/helpers/cimi_rabbit_helper.rb:35:in `block (2 levels) in generate_index_operation'
/usr/local/share/gems/gems/sinatra-rabbit-1.1.6/lib/sinatra/rabbit/base.rb:400:in `instance_eval'
/usr/local/share/gems/gems/sinatra-rabbit-1.1.6/lib/sinatra/rabbit/base.rb:400:in `block in control'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1415:in `call'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1415:in `block in compile!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:944:in `[]'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:944:in `block (3 levels) in route!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:960:in `route_eval'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:944:in `block (2 levels) in route!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:981:in `block in process_route'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:979:in `catch'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:979:in `process_route'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:943:in `block in route!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:942:in `each'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:942:in `route!'
127.0.0.1 - - [03/Apr/2013 23:16:26] "GET /cimi/resource_metadata HTTP/1.1" 500 100 0.0316
-------------------------------------------------------
Creating a new Volume Configuration:
volume_config_add_uri = discover_uri_for("add", "volumeConfigs")
volume_config_resp = post(volume_config_add_uri,
"<VolumeConfigurationCreate xmlns=\"#
\">" +
"<name>marios_volume_config</name>" +
"<description>a volume configuration</description>"+
"<format>ext3</format>"+
" <capacity>1</capacity>" +
"</VolumeConfigurationCreate>", {:accept => :json, :content_type => :xml})
log.info("just created volume_configuration " + volume_config_resp.json["id"])
Stack trace:
ERROR – 500: [NameError] uninitialized constant CIMI::Service::VolumeConfigurationCreate
/home/dcloud/workspace/deltacloud/server/lib/cimi/helpers/cimi_rabbit_helper.rb:20:in `const_get'
/home/dcloud/workspace/deltacloud/server/lib/cimi/helpers/cimi_rabbit_helper.rb:20:in `block (2 levels) in generate_create_operation'
/usr/local/share/gems/gems/sinatra-rabbit-1.1.6/lib/sinatra/rabbit/base.rb:400:in `instance_eval'
/usr/local/share/gems/gems/sinatra-rabbit-1.1.6/lib/sinatra/rabbit/base.rb:400:in `block in control'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1415:in `call'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1415:in `block in compile!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:944:in `[]'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:944:in `block (3 levels) in route!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:960:in `route_eval'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:944:in `block (2 levels) in route!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:981:in `block in process_route'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:979:in `catch'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:979:in `process_route'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:943:in `block in route!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:942:in `each'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:942:in `route!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1053:in `block in dispatch!'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `block in invoke'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `catch'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1035:in `invoke'
/usr/local/share/gems/gems/sinatra-1.4.2/lib/sinatra/base.rb:1050:in `dispatch!'
127.0.0.1 - - [03/Apr/2013 23:19:19] "POST /cimi/volume_configurations HTTP/1.1" 500 108 0.0045
------------------------------------------------------------------------------------------
network collection:
"GET /cimi/networks/network2" returns a 412
curl -X GET --user 'un:pw' "localhost:3001/cimi/networks/network1"
The required capability to execute this operation is missing#
Looking at test output (network_collection_test.rb):
NetworkCollectionBehavior#test_0004_must have a valid id and name for each member [json]:
RestClient::PreconditionFailed: 412 Precondition Failed
/usr/local/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
/usr/local/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
/usr/local/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
/usr/share/ruby/net/http.rb:745:in `start'
/usr/local/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
/usr/local/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/usr/local/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/usr/local/share/gems/gems/rest-client-1.6.7/lib/restclient.rb:68:in `get'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:161:in `get'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:441:in `block in fetch'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:511:in `instance_exec'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:511:in `retrieve'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:441:in `fetch'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:322:in `block (2 levels) in check_collection'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:320:in `each'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:320:in `block in check_collection'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:457:in `instance_eval'
/home/dcloud/workspace/deltacloud/tests/cimi/test_helper.rb:457:in `block (2 levels) in it'
------------------------------------------------------------------------------------