jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Forrest Townsend <forrest.tow...@gmail.com>
Subject jclouds 1.8.1 to Openstack Swift3 object store
Date Wed, 02 Dec 2015 18:17:23 GMT
Hey,

I have done some investigation on getting communication setup to my object
store on my Openstack machine using Swift3. Using Swift3 to emulate s3
calls for testing before I start getting billed against the real S3. Does
anyone have any recommendations on connecting to Swift3?

Have this override set --
overrides.put( "jclouds.s3.virtual-host-buckets", "false" );

been playing with these as well --
// overrides.put( "jclouds.trust-all-certs", "true" );
// overrides.put( "jclouds.relax-hostname", "true" );
// overrides.setProperty(PROPERTY_S3_SERVICE_PATH, "/");

Been looking through user submitted recommendations like these (Not sure if
I should be looking into Walrus?):
- https://groups.google.com/forum/#!topic/jclouds/y4FzL8UpnW4
-
http://stackoverflow.com/questions/9389840/use-jclouds-to-talk-to-non-aws-cloud-with-s3-api

Also have tried using the 'aws-s3' as well as 's3' flags for the Blobstore
contextBuilder.

Keep getting these kinds of errors on *createContainerInLocation(null,
containerName)* --

2015-12-02 10:53:06.995 DEBUG [Thread-6]
o.j.l.s.f.RegionIdsFromConfiguration no jclouds.regions configured for
provider s3
2015-12-02 10:53:07.143 DEBUG [Thread-8]
o.j.l.s.f.RegionIdsFromConfiguration no jclouds.regions configured for
provider s3
2015-12-02 10:53:07.151 DEBUG [Thread-9] o.j.l.s.f.ZoneIdsFromConfiguration
no jclouds.zones configured for provider s3
2015-12-02 10:53:07.196 DEBUG [Thread-9] o.j.r.i.InvokeHttpMethod >>
invoking CreateBucket
2015-12-02 10:53:07.198 DEBUG [Thread-9] j.signature >> PUT
http://<url>:8080/225-b7ff7d008a2711e5bbb9080027001c70
HTTP/1.1
2015-12-02 10:53:07.199 DEBUG [Thread-9] j.signature >> Date: Wed, 02 Dec
2015 17:53:07 GMT
2015-12-02 10:53:07.201 DEBUG [Thread-9] j.signature >> "PUT[\n]"
2015-12-02 10:53:07.201 DEBUG [Thread-9] j.signature >> "[\n]"
2015-12-02 10:53:07.201 DEBUG [Thread-9] j.signature >> "[\n]"
2015-12-02 10:53:07.201 DEBUG [Thread-9] j.signature >> "Wed, 02 Dec 2015
17:53:07 GMT[\n]"
2015-12-02 10:53:07.201 DEBUG [Thread-9] j.signature >>
"/225-b7ff7d008a2711e5bbb9080027001c70"
2015-12-02 10:53:07.563 DEBUG [Thread-9] j.signature <<
"NadVulYEvHDTE7L3XgBRAgfrZDM="
2015-12-02 10:53:07.564 DEBUG [Thread-9] j.signature << PUT
http://<url>:8080/225-b7ff7d008a2711e5bbb9080027001c70
HTTP/1.1
2015-12-02 10:53:07.564 DEBUG [Thread-9] j.signature << Date: Wed, 02 Dec
2015 17:53:07 GMT
2015-12-02 10:53:07.564 DEBUG [Thread-9] j.signature << Authorization: AWS
4390335ffca74ff6a317377cc9f27914:NadVulYEvHDTE7L3XgBRAgfrZDM=
2015-12-02 10:53:07.565 DEBUG [Thread-9]
o.j.h.i.JavaUrlHttpCommandExecutorService Sending request -1334102125: PUT
http://<url>:8080/225-b7ff7d008a2711e5bbb9080027001c70 HTTP/1.1
2015-12-02 10:53:07.565 DEBUG [Thread-9] j.headers >> PUT
http://<url>:8080/225-b7ff7d008a2711e5bbb9080027001c70
HTTP/1.1
2015-12-02 10:53:07.565 DEBUG [Thread-9] j.headers >> Date: Wed, 02 Dec
2015 17:53:07 GMT
2015-12-02 10:53:07.565 DEBUG [Thread-9] j.headers >> Authorization: AWS
4390335ffca74ff6a317377cc9f27914:NadVulYEvHDTE7L3XgBRAgfrZDM=
2015-12-02 10:53:07.593 DEBUG [Thread-9]
o.j.h.i.JavaUrlHttpCommandExecutorService Receiving response -1334102125:
HTTP/1.1 412 Precondition Failed
2015-12-02 10:53:07.593 DEBUG [Thread-9] j.headers << HTTP/1.1 412
Precondition Failed
2015-12-02 10:53:07.593 DEBUG [Thread-9] j.headers << Connection: keep-alive
2015-12-02 10:53:07.593 DEBUG [Thread-9] j.headers << X-Trans-Id:
txca0fc76b1a864a02a704e-00565f3004
2015-12-02 10:53:07.593 DEBUG [Thread-9] j.headers << Date: Wed, 02 Dec
2015 17:53:08 GMT
2015-12-02 10:53:07.593 DEBUG [Thread-9] j.headers << Content-Type:
text/html; charset=UTF-8
2015-12-02 10:53:07.594 DEBUG [Thread-9] j.headers << Content-Length: 7
2015-12-02 10:53:07.594 DEBUG [Thread-9] j.wire << "Bad URL"


------

2015-12-02 10:56:09.973 DEBUG [Thread-16]
o.j.l.s.f.RegionIdsFromConfiguration no jclouds.regions configured for
provider s3
2015-12-02 10:56:10.051 DEBUG [Thread-17]
o.j.l.s.f.RegionIdsFromConfiguration no jclouds.regions configured for
provider s3
2015-12-02 10:56:10.057 DEBUG [Thread-18]
o.j.l.s.f.ZoneIdsFromConfiguration no jclouds.zones configured for provider
s3
2015-12-02 10:56:10.061 DEBUG [Thread-18] o.j.r.i.InvokeHttpMethod >>
invoking CreateBucket
2015-12-02 10:56:10.062 DEBUG [Thread-18] j.signature >> PUT
http://<url>:8080/226-b7ff7d008a2711e5bbb9080027001c70
HTTP/1.1
2015-12-02 10:56:10.062 DEBUG [Thread-18] j.signature >> Date: Wed, 02 Dec
2015 17:56:10 GMT
2015-12-02 10:56:10.063 DEBUG [Thread-18] j.signature >> "PUT[\n]"
2015-12-02 10:56:10.063 DEBUG [Thread-18] j.signature >> "[\n]"
2015-12-02 10:56:10.063 DEBUG [Thread-18] j.signature >> "[\n]"
2015-12-02 10:56:10.063 DEBUG [Thread-18] j.signature >> "Wed, 02 Dec 2015
17:56:10 GMT[\n]"
2015-12-02 10:56:10.063 DEBUG [Thread-18] j.signature >>
"/226-b7ff7d008a2711e5bbb9080027001c70"
2015-12-02 10:56:10.063 DEBUG [Thread-18] j.signature <<
"5RaoUn0skxX8fyl6gSdz8Klx4rU="
2015-12-02 10:56:10.064 DEBUG [Thread-18] j.signature << PUT
http://<url>:8080/226-b7ff7d008a2711e5bbb9080027001c70
HTTP/1.1
2015-12-02 10:56:10.064 DEBUG [Thread-18] j.signature << Date: Wed, 02 Dec
2015 17:56:10 GMT
2015-12-02 10:56:10.064 DEBUG [Thread-18] j.signature << Authorization: AWS
4390335ffca74ff6a317377cc9f27914:5RaoUn0skxX8fyl6gSdz8Klx4rU=
2015-12-02 10:56:10.064 DEBUG [Thread-18]
o.j.h.i.JavaUrlHttpCommandExecutorService Sending request -346231187: PUT
http://<url>:8080/226-b7ff7d008a2711e5bbb9080027001c70 HTTP/1.1
2015-12-02 10:56:10.064 DEBUG [Thread-18] j.headers >> PUT
http://<url>:8080/226-b7ff7d008a2711e5bbb9080027001c70
HTTP/1.1
2015-12-02 10:56:10.064 DEBUG [Thread-18] j.headers >> Date: Wed, 02 Dec
2015 17:56:10 GMT
2015-12-02 10:56:10.064 DEBUG [Thread-18] j.headers >> Authorization: AWS
4390335ffca74ff6a317377cc9f27914:5RaoUn0skxX8fyl6gSdz8Klx4rU=
2015-12-02 10:56:10.074 DEBUG [Thread-18]
o.j.h.i.JavaUrlHttpCommandExecutorService Receiving response -346231187:
HTTP/1.1 412 Precondition Failed
2015-12-02 10:56:10.074 DEBUG [Thread-18] j.headers << HTTP/1.1 412
Precondition Failed
2015-12-02 10:56:10.074 DEBUG [Thread-18] j.headers << Connection:
keep-alive
2015-12-02 10:56:10.074 DEBUG [Thread-18] j.headers << X-Trans-Id:
txa21b9b72aa4a40ddb3d3d-00565f30ba
2015-12-02 10:56:10.074 DEBUG [Thread-18] j.headers << Date: Wed, 02 Dec
2015 17:56:10 GMT
2015-12-02 10:56:10.075 DEBUG [Thread-18] j.headers << Content-Type:
text/html; charset=UTF-8
2015-12-02 10:56:10.075 DEBUG [Thread-18] j.headers << Content-Length: 7
2015-12-02 10:56:10.075 DEBUG [Thread-18] j.wire << "Bad URL"


Thanks,
Forrest T.

Mime
View raw message