Re: Auth URL not found when using object gateway

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> From: "Greg Meier" <greg.meier@xxxxxxxxxx>
> To: ceph-users@xxxxxxxxxxxxxx
> Sent: Tuesday, March 24, 2015 4:24:16 PM
> Subject:  Auth URL not found when using object gateway
> 
> Hi,
> 
> I'm having trouble setting up an object gateway on an existing cluster. The
> cluster I'm trying to add the gateway to is running on a Precise 12.04
> virtual machine.
> 
> The cluster is up and running, with a monitor, two OSDs, and a metadata
> server. It returns HEALTH_OK and active+clean, so I am somewhat assured that
> it is running correctly.
> 
> I've:
> - set up an apache2 webserver with the fastcgi mod installed
> - created an rgw.conf file
> - added an s3gw.fcgi script
> - enabled the rgw.conf site and disabled the default
> - created a keyring and gateway user with appropriate cap's
> - restarted ceph, apache2, and the radosgw daemon
> - created a user and subuser
> - tested both s3 and swift calls
> 
> Unfortunately, both s3 and swift fail to authorize. An attempt to create a
> new bucket with s3 using a python script returns:
> 
> Traceback (most recent call last):
> File "s3test.py", line 13, in <module>
> bucket = conn.create_bucket('my-new-bucket')
> File "/usr/lib/python2.7/dist-packages/boto/s3/connection.py", line 422, in
> create_bucket
> response.status, response.reason, body)
> boto.exception.S3ResponseError: S3ResponseError: 404 Not Found
> None
> 
> And an attempt to post a container using the python-swiftclient from the
> command line with command:
> 
> swift --debug --info -A http://localhost/auth/1.0 -U gatewayuser:swift -K
> <key> post new_container
> 
> returns:
> 
> INFO:urllib3.connectionpool:Starting new HTTP connection (1): localhost
> DEBUG:urllib3.connectionpool:"GET /auth/1.0 HTTP/1.1" 404 180
> INFO:swiftclient:REQ: curl -i http://localhost/auth/1.0 -X GET
> INFO:swiftclient:RESP STATUS: 404 Not Found
> INFO:swiftclient:RESP HEADERS: [('content-length', '180'),
> ('content-encoding', 'gzip'), ('date', 'Tue, 24 Mar 2015 23:19:50 GMT'),
> ('content-type', 'text/html; charset=iso-8859-1'), ('vary',
> 'Accept-Encoding'), ('server', 'Apache/2.2.22 (Ubuntu)')]
> INFO:swiftclient:RESP BODY: M�0��}���,�I�)֔)Ң��m��qv��Y��.)�59�����=Ve
> ���y���lsa���#T������p��v�,����B/��� �5D�Z|=���S�N�+
> �|-�X)��V��b�a���與'@Uo���-�����n��"?�����
> ERROR:swiftclient:Auth GET failed: http://localhost/auth/1.0 404 Not Found
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1181, in
> _retry
> self.url, self.token = self.get_auth()
> File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1155, in
> get_auth
> insecure=self.insecure)
> File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 318, in
> get_auth
> insecure=insecure)
> File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 241, in
> get_auth_1_0
> http_reason=resp.reason)
> ClientException: Auth GET failed: http://localhost/auth/1.0 404 Not Found
> INFO:urllib3.connectionpool:Starting new HTTP connection (1): localhost
> DEBUG:urllib3.connectionpool:"GET /auth/1.0 HTTP/1.1" 404 180
> INFO:swiftclient:REQ: curl -i http://localhost/auth/1.0 -X GET
> INFO:swiftclient:RESP STATUS: 404 Not Found
> INFO:swiftclient:RESP HEADERS: [('content-length', '180'),
> ('content-encoding', 'gzip'), ('date', 'Tue, 24 Mar 2015 23:19:50 GMT'),
> ('content-type', 'text/html; charset=iso-8859-1'), ('vary',
> 'Accept-Encoding'), ('server', 'Apache/2.2.22 (Ubuntu)')]
> INFO:swiftclient:RESP BODY: M�0��}���,�I�)֔)Ң��m��qv��Y��.)�59�����=Ve
> ���y���lsa���#T������p��v�,����B/��� �5D�Z|=���S�N�+
> �|-�X)��V��b�a���與'@Uo���-�����n��"?�����
> ERROR:swiftclient:Auth GET failed: http://localhost/auth/1.0 404 Not Found
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1181, in
> _retry
> self.url, self.token = self.get_auth()
> File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1155, in
> get_auth
> insecure=self.insecure)
> File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 318, in
> get_auth
> insecure=insecure)
> File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 241, in
> get_auth_1_0
> http_reason=resp.reason)
> ClientException: Auth GET failed: http://localhost/auth/1.0 404 Not Found
> Auth GET failed: http://localhost/auth/1.0 404 Not Found
> 
> I'm not at all sure why it doesn't work when I've followed the documentation
> for setting it up. Please find attached, the config files for rgw.conf,
> ceph.conf, and apache2.conf
> 

What does the rgw log show? (please add 'debug rgw = 20' and 'debug ms = 1')

Yehuda
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux