[one-users] Problem communicating with OCCI Server 0.4
John Samonakis
samon at ucnet.uoc.gr
Wed Dec 21 10:24:43 PST 2011
Hi there!
I use OCCI Server 0.4 in OpenNebula 3.0 and I deal with some problems
communicating
with it.
When I sent: curl -u oneadmin:password -v -X GET
http://my-domain:3000/compute/
I receive 200 OK with empty VM list although I have create 40 VM and I
can ménage them from
sunstone. I include the corresponding fragment of passenger log at the end.
When I try to stop a VM sending:
curl -u oneadmin:password -v -X POST --header "Category: stop;
scheme=\"http://schemas.ogf.org/occi/infrastructure/compute/action#\";class=
\"action\";" --header "X-OCCI-Attribute: method=\"poweroff\""
http://my-domain:3000/compute/536#*?action=stop
I receive 400 Bad Request I include the corresponding fragment of
passenger log at the end.
and finally when I try upload an image sending
curl -u oneadmin:password -v -X POST -F "file=@/var/lib/one/samon.img"
--header "Category:
storage;scheme=\"http://schemas.ogf.org/occi/infrastructure#\";class=\"kind\
";" --header "X-OCCI-Attribute: occi.core.title=\"My Image\",
occi.core.summary=\"A short summary\"" http://my-domain:3000/storage/
I receive 400 Bad Request I include the corresponding fragment of
passenger log at the end.
I dont understand if I have configure incorrectly the OCCI server 0.4, the
curl command has a problem or
something else is going wrong
thanks a lot for your help!
John
=================Passenger output=================
----------------- for VM listing-----------------
I, [2011-12-21T20:06:54.036177 #28982] INFO -- : ####################
Information on the client ####################
I, [2011-12-21T20:06:54.036281 #28982] INFO -- : Client IP Adress: myIP
I, [2011-12-21T20:06:54.036317 #28982] INFO -- : Client User Agent:
curl/7.21.2 (x86_64-unknown-linux-gnu) libcurl/7.21.2 OpenSSL/1.0.0c
zlib/1.2.5 libidn/1.15 libssh2/1.2.7
I, [2011-12-21T20:06:54.036350 #28982] INFO -- :
###################################################################
D, [2011-12-21T20:06:54.036419 #28982] DEBUG -- : Content type: text/plain
D, [2011-12-21T20:06:54.036464 #28982] DEBUG -- : Accept type:
application/json,text/plain,text/occi
D, [2011-12-21T20:06:54.036501 #28982] DEBUG -- : Server: Ruby OCCI
Framework/0.4 OCCI/1.1
D, [2011-12-21T20:06:54.036546 #28982] DEBUG -- : ##### Parsing HTTP header
#####
D, [2011-12-21T20:06:54.036581 #28982] DEBUG -- : Parsed categories:
D, [2011-12-21T20:06:54.036613 #28982] DEBUG -- : Parsed links:
D, [2011-12-21T20:06:54.036650 #28982] DEBUG -- : Parsed X-OCCI-Attributes:
D, [2011-12-21T20:06:54.036681 #28982] DEBUG -- : Parsing Location:
D, [2011-12-21T20:06:54.036712 #28982] DEBUG -- : Parsed Location:
D, [2011-12-21T20:06:54.036741 #28982] DEBUG -- : ##### Finnished parsing
HTTP header #####
D, [2011-12-21T20:06:54.036774 #28982] DEBUG -- : HTTP Request Headers:
D, [2011-12-21T20:06:54.036813 #28982] DEBUG -- : HTTP_ACCEPT:*/*
D, [2011-12-21T20:06:54.036848 #28982] DEBUG -- : HTTP_HOST:my-domain:3000
D, [2011-12-21T20:06:54.036881 #28982] DEBUG -- :
HTTP_USER_AGENT:curl/7.21.2 (x86_64-unknown-linux-gnu) libcurl/7.21.2
OpenSSL/1.0.0c zlib/1.2.5 libidn/1.15 libssh2/1.2.7
D, [2011-12-21T20:06:54.036918 #28982] DEBUG -- : HTTP_AUTHORIZATION:Basic
b25lYWRtaW46a2kxOTg0M2FuZA==
D, [2011-12-21T20:06:54.036979 #28982] DEBUG -- : {}
D, [2011-12-21T20:06:54.037027 #28982] DEBUG -- : {}
D, [2011-12-21T20:06:54.037072 #28982] DEBUG -- : Action Category:
D, [2011-12-21T20:06:54.037109 #28982] DEBUG -- : Requested location:
/compute/
I, [2011-12-21T20:06:54.037159 #28982] INFO -- : Listing all entities for
kind/mixin http://schemas.ogf.org/occi/infrastructure#compute ...
D, [2011-12-21T20:06:54.037237 #28982] DEBUG -- :
#<Sinatra::Response:0x7fd5485aa850 @body=[""], @chunked=false, @length=0,
@header={"Content-Type"=>"text/plain", "Content-Length"=>"0",
"Server"=>"Ruby OCCI Framework/0.4 OCCI/1.1",
"Accept"=>"application/json,text/plain,text/occi"}, @block=nil, @status=200,
@writer=#<Proc:0x00007fd54a897908@/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/l
ib/rack/response.rb:28>>
myIP - - [21/Dec/2011 20:06:54] "GET /compute/ " 200 - 0.0018
----------------- for VM stopping -----------------
I, [2011-12-21T20:11:11.229500 #28982] INFO -- : ####################
Information on the client ####################
I, [2011-12-21T20:11:11.229587 #28982] INFO -- : Client IP Adress: myIP
I, [2011-12-21T20:11:11.229621 #28982] INFO -- : Client User Agent:
curl/7.21.2 (x86_64-unknown-linux-gnu) libcurl/7.21.2 OpenSSL/1.0.0c
zlib/1.2.5 libidn/1.15 libssh2/1.2.7
I, [2011-12-21T20:11:11.229649 #28982] INFO -- :
###################################################################
D, [2011-12-21T20:11:11.229691 #28982] DEBUG -- : Content type: text/plain
D, [2011-12-21T20:11:11.229726 #28982] DEBUG -- : Accept type:
application/json,text/plain,text/occi
D, [2011-12-21T20:11:11.229761 #28982] DEBUG -- : Server: Ruby OCCI
Framework/0.4 OCCI/1.1
D, [2011-12-21T20:11:11.229797 #28982] DEBUG -- : ##### Parsing HTTP header
#####
D, [2011-12-21T20:11:11.229834 #28982] DEBUG -- : Parsing Categories: stop;
scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="a
ction";
D, [2011-12-21T20:11:11.231763 #28982] DEBUG -- : Parsed categories:
#<OpenStruct term="stop",
scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#",
clazz="action">
D, [2011-12-21T20:11:11.231813 #28982] DEBUG -- : Parsed links:
D, [2011-12-21T20:11:11.231846 #28982] DEBUG -- : Parsing X-OCCI-Attribute:
method="poweroff"
D, [2011-12-21T20:11:11.232528 #28982] DEBUG -- : Parsed X-OCCI-Attributes:
method"poweroff"
D, [2011-12-21T20:11:11.232597 #28982] DEBUG -- : Parsing Location:
D, [2011-12-21T20:11:11.232658 #28982] DEBUG -- : Parsed Location:
D, [2011-12-21T20:11:11.232726 #28982] DEBUG -- : ##### Finnished parsing
HTTP header #####
D, [2011-12-21T20:11:11.232797 #28982] DEBUG -- : HTTP Request Headers:
D, [2011-12-21T20:11:11.232872 #28982] DEBUG -- : HTTP_ACCEPT:*/*
D, [2011-12-21T20:11:11.232947 #28982] DEBUG -- : HTTP_HOST:my-domain:3000
D, [2011-12-21T20:11:11.233030 #28982] DEBUG -- :
HTTP_USER_AGENT:curl/7.21.2 (x86_64-unknown-linux-gnu) libcurl/7.21.2
OpenSSL/1.0.0c zlib/1.2.5 libidn/1.15 libssh2/1.2.7
D, [2011-12-21T20:11:11.233112 #28982] DEBUG -- :
HTTP_X_OCCI_ATTRIBUTE:method="poweroff"
D, [2011-12-21T20:11:11.233189 #28982] DEBUG -- : HTTP_CATEGORY:stop;
scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="a
ction";
D, [2011-12-21T20:11:11.233261 #28982] DEBUG -- : HTTP_AUTHORIZATION:Basic
b25lYWRtaW46a2kxOTg0M2FuZA==
D, [2011-12-21T20:11:11.233358 #28982] DEBUG -- : {}
D, [2011-12-21T20:11:11.233443 #28982] DEBUG -- : {"method"=>"\"poweroff\""}
D, [2011-12-21T20:11:11.233568 #28982] DEBUG -- : Action Category:
#<OCCI::Core::Category:0x7fd54a15fd98>
D, [2011-12-21T20:11:11.233649 #28982] DEBUG -- : Requested location:
/compute/536
I, [2011-12-21T20:11:11.233725 #28982] INFO -- : Triggering action on
resource(s) below location /compute/536
D, [2011-12-21T20:11:11.233833 #28982] DEBUG -- : Searching context: compute
E, [2011-12-21T20:11:11.234007 #28982] ERROR -- : No entities corresponding
to location [/compute/536] could be found! (RuntimeError)
/usr/lib64/ruby/1.8/x86_64-linux/occi/occi-server.rb:273:in `POST *'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in
`call'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in
`compile!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `[]'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in
`route!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in
`route_eval'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in
`route!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in
`process_route'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in
`catch'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in
`process_route'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in
`route!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in
`each'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in
`route!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in
`dispatch!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in
`call!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in
`invoke'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in
`catch'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in
`invoke'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in
`call!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_
header.rb:22:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path
_traversal.rb:16:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json
_csrf.rb:17:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base
.rb:47:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_
header.rb:22:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/logger.rb:15:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/commonlogger.rb:20:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/methodoverride.rb:24:in
`call'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/showexceptions.rb:21
:in `call'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in
`call'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:in
`synchronize'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in
`call'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:206:in
`start_request_handler'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:171:in `send'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:171:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:166:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:180:in `start'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rack_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rack_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/helper-scripts/passenger-spawn-server:99
myIP - - [21/Dec/2011 20:11:11] "POST /compute/536 " 400 - 0.0053
----------------- for image uploading -----------------
I, [2011-12-21T20:15:02.033766 #28982] INFO -- : ####################
Information on the client ####################
I, [2011-12-21T20:15:02.033883 #28982] INFO -- : Client IP Adress: myIP
I, [2011-12-21T20:15:02.033926 #28982] INFO -- : Client User Agent:
curl/7.21.2 (x86_64-unknown-linux-gnu) libcurl/7.21.2 OpenSSL/1.0.0c
zlib/1.2.5 libidn/1.15 libssh2/1.2.7
I, [2011-12-21T20:15:02.033965 #28982] INFO -- :
###################################################################
D, [2011-12-21T20:15:02.034012 #28982] DEBUG -- : Content type: text/plain
D, [2011-12-21T20:15:02.034049 #28982] DEBUG -- : Accept type:
application/json,text/plain,text/occi
D, [2011-12-21T20:15:02.034116 #28982] DEBUG -- : Server: Ruby OCCI
Framework/0.4 OCCI/1.1
D, [2011-12-21T20:15:02.034171 #28982] DEBUG -- : ##### Parsing HTTP header
#####
D, [2011-12-21T20:15:02.034227 #28982] DEBUG -- : Parsing Categories:
storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";
D, [2011-12-21T20:15:02.036072 #28982] DEBUG -- : Parsed categories:
#<OpenStruct term="storage",
scheme="http://schemas.ogf.org/occi/infrastructure#", clazz="kind">
D, [2011-12-21T20:15:02.036142 #28982] DEBUG -- : Parsed links:
D, [2011-12-21T20:15:02.036186 #28982] DEBUG -- : Parsing X-OCCI-Attribute:
occi.core.title="My Image", occi.core.summary="A short summary"
D, [2011-12-21T20:15:02.037383 #28982] DEBUG -- : Parsed X-OCCI-Attributes:
occi.core.title"My Image"occi.core.summary"A short summary"
D, [2011-12-21T20:15:02.037460 #28982] DEBUG -- : Parsing Location:
D, [2011-12-21T20:15:02.037500 #28982] DEBUG -- : Parsed Location:
D, [2011-12-21T20:15:02.037538 #28982] DEBUG -- : ##### Finnished parsing
HTTP header #####
D, [2011-12-21T20:15:02.037590 #28982] DEBUG -- : Location of Image
/tmp/RackMultipart20111221-28982-1xjyet0-0
D, [2011-12-21T20:15:02.037865 #28982] DEBUG -- : HTTP Request Headers:
D, [2011-12-21T20:15:02.037934 #28982] DEBUG -- : HTTP_ACCEPT:*/*
D, [2011-12-21T20:15:02.037979 #28982] DEBUG -- : HTTP_HOST:my-domain:3000
D, [2011-12-21T20:15:02.038015 #28982] DEBUG -- :
HTTP_USER_AGENT:curl/7.21.2 (x86_64-unknown-linux-gnu) libcurl/7.21.2
OpenSSL/1.0.0c zlib/1.2.5 libidn/1.15 libssh2/1.2.7
D, [2011-12-21T20:15:02.038089 #28982] DEBUG -- :
HTTP_X_OCCI_ATTRIBUTE:occi.core.title="My Image", occi.core.summary="A short
summary"
D, [2011-12-21T20:15:02.038152 #28982] DEBUG -- :
HTTP_CATEGORY:storage;scheme="http://schemas.ogf.org/occi/infrastructure#";c
lass="kind";
D, [2011-12-21T20:15:02.038192 #28982] DEBUG -- : HTTP_AUTHORIZATION:Basic
b25lYWRtaW46a2kxOTg0M2FuZA==
D, [2011-12-21T20:15:02.038236 #28982] DEBUG -- : HTTP_EXPECT:100-continue
D, [2011-12-21T20:15:02.038297 #28982] DEBUG -- :
{"file"=>{:type=>"application/octet-stream",
:tempfile=>#<File:/tmp/RackMultipart20111221-28982-1xjyet0-0>,
:filename=>"samon.img", :head=>"Content-Disposition: form-data;
name=\"file\"; filename=\"samon.img\"\r\nContent-Type:
application/octet-stream\r\n", :name=>"file"}}
D, [2011-12-21T20:15:02.038417 #28982] DEBUG -- : {"occi.core.title"=>"\"My
Image\"", "occi.core.summary"=>"\"A short summary\""}
D, [2011-12-21T20:15:02.038534 #28982] DEBUG -- : Action Category:
D, [2011-12-21T20:15:02.038602 #28982] DEBUG -- : Requested location:
/storage/
I, [2011-12-21T20:15:02.038677 #28982] INFO -- : Creating resource...
D, [2011-12-21T20:15:02.038748 #28982] DEBUG -- : Registering method
[online] of object [#<OCCI::Infrastructure::Storage:0x7fd5485857f8>] for
action [#<OCCI::Core::Action:0x7fd54a13d450>] (at index: -1)...
D, [2011-12-21T20:15:02.038833 #28982] DEBUG -- : Registering method
[offline] of object [#<OCCI::Infrastructure::Storage:0x7fd5485857f8>] for
action [#<OCCI::Core::Action:0x7fd54a13d540>] (at index: -1)...
D, [2011-12-21T20:15:02.038903 #28982] DEBUG -- : Registering method
[backup] of object [#<OCCI::Infrastructure::Storage:0x7fd5485857f8>] for
action [#<OCCI::Core::Action:0x7fd54a13d810>] (at index: -1)...
D, [2011-12-21T20:15:02.038980 #28982] DEBUG -- : Registering method
[snapshot] of object [#<OCCI::Infrastructure::Storage:0x7fd5485857f8>] for
action [#<OCCI::Core::Action:0x7fd54a13cf00>] (at index: -1)...
D, [2011-12-21T20:15:02.039039 #28982] DEBUG -- : Registering method
[resize] of object [#<OCCI::Infrastructure::Storage:0x7fd5485857f8>] for
action [#<OCCI::Core::Action:0x7fd54a13d1d0>] (at index: -1)...
D, [2011-12-21T20:15:02.039105 #28982] DEBUG -- : OCCI ID:
D, [2011-12-21T20:15:02.039311 #28982] DEBUG -- : Attributes definitions to
check against:
occi.core.titleocci.core.summaryocci.storage.stateocci.core.idlinksocci.stor
age.size
D, [2011-12-21T20:15:02.039415 #28982] DEBUG -- : Mixins in entity
D, [2011-12-21T20:15:02.039505 #28982] DEBUG -- : Resource attributes
occi.core.titleMy Imageocci.core.summaryA short
summaryocci.storage.stateofflineocci.core.idb32a913c-2bff-11e1-a05e-52540031
3557
D, [2011-12-21T20:15:02.041168 #28982] DEBUG -- : Parsed template OCCI_ID
= b32a913c-2bff-11e1-a05e-525400313557
NAME = "My Image"
DESCRIPTION = "A short summary"
TYPE = OS
#PUBLIC =
#PERSISTENT =
DEV_PREFIX =
BUS =
PATH = /tmp/samon.img
SIZE = 15
E, [2011-12-21T20:15:02.106652 #28982] ERROR -- : Error message from
OpenNebula: [ImageAllocate] User couldn't be authenticated, aborting call.
(OCCI::BackendError)
/usr/lib64/ruby/1.8/x86_64-linux/occi/backend/OpenNebula.rb:74:in `check_rc'
/usr/lib64/ruby/1.8/x86_64-linux/occi/backend/OpenNebula.rb:616:in `deploy'
/usr/lib64/ruby/1.8/x86_64-linux/occi/occi-server.rb:355:in `POST *'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in
`call'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in
`compile!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `[]'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in
`route!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in
`route_eval'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in
`route!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in
`process_route'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in
`catch'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in
`process_route'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in
`route!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in
`each'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in
`route!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in
`dispatch!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in
`call!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in
`invoke'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in
`catch'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in
`invoke'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in
`call!'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_
header.rb:22:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path
_traversal.rb:16:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json
_csrf.rb:17:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base
.rb:47:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_
header.rb:22:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/logger.rb:15:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/commonlogger.rb:20:in
`call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/methodoverride.rb:24:in
`call'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/showexceptions.rb:21
:in `call'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in
`call'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:in
`synchronize'
/usr/lib64/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in
`call'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:206:in
`start_request_handler'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:171:in `send'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:171:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:166:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:180:in `start'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rack_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rack_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/var/lib/passenger-standalone/3.0.11-x86_64-ruby1.8.7-linux-gcc4.5.1-1002/su
pport/helper-scripts/passenger-spawn-server:99
myIP - - [21/Dec/2011 20:15:02] "POST /storage/ " 400 - 0.0735
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111221/eb20cb4b/attachment-0002.htm>
More information about the Users
mailing list