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
Which version of jclouds are you using? Are you using Gson too in your
project? In that case, which version of Gson are you using?
On 14 September 2016 at 19:45, Alexandr Porunov
wrote:
> Hello,
>
> How to use jclouds with OpenStack Swift?
>
> Here is my code:
>
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:
>
If you use Spring Boot 1.4, then you might be affected by JCLOUDS-1160
[1], as it comes with a Gson version newer than the one supported by
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]
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
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 =
Thank you. I forced to use Gson 2.5 but now I have problems with regions.
When I use:
Set regions = swiftApi.getConfiguredRegions();
I get an error:
Request processing failed; nested exception is
org.jclouds.http.HttpResponseException: command: POST
http://192.168.0.58:8080/auth/v1.0/tokens
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
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
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
Hi Diego,
To unsubscribe please send an email to:
jclouds-user-unsubscr...@apache.org
I.
On Sep 14, 2016 11:02, "Diego Parrilla SantamarĂa" <
diego.parrilla.santama...@gmail.com> wrote:
> unsubscribe
>
unsubscribe
12 matches
Mail list logo