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
Swift keys with slashes do not work with Ceph in swift emulation mode #47
Comments
When you say your key do you mean the API key? What auth URL are you using? |
yes the API Key. I am using rclone with swift. The server is the Rados Gateway to my Ceph cluster. It is swift v1 compatible. My auth URL looks like: |
I was able to figure out the problem was the \ or / because I read a lot about swift and OpenStack and this is a common issue in many Swift/S3 clients. the API key could contain special characters and those are not always managed correctly by client applications. |
I tried to reproduce this with a swift cluster. I tried passwords Looking at the v1 auth code, all it does is put the API key into an http header which are allowed to have I see the note you are referring to in the ceph docs
That seems to suggest that for ceph, to use a password with So my feeling is this is a bug/incompatibility in Ceph rather than a problem with the swift client. PS I also tested passwords with |
Seems to be using common swift auth header: http://ceph.com/docs/v0.67.9/radosgw/swift/auth/ Saverio, are you saying a Auth-User with \ isn't working with rClone? curl -i swift.supercoolswiftstorage.com -H "X-Auth-User:”test\test" -H On Tue, Apr 21, 2015 at 6:45 AM, Nick Craig-Wood notifications@github.com
|
@ncw try this password |
@zeshanb no the problem is with the key in the .rclone.conf file. There is not a problem with the username |
I tried Can you try my suggestion above?
Thanks Nick |
I've got a file named "Call Log Export: 01/13/15 - 04/21/15". rclone syncs it successfully but treats slashes as directory separators and creates a long path with data in the file called '15'. Native windows google drive replaces special characters with underscores and creates a file named "Call Log Export_ 01_13_15 - 04_21_15" instead. Somehow I like this approach better. |
@lvmm Yes you are right... Would you mind making this into a separate issue please? It isn't related to the swift keys discussed in this one. Thanks Nick |
@zioproto I have finally managed to replicate this. When you got your credentials out of ceph, you probably got a json dump which looks something like this {
"user_id": "xxx",
"display_name": "xxxx",
"email": "",
"suspended": 0,
"max_buckets": 1000,
"auid": 0,
"subusers": [],
"keys": [
{
"user": "xxx",
"access_key": "xxxxxx",
"secret_key": "xxxxxx\/xxxx"
}
],
"swift_keys": [],
"caps": [],
"op_mask": "read, write, delete",
"default_placement": "",
"placement_tags": [],
"bucket_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"temp_url_keys": []
} Because this is a json dump, it is encoding the I'll add this to the docs for s3 Thanks Nick |
There is now a section about this in the docs: http://rclone.org/s3/ Thanks for the report |
zioproto commentedApr 8, 2015
I had to regenerate my swift keys. If the key has a / or \ then rclone refuses to work and gives the following error:
./rclone lsd betaimages:/
2015/04/08 15:53:13 Failed to create file system for "betaimages:/": Operation forbidden
using the same config and using a swift key without \ and / works great
The text was updated successfully, but these errors were encountered: