Hello! I am a newer to ceph, and I setup ceph object gateway following the guide (http://ceph.com/docs/master/radosgw/config/).
But when started the radosgw daemon,two warnings came out: WARNING: libcurl doesn't support curl_multi_wait() WARNING: cross zone / region transfer performance may be affected I can create gateway user correctly. Then I sent a rest request from my openstack to radosgw,it returned a 500 error. swift --debug -U service:swift post test I check the httpd log,and find the error [warn] FastCGI: 172.25.150.22 POST http://172.25.150.23/swift/v1/test auth [error] [client 172.25.150.22] (13)Permission denied: FastCGI: failed to connect to server "/var/www/s3gw.fcgi": connect() failed [error] [client 172.25.150.22] FastCGI: incomplete headers (0 bytes) received from server "/var/www/s3gw.fcgi" The httpd user and fastcgi user were both apache. I changed the permission of the www folder and the fcgi file.but it didn`t worked. I didn`t kown why this happen. My OS is centos6.5,and I tried both ceph release 0.67 and 0.72. The following were my configuring steps: 1、all ceph node had the same config. /etc/ceph/ceph.conf : [global] auth_service_required = cephx filestore_xattr_use_omap = true auth_client_required = cephx auth_cluster_required = cephx mon_host = 172.25.150.23,172.25.150.24,172.25.150.25 mon_initial_members = ceph-node-1, ceph-node-2, ceph-node-3 fsid = 6b76630a-efa0-4cdf-9f65-13ca01bbd4e3 [client.radosgw.gateway] host = ceph-node-1 keyring = /etc/ceph/keyring.radosgw.gateway rgw_socket_path = /tmp/radosgw.sock log_file = /var/log/ceph/radosgw.log rgw_keystone_url = 172.25.150.22:35357 rgw_keystone_admin_token = 2012 rgw_keystone_accepted_roles = admin,Member rgw_keystone_token_cache_size = 500 rgw_keystone_revocation_interval = 600 rgw_s3_auth_use_keystone = true nss_db_path = /var/ceph/nss 2、mkdir -p /var/lib/ceph/radosgw/ceph-radosgw.gateway 3、 /etc/httpd/conf.d/ rgw.conf FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock <VirtualHost *:80> ServerName ceph-node-1 ServerAdmin [email protected]<mailto:[email protected]> RewriteEngine On RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /s3gw.fcgi?page=$1¶ms=$2&%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] DocumentRoot /var/www <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/httpd/error_log CustomLog /var/log/httpd/access_log combined ServerSignature Off </VirtualHost> 4、changes in /etc/httpd/conf.d/fastcgi.conf /etc/httpd/conf.d/fastcgi.conf FastCgiWrapper Off 5、changes in /etc/httpd/conf.d/ssl.conf SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ca.crt SSLCertificateKeyFile /etc/pki/tls/private/ca.key SetEnv SERVER_PORT_SECURE 443 6、comment the /etc/httpd/conf.d/welcome.conf #<LocationMatch "^/+$"> # Options -Indexes # ErrorDocument 403 /error/noindex.html #</LocationMatch> 7、the content of /var/www/s3gw.fcgi #!/bin/sh exec /usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway 8、the permison of s3gw.fcgi [root@ceph-node-1 www]# ll | grep s3gw -rwxrwxrwx. 1 apache apache 81 Mar 31 15:58 s3gw.fcgi 9、keyring for gateway ceph-authtool --create-keyring /etc/ceph/keyring.radosgw.gateway chmod +r /etc/ceph/keyring.radosgw.gateway ceph-authtool /etc/ceph/keyring.radosgw.gateway -n client.radosgw.gateway --gen-key ceph-authtool -n client.radosgw.gateway --cap osd 'allow rwx' --cap mon 'allow rw' /etc/ceph/keyring.radosgw.gateway ceph -k /etc/ceph/ceph.client.admin.keyring auth add client.radosgw.gateway -i /etc/ceph/keyring.radosgw.gateway 10、restart the service service ceph restart service httpd restart service ceph-radosgw start Anybody could help?
_______________________________________________ ceph-users mailing list [email protected] http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
