All of lore.kernel.org
 help / color / mirror / Atom feed
* radosgw:s3 create doesn't work
@ 2011-08-25 13:51 huang jun
  2011-08-25 15:12 ` Yehuda Sadeh Weinraub
  0 siblings, 1 reply; 4+ messages in thread
From: huang jun @ 2011-08-25 13:51 UTC (permalink / raw)
  To: ceph-devel

hi,all
i try to use radosgw in ceph 0.30.
but i always got error in "s3 -u create alpha"
steps below:
bsd02:/data#ceph -s
2011-08-25 21:47:33.256884    pg v149: 230 pgs: 230
active+clean+degraded; 29 KB data, 7868 MB used, 6481 MB / 15118 MB
avail; 29/58 degraded (50.000%)
2011-08-25 21:47:33.257330   mds e4: 1/1/1 up {0=0=up:active}
2011-08-25 21:47:33.257355   osd e6: 1 osds: 1 up, 1 in
2011-08-25 21:47:33.257399   log 2011-08-25 21:32:26.114013 osd0
192.168.1.102:6801/5163 230 : [INF] 6.7 scrub ok
2011-08-25 21:47:33.257454   mon e1: 1 mons at {0=192.168.1.102:6789/0}

bsd02:/data#  radosgw_admin -m 192.168.1.102:6789 -c
/etc/ceph/ceph.conf user create --display-name="chuyunhanzhi"
--email=service_wh@chinfotech.com.cn -i 0
User ID: 0
RADOS UID: 0
Keys:
 User: 0
  Access Key: 669L0E71AIIGD5GZL4EJ
  Secret Key: IwRFVHrPwT115hCry2hXRiRqWVLCgLIk1SbALViG
Users:
Display Name: chuyunhanzhi
Email: service_wh@chinfotech.com.cn
OpenStack User: <undefined>
OpenStack Key: <undefined>

bsd02:/data# export S3_ACCESS_KEY_ID=669L0E71AIIGD5GZL4EJ
bsd02:/data# export
S3_SECRET_ACCESS_KEY=IwRFVHrPwT115hCry2hXRiRqWVLCgLIk1SbALViG
bsd02:/data# export S3_HOSTNAME=192.168.1.102

bsd02:/data# s3 create alpha

ERROR: ErrorInvalidAccessKeyId
  Message: The AWS Access Key Id you provided does not exist in our records.
  Extra Details:
    RequestId: 006D8781356B1B00
    HostId: d6lXuxT+ospDfgMYayaz7YjTzB5If4Q9s9mkoZno9fgyGe0shHrhfGGv3y3WGCAb
    AWSAccessKeyId: 669L0E71AIIGD5GZL4EJ

and i tried another two times,but the error always occur.
so what should i do to avoid this problem?

thanks in advance!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: radosgw:s3 create doesn't work
  2011-08-25 13:51 radosgw:s3 create doesn't work huang jun
@ 2011-08-25 15:12 ` Yehuda Sadeh Weinraub
       [not found]   ` <CABAwU-Za395xBC_qR4GWN1sBPHgPn+6PShraNa+J1eDwzbbE_g@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Yehuda Sadeh Weinraub @ 2011-08-25 15:12 UTC (permalink / raw)
  To: huang jun; +Cc: ceph-devel

On Thu, Aug 25, 2011 at 6:51 AM, huang jun <hjwsm1989@gmail.com> wrote:
> hi,all
> i try to use radosgw in ceph 0.30.
> but i always got error in "s3 -u create alpha"
> steps below:
> bsd02:/data#ceph -s
> 2011-08-25 21:47:33.256884    pg v149: 230 pgs: 230
> active+clean+degraded; 29 KB data, 7868 MB used, 6481 MB / 15118 MB
> avail; 29/58 degraded (50.000%)
> 2011-08-25 21:47:33.257330   mds e4: 1/1/1 up {0=0=up:active}
> 2011-08-25 21:47:33.257355   osd e6: 1 osds: 1 up, 1 in
> 2011-08-25 21:47:33.257399   log 2011-08-25 21:32:26.114013 osd0
> 192.168.1.102:6801/5163 230 : [INF] 6.7 scrub ok
> 2011-08-25 21:47:33.257454   mon e1: 1 mons at {0=192.168.1.102:6789/0}
>
> bsd02:/data#  radosgw_admin -m 192.168.1.102:6789 -c
> /etc/ceph/ceph.conf user create --display-name="chuyunhanzhi"
> --email=service_wh@chinfotech.com.cn -i 0
> User ID: 0
> RADOS UID: 0
> Keys:
>  User: 0
>  Access Key: 669L0E71AIIGD5GZL4EJ
>  Secret Key: IwRFVHrPwT115hCry2hXRiRqWVLCgLIk1SbALViG
> Users:
> Display Name: chuyunhanzhi
> Email: service_wh@chinfotech.com.cn
> OpenStack User: <undefined>
> OpenStack Key: <undefined>
>
> bsd02:/data# export S3_ACCESS_KEY_ID=669L0E71AIIGD5GZL4EJ
> bsd02:/data# export
> S3_SECRET_ACCESS_KEY=IwRFVHrPwT115hCry2hXRiRqWVLCgLIk1SbALViG
> bsd02:/data# export S3_HOSTNAME=192.168.1.102
>
> bsd02:/data# s3 create alpha
>
> ERROR: ErrorInvalidAccessKeyId
>  Message: The AWS Access Key Id you provided does not exist in our records.
>  Extra Details:
>    RequestId: 006D8781356B1B00
>    HostId: d6lXuxT+ospDfgMYayaz7YjTzB5If4Q9s9mkoZno9fgyGe0shHrhfGGv3y3WGCAb
>    AWSAccessKeyId: 669L0E71AIIGD5GZL4EJ
>
> and i tried another two times,but the error always occur.
> so what should i do to avoid this problem?

You're going to Amazon here and get that response from there. Are you
using the correct s3 utility?

Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fwd: radosgw:s3 create doesn't work
       [not found]   ` <CABAwU-Za395xBC_qR4GWN1sBPHgPn+6PShraNa+J1eDwzbbE_g@mail.gmail.com>
@ 2011-08-25 16:26     ` huang jun
  2011-08-25 18:09       ` Yehuda Sadeh Weinraub
  0 siblings, 1 reply; 4+ messages in thread
From: huang jun @ 2011-08-25 16:26 UTC (permalink / raw)
  To: ceph-devel

---------- 已转发邮件 ----------
发件人: huang jun <hjwsm1989@gmail.com>
日期: 2011年8月26日 上午12:17
主题: Re: radosgw:s3 create doesn't work
收件人: Yehuda Sadeh Weinraub <yehudasa@gmail.com>


i followed the wiki/rados_gateway.
and after i correct this problem, just encountered with another.

httpd.conf file:
FastCgiWrapper /var/www/s3gw.fcgi
FastCgiServer /bsd/bin/radosgw

<VirtualHost *:80>
 ServerName s3.bsdocfs.com
 ServerAlias skinny.ops.newdream.net
 DocumentRoot /var/www

 RewriteEngine On
 RewriteRule   ^/([a-zA-Z0-9\-\_\.]*)([/]?.*)
/s3gw.fcgi?page=$1&params=$2&%{QUERY_STRING}
[E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

 <IfModule mod_fastcgi.c>
#    SuexecUserGroup web1 web1
   <Directory /var/www/>
       Options +ExecCGI
           AllowOverride All
               SetHandler fastcgi-script
               Order allow,deny
               Allow from all
               AuthBasicAuthoritative Off
       </Directory>
 </IfModule>

       SetEnv RGW_DNS_NAME "s3."

       AllowEncodedSlashes On

       ErrorLog /var/log/apache2/error.log
       CustomLog /var/log/apache2/access.log combined
   ServerSignature Off
</VirtualHost>
/etc/init.d/apache2 restart
 * Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified
domain name, using 192.168.1.102 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully
qualified domain name, using 192.168.1.102 for ServerName
 ...done.
(***anything wrong???***)


start ceph cluster
$ /etc/init.d/ceph -a start
everything is ok!

$ vim /etc/hosts
192.168.1.102   s3.amazonaws.com
192.168.1.102   alpha.s3.amazonaws.com

create users:
radosgw_admin -c /etc/ceph/ceph.conf user create
--display-name="chuyunhanzhi" --email=service_wh@chinfotech.com.cn -i
7
User ID: 7
RADOS UID: 0
Keys:
 User: 7
 Access Key: GGWH7X0TGOD2JPBQ07NC
 Secret Key: yWV+FhDDPoO4D21K6R/c2tu5rSorv7lv9/pmzF6f
Users:
Display Name: chuyunhanzhi
Email: service_wh@chinfotech.com.cn
OpenStack User: <undefined>
OpenStack Key: <undefined>

exports S3 parms:
export S3_ACCESS_KEY_ID=GGWH7X0TGOD2JPBQ07NC
export S3_SECRET_ACCESS_KEY=yWV+FhDDPoO4D21K6R/c2tu5rSorv7lv9/pmzF6f
export S3_HOSTNAME=s3.bsdocfs.com

create bucket:
bsd02:~# s3 -u create alpha
ERROR: ErrorUnknown

bsd02:~# s3  create alpha
ERROR: FailedToConnect

so i don't know what wrong with it?


2011/8/25 Yehuda Sadeh Weinraub <yehudasa@gmail.com>:
> On Thu, Aug 25, 2011 at 6:51 AM, huang jun <hjwsm1989@gmail.com> wrote:
>> hi,all
>> i try to use radosgw in ceph 0.30.
>> but i always got error in "s3 -u create alpha"
>> steps below:
>> bsd02:/data#ceph -s
>> 2011-08-25 21:47:33.256884    pg v149: 230 pgs: 230
>> active+clean+degraded; 29 KB data, 7868 MB used, 6481 MB / 15118 MB
>> avail; 29/58 degraded (50.000%)
>> 2011-08-25 21:47:33.257330   mds e4: 1/1/1 up {0=0=up:active}
>> 2011-08-25 21:47:33.257355   osd e6: 1 osds: 1 up, 1 in
>> 2011-08-25 21:47:33.257399   log 2011-08-25 21:32:26.114013 osd0
>> 192.168.1.102:6801/5163 230 : [INF] 6.7 scrub ok
>> 2011-08-25 21:47:33.257454   mon e1: 1 mons at {0=192.168.1.102:6789/0}
>>
>> bsd02:/data#  radosgw_admin -m 192.168.1.102:6789 -c
>> /etc/ceph/ceph.conf user create --display-name="chuyunhanzhi"
>> --email=service_wh@chinfotech.com.cn -i 0
>> User ID: 0
>> RADOS UID: 0
>> Keys:
>>  User: 0
>>  Access Key: 669L0E71AIIGD5GZL4EJ
>>  Secret Key: IwRFVHrPwT115hCry2hXRiRqWVLCgLIk1SbALViG
>> Users:
>> Display Name: chuyunhanzhi
>> Email: service_wh@chinfotech.com.cn
>> OpenStack User: <undefined>
>> OpenStack Key: <undefined>
>>
>> bsd02:/data# export S3_ACCESS_KEY_ID=669L0E71AIIGD5GZL4EJ
>> bsd02:/data# export
>> S3_SECRET_ACCESS_KEY=IwRFVHrPwT115hCry2hXRiRqWVLCgLIk1SbALViG
>> bsd02:/data# export S3_HOSTNAME=192.168.1.102
>>
>> bsd02:/data# s3 create alpha
>>
>> ERROR: ErrorInvalidAccessKeyId
>>  Message: The AWS Access Key Id you provided does not exist in our records.
>>  Extra Details:
>>    RequestId: 006D8781356B1B00
>>    HostId: d6lXuxT+ospDfgMYayaz7YjTzB5If4Q9s9mkoZno9fgyGe0shHrhfGGv3y3WGCAb
>>    AWSAccessKeyId: 669L0E71AIIGD5GZL4EJ
>>
>> and i tried another two times,but the error always occur.
>> so what should i do to avoid this problem?
>
> You're going to Amazon here and get that response from there. Are you
> using the correct s3 utility?
>
> Yehuda
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: radosgw:s3 create doesn't work
  2011-08-25 16:26     ` Fwd: " huang jun
@ 2011-08-25 18:09       ` Yehuda Sadeh Weinraub
  0 siblings, 0 replies; 4+ messages in thread
From: Yehuda Sadeh Weinraub @ 2011-08-25 18:09 UTC (permalink / raw)
  To: huang jun; +Cc: ceph-devel

2011/8/25 huang jun <hjwsm1989@gmail.com>:
> ---------- 已转发邮件 ----------
> 发件人: huang jun <hjwsm1989@gmail.com>
> 日期: 2011年8月26日 上午12:17
> 主题: Re: radosgw:s3 create doesn't work
> 收件人: Yehuda Sadeh Weinraub <yehudasa@gmail.com>
>
>
> i followed the wiki/rados_gateway.
> and after i correct this problem, just encountered with another.
>
> httpd.conf file:
> FastCgiWrapper /var/www/s3gw.fcgi
> FastCgiServer /bsd/bin/radosgw
>
> <VirtualHost *:80>
>  ServerName s3.bsdocfs.com
>  ServerAlias skinny.ops.newdream.net

You probably want to change the ServerAlias.

>  DocumentRoot /var/www
>
>  RewriteEngine On
>  RewriteRule   ^/([a-zA-Z0-9\-\_\.]*)([/]?.*)
> /s3gw.fcgi?page=$1&params=$2&%{QUERY_STRING}
> [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
>
>  <IfModule mod_fastcgi.c>
> #    SuexecUserGroup web1 web1
>   <Directory /var/www/>
>       Options +ExecCGI
>           AllowOverride All
>               SetHandler fastcgi-script
>               Order allow,deny
>               Allow from all
>               AuthBasicAuthoritative Off
>       </Directory>
>  </IfModule>
>
>       SetEnv RGW_DNS_NAME "s3."
>
>       AllowEncodedSlashes On
>
>       ErrorLog /var/log/apache2/error.log
>       CustomLog /var/log/apache2/access.log combined
>   ServerSignature Off
> </VirtualHost>
> /etc/init.d/apache2 restart
>  * Restarting web server apache2
> apache2: Could not reliably determine the server's fully qualified
> domain name, using 192.168.1.102 for ServerName
>  ... waiting apache2: Could not reliably determine the server's fully
> qualified domain name, using 192.168.1.102 for ServerName
>  ...done.
> (***anything wrong???***)
>
>
> start ceph cluster
> $ /etc/init.d/ceph -a start
> everything is ok!
>
> $ vim /etc/hosts
> 192.168.1.102   s3.amazonaws.com
> 192.168.1.102   alpha.s3.amazonaws.com
>
> create users:
> radosgw_admin -c /etc/ceph/ceph.conf user create
> --display-name="chuyunhanzhi" --email=service_wh@chinfotech.com.cn -i
> 7
> User ID: 7
> RADOS UID: 0
> Keys:
>  User: 7
>  Access Key: GGWH7X0TGOD2JPBQ07NC
>  Secret Key: yWV+FhDDPoO4D21K6R/c2tu5rSorv7lv9/pmzF6f
> Users:
> Display Name: chuyunhanzhi
> Email: service_wh@chinfotech.com.cn
> OpenStack User: <undefined>
> OpenStack Key: <undefined>
>
> exports S3 parms:
> export S3_ACCESS_KEY_ID=GGWH7X0TGOD2JPBQ07NC
> export S3_SECRET_ACCESS_KEY=yWV+FhDDPoO4D21K6R/c2tu5rSorv7lv9/pmzF6f
> export S3_HOSTNAME=s3.bsdocfs.com
>
> create bucket:
> bsd02:~# s3 -u create alpha
> ERROR: ErrorUnknown

We'll need to have the apache and radosgw logs for that. By any chance
you were running the radosgw off the latest git? There was a short
lived bug that got every operation to fail in the same manner.

>
> bsd02:~# s3  create alpha
> ERROR: FailedToConnect

You don't have https configure, so that wouldn't work.

Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-25 18:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-25 13:51 radosgw:s3 create doesn't work huang jun
2011-08-25 15:12 ` Yehuda Sadeh Weinraub
     [not found]   ` <CABAwU-Za395xBC_qR4GWN1sBPHgPn+6PShraNa+J1eDwzbbE_g@mail.gmail.com>
2011-08-25 16:26     ` Fwd: " huang jun
2011-08-25 18:09       ` Yehuda Sadeh Weinraub

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.