[Fiware-lab-help] ObjectStorage cdmi access not working?

Tero Vuorela tero.vuorela at iki.fi
Sat Jan 24 15:42:57 CET 2015


Hi,

I have tried Object Storage example, especially Python example
https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Object_Storage_-_User_and_Programmers_Guide#Example_Python

However it fails to container creation and HTTP response contains
"Internal server error". 

The unmodified example uses Spain IP address. If I check containers
under Spain region I can see that the example script has created a
container.

If I create manually container using FI-Lab web UI I get "Error: Error
creating container . Cause: undefined" but despite of error container
appears to container list.

However I'm not able to upload any objects to container. Not with web UI
or using cdmi (python example). On web UI I get success message, but
object doesn't appear to object list. With cdmi interface I get similar
Internal Server Error as with container creation.

I experimented with Trento region and managed to create container and
upload object using web UI. However ObjectStorage examples are always
using Spain region IP address, and trying other IP address doesn't work
(not response at all, or resource not found). 

I'm able to download an object from a container located at Trento using
swift style access.

Is it so that only Spain region has cdmi interface installed?

Querying cmdi_capabilities from Spain region returns ok result:

INFO:root:--- Object Store capabilties: Status: 200, Reason: OK, Body: {
  "completionStatus": "Complete", 
  "objectName": "cdmi_capabilities/", 
  "parentURI": "/cdmi/AUTH_00000000000000000000000000007161/", 
  "capabilities": {
    "cdmi_metadata_maxtotalsize": 368640, 
    "cdmi_metadata_maxitems": 90, 
    "cdmi_multipart_mime": "true", 
    "cdmi_dataobjects": "true", 
    "cdmi_object_copy_from_local": "true"
  }, 
  "childrenRange": "0-2", 
  "children": [
    "rootcontainer/", 
    "container/", 
    "dataobject/"
  ], 
  "objectType": "application/cdmi-capability"
}

If I compare this response to ObjectStorage webinar material (page 29) I
would expect to see 

"cdmi_list_children": true
"cdmi_create_container": true


So could this be a capability / access rights issue?


Regards,
Tero Vuorela


-- 
  Tero Vuorela
  tero.vuorela at iki.fi



More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy