How to use jclouds with OpenStack Swift?

2016-09-14 Thread Alexandr Porunov
Hello, I am using jclouds to store objects into OpenStack Swift. The problem is that I don't understand what "region" is meant. When I need to create an object or a container I have to use next API: ContainerApi containerApi = swiftApi.getContainerApi("RegionOne"); What is "RegionOne" ? First

Re: How to use jclouds with OpenStack Swift?

2016-09-14 Thread Alexandr Porunov
Yes, I found Gson in the classpath. It has version 2.7 On Wed, Sep 14, 2016 at 8:48 PM, Alexandr Porunov < alexandr.poru...@gmail.com> wrote: > Hello Andrew, > > Now I cannot call that method because I cannot connect to OpenStack Swift > itself. I always get

Re: How to use jclouds with OpenStack Swift?

2016-09-14 Thread Alexandr Porunov
Hello Andrew, Now I cannot call that method because I cannot connect to OpenStack Swift itself. I always get next error: http://paste.openstack.org/show/576305/ Here is my proxy configs: [filter:tempauth] use = egg:swift#tempauth user_admin_admin = admin .admin .reseller_admin user_test_tester =

Re: Can not create SwiftApi with tempauth

2016-09-14 Thread Alexandr Porunov
> jclouds. See the issue and the linked one for more details. > > If that is your case, is there any chance you can force a version of > Gson <= 2.5? > > > > [1] https://issues.apache.org/jira/browse/JCLOUDS-1160 > > On 14 September 2016 at 20:07, Alexandr Porunov >

Re: How to use jclouds with OpenStack Swift?

2016-09-14 Thread Alexandr Porunov
: AUTH_tk1411104de43046aca9b371c27c3b1fad' -X GET http://192.168.0.58:8080/v1/AUTH_admin/mycontainer/some_file On Wed, Sep 14, 2016 at 11:37 PM, Alexandr Porunov < alexandr.poru...@gmail.com> wrote: > Andrew, > > Ignasi Barrera helped me. I had to use Gson version 2.5 to handle that > error.

Re: How to use jclouds with OpenStack Swift?

2016-09-14 Thread Alexandr Porunov
1.0/tokens HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [Bad RequestThe server could not comply with the request since it is either malformed or otherwise incorrect.]","path":"/get_regions"} Do you know why am I get this error? Best regards, Alexan

Stream file to the OpenStack Swift

2016-09-13 Thread Alexandr Porunov
Hello, I need to store very large files in the OpenStack Swift through the Java server. The problem is that I don't need to store big files locally on the Java server. I don't need them there. So, Java server has to act like a pipe. It has to accept an input stream from the client and create an

Does jclouds support SLO for OpenStack Swift?

2016-09-23 Thread Alexandr Porunov
Hello, To merge several objects into one we have to send a JSON file into the Swift with the quary parameter "multipart-manifest=put". Is it possible to add one more query parameters when we create an object with the jclouds? Sincerely, Alexandr