On Tue, Apr 15, 2014 at 9:10 AM, Shashank Puntamkar <spuntam...@gmail.com> wrote: > Thanks Yehuda for quick response. > > I added the buckentname.servername in /etc/hosts file on the server on > which I am running radosgw. From that server only, I run the command > "s3cmd mb s3://test". now the error message is change to "ERROR: S3 > error: 405 (MethodNotAllowed):". > Note: The bucket name is "test"and server name is "server-vm621". > > Following are the entries of /var/log/ceph/radosgw.log > ------------------------------------------------------------------------------------------------------------- > 2014-04-15 21:24:30.394976 7fc05d7f2700 1 ====== starting new request > req=0x1ea9c90 ===== > 2014-04-15 21:24:30.395310 7fc05d7f2700 1 ====== req done > req=0x1ea9c90 http_status=405 ====== > ---------------------------------------------------------------------------------------------------------------- > > and the entries in /var/log/apache2/error.log > ---------------------------------------------------------------------------------------------------------- > [Tue Apr 15 21:19:37 2014] [notice] FastCGI: process manager > initialized (pid 17103) > [Tue Apr 15 21:19:37 2014] [notice] Apache/2.2.22 (Ubuntu) > mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_ssl/2.2.22 OpenSSL/1.0.1 > configured -- resuming normal operations > [Tue Apr 15 21:19:44 2014] [warn] FastCGI: 10.208.27.170 PUT > http://test.server-vm621/ auth AWS > 47VG1D16H49C8FHX7HL3:XKFUuiP3+wY2qLsOVEk0HuAxBtM= > [Tue Apr 15 21:24:30 2014] [warn] FastCGI: 10.208.27.170 PUT > http://test.server-vm621/ auth AWS > 47VG1D16H49C8FHX7HL3:1HQVndXc3KQluCPxnnEE+CgtyrU= > ------------------------------------------------------------------------------------------------------------------- > > As per my observations,It indicates that s3 requests are reaching to > server, Fastcgi is also getting initialized, but some error during > creating of bucket. > > I have made entry of server name along with bucket name > (test.server-vm621) in /etc/hosts of server and I am running s3cmd > command on that server only. So far I tried in Local environment on > single node. > Hope you will give hint where the error is?
You're probably missing the 'rgw dns name' configuration in your ceph.conf. > > > On 4/15/14, Yehuda Sadeh <yeh...@inktank.com> wrote: >> On Mon, Apr 14, 2014 at 10:12 PM, Shashank Puntamkar >> <spuntam...@gmail.com> wrote: >>> I am setting up a ceph cluster with amazon s3 like capabilities. >>> I have configured Ceph Object Gateway, radowgw on Ubuntu12.04 as >>> described in ceph >>> documentation.(http://ceph.com/docs/master/radosgw/config/). >>> >>> While I am testing in with s3cmd tool , I am geeting error. though >>> command " s3cmd ls " works without giving any error, the command to >>> create bucket gives an error >>> ------------------------------------------------------------------------------------------------------------- >>> WARNING: Retrying failed request: / ([Errno -2] Name or service not >>> known) >>> WARNING: Waiting 3 sec... >>> ---------------------------------------------------------------------------------------------------------- >>> >>> I refer the document >>> http://blog.scsorlando.com/post/2013/11/21/Ceph-Install-and-Deployment-in-a-production-environment.aspx >>> too and followed steps , but problem is stil persists. >>> what could be the possible reason(s)? >> >> s3 command uses the virtual host name bucket semantics. This means >> that in order to get to a specific bucket it prepends the bucket name >> to the radosgw host. E.g,, for bucket foo under mydomain.com, it'll go >> to foo.mydomain.com. However, for this to work you need proper catch >> all dns settings that will forward you to the correct host. >> >> Yehuda >> _______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com