Re: How to use jclouds with OpenStack Swift?

2016-09-14 Thread Andrew Phillips
But I got an error: Ah, sorry to hear :-( Glad we're getting closer, though. Could you enable header and wire logging [1], run the request again and please put the output (with sensitive information removed) into a Gist or Pastie? That will hopefully give us a bit more insight into the

Re: How to use jclouds with OpenStack Swift?

2016-09-14 Thread Alexandr Porunov
My OpenStack Swift works if I use curl: //authenticate curl -v -H 'X-Auth-User: admin:admin' -H 'X-Auth-Key: admin' http://192.168.0.58:8080/auth/v1.0/ //check containers curl -v -H 'X-Storage-Token: AUTH_tk1411104de43046aca9b371c27c3b1fad' http://192.168.0.58:8080/v1/AUTH_admin/ //create a

Re: How to use jclouds with OpenStack Swift?

2016-09-14 Thread Alexandr Porunov
Andrew, Ignasi Barrera helped me. I had to use Gson version 2.5 to handle that error. As you said I tried to call: Set regions = swiftApi.getConfiguredRegions(); But I got an error: Request processing failed; nested exception is org.jclouds.http.HttpResponseException: command: POST

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 next error: >

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: How to use jclouds with OpenStack Swift?

2016-09-14 Thread Andrew Phillips
What is "RegionOne" ? First of all if we talk about regions in Swift then it can't be a String. It is Integer value. That is why I can't understand what is "RegionOne" and how to create a simple container with SwiftApi. Could you call "getConfiguredRegions" on your API instance to see which