---------- 已转发邮件 ---------- 发件人: huang jun <hjwsm1989@xxxxxxxxx> 日期: 2011年8月26日 上午12:17 主题: Re: radosgw:s3 create doesn't work 收件人: Yehuda Sadeh Weinraub <yehudasa@xxxxxxxxx> 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¶ms=$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@xxxxxxxxxxxxxxxxx -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@xxxxxxxxxxxxxxxxx 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@xxxxxxxxx>: > On Thu, Aug 25, 2011 at 6:51 AM, huang jun <hjwsm1989@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx -i 0 >> User ID: 0 >> RADOS UID: 0 >> Keys: >> User: 0 >> Access Key: 669L0E71AIIGD5GZL4EJ >> Secret Key: IwRFVHrPwT115hCry2hXRiRqWVLCgLIk1SbALViG >> Users: >> Display Name: chuyunhanzhi >> Email: service_wh@xxxxxxxxxxxxxxxxx >> 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html