2011/8/25 huang jun <hjwsm1989@xxxxxxxxx>: > ---------- 已转发邮件 ---------- > 发件人: 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 You probably want to change the ServerAlias. > 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 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html