rados gateway
hi,
I really need some help for my ceph radosgw.
stuck on it for a really long time.
I followed by the ceph document
http://ceph.com/docs/master/start/quick-rgw/
without any error or warnimg.
i can even use radosgw-admin to create user successfully.
But, I cant get into cephfs neither S3 nor swift.
#swift -A http://<radosgw-host>/auth -U <user> -K <key> post test
only responded Auth GET failed: http://<radosgw-host>:80 404 Not Found
How can I solve this problem...? I really need a help
thanks a lot
Quoted 11 lines · proguest
hi,
I really need some help for my ceph radosgw.
stuck on it for a really long time.I followed by the ceph document
http://ceph.com/docs/master/start/quick-rgw/without any error or warnimg.
i can even use radosgw-admin to create user successfully.
Quoted 8 lines
But, I cant get into cephfs neither S3 nor swift.
#swift -A http://<radosgw-host>/auth -U <user> -K <key> post test
only responded Auth GET failed: http://<radosgw-host>:80 404 Not Found
How can I solve this problem...? I really need a help
Hard to know without additional info. It looks though as you might have apache config issues (if you're using apache).
Yehuda
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 7:54 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 17 lines · wrote:
Quoted 17 lines
hi,
I really need some help for my ceph radosgw.
stuck on it for a really long time.I followed by the ceph document
http://ceph.com/docs/master/start/quick-rgw/without any error or warnimg.
i can even use radosgw-admin to create user successfully.
But, I cant get into cephfs neither S3 nor swift.
#swift -A http://<radosgw-host>/auth -U <user> -K <key> post test
only responded Auth GET failed: http://<radosgw-host>:80 404 Not Found
Quoted 7 lines
Quoted 2 lines
How can I solve this problem...? I really need a help
Hard to know without additional info. It looks though as you might have apache config issues (if you're using apache).
Yehuda
hi Yehuda
thanks for replied me.
It's only stardard setting with radosgw document.
here's /etc/apache2/httpd.conf only 1 line
ServerName node74
and here's /etc/apache2/sites-enabled (just follow the website)
FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock <VirtualHost *:80>
ServerName node74
ServerAdmin [email protected] DocumentRoot /var/www
</VirtualHost>
RewriteEngine On
RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /s3gw.fcgi?page=$1¶ms=$2&% {QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
<VirtualHost *:80>
<IfModule mod_fastcgi.c>
<Directory /var/www>
Options +ExecCGI AllowOverride All SetHandler fastcgi-script Order allow,deny Allow from all AuthBasicAuthoritative Off
</Directory>
</IfModule>
AllowEncodedSlashes On
ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined ServerSignature Off
</VirtualHost>
without any other edit.
Also create a fcgi file named s3gw.fcgi in /var/www/ here's s3gw.fcgi
#!/bin/sh
exec /usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway
I don't know what's wrong with my radosgw..
Quoted 31 lines · proguest
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 7:54 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 17 lines · wrote:
Quoted 17 lines
hi,
I really need some help for my ceph radosgw.
stuck on it for a really long time.I followed by the ceph document
http://ceph.com/docs/master/start/quick-rgw/without any error or warnimg.
i can even use radosgw-admin to create user successfully.
But, I cant get into cephfs neither S3 nor swift.
#swift -A http://<radosgw-host>/auth -U <user> -K <key> post test
only responded Auth GET failed: http://<radosgw-host>:80 404 Not Found
Quoted 7 lines
Quoted 2 lines
How can I solve this problem...? I really need a help
Hard to know without additional info. It looks though as you might have apache config issues (if you're using apache).
Yehuda
hi Yehuda
Quoted 7 lines
thanks for replied me.
It's only stardard setting with radosgw document.
here's/etc/apache2/httpd.confonly 1 lineServerName node74
and here's
/etc/apache2/sites-enabled(just follow the website)
is that the actual file name, or is that the directory where this config file resides? do you have by any chance another default web site set up under sites-enabled? did you restart apache after configuring?
Quoted 41 lines
FastCgiExternalServer
/var/www/s3gw.fcgi-socket/tmp/radosgw.sock<VirtualHost *:80>
ServerName node74
ServerAdmin [email protected] DocumentRoot/var/www
</VirtualHost>RewriteEngine On
RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /s3gw.fcgi?page=$1¶ms=$2&% {QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]<VirtualHost *:80>
<IfModule
mod_fastcgi.c>
<Directory/var/www>
Options +ExecCGI AllowOverride All SetHandler fastcgi-script Order allow,deny Allow from all AuthBasicAuthoritative Off
</Directory>
</IfModule>AllowEncodedSlashes On
ErrorLog/var/log/apache2/error.logCustomLog/var/log/apache2/access.logcombined ServerSignature Off
</VirtualHost>without any other edit.
Also create a fcgi file named s3gw.fcgi in/var/www/here's s3gw.fcgi#!/bin/sh
exec/usr/bin/radosgw-c/etc/ceph/ceph.conf-n client.radosgw.gatewayI don't know what's wrong with my radosgw..
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 8:13 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 13 lines · wrote:
Quoted 13 lines
Quoted 5 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
Hard to know without additional info. It looks though as you might have apache config issues (if you're using apache).
Yehuda
hi Yehuda
thanks for replied me.
It's only stardard setting with radosgw document.
here's/etc/apache2/httpd.confonly 1 line
Quoted 8 lines
Quoted 3 lines
ServerName node74
and here's
/etc/apache2/sites-enabled(just follow the website)is that the actual file name, or is that the directory where this config file resides? do you have by any chance another default web site set up under sites-enabled? did you restart apache after configuring?
I missed. It's /etc/apache2/sites-enabled/rgw.conf The document said
#sudo a2ensite rgw.conf
#sudo a2dissite default
so there's only one configure in sites-enabled
Quoted 26 lines · proguest
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 8:13 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 13 lines · wrote:
Quoted 13 lines
Quoted 5 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
Hard to know without additional info. It looks though as you might have apache config issues (if you're using apache).
Yehuda
hi Yehuda
thanks for replied me.
It's only stardard setting with radosgw document.
here's/etc/apache2/httpd.confonly 1 lineQuoted 8 lines
Quoted 3 lines
ServerName node74
and here's
/etc/apache2/sites-enabled(just follow the website)is that the actual file name, or is that the directory where this config file resides? do you have by any chance another default web site set up under sites-enabled? did you restart apache after configuring?
Quoted 6 lines
I missed. It's
/etc/apache2/sites-enabled/rgw.confThe document said
#sudo a2ensite rgw.conf
#sudo a2dissite default
so there's only one configure in sites-enabled
did you restart apache after reconfiguring it?
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 8:33 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 8:13 AM, proguest <proguest1942 <at>
hotmail.com>
Quoted 8 lines
Quoted 7 lines
wrote:
I missed. It's/etc/apache2/sites-enabled/rgw.confThe document said
#sudo a2ensite rgw.conf
#sudo a2dissite default
so there's only one configure in sites-enableddid you restart apache after reconfiguring it?
Yeap, I restart radosgw ceph apache2 every time I changed configures
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 8:33 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 8:13 AM, proguest <proguest1942 <at>
hotmail.com>
Quoted 22 lines
Quoted 22 lines
Quoted 21 lines · wrote:
Quoted 9 lines
Quoted 5 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
Hard to know without additional info. It looks though as you might have apache config issues (if you're using apache).
Yehuda
hi Yehuda
Quoted 7 lines
thanks for replied me.
It's only stardard setting with radosgw document.
here's/etc/apache2/httpd.confonly 1 lineServerName node74
and here's
/etc/apache2/sites-enabled(just follow the website)is that the actual file name, or is that the directory where this config file resides? do you have by any chance another default web site set up under sites-enabled? did you restart apache after configuring?
Quoted 7 lines
Quoted 6 lines
I missed. It's
/etc/apache2/sites-enabled/rgw.confThe document said
#sudo a2ensite rgw.conf
#sudo a2dissite default
so there's only one configure in sites-enableddid you restart apache after reconfiguring it?
Yeap, I always restart ceph apache2 radosgw after modified the file
by the way, I found apache error.log has something wrong while start apache
[Wed Apr 17 16:53:59 2013] [notice] caught SIGTERM, shutting down [Wed Apr 17 16:53:59 2013] [alert] FastCGI: read() from pipe failed (0) [Wed Apr 17 16:53:59 2013] [alert] FastCGI: the PM is shutting down, Apache seems to have disappeared - bye [Wed Apr 17 16:54:00 2013] [notice] FastCGI: process manager initialized (pid 4768) [Wed Apr 17 16:54:00 2013] [notice] Apache/2.2.17 (Ubuntu)
mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_ssl/2.2.17 OpenSSL/0.9.8o configured -- resuming normal operations
But I don't know what is it means?
I think s3gw.fcgi is right, and I also enable fastcgi in apache2
Do you have radosgw logs?
Quoted 63 lines · proguest
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 8:33 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 8:13 AM, proguest <proguest1942 <at>
hotmail.com>
Quoted 22 lines
Quoted 22 lines
Quoted 21 lines · wrote:
Quoted 9 lines
Quoted 5 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
Hard to know without additional info. It looks though as you might have apache config issues (if you're using apache).
Yehuda
hi Yehuda
Quoted 7 lines
thanks for replied me.
It's only stardard setting with radosgw document.
here's/etc/apache2/httpd.confonly 1 lineServerName node74
and here's
/etc/apache2/sites-enabled(just follow the website)is that the actual file name, or is that the directory where this config file resides? do you have by any chance another default web site set up under sites-enabled? did you restart apache after configuring?
Quoted 7 lines
Quoted 6 lines
I missed. It's
/etc/apache2/sites-enabled/rgw.confThe document said
#sudo a2ensite rgw.conf
#sudo a2dissite default
so there's only one configure in sites-enableddid you restart apache after reconfiguring it?
Yeap, I always restart ceph apache2 radosgw after modified the file
by the way, I found apache error.log has something wrong while start apache
[Wed Apr 17 16:53:59 2013] [notice] caught SIGTERM, shutting down [Wed Apr 17 16:53:59 2013] [alert] FastCGI: read() from pipe failed (0) [Wed Apr 17 16:53:59 2013] [alert] FastCGI: the PM is shutting down, Apache seems to have disappeared - bye [Wed Apr 17 16:54:00 2013] [notice] FastCGI: process manager initialized (pid 4768) [Wed Apr 17 16:54:00 2013] [notice] Apache/2.2.17 (Ubuntu)mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_ssl/2.2.17 OpenSSL/0.9.8o configured -- resuming normal operations
But I don't know what is it means?
I think s3gw.fcgi is right, and I also enable fastcgi in apache2--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
Do you have radosgw logs?
Here're radosgw log
The last two line are restart radosgw (2 times)
Others are trying to connect radosgw..
2013-04-17 14:58:24.335168 7fdb2af5c700 2 req 1:0.316409:s3:GET /s3gw.fcgi:list_bucket:http status=404 2013-04-17 14:58:24.336074 7fdb2af5c700 1 ====== req done req=0x7fdb240021d0 http_status=404 ====== 2013-04-17 14:58:48.987824 7fdb302af700 0 WARNING: RGWRados::log_usage(): user name empty (bucket=s3gw.fcgi), skipping 2013-04-17 16:28:00.331392 7f4df1a767a0 10 allocated request req=0x7f4de000d390 2013-04-17 16:35:55.935084 7f4de96d8700 0 monclient: hunting for new mon 2013-04-17 17:19:23.276170 7f7c596ce7a0 10 allocated request req=0x7f7c48010170 2013-04-17 17:20:07.184676 7f3dbe64f7a0 10 allocated request
req=0x7f3db0001420
Quoted 11 lines · proguest
Quoted 3 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
Do you have radosgw logs?
Here're radosgw log
The last two line are restart radosgw (2 times)
Others are trying to connect radosgw..2013-04-17 14:58:24.335168 7fdb2af5c700 2 req 1:0.316409:s3:GET/s3gw.fcgi:list_bucket:http status=404
I noticed that the example closes and reopens the VirtualHost section. Can you try the following config (doesn't close and reopens the section, modified RewriteRule):
FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock
<VirtualHost *:80>
ServerName {fqdn}
ServerAdmin {email.address}
DocumentRoot /var/wwwRewriteEngine On
RewriteRule ^/(.*) /s3gw.fcgi?%{QUERY_STRING}
[E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
<IfModule mod_fastcgi.c>
<Directory /var/www>
Options +ExecCGI AllowOverride All SetHandler fastcgi-script Order allow,deny Allow from all AuthBasicAuthoritative Off
</Directory>
</IfModule>
AllowEncodedSlashes On
ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined ServerSignature Off
</VirtualHost>
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 9:58 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 38 lines · wrote:
Quoted 11 lines
Quoted 3 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
Do you have radosgw logs?
Here're radosgw log
The last two line are restart radosgw (2 times)
Others are trying to connect radosgw..2013-04-17 14:58:24.335168 7fdb2af5c700 2 req 1:0.316409:s3:GET/s3gw.fcgi:list_bucket:http status=404
I noticed that the example closes and reopens the VirtualHost section. Can you try the following config (doesn't close and reopens the section, modified RewriteRule):
FastCgiExternalServer
/var/www/s3gw.fcgi-socket/tmp/radosgw.sock<VirtualHost *:80>
ServerName {fqdn} ServerAdmin {email.address} DocumentRoot /var/wwwRewriteEngine On
RewriteRule ^/(.*) /s3gw.fcgi?%{QUERY_STRING}
[E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]<IfModule
mod_fastcgi.c>
<Directory/var/www>
Options +ExecCGI AllowOverride All SetHandler fastcgi-script Order allow,deny Allow from all AuthBasicAuthoritative Off
</Directory>
</IfModule>
Quoted 5 lines
AllowEncodedSlashes On
ErrorLog/var/log/apache2/error.logCustomLog/var/log/apache2/access.logcombined ServerSignature Off
</VirtualHost>
woo, it seems work!!
but there're another problem...
i tried:
# curl -H "X-Auth-User: richard:swift" -H "X-Auth-Key: IlEOJlX08uuvXb\/\/xIhz5bLaDGIZmOV0oPSjB2eD" http://node74/auth
it resposed:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code> </Error>
but here's my user info
{ "user_id": "richard",
"rados_uid": 0,
"display_name": "richard",
"email": "[email protected]",
"suspended": 0,
"max_buckets": 1000,
"subusers": [
{ "id": "richard:swift",
"permissions": "full-control"}],
"keys": [
{ "user": "richard",
"access_key": "OCDVLF6P4QGWIZP3Q7CF",
"secret_key": "IlEOJlX08uuvXb\/\/xIhz5bLaDGIZmOV0oPSjB2eD"}],
"swift_keys": [
{ "user": "richard:swift",
"secret_key": "ojS\/KYsrUWnOmyJPREOBkwS26NqQl5tI9f7un28t"}]}Am I choose the wrong key??
Quoted 79 lines · proguest
Quoted 2 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
On Wed, Apr 17, 2013 at 9:58 AM, proguest <proguest1942 <at> hotmail.com>
Quoted 38 lines · wrote:
Quoted 11 lines
Quoted 3 lines · Yehuda Sadeh <yehuda <at> inktank.com> writes:
Do you have radosgw logs?
Here're radosgw log
The last two line are restart radosgw (2 times)
Others are trying to connect radosgw..2013-04-17 14:58:24.335168 7fdb2af5c700 2 req 1:0.316409:s3:GET/s3gw.fcgi:list_bucket:http status=404
I noticed that the example closes and reopens the VirtualHost section. Can you try the following config (doesn't close and reopens the section, modified RewriteRule):
FastCgiExternalServer
/var/www/s3gw.fcgi-socket/tmp/radosgw.sock<VirtualHost *:80>
ServerName {fqdn} ServerAdmin {email.address} DocumentRoot /var/wwwRewriteEngine On
RewriteRule ^/(.*) /s3gw.fcgi?%{QUERY_STRING}
[E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]<IfModule
mod_fastcgi.c>
<Directory/var/www>
Options +ExecCGI AllowOverride All SetHandler fastcgi-script Order allow,deny Allow from all AuthBasicAuthoritative Off
</Directory>
</IfModule>Quoted 5 lines
AllowEncodedSlashes On
ErrorLog/var/log/apache2/error.logCustomLog/var/log/apache2/access.logcombined ServerSignature Off
</VirtualHost>woo, it seems work!!
but there're another problem...
i tried:
# curl -H "X-Auth-User: richard:swift" -H "X-Auth-Key: IlEOJlX08uuvXb\/\/xIhz5bLaDGIZmOV0oPSjB2eD" http://node74/authit resposed:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code> </Error>but here's my user info
{ "user_id": "richard",
"rados_uid": 0,
"display_name": "richard",
"email": "[email protected]",
"suspended": 0,
"max_buckets": 1000,
"subusers": [{ "id": "richard:swift", "permissions": "full-control"}], "keys": [ { "user": "richard", "access_key": "OCDVLF6P4QGWIZP3Q7CF", "secret_key": "IlEOJlX08uuvXb\/\/xIhz5bLaDGIZmOV0oPSjB2eD"}], "swift_keys": [ { "user": "richard:swift", "secret_key": "ojS\/KYsrUWnOmyJPREOBkwS26NqQl5tI9f7un28t"}]}
Quoted 1 line
Am I choose the wrong key??
Yes. You need to use the swift key for that. Also try removing the backslashes from it.
Yehuda Sadeh <yehuda <at> inktank.com> writes:
!!! I recreate the key without / and it works!!!
I can get auth url and Token .
thank you very much Yehuda !!!