[one-ecosystem] OCCI Server 0.5 doesn't return VNC info
John Samonakis
samon at ucnet.uoc.gr
Wed Mar 14 05:02:26 PDT 2012
Hi!
Recently we upgrade OpenNebula from 3.0 to 3.2 and OCCI Server from 0.4 to
0.5.
When I use curl to retrieve the attributes for a VM, through an OCCI server
response,
I notice that the attributes "opennebula.vm.vnc" and "opennebula.vm.web_vnc
" don't appear.
In those attributes I can find the port in order to connect to VM
Using sunstone I can see port number and all other information in GRAPHICS
section of VM Template
What can I do?
thanks a lot!
John
Here is the response of OCCI Server 0.5 for a specific VM
< HTTP/1.1 200 OK
< Content-Type: text/plain
< Connection: keep-alive
< Status: 200
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11
< X-Frame-Options: sameorigin
< X-XSS-Protection: 1; mode=block
< Content-Length: 1620
< Server: Ruby OCCI Framework/0.4 OCCI/1.1
< Accept:
application/occi+json,application/json,text/plain,text/occi,text/uri-list
<
Category: virtualmachine;
scheme="http://schemas.opennebula.org/occi/infrastructure#";
class="mixin";title="OpenNebula Virtual Machine
Mixin";attributes="opennebula.vm.vnc_url opennebula.vm.boot
opennebula.vm.cpu_reservation";
Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#";
class="kind";
Link:
</compute/74c6b3d9-af53-5026-a77a-79d672d08a39?action=suspend>;rel="http://s
chemas.ogf.org/occi/infrastructure/compute/action#suspend"
Link:
</compute/74c6b3d9-af53-5026-a77a-79d672d08a39?action=stop>;rel="http://sche
mas.ogf.org/occi/infrastructure/compute/action#stop"
Link:
</compute/74c6b3d9-af53-5026-a77a-79d672d08a39?action=restart>;rel="http://s
chemas.ogf.org/occi/infrastructure/compute/action#restart"
Link:
</storage/711c94e7-6608-50f8-ae9b-19375b12caf4>;rel="http://schemas.ogf.org/
occi/infrastructure#storage";self="/storagelink/3fe5d3dd-b2c5-552a-9cf7-0761
3134d2b7";category="http://schemas.ogf.org/occi/infrastructure#storagelink";
;occi.core.source="/compute/185e673b-0f64-5fcc-b9d9-4716d6f339e1";occi.core.
target="/storage/711c94e7-6608-50f8-ae9b-19375b12caf4";occi.storagelink.stat
e="inactive";occi.core.id="3fe5d3dd-b2c5-552a-9cf7-07613134d2b7";
X-OCCI-Attribute: occi.compute.cores=4
X-OCCI-Attribute: occi.core.summary=""
X-OCCI-Attribute: occi.core.title="CS-150 Programming_1"
X-OCCI-Attribute: opennebula.vm.boot=""
X-OCCI-Attribute: occi.core.id="74c6b3d9-af53-5026-a77a-79d672d08a39"
X-OCCI-Attribute: opennebula.vm.cpu_reservation=0.05
X-OCCI-Attribute: occi.compute.memory=1000
X-OCCI-Attribute: occi.compute.state="active"
X-OCCI-Attribute: occi.compute.architecture="x86"
* Connection #0 to host vdi.datacenter.uoc.gr left intact
* Closing connection #0
and here, the response of OCCI Server 0.4 for a specific VM
[Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#";
class="kind";,
Category: virtualmachine;
scheme="http://schemas.opennebula.org/occi/infrastructure#";
class="mixin";title="OpenNebula Virtual Machine
Mixin";attributes="opennebula.vm.vnc_url opennebula.vm.boot
opennebula.vm.vcpu";,
Category: vnc; scheme="http://schemas.opennebula.org/occi/infrastructure#";
class="mixin";title="OpenNebula VNC Mixin";attributes="opennebula.vm.web_vnc
opennebula.vm.vnc";,
X-OCCI-Attribute: occi.compute.cores=0.01,
X-OCCI-Attribute: occi.core.summary=,
X-OCCI-Attribute: occi.core.title=myvm,
X-OCCI-Attribute:
opennebula.vm.web_vnc=http://vdi.datacenter.uoc.gr:6837/vnc_auto.html?host=v
di.datacenter.uoc.gr&port=6837,
X-OCCI-Attribute: opennebula.vm.boot=,
X-OCCI-Attribute: occi.core.id=7a1c184b-cbdd-508f-96f6-d8bac1d12e61,
X-OCCI-Attribute: occi.compute.memory=1000,
X-OCCI-Attribute: opennebula.vm.vnc=cb1-6:6837,
X-OCCI-Attribute: occi.compute.state=active,
X-OCCI-Attribute: opennebula.vm.vcpu=2,
X-OCCI-Attribute: occi.compute.architecture=x86,
Link:
</storage/f6f65c51-9ff4-50bf-bf59-3da0ac8139c7>;rel="http://schemas.ogf.org/
occi/infrastructure#storage";self="/storagelink/d715edbf-a028-5b8e-84c0-9621
9826458a";category="http://schemas.ogf.org/occi/infrastructure#storagelink";
;occi.core.source="/compute/f629c426-97d4-51ee-99a1-5824b39ca88d";occi.core.
target="/storage/f6f65c51-9ff4-50bf-bf59-3da0ac8139c7";occi.storagelink.stat
e="inactive";occi.core.id="d715edbf-a028-5b8e-84c0-96219826458a";,
Link:
</network/30a3429d-1f99-546d-8dca-3b2e56f2e8b6>;rel="http://schemas.ogf.org/
occi/infrastructure#network";self="/networkinterface/5f3c5570-dae9-550b-b148
-4e83a27a06c4";category="http://schemas.ogf.org/occi/infrastructure#networki
nterface";;occi.networkinterface.state="inactive";occi.core.source="/compute
/508d66a9-4072-57fd-a42f-056cf96f77d8";occi.core.target="/network/30a3429d-1
f99-546d-8dca-3b2e56f2e8b6";occi.core.id="5f3c5570-dae9-550b-b148-4e83a27a06
c4";]
Content-Type<-->text/plain
Connection<-->keep-alive
Status<-->200
X-Powered-By<-->Phusion Passenger (mod_rails/mod_rack) 3.0.11
X-Frame-Options<-->sameorigin
Link<--></compute/5502fdfe-b712-5386-92c9-529218000d5c?action=suspend>;rel="
http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
X-XSS-Protection<-->1; mode=block
Content-Length<-->1966
Server<-->Ruby OCCI Framework/0.4 OCCI/1.1
Accept<-->application/json,text/plain,text/occi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/ecosystem-opennebula.org/attachments/20120314/af97204e/attachment.htm>
More information about the Ecosystem
mailing list