Comments (9)
I can reproduce your problem, however I'm not good enough with rados gateway to help you debugging this. You will have more luck on the Ceph user mailing list.
I don't think it's a container issue, it's just a feeling though I can't confirm that.
We are following the default steps to bootstrap rados gateway, nothing fancy at all.
from ceph-container.
I agree with @leseb in that I doubt this is a container problem. I do have some experience with trying to use the S3 compatibility layer, however. I have found it to be finicky about the bucket names. Try using an upper-case first bucket character; then, if that still fails, try an upper-case bucket name without any special characters (i.e., remove the dashes).
from ceph-container.
Thank you both. I have asked for help on the ceph user list.
The problem is not limited to bucket creation, it is more general. Eg. listing buckets does not work too
for bucket in conn.get_all_buckets():
print "{name}\t{created}".format(
name = bucket.name,
created = bucket.creation_date,
)
from ceph-container.
Ok thanks for reporting this. Closing this issue now :).
from ceph-container.
That's fine. I can confirm that this is not a ceph-docker issue. Everything is fine.
It's just it seems that radosgw-admin adds escape characters to the keys as in the example above
pARGxDCQ+D3fS+s6EQjeCGWLnEhMWdbncXeB\/hQu
Python does not need escape char for forward slash therefore resulting in the wrong secret key (one char longer). In this case the solution is simply to drop the back slash
aws_secret_access_key='pARGxDCQ+D3fS+s6EQjeCGWLnEhMWdbncXeB/hQu'
and everything works! No dark magic.
from ceph-container.
Weird I was thinking about this, but I generated a key like this: 5lVVZy0tmx5fVjwKCCbxjfocleFKZlOQ0ezrqeFf
and got the error as well.
Maybe I made a mistake during my copy/paste.
Glad to hear that it works now :).
from ceph-container.
I've also added the following to /etc/ceph/ceph.conf
[client.radosgw.gateway]
host = scintel
keyring = /var/lib/ceph/radosgw/scintel/keyring
rgw socket path = /var/run/ceph/ceph-client.radosgw.gateway.asok
log file = /var/log/radosgw/ceph-client.radosgw.gateway.log
rgw frontends = "civetweb port=80"
rgw print continue = false
rgw enable apis = s3, swift, admin
I'll try deleting this and restarting rgw
from ceph-container.
No difference. S3 and Swift APIs must be enabled by default. So it's just a matter of getting the key right.
from ceph-container.
For future googlers, my issue was that rgw_dns_name
didn't match the hostname of the url I was connecting too. ie: I was trying to curl s3.example.com
but but config was as below:
[client.radosgw.gateway]
rgw_dns_name = host1.example.com
from ceph-container.
Related Issues (20)
- /opt/ceph-container/bin/osd_disk_prepare.sh: line 46: ceph-disk: command not found HOT 7
- Need fix for CVE-2022-21797 HOT 4
- Bootstrap process hangs up for hours HOT 2
- not found /var/lib/ceph/osd/ceph-2//keyring HOT 2
- dnf update in ceph v18 container image is failing HOT 2
- RocksDBStore - cannot set permissions: Operation not permitted HOT 2
- /usr/bin/ceph: stderr Error EIO: Module 'cephadm' has experienced an error and cannot handle commands: ContainerInspectInfo HOT 2
- add ceph-mgr-callhome to IBM downstream container HOT 2
- cephadm has failed ContainerInspectInfo HOT 2
- populate_kvstore error HOT 1
- rename and repurpose this repository HOT 19
- reef builds don't work HOT 12
- Question about osd directory HOT 2
- docker-compose setup dose not run as expected mds and osd HOT 3
- With new quay.io/ceph/ceph:v16 image, ceph-csi meet segfault error HOT 2
- ceph/demo container does not expose mon port 3300 HOT 2
- Instructions for getting the zabbix template to work with rook-ceph HOT 2
- smartctl could not scrape metrics from HPE Smart Array in HBA mode HOT 2
- support VERSION=8 for contrib/compose-rhcs.sh
- Include cephfs-shell HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceph-container.