Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftClient for Ceph #542

Closed
erivni opened this issue Jan 12, 2016 · 2 comments
Closed

SwiftClient for Ceph #542

erivni opened this issue Jan 12, 2016 · 2 comments

Comments

@erivni
Copy link

erivni commented Jan 12, 2016

Hi,

We have an Openstack environment where Swift is based on Ceph.
We're trying to upload a file with objectStorage API but nothing happens.
The container was created successfully, but the file wasn't uploaded.

We're using the following code:

os.objectStorage().containers().create("myContainer",
CreateUpdateContainerOptions.create().accessAnybodyRead().accessWrite("Public"));

String etag = os.objectStorage().objects().put("myContainer", "myObject", Payloads.create(new File("myFile.xml")));

We had an old environment which wasn't based on Ceph and this code worked fine.
Please advise.

Thanks,
Einav

@gschukin
Copy link
Contributor

Your code looks fine.

You should take a look at server response. If you are using httpclient connector you can set org.apache.http.headers and org.apache.http.wire logging to debug level to see server output.

@vinodborole
Copy link
Contributor

@erivni please reopen if this issue still exists for u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants