Hi,
Using Ceph 15.2.8 installed with cephadm. Trying to get RadosGW to work.
I have managed to get the RadosGW working. I can manage it through a
dashboard and use aws s3 client to create new buckets etc. When trying to
use swift I get errors.
Not sure how to continue to track the problem here. Any tips are welcome.
Thank you very much,
-Mika
------- What I have done and what are the results. Some data changed
manually -------
What I have done:
At OpenStack Side:
1) openstack user create --domain default --password-prompt swift
2) openstack role add --project service --user swift admin
3) openstack endpoint create --region RegionOne object-store public
http://ceph1/swift/v1/AUTH_%\(project_id\)s
4) openstack endpoint create --region RegionOne object-store internal
http://ceph1/swift/v1/AUTH_%\(project_id\)s
5) openstack endpoint create --region RegionOne object-store admin
http://ceph1/swift/v1
At Ceph side:
1) ceph config set mgr rgw_keystone_api_version 3
2) ceph config set mgr rgw_keystone_url http://controller:5000
3) ceph config set mgr rgw_keystone_accepted_admin_roles admin
4) ceph config set mgr rgw_keystone_admin_user swift
5) ceph config set mgr rgw_keystone_admin_password swift_test
6) ceph config set mgr rgw_keystone_admin_domain default
7) ceph config set mgr rgw_keystone_admin_project service
for project I have tested different projects e.g. service and admin
Now when testing the API using swift client I get next:
1) swift post test3 --debug
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to
http://controller:5000/v3/auth/tokens
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1):
controller:5000
DEBUG:urllib3.connectionpool:http://controller:5000 "POST /v3/auth/tokens
HTTP/1.1" 201 7032
. some openstack data here .
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): ceph1:80
DEBUG:urllib3.connectionpool:http://ceph1:80 "POST
/swift/v1/AUTH_adsfasdfasdfasdfasdfasdf/test3 HTTP/1.1" 401 12
INFO:swiftclient:REQ: curl -i
http://ceph1/swift/v1/AUTH_adsfasdfasdfasdfasdfasdf/test3 -X POST -H
"X-Auth-Token: <Token would be here>" -H "Content-Length: 0"
INFO:swiftclient:RESP STATUS: 401 Unauthorized
and finally I get
Container POST failed:
http://ceph1/swift/v1/AUTH_adsfasdfasdfasdfasdfasdf/test3 401 Unauthorized
b'AccessDenied'
_______________________________________________
ceph-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]