Category terms not according to specification #38

Closed
bhagemeier opened this Issue Mar 26, 2013 · 7 comments

Comments

Projects
None yet
4 participants
@bhagemeier
Contributor

bhagemeier commented Mar 26, 2013

Hi,

after fixing #32, we're not quite there yet. Even the patch I provided to do a more complete mapping of invalid characters onto valid ones, does not seem to be complete. rOCCI client returns the following problem:

$ occi --endpoint https://egi-cloud.zam.kfa-juelich.de:8787/ --auth x509
--resource storage --action list --user-cred /tmp/x509up_u500 --proxy-ca
~/.globus/usercert.pem

line 0:-1 mismatched input "" expecting CATEGORY_KEY
line 1:152 mismatched character "u"; expecting "k"
line 1:162 mismatched character "r"; expecting "t"
line 1:313 mismatched character "u"; expecting "k"
line 1:329 mismatched character "r"; expecting "t"
line 1:139 mismatched character "u"; expecting "k"
line 1:287 mismatched character "u"; expecting "k"

Storage locations:

@arax is aware of this and investigating what exactly the cause for this is, i.e. which are the conflicting characters.

We certainly need the reverse mapping of the category terms, before that it's useless to dig any further.

@tmetsch

This comment has been minimized.

Show comment Hide comment
@tmetsch

tmetsch Mar 26, 2013

Owner

Any chance you can give us the raw HTTP information for that exact request?

Owner

tmetsch commented Mar 26, 2013

Any chance you can give us the raw HTTP information for that exact request?

@bhagemeier

This comment has been minimized.

Show comment Hide comment
@bhagemeier

bhagemeier Mar 26, 2013

Contributor

Absolutely, here you go. This is taken from the rOCCI client. Token id exchanged, so no chance to reuse that ;)

occi -d --endpoint https://egi-cloud.zam.kfa-juelich.de:8787/ --auth x509 --resource storage --action list --user-cred /tmp/x509up_u1000
0 --proxy-ca ~/.globus/usercert.pem
I, [2013-03-26T16:55:30.055994 #26468] INFO -- : Starting OCCI client ...
D, [2013-03-26T16:55:30.056193 #26468] DEBUG -- : Options: #<OpenStruct debug=true, verbose=false, log={:out=>#IO:, :level=>0, :logger=>#<Occi::Log:0x000000010388f0 @logger=#<Logger:0x00000001038670 @progname=nil, @Level=0, @default_formatter=#<Logger::Formatter:0x000000010385a8 @datetime_format=nil>, @Formatter=nil, @logdev=#<Logger::LogDevice:0x00000001038328 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x00000001038148 @mon_owner=nil, @mon_count=0, @mon_mutex=#Mutex:0x00000001037f18>>>, @log_subscriber=#<ActiveSupport::Notifications::Fanout::Subscriber:0x000000010376d0 @pattern="log", @DeleGate=#Proc:0x00000001037798@/var/lib/gems/1.9.1/gems/occi-3.1.0.beta.3/lib/occi/log.rb:21>>}, filter=nil, dump_model=false, interactive=false, endpoint="https://egi-cloud.zam.kfa-juelich.de:8787/", auth={:type=>"x509", :user_cert=>"/tmp/x509up_u1000", :ca_path=>"/etc/grid-security/certificates", :username=>"anonymous", :ca_file=>nil, :proxy_ca=>"/home/bjoernh/.globus/usercert.pem"}, output_format=:plain, mixins=nil, links=nil, attributes=nil, context_vars=nil, media_type="text/plain,text/occi", resource="storage", action=:list>
D, [2013-03-26T16:55:30.056264 #26468] DEBUG -- : Password or token is not set, asking for it now ...

I, [2013-03-26T16:55:30.056520 #26468] INFO -- : Establishing a connection to https://egi-cloud.zam.kfa-juelich.de:8787/ ...
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "HEAD / HTTP/1.1\r\nAccept: text/plain,text/occi;q=0.2\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 401 Unauthorized\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:30 GMT\r\n"
-> "Content-Type: text/html; charset=UTF-8\r\n"
-> "Www-Authenticate: Keystone uri='https://egi-cloud.zam.kfa-juelich.de:5000'\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "\r\n"
Conn close
D, [2013-03-26T16:55:30.353412 #26468] DEBUG -- : Available media types:
D, [2013-03-26T16:55:30.353515 #26468] DEBUG -- : Media Type: text/plain,text/occi
D, [2013-03-26T16:55:30.353577 #26468] DEBUG -- : Headers: {"Accept"=>"text/plain,text/occi"}
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "HEAD / HTTP/1.1\r\nAccept: text/plain,text/occi\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 401 Unauthorized\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:30 GMT\r\n"
-> "Content-Type: text/html; charset=UTF-8\r\n"
-> "Www-Authenticate: Keystone uri='https://egi-cloud.zam.kfa-juelich.de:5000'\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "\r\n"
Conn close
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "POST /v2.0/tokens HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:5000\r\nContent-Length: 22\r\n\r\n"
<- "{"auth":{"voms":true}}"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:31 GMT\r\n"
-> "Server: Apache\r\n"
-> "Vary: X-Auth-Token\r\n"
-> "Content-Length: 2843\r\n"
-> "Connection: close\r\n"
-> "Content-Type: application/json\r\n"
-> "\r\n"
reading 2843 bytes...
-> ""
-> [... keystone response ...]
read 2843 bytes
Conn close
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "GET /-/ HTTP/1.1\r\nAccept: text/plain,text/occi\r\nX-Auth-Token: be3c196c962d11e2a1f52767362b7c2e\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:32 GMT\r\n"
-> "Server: pyssf OCCI/1.1\r\n"
-> "Content-Length: 15279\r\n"
-> "Content-Type: text/plain\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 15279 bytes...
-> ""
-> "\nCategory: online; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Bring storage online"\nCategory: debian_stable__squeeze__20130325; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Debian Stable (Squeeze) 20130325 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Debian%20Stable%20%28Squeeze%29%2020130325/\"\nCategory: ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#\"; class="mixin"; title="L3/L4 capabilities for L2 Network Interface"; location="https://egi-cloud.zam.kfa-juelich.de:8787/network/interface/ip/\"; attributes="occi.networkinterface.address occi.networkinterface.allocation occi.networkinterface.gateway"\nCategory: m1_small; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m1.small flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m1.small/\"\nCategory: opensuse_12_1_minimal; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS OpenSuSE 12.1 Minimal VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/OpenSuSE%2012.1%20Minimal/\"\nCategory: m1_tiny; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m1.tiny flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m1.tiny/\"\nCategory: chg_pwd; scheme="http://schemas.openstack.org/instance/action#\"; class="action"; title="Changes Admin password."; attributes="org.openstack.credentials.admin_pwd"\nCategory: quantal-kernel-test; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS quantal-kernel-test VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/quantal-kernel-test/\"\nCategory: offline; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Bring storage offline"\nCategory: group; scheme="http://schemas.ogf.org/occi/infrastructure/security#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/group/\"\nCategory: storage; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="Storage Resource"; rel="http://schemas.ogf.org/occi/core#resource\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/storage/\"; attributes="occi.storage.state{immutable} occi.storage.size"; actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize\"\nCategory: network; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="Network Resource"; rel="http://schemas.ogf.org/occi/core#resource\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/network/\"; attributes="occi.network.label occi.network.state{immutable} occi.network.vlan"; actions="http://schemas.ogf.org/occi/infrastructure/network/action#up http://schemas.ogf.org/occi/infrastructure/network/action#down\"\nCategory: start; scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#\"; class="action"; title="Start a compute resource"\nCategory: default; scheme="http://schemas.openstack.org/infrastructure/security/group#\"; class="mixin"; title="default"; rel="http://schemas.ogf.org/occi/infrastructure/security#group\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/security/default/\"\nCategory: l1_large; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack l1.large flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/l1.large/\"\nCategory: ubuntu_quantal_quetzal__12_10_; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Ubuntu Quantal Quetzal (12.10) VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Ubuntu%20Quantal%20Quetzal%20%2812.10%29/\"\nCategory: create_image; scheme="http://schemas.openstack.org/instance/action#\"; class="action"; title="Creates a new image for the given server."; attributes="org.openstack.snapshot.image_name"\nCategory: l1_small; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack l1.small flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/l1.small/\"\nCategory: rule; scheme="http://schemas.openstack.org/occi/infrastructure/network/security#\"; class="kind"; title="Network security rule kind"; rel="http://schemas.ogf.org/occi/core#resource\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/network/security/rule/\"; attributes="occi.network.security.protocol occi.network.security.to occi.network.security.range occi.network.security.from"\nCategory: ipnetwork; scheme="http://schemas.ogf.org/occi/infrastructure/network#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/ipnetwork/\"; attributes="occi.network.address occi.network.allocation occi.network.gateway"\nCategory: suspend; scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#\"; class="action"; title="Suspend a compute resource"; attributes="method"\nCategory: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="A L2 Network Interface"; rel="http://schemas.ogf.org/occi/core#link\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/network/interface/\"; attributes="occi.networkinterface.interface{immutable} occi.networkinterface.mac occi.networkinterface.state{immutable}"\nCategory: egi-demo-fzj; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS EGI-Demo-FZJ VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/EGI-Demo-FZJ/\"\nCategory: storagelink; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="A link to a storage resource"; rel="http://schemas.ogf.org/occi/core#link\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/storage/link/\"; attributes="occi.storagelink.state{immutable} occi.storagelink.mountpoint occi.storagelink.deviceid"\nCategory: opensuse_11_4_minimal; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS OpenSuSE 11.4 Minimal VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/OpenSuSE%2011.4%20Minimal/\"\nCategory: scientific_linux_6_2__carbon__20130305; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Scientific Linux 6.2 (Carbon) 20130305 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Scientific%20Linux%206.2%20%28Carbon%29%2020130305/\"\nCategory: debian_6_m__unicore; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Debian 6 m. UNICORE VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Debian%206%20m.%20UNICORE/\"\nCategory: public_key; scheme="http://schemas.openstack.org/instance/credentials#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/public_key/\"; attributes="org.openstack.credentials.publickey.data org.openstack.credentials.publickey.name"\nCategory: u"
-> "p; scheme="http://schemas.ogf.org/occi/infrastructure/network/action#\"; class="action"; title="Bring up a network resource"\nCategory: ephem-test; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS ephem-test VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/ephem-test/\"\nCategory: down; scheme="http://schemas.ogf.org/occi/infrastructure/network/action#\"; class="action"; title="Bring down a network resource"\nCategory: snapshot; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Make a snapshot of storage resource"\nCategory: resource_tpl; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/resource_tpl/\"\nCategory: os_vms; scheme="http://schemas.openstack.org/instance/instance#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/os_vms/\"; attributes="org.openstack.compute.console.vnc{immutable}"; actions="http://schemas.openstack.org/instance/action#chg_pwd http://schemas.openstack.org/instance/action#create_image\"\nCategory: ubuntu_precise_pangolin__12_04_lts__puppet; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Ubuntu Precise Pangolin (12.04 LTS) puppet VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Ubuntu%20Precise%20Pangolin%20%2812.04%20LTS%29%20puppet/\"\nCategory: wenmr-demo-fzj; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS WeNMR-Demo-FZJ VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/WeNMR-Demo-FZJ/\"\nCategory: all_open; scheme="http://schemas.openstack.org/infrastructure/security/group#\"; class="mixin"; title="all_open"; rel="http://schemas.ogf.org/occi/infrastructure/security#group\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/security/all_open/\"\nCategory: bitsy; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack bitsy flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/bitsy/\"\nCategory: backup; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Backup storage resource"\nCategory: devstack_master_inst; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Devstack master inst VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Devstack%20master%20inst/\"\nCategory: mysql; scheme="http://schemas.openstack.org/infrastructure/security/group#\"; class="mixin"; title="mysql"; rel="http://schemas.ogf.org/occi/infrastructure/security#group\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/security/mysql/\"\nCategory: egi-bncweb; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS egi-bncweb VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/egi-bncweb/\"\nCategory: debian_stable__squeeze__20130305; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Debian Stable (Squeeze) 20130305 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Debian%20Stable%20%28Squeeze%29%2020130305/\"\nCategory: compute; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="Compute Resource"; rel="http://schemas.ogf.org/occi/core#resource\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/compute/\"; attributes="occi.compute.architecture occi.compute.state{immutable} occi.compute.speed occi.compute.memory occi.compute.cores occi.compute.hostname"; actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart http://schemas.ogf.org/occi/infrastructure/compute/action#suspend\"\nCategory: ubuntu_oneiric_ocelot__11_10_; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Ubuntu Oneiric Ocelot (11.10) VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Ubuntu%20Oneiric%20Ocelot%20%2811.10%29/\"\nCategory: stop; scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#\"; class="action"; title="Stop a compute resource"; attributes="method"\nCategory: slc_5_8; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS SLC 5.8 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/SLC%205.8/\"\nCategory: itsy; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack itsy flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/itsy/\"\nCategory: m1_medium; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m1.medium flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m1.medium/\"\nCategory: m2_small; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m2.small flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m2.small/\"\nCategory: ubuntu_precise_pangolin__12_04_lts_; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Ubuntu Precise Pangolin (12.04 LTS) VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Ubuntu%20Precise%20Pangolin%20%2812.04%20LTS%29/\"\nCategory: resize; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Resize storage resource"; attributes="size{required}"\nCategory: m1_large; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m1.large flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m1.large/\"\nCategory: restart; scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#\"; class="action"; title="Restart a compute resource"; attributes="method"\nCategory: os_tpl; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/os_tpl/\"\nCategory: debian_testing__wheezy__20130305; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Debian Testing (Wheezy) 20130305 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Debian%20Testing%20%28Wheezy%29%2020130305/\"\nCategory: scientific_linux_cern_6_3; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Scientific Linux Cern 6.3 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Scientific%20Linux%20Cern%206.3/\""
read 15279 bytes
Conn close
D, [2013-03-26T16:55:32.158215 #26468] DEBUG -- : Response location: /-/
D, [2013-03-26T16:55:32.158302 #26468] DEBUG -- : Response kind:
D, [2013-03-26T16:55:32.158429 #26468] DEBUG -- : Parser call: text/plain true
D, [2013-03-26T16:55:32.158495 #26468] DEBUG -- : ### Parsing request data to OCCI Collection ###
I, [2013-03-26T16:55:32.158668 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.158729 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.158871 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.159013 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
I, [2013-03-26T16:55:32.159368 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.159424 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.159517 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.159642 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
I, [2013-03-26T16:55:32.159928 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.159978 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.160071 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.160193 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
line 0:-1 mismatched input "" expecting CATEGORY_KEY
line 1:152 mismatched character "u"; expecting "k"
line 1:162 mismatched character "r"; expecting "t"
line 1:313 mismatched character "u"; expecting "k"
line 1:329 mismatched character "r"; expecting "t"
line 1:139 mismatched character "u"; expecting "k"
line 1:287 mismatched character "u"; expecting "k"
D, [2013-03-26T16:55:32.354055 #26468] DEBUG -- : Parsed collection: empty? false
I, [2013-03-26T16:55:32.354249 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.354311 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.354453 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.354611 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
I, [2013-03-26T16:55:32.359924 #26468] INFO -- : Executing action list on storage ...
D, [2013-03-26T16:55:32.359999 #26468] DEBUG -- : Getting resource types ...
I, [2013-03-26T16:55:32.360750 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.360814 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.360922 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.361039 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
D, [2013-03-26T16:55:32.361280 #26468] DEBUG -- : storage is a resource type.
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "GET /storage/ HTTP/1.1\r\nAccept: text/uri-list\r\nX-Auth-Token: be3c196c962d11e2a1f52767362b7c2e\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:33 GMT\r\n"
-> "Server: pyssf OCCI/1.1\r\n"
-> "Content-Length: 15\r\n"
-> "Content-Type: text/uri-list\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 15 bytes...
-> ""
-> "# uri:/storage/"
read 15 bytes
Conn close

Storage locations:
I, [2013-03-26T16:55:32.984225 #26468] INFO -- : OCCI client is shutting down ...
�[01;32mbjoernh@zam241�[00m:�[01;34m~�[00m$ :��[K�

Contributor

bhagemeier commented Mar 26, 2013

Absolutely, here you go. This is taken from the rOCCI client. Token id exchanged, so no chance to reuse that ;)

occi -d --endpoint https://egi-cloud.zam.kfa-juelich.de:8787/ --auth x509 --resource storage --action list --user-cred /tmp/x509up_u1000
0 --proxy-ca ~/.globus/usercert.pem
I, [2013-03-26T16:55:30.055994 #26468] INFO -- : Starting OCCI client ...
D, [2013-03-26T16:55:30.056193 #26468] DEBUG -- : Options: #<OpenStruct debug=true, verbose=false, log={:out=>#IO:, :level=>0, :logger=>#<Occi::Log:0x000000010388f0 @logger=#<Logger:0x00000001038670 @progname=nil, @Level=0, @default_formatter=#<Logger::Formatter:0x000000010385a8 @datetime_format=nil>, @Formatter=nil, @logdev=#<Logger::LogDevice:0x00000001038328 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x00000001038148 @mon_owner=nil, @mon_count=0, @mon_mutex=#Mutex:0x00000001037f18>>>, @log_subscriber=#<ActiveSupport::Notifications::Fanout::Subscriber:0x000000010376d0 @pattern="log", @DeleGate=#Proc:0x00000001037798@/var/lib/gems/1.9.1/gems/occi-3.1.0.beta.3/lib/occi/log.rb:21>>}, filter=nil, dump_model=false, interactive=false, endpoint="https://egi-cloud.zam.kfa-juelich.de:8787/", auth={:type=>"x509", :user_cert=>"/tmp/x509up_u1000", :ca_path=>"/etc/grid-security/certificates", :username=>"anonymous", :ca_file=>nil, :proxy_ca=>"/home/bjoernh/.globus/usercert.pem"}, output_format=:plain, mixins=nil, links=nil, attributes=nil, context_vars=nil, media_type="text/plain,text/occi", resource="storage", action=:list>
D, [2013-03-26T16:55:30.056264 #26468] DEBUG -- : Password or token is not set, asking for it now ...

I, [2013-03-26T16:55:30.056520 #26468] INFO -- : Establishing a connection to https://egi-cloud.zam.kfa-juelich.de:8787/ ...
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "HEAD / HTTP/1.1\r\nAccept: text/plain,text/occi;q=0.2\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 401 Unauthorized\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:30 GMT\r\n"
-> "Content-Type: text/html; charset=UTF-8\r\n"
-> "Www-Authenticate: Keystone uri='https://egi-cloud.zam.kfa-juelich.de:5000'\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "\r\n"
Conn close
D, [2013-03-26T16:55:30.353412 #26468] DEBUG -- : Available media types:
D, [2013-03-26T16:55:30.353515 #26468] DEBUG -- : Media Type: text/plain,text/occi
D, [2013-03-26T16:55:30.353577 #26468] DEBUG -- : Headers: {"Accept"=>"text/plain,text/occi"}
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "HEAD / HTTP/1.1\r\nAccept: text/plain,text/occi\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 401 Unauthorized\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:30 GMT\r\n"
-> "Content-Type: text/html; charset=UTF-8\r\n"
-> "Www-Authenticate: Keystone uri='https://egi-cloud.zam.kfa-juelich.de:5000'\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "\r\n"
Conn close
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "POST /v2.0/tokens HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:5000\r\nContent-Length: 22\r\n\r\n"
<- "{"auth":{"voms":true}}"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:31 GMT\r\n"
-> "Server: Apache\r\n"
-> "Vary: X-Auth-Token\r\n"
-> "Content-Length: 2843\r\n"
-> "Connection: close\r\n"
-> "Content-Type: application/json\r\n"
-> "\r\n"
reading 2843 bytes...
-> ""
-> [... keystone response ...]
read 2843 bytes
Conn close
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "GET /-/ HTTP/1.1\r\nAccept: text/plain,text/occi\r\nX-Auth-Token: be3c196c962d11e2a1f52767362b7c2e\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:32 GMT\r\n"
-> "Server: pyssf OCCI/1.1\r\n"
-> "Content-Length: 15279\r\n"
-> "Content-Type: text/plain\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 15279 bytes...
-> ""
-> "\nCategory: online; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Bring storage online"\nCategory: debian_stable__squeeze__20130325; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Debian Stable (Squeeze) 20130325 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Debian%20Stable%20%28Squeeze%29%2020130325/\"\nCategory: ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#\"; class="mixin"; title="L3/L4 capabilities for L2 Network Interface"; location="https://egi-cloud.zam.kfa-juelich.de:8787/network/interface/ip/\"; attributes="occi.networkinterface.address occi.networkinterface.allocation occi.networkinterface.gateway"\nCategory: m1_small; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m1.small flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m1.small/\"\nCategory: opensuse_12_1_minimal; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS OpenSuSE 12.1 Minimal VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/OpenSuSE%2012.1%20Minimal/\"\nCategory: m1_tiny; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m1.tiny flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m1.tiny/\"\nCategory: chg_pwd; scheme="http://schemas.openstack.org/instance/action#\"; class="action"; title="Changes Admin password."; attributes="org.openstack.credentials.admin_pwd"\nCategory: quantal-kernel-test; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS quantal-kernel-test VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/quantal-kernel-test/\"\nCategory: offline; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Bring storage offline"\nCategory: group; scheme="http://schemas.ogf.org/occi/infrastructure/security#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/group/\"\nCategory: storage; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="Storage Resource"; rel="http://schemas.ogf.org/occi/core#resource\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/storage/\"; attributes="occi.storage.state{immutable} occi.storage.size"; actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize\"\nCategory: network; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="Network Resource"; rel="http://schemas.ogf.org/occi/core#resource\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/network/\"; attributes="occi.network.label occi.network.state{immutable} occi.network.vlan"; actions="http://schemas.ogf.org/occi/infrastructure/network/action#up http://schemas.ogf.org/occi/infrastructure/network/action#down\"\nCategory: start; scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#\"; class="action"; title="Start a compute resource"\nCategory: default; scheme="http://schemas.openstack.org/infrastructure/security/group#\"; class="mixin"; title="default"; rel="http://schemas.ogf.org/occi/infrastructure/security#group\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/security/default/\"\nCategory: l1_large; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack l1.large flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/l1.large/\"\nCategory: ubuntu_quantal_quetzal__12_10_; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Ubuntu Quantal Quetzal (12.10) VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Ubuntu%20Quantal%20Quetzal%20%2812.10%29/\"\nCategory: create_image; scheme="http://schemas.openstack.org/instance/action#\"; class="action"; title="Creates a new image for the given server."; attributes="org.openstack.snapshot.image_name"\nCategory: l1_small; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack l1.small flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/l1.small/\"\nCategory: rule; scheme="http://schemas.openstack.org/occi/infrastructure/network/security#\"; class="kind"; title="Network security rule kind"; rel="http://schemas.ogf.org/occi/core#resource\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/network/security/rule/\"; attributes="occi.network.security.protocol occi.network.security.to occi.network.security.range occi.network.security.from"\nCategory: ipnetwork; scheme="http://schemas.ogf.org/occi/infrastructure/network#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/ipnetwork/\"; attributes="occi.network.address occi.network.allocation occi.network.gateway"\nCategory: suspend; scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#\"; class="action"; title="Suspend a compute resource"; attributes="method"\nCategory: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="A L2 Network Interface"; rel="http://schemas.ogf.org/occi/core#link\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/network/interface/\"; attributes="occi.networkinterface.interface{immutable} occi.networkinterface.mac occi.networkinterface.state{immutable}"\nCategory: egi-demo-fzj; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS EGI-Demo-FZJ VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/EGI-Demo-FZJ/\"\nCategory: storagelink; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="A link to a storage resource"; rel="http://schemas.ogf.org/occi/core#link\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/storage/link/\"; attributes="occi.storagelink.state{immutable} occi.storagelink.mountpoint occi.storagelink.deviceid"\nCategory: opensuse_11_4_minimal; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS OpenSuSE 11.4 Minimal VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/OpenSuSE%2011.4%20Minimal/\"\nCategory: scientific_linux_6_2__carbon__20130305; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Scientific Linux 6.2 (Carbon) 20130305 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Scientific%20Linux%206.2%20%28Carbon%29%2020130305/\"\nCategory: debian_6_m__unicore; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Debian 6 m. UNICORE VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Debian%206%20m.%20UNICORE/\"\nCategory: public_key; scheme="http://schemas.openstack.org/instance/credentials#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/public_key/\"; attributes="org.openstack.credentials.publickey.data org.openstack.credentials.publickey.name"\nCategory: u"
-> "p; scheme="http://schemas.ogf.org/occi/infrastructure/network/action#\"; class="action"; title="Bring up a network resource"\nCategory: ephem-test; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS ephem-test VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/ephem-test/\"\nCategory: down; scheme="http://schemas.ogf.org/occi/infrastructure/network/action#\"; class="action"; title="Bring down a network resource"\nCategory: snapshot; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Make a snapshot of storage resource"\nCategory: resource_tpl; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/resource_tpl/\"\nCategory: os_vms; scheme="http://schemas.openstack.org/instance/instance#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/os_vms/\"; attributes="org.openstack.compute.console.vnc{immutable}"; actions="http://schemas.openstack.org/instance/action#chg_pwd http://schemas.openstack.org/instance/action#create_image\"\nCategory: ubuntu_precise_pangolin__12_04_lts__puppet; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Ubuntu Precise Pangolin (12.04 LTS) puppet VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Ubuntu%20Precise%20Pangolin%20%2812.04%20LTS%29%20puppet/\"\nCategory: wenmr-demo-fzj; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS WeNMR-Demo-FZJ VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/WeNMR-Demo-FZJ/\"\nCategory: all_open; scheme="http://schemas.openstack.org/infrastructure/security/group#\"; class="mixin"; title="all_open"; rel="http://schemas.ogf.org/occi/infrastructure/security#group\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/security/all_open/\"\nCategory: bitsy; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack bitsy flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/bitsy/\"\nCategory: backup; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Backup storage resource"\nCategory: devstack_master_inst; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Devstack master inst VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Devstack%20master%20inst/\"\nCategory: mysql; scheme="http://schemas.openstack.org/infrastructure/security/group#\"; class="mixin"; title="mysql"; rel="http://schemas.ogf.org/occi/infrastructure/security#group\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/security/mysql/\"\nCategory: egi-bncweb; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS egi-bncweb VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/egi-bncweb/\"\nCategory: debian_stable__squeeze__20130305; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Debian Stable (Squeeze) 20130305 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Debian%20Stable%20%28Squeeze%29%2020130305/\"\nCategory: compute; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="kind"; title="Compute Resource"; rel="http://schemas.ogf.org/occi/core#resource\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/compute/\"; attributes="occi.compute.architecture occi.compute.state{immutable} occi.compute.speed occi.compute.memory occi.compute.cores occi.compute.hostname"; actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart http://schemas.ogf.org/occi/infrastructure/compute/action#suspend\"\nCategory: ubuntu_oneiric_ocelot__11_10_; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Ubuntu Oneiric Ocelot (11.10) VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Ubuntu%20Oneiric%20Ocelot%20%2811.10%29/\"\nCategory: stop; scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#\"; class="action"; title="Stop a compute resource"; attributes="method"\nCategory: slc_5_8; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS SLC 5.8 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/SLC%205.8/\"\nCategory: itsy; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack itsy flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/itsy/\"\nCategory: m1_medium; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m1.medium flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m1.medium/\"\nCategory: m2_small; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m2.small flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m2.small/\"\nCategory: ubuntu_precise_pangolin__12_04_lts_; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Ubuntu Precise Pangolin (12.04 LTS) VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Ubuntu%20Precise%20Pangolin%20%2812.04%20LTS%29/\"\nCategory: resize; scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#\"; class="action"; title="Resize storage resource"; attributes="size{required}"\nCategory: m1_large; scheme="http://schemas.openstack.org/template/resource#\"; class="mixin"; title="This is an openstack m1.large flavor."; rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/m1.large/\"\nCategory: restart; scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#\"; class="action"; title="Restart a compute resource"; attributes="method"\nCategory: os_tpl; scheme="http://schemas.ogf.org/occi/infrastructure#\"; class="mixin"; location="https://egi-cloud.zam.kfa-juelich.de:8787/os_tpl/\"\nCategory: debian_testing__wheezy__20130305; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Debian Testing (Wheezy) 20130305 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Debian%20Testing%20%28Wheezy%29%2020130305/\"\nCategory: scientific_linux_cern_6_3; scheme="http://schemas.openstack.org/template/os#\"; class="mixin"; title="This is an OS Scientific Linux Cern 6.3 VM image"; rel="http://schemas.ogf.org/occi/infrastructure#os_tpl\"; location="https://egi-cloud.zam.kfa-juelich.de:8787/Scientific%20Linux%20Cern%206.3/\""
read 15279 bytes
Conn close
D, [2013-03-26T16:55:32.158215 #26468] DEBUG -- : Response location: /-/
D, [2013-03-26T16:55:32.158302 #26468] DEBUG -- : Response kind:
D, [2013-03-26T16:55:32.158429 #26468] DEBUG -- : Parser call: text/plain true
D, [2013-03-26T16:55:32.158495 #26468] DEBUG -- : ### Parsing request data to OCCI Collection ###
I, [2013-03-26T16:55:32.158668 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.158729 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.158871 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.159013 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
I, [2013-03-26T16:55:32.159368 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.159424 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.159517 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.159642 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
I, [2013-03-26T16:55:32.159928 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.159978 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.160071 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.160193 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
line 0:-1 mismatched input "" expecting CATEGORY_KEY
line 1:152 mismatched character "u"; expecting "k"
line 1:162 mismatched character "r"; expecting "t"
line 1:313 mismatched character "u"; expecting "k"
line 1:329 mismatched character "r"; expecting "t"
line 1:139 mismatched character "u"; expecting "k"
line 1:287 mismatched character "u"; expecting "k"
D, [2013-03-26T16:55:32.354055 #26468] DEBUG -- : Parsed collection: empty? false
I, [2013-03-26T16:55:32.354249 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.354311 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.354453 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.354611 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
I, [2013-03-26T16:55:32.359924 #26468] INFO -- : Executing action list on storage ...
D, [2013-03-26T16:55:32.359999 #26468] DEBUG -- : Getting resource types ...
I, [2013-03-26T16:55:32.360750 #26468] INFO -- : ### Registering OCCI Core categories enitity, resource and link ###
D, [2013-03-26T16:55:32.360814 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#entity
D, [2013-03-26T16:55:32.360922 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#resource
D, [2013-03-26T16:55:32.361039 #26468] DEBUG -- : ### Registering category http://schemas.ogf.org/occi/core#link
D, [2013-03-26T16:55:32.361280 #26468] DEBUG -- : storage is a resource type.
opening connection to egi-cloud.zam.kfa-juelich.de...
opened
<- "GET /storage/ HTTP/1.1\r\nAccept: text/uri-list\r\nX-Auth-Token: be3c196c962d11e2a1f52767362b7c2e\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Tue, 26 Mar 2013 15:55:33 GMT\r\n"
-> "Server: pyssf OCCI/1.1\r\n"
-> "Content-Length: 15\r\n"
-> "Content-Type: text/uri-list\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 15 bytes...
-> ""
-> "# uri:/storage/"
read 15 bytes
Conn close

Storage locations:
I, [2013-03-26T16:55:32.984225 #26468] INFO -- : OCCI client is shutting down ...
�[01;32mbjoernh@zam241�[00m:�[01;34m~�[00m$ :��[K�

@arax

This comment has been minimized.

Show comment Hide comment
@arax

arax Mar 26, 2013

An empty line before the first Category entry is causing
line 0:-1 mismatched input "" expecting CATEGORY_KEY
That's not a big problem, we can ignore that and focus on the more important stuff.

The rest is not that easy, I'm still trying to identify the relevant parts. I will get back to you as soon as I have something.

However, these parsing issues are no longer critical, rOCCI will recover and continue processing the message. The problem we need to solve ASAP is, as mentioned by @bhagemeier above, the mapping of transformed Category terms (see 6694188) to existing resources (images, networks, templates, ...) in OpenStack.

Transformed terms work nicely for communication OCCI-OS => rOCCI but fail when rOCCI sends a request to OCCI-OS since there is no way to match transformed terms to the original names taken from OS (e.g., opensuse_11_4_minimal vs. OpenSuSE 11.4 Minimal).

arax commented Mar 26, 2013

An empty line before the first Category entry is causing
line 0:-1 mismatched input "" expecting CATEGORY_KEY
That's not a big problem, we can ignore that and focus on the more important stuff.

The rest is not that easy, I'm still trying to identify the relevant parts. I will get back to you as soon as I have something.

However, these parsing issues are no longer critical, rOCCI will recover and continue processing the message. The problem we need to solve ASAP is, as mentioned by @bhagemeier above, the mapping of transformed Category terms (see 6694188) to existing resources (images, networks, templates, ...) in OpenStack.

Transformed terms work nicely for communication OCCI-OS => rOCCI but fail when rOCCI sends a request to OCCI-OS since there is no way to match transformed terms to the original names taken from OS (e.g., opensuse_11_4_minimal vs. OpenSuSE 11.4 Minimal).

@tmetsch

This comment has been minimized.

Show comment Hide comment
@tmetsch

tmetsch Mar 26, 2013

Owner

We could add attributes to the OS VM Mixin with those names - would that help? We can also add openstack states in there etc...

See: https://github.com/tmetsch/occi-os/blob/stable/folsom/occi_os_api/extensions/os_addon.py#L64

Owner

tmetsch commented Mar 26, 2013

We could add attributes to the OS VM Mixin with those names - would that help? We can also add openstack states in there etc...

See: https://github.com/tmetsch/occi-os/blob/stable/folsom/occi_os_api/extensions/os_addon.py#L64

@arax

This comment has been minimized.

Show comment Hide comment
@arax

arax Mar 26, 2013

Unfortunately, not ... This issue prevents rOCCI from creating a VM using template/os (and optionally template/resource) mixins and that's what we have to address otherwise we will have another platform-specific OCCI implementation on our hands. Here is an example:

Request:

POST /compute/ HTTP/1.1
Accept: text/plain,text/occi
Content-Type: text/plain,text/occi
Connection: close
Host: egi-cloud.zam.kfa-juelich.de:8787
Content-Length: 231

Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind"
Category: opensuse_12_1_minimal;scheme="http://schemas.openstack.org/template/os#";class="mixin"
X-OCCI-Attribute: occi.core.title="MyTestVMrOCCI""

Response:

HTTP/1.1 400 Bad Request
Date: Tue, 26 Mar 2013 17:35:18 GMT
Server: pyssf OCCI/1.1
Content-Length: 28
Content-Type: text/plain
Vary: Accept-Encoding
Connection: close

Could not find a valid kind.

arax commented Mar 26, 2013

Unfortunately, not ... This issue prevents rOCCI from creating a VM using template/os (and optionally template/resource) mixins and that's what we have to address otherwise we will have another platform-specific OCCI implementation on our hands. Here is an example:

Request:

POST /compute/ HTTP/1.1
Accept: text/plain,text/occi
Content-Type: text/plain,text/occi
Connection: close
Host: egi-cloud.zam.kfa-juelich.de:8787
Content-Length: 231

Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind"
Category: opensuse_12_1_minimal;scheme="http://schemas.openstack.org/template/os#";class="mixin"
X-OCCI-Attribute: occi.core.title="MyTestVMrOCCI""

Response:

HTTP/1.1 400 Bad Request
Date: Tue, 26 Mar 2013 17:35:18 GMT
Server: pyssf OCCI/1.1
Content-Length: 28
Content-Type: text/plain
Vary: Accept-Encoding
Connection: close

Could not find a valid kind.
@dizz

This comment has been minimized.

Show comment Hide comment
@dizz

dizz Mar 27, 2013

Collaborator

FYI: @tmetsch and I have worked a solution on paper. Stay tuned...

Collaborator

dizz commented Mar 27, 2013

FYI: @tmetsch and I have worked a solution on paper. Stay tuned...

@dizz

This comment has been minimized.

Show comment Hide comment
@dizz

dizz Apr 1, 2013

Collaborator

Please see proposed fix here: https://github.com/tmetsch/occi-os/tree/occi-os_egi_term_fix

Note I've not tested this yet with my environment yet.

Collaborator

dizz commented Apr 1, 2013

Please see proposed fix here: https://github.com/tmetsch/occi-os/tree/occi-os_egi_term_fix

Note I've not tested this yet with my environment yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment