I know in the trial VM it recommends using CyberDuck to get to the object side of scale. Does anyone have a programmatic example of doing this? Python would be preferred here. Mark R. Bush | Solutions Architect Mobile: 210.237.8415 | mark.bush@siriuscom.com Sirius Computer Solutions | www.siriuscom.com<http://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<http://www.siriuscom.com>
The object side is just openstack swift, so f.ex: https://github.com/openstack/python-swiftclient/blob/master/README.rst -jf tor. 30. jun. 2016 kl. 16.01 skrev Mark.Bush@siriuscom.com < Mark.Bush@siriuscom.com>:
I know in the trial VM it recommends using CyberDuck to get to the object side of scale. Does anyone have a programmatic example of doing this? Python would be preferred here.
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 <http://www.siriuscom.com> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
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-4829 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 The object side is just openstack swift, so f.ex: https://github.com/openstack/python-swiftclient/blob/master/README.rst -jf tor. 30. jun. 2016 kl. 16.01 skrev Mark.Bush@siriuscom.com < Mark.Bush@siriuscom.com>: I know in the trial VM it recommends using CyberDuck to get to the object side of scale. Does anyone have a programmatic example of doing this? Python would be preferred here. 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
Hi Depending what your endpoint object store type is... https://github.com/openstack/python-swiftclient http://boto.cloudhackers.com/en/latest/ Though, I highly recommend: https://libcloud.apache.org/ I.E. http://libcloud.readthedocs.io/en/latest/storage/examples.html Best, Jez On 30/06/16 15:01, Mark.Bush@siriuscom.com wrote:
I know in the trial VM it recommends using CyberDuck to get to the object side of scale. Does anyone have a programmatic example of doing this? Python would be preferred here.
Mark R. Bush | Solutions Architect Mobile: 210.237.8415 | mark.bush@siriuscom.com Sirius Computer Solutions | www.siriuscom.com <http://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 <http://www.siriuscom.com>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Jez Tucker Head of Research & Development Pixit Media / ArcaStream www.pixitmedia.com <http://www.pixitmedia.com> www.arcastream.com <http://www.arcastream.com> -- This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email.
Thanks to Jan-Frode and Jez. I will use the import swiftclient mechanism for this. From: Jez Tucker <jtucker@pixitmedia.com> Organization: Pixit Media Limited Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, June 30, 2016 at 9:33 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] restful way to get at SS OBJ store Hi Depending what your endpoint object store type is... https://github.com/openstack/python-swiftclient http://boto.cloudhackers.com/en/latest/ Though, I highly recommend: https://libcloud.apache.org/ I.E. http://libcloud.readthedocs.io/en/latest/storage/examples.html Best, Jez On 30/06/16 15:01, Mark.Bush@siriuscom.com<mailto:Mark.Bush@siriuscom.com> wrote: I know in the trial VM it recommends using CyberDuck to get to the object side of scale. Does anyone have a programmatic example of doing this? Python would be preferred here. Mark R. Bush | Solutions Architect Mobile: 210.237.8415 | mark.bush@siriuscom.com<mailto:mark.bush@siriuscom.com> Sirius Computer Solutions | www.siriuscom.com<http://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<http://www.siriuscom.com> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss -- Jez Tucker Head of Research & Development Pixit Media / ArcaStream www.pixitmedia.com<http://www.pixitmedia.com> www.arcastream.com<http://www.arcastream.com> [http://pixitmedia.com/sig/sig-cio.jpg] This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email.
participants (4)
-
Bill Owen -
Jan-Frode Myklebust -
Jez Tucker -
Mark.Bush@siriuscom.com
