openstack-swift

OpenStack- KeyStone connection to Android Project

青春壹個敷衍的年華 提交于 2020-03-04 04:32:31
问题 I'm trying to connect to to Openstack KeyStone from my android project. Basically I'm trying to connect to it by the api openstack has given. PHP format is. curl -k -X 'POST' -v ####//############/##/### -d '{"auth":{"passwordCredentials":{"username": "joecool", "password":"coolword"}, "tenantId":"5"}}' -H 'Content-type: application/json' Now i'm trying to integrate this on java on android' But I've been stuck on this for past few days. PHP can perfectly connect. I'm not sure what's wrong

curl: (6) could not resolve host ;401 Unauthorized on Openstack Swift (SAIO)

我与影子孤独终老i 提交于 2020-01-17 05:04:30
问题 I'm trying to set up a 'Swift All In One' system on a Ubuntu 12.04 VM by the link:http://docs.openstack.org/developer/swift/development_saio.html. I use VMware WorkStation 12 Pro on Win7 64bit system and use 'Host-only' network mode.The VM ip address is "192.168.137.200". When I run the command on the VM : curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://192.168.137.200/auth/v1.0 It works well. But when I run the command on the host machine(Win7 platform), It fails

Can I append or overwrite some bytes to an existing object in Openstack Swift?

ⅰ亾dé卋堺 提交于 2020-01-14 14:53:29
问题 I need to append some bytes to an existing object stored in Openstack Swift, say like a log file object and constantly append new logs to it. Is this possible? Moreover, can I change (overwrite) some bytes (specify with offset and length) to an existing object? 回答1: I believe ZeroVM (zerovm.org) would be perfect for doing this. Disclaimer: I work for Rackspace, who owns ZeroVM. Opinions are mine and mine alone. 回答2: tl;dr: There's no append support currently in Swift. There's a blueprint for

swift command to test openstack object storage

て烟熏妆下的殇ゞ 提交于 2019-12-25 02:24:38
问题 i have error when i execute swift -A http://xxx.xxx.x.x:5000/v2.0 -U service:swift -K swift -V 2.0 stat outputlike this Auth GET failed: http://xxx.xxx.x.x:5000/v2.0/tokens 500 Internal Server Error maybe any solution for me ! 回答1: swift -v -V 2.0 -A http://127.0.0.1:5000/v2.0/ -U service:swift -K swift stat Let me know what you get after executing this. Also make sure all your swift related services are running. You can start all of them at once using. sudo swift-init main start sudo swift

issues working with python generators and openstack swift client

旧时模样 提交于 2019-12-21 07:13:10
问题 I'm having a problem with Python generators while working with the Openstack Swift client library. The problem at hand is that I am trying to retrieve a large string of data from a specific url (about 7MB), chunk the string into smaller bits, and send a generator class back, with each iteration holding a chunked bit of the string. in the test suite, this is just a string that's sent to a monkeypatched class of the swift client for processing. The code in the monkeypatched class looks like

How to create temporary URL for Swift object storage using REST API?

南楼画角 提交于 2019-12-13 19:54:04
问题 Swift Object storage allow you to create a temporary URL for any resource with an expiry date. This can be achieved with swift CLI command line. To make use of this functionality in an web application, I need to achieve the creation of temporary URL using API call, So that I can make a rest CALL and get the temp URL which can later be embedded in HTML and resource downloaded by the we browser directly. From the documentation I dont see any API mentioned for this ? Do anyone know how i can get

(Softlayer, Open Stack Swift) How to solve cross domain origin with object storage api?

久未见 提交于 2019-12-13 01:59:02
问题 I used this document : http://docs.openstack.org/developer/swift/cors.html#test-cors-page Used the below code, sends Option request and get 200 as the response. But the orginal method 'get' doesn't get response. And browser console says 'Access-Control-Allow-Origin' CORS header is not found. $.ajax({ method: "GET", url : url, crossDomain: true, headers: { 'X-Container-Meta-Access-Control-Allow-Origin' : 'http://127.0.0.1:8080', 'X-Container-Meta-Access-Control-Max-Age' : 10, 'X-Auth-Token' :

Connecting to softlayer object storage using openstack API library php-opencloud

╄→гoц情女王★ 提交于 2019-12-11 11:09:55
问题 Is there someone tried to connect to softlayer object storage using the php-opencloud library? I got 400 bad response when the library trying to make authentication. From what I see inside the php-opencloud library, It use authentication method described here, it uses v2/token and softlayer object storage using v1. Does softlayer object storage that based on the same openstack doesn't support the authentication v2? I can connect to the object storage using sdk(softlayer-object-storage-php)

Openstack Rest API send a file with python to a openstack container

大兔子大兔子 提交于 2019-12-10 18:28:08
问题 I am trying to upload a video file to Openstack container using REST API. This is my Python code to upload to the server. res = requests.put(publicURL+'/'+output_container_name+'/'+toUpload, headers={'X-Auth-Token': token}, files={'file': open(toUpload,'rb')}) All the variables that you see in code are defined. In fact I can see my file uploaded to the container but when I download it, I cannot play the video. When I open the video file with a text editor I see these headers at the beginning

CORS support in OpenStack SWIFT

北城以北 提交于 2019-12-08 03:30:25
问题 How can I configure OpenStack SWIFT to send all the appropriate CORS headers in response to a client's OPTIONS request? I know about the crossdomain plugin to the SWIFT pipeline, but the documentation only says that something like the following is allowed: [filter:crossdomain] use = egg:swift#crossdomain cross_domain_policy = <allow-access-from domain="xxx.yyy.com" /> It doesn't tell me how to specify the Access-Control-Allow-Headers, Access-Control-Expose-Headers, Access-Control-Allow