Also see: http://docs.openstack.org/developer/swift/api/object_api_v1_overview.html
The trial VM has python-swiftclient installed. You can execute basic swift commands as follows:
source openrc #define environment variables for account, user credentials etc.
swift stat #show account statistics
swift upload <some containername> <some file>
One helpful trick is to execute the client commands with --debug flag. This will show the exact http request that the client code is sending. For example:
# swift --debug stat
<snip...>
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): client28
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_7c0243a523cf436e9a0e79c9b7083f9e HTTP/1.1" 204 0
DEBUG:swiftclient:REQ: curl -i http://client28:8080/v1/AUTH_7c0243a523cf436e9a0e79c9b7083f9e -I -H "X-Auth-Token: <tokenstring>"
DEBUG:swiftclient:RESP STATUS: 204 No Content
DEBUG:swiftclient:RESP HEADERS: [('content-length', '0'), ('x-account-object-count', '0'), ('x-account-project-domain-id', 'default'), ('x-account-storage-policy-policy-0-bytes-used', '0'), ('x-account-storage-policy-policy-0-container-count', '10'), ('x-timestamp', '1467238461.63001'), ('x-account-storage-policy-policy-0-object-count', '0'), ('x-trans-id', 'txd3e3d9ca87fe4e23a5c9c-0057753b57'), ('date', 'Thu, 30 Jun 2016 15:31:36 GMT'), ('x-account-bytes-used', '0'), ('x-account-container-count', '10'), ('content-type', 'text/plain; charset=utf-8'), ('accept-ranges', 'bytes')]
Account: AUTH_7c0243a523cf436e9a0e79c9b7083f9e
Containers: 10
Objects: 0
Bytes: 0
Containers in policy "policy-0": 10
Objects in policy "policy-0": 0
Bytes in policy "policy-0": 0
X-Account-Project-Domain-Id: default
X-Timestamp: 1467238461.63001
X-Trans-Id: txd3e3d9ca87fe4e23a5c9c-0057753b57
Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes
Regards,
Bill Owen
billowen@us.ibm.com
Spectrum Scale Object Storage
520-799-4829Jan-Frode Myklebust ---06/30/2016 07:29:56 AM---The object side is just openstack swift, so f.ex: https://github.com/openstack/python-swiftclient/bl
From: Jan-Frode Myklebust <janfrode@tanso.net>
To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org>
Date: 06/30/2016 07:29 AM
Subject: Re: [gpfsug-discuss] restful way to get at SS OBJ store
Sent by: gpfsug-discuss-bounces@spectrumscale.org
Mark R. Bush | Solutions Architect
Mobile: 210.237.8415 | mark.bush@siriuscom.com
Sirius Computer Solutions | www.siriuscom.com
10100 Reunion Place, Suite 500, San Antonio, TX 78216
This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. This message may be viewed by parties at Sirius Computer Solutions other than those named in the message header. This message does not contain an official representation of Sirius Computer Solutions. If you have received this communication in error, notify Sirius Computer Solutions immediately and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you.
Sirius Computer Solutions
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss