[one-ecosystem] OCCI Server 0.4 - not list vms properly

John Samonakis samon at ucnet.uoc.gr
Thu Feb 9 08:53:15 PST 2012


I also notice that OCCI Server, often, returns different VM IDs
(occi.core.id),
for the same virtual machines, when I run the curl command.
Is this normal?

For example when I run

curl -v -X GET http://vdi.datacenter.uoc.gr:3000/compute/


For several times, when I run the command I receive

I, [2012-02-09T18:21:01.633024 #23972]  INFO -- : ####################
Information on the client ####################
I, [2012-02-09T18:21:01.633638 #23972]  INFO -- : Client IP Adress:
147.52.83.196
I, [2012-02-09T18:21:01.633712 #23972]  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, [2012-02-09T18:21:01.633766 #23972]  INFO -- :
###################################################################
D, [2012-02-09T18:21:01.633839 #23972] DEBUG -- : Content type: text/plain
D, [2012-02-09T18:21:01.633887 #23972] DEBUG -- : Accept type:
application/json,text/plain,text/occi
D, [2012-02-09T18:21:01.633942 #23972] DEBUG -- : Server: Ruby OCCI
Framework/0.4 OCCI/1.1
D, [2012-02-09T18:21:01.634016 #23972] DEBUG -- : ##### Parsing HTTP header
#####
D, [2012-02-09T18:21:01.634081 #23972] DEBUG -- : Parsed categories: 
D, [2012-02-09T18:21:01.634151 #23972] DEBUG -- : Parsed links: 
D, [2012-02-09T18:21:01.634221 #23972] DEBUG -- : Parsed X-OCCI-Attributes: 
D, [2012-02-09T18:21:01.634280 #23972] DEBUG -- : Parsing Location: 
D, [2012-02-09T18:21:01.634332 #23972] DEBUG -- : Parsed Location: 
D, [2012-02-09T18:21:01.634364 #23972] DEBUG -- : ##### Finnished parsing
HTTP header #####
D, [2012-02-09T18:21:01.634399 #23972] DEBUG -- : HTTP Request Headers: 
D, [2012-02-09T18:21:01.634515 #23972] DEBUG -- : HTTP_ACCEPT:*/*
D, [2012-02-09T18:21:01.634569 #23972] DEBUG -- :
HTTP_HOST:vdi.datacenter.uoc.gr:3000
D, [2012-02-09T18:21:01.634613 #23972] 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, [2012-02-09T18:21:01.634694 #23972] DEBUG -- : {}
D, [2012-02-09T18:21:01.634769 #23972] DEBUG -- : {}
D, [2012-02-09T18:21:01.634847 #23972] DEBUG -- : Action Category: 
D, [2012-02-09T18:21:01.634896 #23972] DEBUG -- : Requested location:
/compute/
I, [2012-02-09T18:21:01.635977 #23972]  INFO -- : Listing all entities for
kind/mixin http://schemas.ogf.org/occi/infrastructure#compute ...
D, [2012-02-09T18:21:01.636104 #23972] DEBUG -- : Rendering location:
/compute/d0adccf6-394d-5843-ba96-df8585542ff0
D, [2012-02-09T18:21:01.636207 #23972] DEBUG -- : Rendering location:
/compute/ad9a3d85-34eb-5580-9c4d-e69bb4482520
D, [2012-02-09T18:21:01.636320 #23972] DEBUG -- : Rendering location:
/compute/668b504f-f233-5568-8c90-b6bef4d31db7
D, [2012-02-09T18:21:01.636404 #23972] DEBUG -- : Rendering location:
/compute/e11a61a9-ef03-52db-af84-60a2e1ffc125
D, [2012-02-09T18:21:01.636482 #23972] DEBUG -- : Rendering location:
/compute/f26bf42e-3cf4-51f6-9706-99c8c9ca5eea
D, [2012-02-09T18:21:01.636550 #23972] DEBUG -- : Rendering location:
/compute/a87fd7dd-c5e4-5b7b-ba38-126816f9a74c
D, [2012-02-09T18:21:01.636681 #23972] DEBUG -- :
#<Sinatra::Response:0x7f492f8bdec0 @body=["X-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/d0adccf6-394d-5843-ba96-df8585542f
f0\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/ad9a3d85-34eb-5580-9c4d-e69bb44825
20\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/668b504f-f233-5568-8c90-b6bef4d31d
b7\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/e11a61a9-ef03-52db-af84-60a2e1ffc1
25\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/f26bf42e-3cf4-51f6-9706-99c8c9ca5e
ea\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/a87fd7dd-c5e4-5b7b-ba38-126816f9a7
4c"], @chunked=false, @length=575, @header={"Content-Type"=>"text/plain",
"Content-Length"=>"575", "Server"=>"Ruby OCCI Framework/0.4 OCCI/1.1",
"Accept"=>"application/json,text/plain,text/occi"}, @block=nil, @status=200,
@writer=#<Proc:0x00007f493182d918@/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/l
ib/rack/response.rb:28>>
147.52.83.196 - - [09/Feb/2012 18:21:01] "GET /compute/ " 200 575 0.0046




Suddenly, IDs change and when I run the command I receive 


I, [2012-02-09T18:37:06.102692 #27038]  INFO -- : ####################
Information on the client ####################
I, [2012-02-09T18:37:06.104105 #27038]  INFO -- : Client IP Adress:
147.52.83.196
I, [2012-02-09T18:37:06.104180 #27038]  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, [2012-02-09T18:37:06.104233 #27038]  INFO -- :
###################################################################
D, [2012-02-09T18:37:06.104309 #27038] DEBUG -- : Content type: text/plain
D, [2012-02-09T18:37:06.104381 #27038] DEBUG -- : Accept type:
application/json,text/plain,text/occi
D, [2012-02-09T18:37:06.104533 #27038] DEBUG -- : Server: Ruby OCCI
Framework/0.4 OCCI/1.1
D, [2012-02-09T18:37:06.104644 #27038] DEBUG -- : ##### Parsing HTTP header
#####
D, [2012-02-09T18:37:06.104715 #27038] DEBUG -- : Parsed categories: 
D, [2012-02-09T18:37:06.104777 #27038] DEBUG -- : Parsed links: 
D, [2012-02-09T18:37:06.104845 #27038] DEBUG -- : Parsed X-OCCI-Attributes: 
D, [2012-02-09T18:37:06.104931 #27038] DEBUG -- : Parsing Location: 
D, [2012-02-09T18:37:06.104997 #27038] DEBUG -- : Parsed Location: 
D, [2012-02-09T18:37:06.105052 #27038] DEBUG -- : ##### Finnished parsing
HTTP header #####
D, [2012-02-09T18:37:06.105111 #27038] DEBUG -- : HTTP Request Headers: 
D, [2012-02-09T18:37:06.105171 #27038] DEBUG -- : HTTP_ACCEPT:*/*
D, [2012-02-09T18:37:06.105226 #27038] DEBUG -- :
HTTP_HOST:vdi.datacenter.uoc.gr:3000
D, [2012-02-09T18:37:06.105280 #27038] 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, [2012-02-09T18:37:06.105384 #27038] DEBUG -- : {}
D, [2012-02-09T18:37:06.105461 #27038] DEBUG -- : {}
D, [2012-02-09T18:37:06.105541 #27038] DEBUG -- : Action Category: 
D, [2012-02-09T18:37:06.105602 #27038] DEBUG -- : Requested location:
/compute/
I, [2012-02-09T18:37:06.105679 #27038]  INFO -- : Listing all entities for
kind/mixin http://schemas.ogf.org/occi/infrastructure#compute ...
D, [2012-02-09T18:37:06.105883 #27038] DEBUG -- : Rendering location:
/compute/27704033-02f6-5cbf-ab4e-e55fc7eda2b7
D, [2012-02-09T18:37:06.105985 #27038] DEBUG -- : Rendering location:
/compute/5f8afe79-b824-528c-a0e1-975d99f5ac5d
D, [2012-02-09T18:37:06.107133 #27038] DEBUG -- : Rendering location:
/compute/4f3c6100-aad9-5aa9-830d-846ad73c4b37
D, [2012-02-09T18:37:06.107262 #27038] DEBUG -- : Rendering location:
/compute/419a9ff7-15a0-550a-86af-c7acf169151d
D, [2012-02-09T18:37:06.107385 #27038] DEBUG -- : Rendering location:
/compute/95436d7c-0763-5afc-9368-c7850dc9a89f
D, [2012-02-09T18:37:06.107505 #27038] DEBUG -- : Rendering location:
/compute/23912e5d-6919-5bcb-a0ea-b995ba4a0bef
D, [2012-02-09T18:37:06.107686 #27038] DEBUG -- :
#<Sinatra::Response:0x7f492f8ac8f0 @body=["X-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/27704033-02f6-5cbf-ab4e-e55fc7eda2
b7\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/5f8afe79-b824-528c-a0e1-975d99f5ac
5d\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/4f3c6100-aad9-5aa9-830d-846ad73c4b
37\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/419a9ff7-15a0-550a-86af-c7acf16915
1d\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/95436d7c-0763-5afc-9368-c7850dc9a8
9f\nX-OCCI-Location:
http://vdi.datacenter.uoc.gr:4567/compute/23912e5d-6919-5bcb-a0ea-b995ba4a0b
ef"], @chunked=false, @length=575, @header={"Content-Type"=>"text/plain",
"Content-Length"=>"575", "Server"=>"Ruby OCCI Framework/0.4 OCCI/1.1",
"Accept"=>"application/json,text/plain,text/occi"}, @block=nil, @status=200,
@writer=#<Proc:0x00007f493182a7b8@/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/l
ib/rack/response.rb:28>>
147.52.83.196 - - [09/Feb/2012 18:37:06] "GET /compute/ " 200 575 0.0065






-----Original Message-----
From: Feldhaus, Florian [mailto:florian.feldhaus at gwdg.de] 
Sent: Thursday, February 09, 2012 4:11 PM
To: John Samonakis
Cc: <ecosystem at lists.opennebula.org>
Subject: Re: [one-ecosystem] OCCI Server 0.4 - not list vms properly

I try to find out where the problem lies. You could try the latest
development version. We rewrote the OpenNebula adapter to support OpenNebula
3.2. That might also fix other issues.

You can checkout the head version with:
git clone git://git.opennebula.org/ogf-occi.git occi-head
cd occi-head

Then edit the config file in etc/occi-server.conf . You can run both OCCI
versions simultaneously.

We will do intensive testing during next week, so we might have a better
answer for you in a week.

Cheers,
Florian

Am 08.02.2012 um 22:24 schrieb John Samonakis:

> I use both GET /vms/ and GET /compute/ but the result is the same!
> If GET /vms/ returns the right vms, GET /compute/ also returns the
> right list. Rarely, both, return the right list!
> 
> The command curl -v -X GET  http://vdi.datacenter.uoc.gr:3000/compute/
> 
> produce the logs below. I have create 5 VMs with sunstone, 
> but I see only the 3 of them, in those logs
> 
> thanks
> John
> 
> I, [2012-02-08T23:03:32.064926 #24380]  INFO -- : ####################
> Information on the client ####################
> I, [2012-02-08T23:03:32.065122 #24380]  INFO -- : Client IP Adress:
> 147.52.83.196
> I, [2012-02-08T23:03:32.065187 #24380]  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, [2012-02-08T23:03:32.065240 #24380]  INFO -- :
> ###################################################################
> D, [2012-02-08T23:03:32.065435 #24380] DEBUG -- : Content type: text/plain
> D, [2012-02-08T23:03:32.065542 #24380] DEBUG -- : Accept type:
> application/json,text/plain,text/occi
> D, [2012-02-08T23:03:32.065608 #24380] DEBUG -- : Server: Ruby OCCI
> Framework/0.4 OCCI/1.1
> D, [2012-02-08T23:03:32.065682 #24380] DEBUG -- : ##### Parsing HTTP
header
> #####
> D, [2012-02-08T23:03:32.065744 #24380] DEBUG -- : Parsed categories: 
> D, [2012-02-08T23:03:32.065822 #24380] DEBUG -- : Parsed links: 
> D, [2012-02-08T23:03:32.065911 #24380] DEBUG -- : Parsed
X-OCCI-Attributes: 
> D, [2012-02-08T23:03:32.065973 #24380] DEBUG -- : Parsing Location: 
> D, [2012-02-08T23:03:32.066031 #24380] DEBUG -- : Parsed Location: 
> D, [2012-02-08T23:03:32.066105 #24380] DEBUG -- : ##### Finnished parsing
> HTTP header #####
> D, [2012-02-08T23:03:32.066171 #24380] DEBUG -- : HTTP Request Headers: 
> D, [2012-02-08T23:03:32.066234 #24380] DEBUG -- : HTTP_ACCEPT:*/*
> D, [2012-02-08T23:03:32.066313 #24380] DEBUG -- :
> HTTP_HOST:vdi.datacenter.uoc.gr:3000
> D, [2012-02-08T23:03:32.066373 #24380] 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, [2012-02-08T23:03:32.066495 #24380] DEBUG -- : {}
> D, [2012-02-08T23:03:32.066603 #24380] DEBUG -- : {}
> D, [2012-02-08T23:03:32.066687 #24380] DEBUG -- : Action Category: 
> D, [2012-02-08T23:03:32.066753 #24380] DEBUG -- : Requested location:
> /compute/
> I, [2012-02-08T23:03:32.066833 #24380]  INFO -- : Listing all entities for
> kind/mixin http://schemas.ogf.org/occi/infrastructure#compute ...
> D, [2012-02-08T23:03:32.066967 #24380] DEBUG -- : Rendering location:
> /compute/b0679202-bb53-50c5-8181-f14ccd15b3a3
> D, [2012-02-08T23:03:32.067059 #24380] DEBUG -- : Rendering location:
> /compute/ddd38524-a6c0-5c10-9def-c282b1a0f572
> D, [2012-02-08T23:03:32.067169 #24380] DEBUG -- : Rendering location:
> /compute/c87446ac-0f89-5162-aef2-fc15b9891c8a
> D, [2012-02-08T23:03:32.067297 #24380] DEBUG -- :
> #<Sinatra::Response:0x7f492f7a2888 @body=["X-OCCI-Location:
>
http://vdi.datacenter.uoc.gr:4567/compute/b0679202-bb53-50c5-8181-f14ccd15b3
> a3\nX-OCCI-Location:
>
http://vdi.datacenter.uoc.gr:4567/compute/ddd38524-a6c0-5c10-9def-c282b1a0f5
> 72\nX-OCCI-Location:
>
http://vdi.datacenter.uoc.gr:4567/compute/c87446ac-0f89-5162-aef2-fc15b9891c
> 8a"], @chunked=false, @length=287, @header={"Content-Type"=>"text/plain",
> "Content-Length"=>"287", "Server"=>"Ruby OCCI Framework/0.4 OCCI/1.1",
> "Accept"=>"application/json,text/plain,text/occi"}, @block=nil,
@status=200,
>
@writer=#<Proc:0x00007f493138a050@/usr/lib64/ruby/gems/1.8/gems/rack-1.3.5/l
> ib/rack/response.rb:28>>
> 147.52.83.196 - - [08/Feb/2012 23:03:32] "GET /compute/ " 200 287 0.0034
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Feldhaus, Florian [mailto:florian.feldhaus at gwdg.de] 
> Sent: Wednesday, February 08, 2012 10:10 PM
> To: <samon at ucnet.uoc.gr> 
> Cc: <ecosystem at lists.opennebula.org>
> Subject: Re: [one-ecosystem] OCCI Server 0.4 - not list vms properly
> 
> Hi John,
> 
> I guess the problem is, that you're using a non default path for getting
the
> vms. Usually, GET /vms/ shouldn't return any OCCI entities. I will check
the
> code to see if wrongly entities are returned for a GET /vms/ . You should
> use GET /compute/ and everything should be fine. Could you please try and
> tell me if that works?
> 
> Cheers,
> Florian
> 
> Am 08.02.2012 um 19:31 schrieb <samon at ucnet.uoc.gr>
> :
> 
>> thanks a lot Florian,
>> your help is valuable
>> 
>> I attach the log file
>> 
>> John
>> 
>> 
>> -----Original Message-----
>> From: Feldhaus, Florian [mailto:florian.feldhaus at gwdg.de] 
>> Sent: Wednesday, February 08, 2012 8:10 PM
>> To: <samon at ucnet.uoc.gr> 
>> Cc: <ecosystem at lists.opennebula.org>
>> Subject: Re: [one-ecosystem] OCCI Server 0.4 - not list vms properly
>> 
>> Hi John,
>> 
>> the OCCI server should return all VMs as soon as they are created by
>> OpenNebula. Could you please send me the OCCI log file from
>> ogf-occi/log/passenger.3000.log? Then I can try to figure out the
problem.
>> 
>> Cheers,
>> Florian
>> 
>> Am 08.02.2012 um 18:59 schrieb <samon at ucnet.uoc.gr>
>> :
>> 
>>> Hi there!
>>> 
>>> I'm trying to list the available vms using curl command line tool
>>> and I experience a problem.
>>> 
>>> When I create a new vm using sunstone or opennebula commands,
>>> the OCCI server seem not to be aware of this change and continue
>>> to list the other vms except the new one.
>>> 
>>> sometimes "realizes" the existence of all the vms (old and newly
created)
>>> and
>>> show them, without problem.
>>> 
>>> any ideas?
>>> 
>>> thanks a lot!
>>> John
>>> 
>>> _______________________________________________
>>> Ecosystem mailing list
>>> Ecosystem at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/ecosystem-opennebula.org
>> 
>> 
>> <passenger.3000.log>_______________________________________________
>> Ecosystem mailing list
>> Ecosystem at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/ecosystem-opennebula.org
> 
> 
> 






More information about the Ecosystem mailing list