On Wed, Feb 19, 2014 at 2:37 AM, Srinivasa Rao Ragolu <sragolu@xxxxxxxxxx> wrote: > Hi all, > > I have setup cluster successfully and one node using to setup rados gateway. > Machine is Fedora 19(all nodes) > > Steps I followed > > 1) Installed httpd, mod_fastcgi, ceph and ceph-radosgw using link > http://ceph.com/docs/master/install/install-ceph-gateway/ > > Note : Did not follow "Enable SSL" and "Add wild card DNS" sections > 2) Made modifications in /etc/httpd/conf/httpd.conf, > /etc/httpd/conf.d/fastcgi.conf > > 3) Created rgw.conf in /etc/httpd/conf.d/ > > 4) Followed the link > http://linuxmanpages.net/manpages/fedora19/man8/radosgw.8.html to create > rgw.conf. > > 5) Added radosgw section in /etc/ceph/ceph.conf > > 6) Please see httpd.conf, fastcgi.conf, rgw.conf and ceph.conf as > attachments. > > 7) Now followed below steps > > a) > > corresponding radosgw script (/var/www/s3gw.fcgi): > > #!/bin/sh > exec /usr/bin/radosgw -c /etc/ceph/ceph.conf -n > client.radosgw.gateway > > > Gave execute permissions to s3gw.fcgi > > > > b) > ceph-authtool -C -n client.radosgw.gateway --gen-key > /etc/ceph/keyring.radosgw.gateway > ceph-authtool -n client.radosgw.gateway --cap mon 'allow r' --cap osd > 'allow rwx' /etc/ceph/keyring.radosgw.gateway > ceph auth add client.radosgw.gateway --in-file=keyring.radosgw.gateway > > > > 8) sudo service ceph restart > > sudo service httpd restart > > sudo /usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.rados.gateway > > 9) From the link http://ceph.com/docs/next/radosgw/config/, I executed > "Create a gateway user", "Enabling swift access" sections > > 10) After above all steps if I run swift commands, I got following error > > [gateway@gateway ceph]$ swift --verbose --debug -V 1.0 -A > http://radosgw.example.com/auth -U gateway:swift -K > "UoK\/XsR4zenFnq4z1sLIt6qSb7uPREfIEHtTG4JW" post test > ERROR:swiftclient:[Errno -2] Name or service not known > Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1101, > in _retry > self.url, self.token = self.get_auth() > File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1076, > in get_auth > insecure=self.insecure) > File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 270, > in get_auth > kwargs.get('snet')) > File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 182, > in get_auth_1_0 > {'X-Auth-User': user, 'X-Auth-Key': key}) > File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 165, > in request_escaped > func(method, url, body=body, headers=headers or {}) > File "/usr/lib64/python2.7/httplib.py", line 973, in request > self._send_request(method, url, body, headers) > File "/usr/lib64/python2.7/httplib.py", line 1007, in _send_request > self.endheaders(body) > File "/usr/lib64/python2.7/httplib.py", line 969, in endheaders > self._send_output(message_body) > File "/usr/lib64/python2.7/httplib.py", line 829, in _send_output > self.send(msg) > File "/usr/lib64/python2.7/httplib.py", line 791, in send > self.connect() > File "/usr/lib64/python2.7/httplib.py", line 772, in connect > self.timeout, self.source_address) > File "/usr/lib64/python2.7/socket.py", line 553, in create_connection > for res in getaddrinfo(host, port, 0, SOCK_STREAM): > gaierror: [Errno -2] Name or service not known > [Errno -2] Name or service not known > > You also need to set the swift url (rgw swift url) configurable. Assuming you're not really using the example.com domain in your actual environment. Yehuda _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com