i had a similar issue with authentication over S3 with fastcgi. It was due to slashes (\ /) in secret key. I see that your secret key has slashes. perhaps generate a new gateway user specifying keys using:

 --access-key= and --secret=



On 04/23/2014 02:30 PM, Srinivasa Rao Ragolu wrote:
Hi All,

I could able to create a cluster with 1 monitor node and 2 OSD nodes on our proprietary distribution. Ceph health is Ok and active.

root@mon:/etc/ceph#*ceph -s
    cluster a7f64266-0894-4f1e-a635-d0aeaca0e993
     health HEALTH_OK
monmap e1: 1 mons at {mon=192.168.0.102:6789/0 <http://192.168.0.102:6789/0>}, election epoch 1, quorum 0 mon
     osdmap e48: 2 osds: 2 up, 2 in
      pgmap v346: 2523 pgs, 10 pools, 1274 bytes data, 46 objects
            2115 MB used, 9075 MB / 11837 MB avail
                2523 active+clean*

"Now I have setup *Rados gateway without FastCGI* as I only need to access rados gateway APIs using swift client"

1) Apache2, version is 2.4.3 . Added line in /etc/apache2/httpd.conf

*ServerName  mon.radosgw.tld

LoadModule rewrite_module lib64/apache2/modules/mod_rewrite.so*

2) #cat /etc/hosts
*192.168.0.102   mon.radosgw.tld mon
192.168.0.103   node1
192.168.0.104   node2*

3) #cat /etc/ceph/ceph.conf

[global]
fsid = a7f64266-0894-4f1e-a635-d0aeaca0e993
mon initial members = mon
mon host = 192.168.0.102
public network = 192.168.0.0/22 <http://192.168.0.0/22>
auth cluster required = cephx
auth service required = cephx
auth client required = cephx
osd journal size = 1024
filestore xattr use omap = true
osd pool default size = 2
osd pool default min size = 1
osd pool default pg num = 333
osd pool default pgp num = 333
osd crush chooseleaf type = 1

[mon.mon]
host = mon
mon addr = 192.168.0.102[osd]
filestore xattr use omap = true
osd data = /var/lib/ceph/osd/$cluster-$id
osd journal size = 1024
osd mkfs type = ext4

[osd.0]
host = node1

[osd.1]
host = node2

*[client.radosgw.gateway]
host = mon
keyring = /etc/ceph/keyring.radosgw.gateway
rgw socket path = /tmp/radosgw.sock
log file = /var/log/ceph/radosgw.log*

4) started rados gateway manually after creating keyring steps

*/usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway *
it is running fine

5) started apache2 server

/etc/init.d/apache2 start
it is running fine.

Now I have created gateway user and subuser. Once I ran swift client application i got below error

# swift -V 1.0 -A http://mon.radosgw.tld -U johndoe:swift -K E9T2rUZNu2gxUjcwUBO8n\/Ev4KX6\/GprEuH4qhu1 post test
*Auth GET failed:http://mon.radosgw.tld:80  <http://10.40.99.165/auth/>  200 OK*

Please help me in resolving this issue. Really I am clue less.

Thanks,
Srinivas.







_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to